-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load command: arkana - Undefined method capitalize_first_letter #57
Comments
@JeanBaptisteBolh have you initialized your |
@alexspurlock25 I added the .arkana.yml file at my project root. Do you see anything wrong with it?
To me it looks like for some reason arkana can't find the definition for that capitalize_first_letter function. I saw it defined for String in the source code though: |
@JeanBaptisteBolh This is mine: the
The
Notice that the keys are the same name in both files. ALSO: this is where the capitalization error happens. Arkana tries to capitalize the vars in the |
I think what you have to do is:
in your
|
Haven't yet been able to get this to work unfortunately... .arkana.yml
.env
Result after running bundle exec arkana (I also tried with the -e option to point to the .env file)
|
@JeanBaptisteBolh In your
remove the value like so:
Also, remove the double quotes from keys. Arkana looks for that var and its value in your |
I also noticed that your local ruby version is set to be below 3. I believe that Arkana needs ruby to be above version 3 |
Hey everyone! Sorry I'm late for the party 😄 I really appreciate your input here @alexspurlock25, I love to see this community engagement ❤️ @JeanBaptisteBolh it seems like you're struggling with setting Arkana up for the first time. I suggest reading the I don't know where/how you came up with the syntax for that yaml file you wrote, but it should be like this instead: # here don't forget to set all the other settings related to the project, e.g. spm vs cocoapods, swift vs kotlin, etc…
environments: # Optional. List of environments that will be used to generate secret keys when you have keys that are different between environments (e.g. debug/staging/prod). Defaults to empty.
- Debug
- Release
environment_secrets: # Optional. List of secrets that are the same regardless of which environment is being built. Defaults to empty.
- OpenAPIKey I hope this helps! Let me know if you still have issues 🤗 |
Despite being a nice-to-have, Ruby 3 is not enforced at the moment! Arkana currently supports Ruby 2.7 and up, despite being a version long deprecated, so I really recommend upgrading to Ruby 3+ sooner rather than later :) |
We have [what I believed to be] an extensive documentation in the project's README, would you be able to point out areas we could improve it? And/or perhaps @JeanBaptisteBolh could contribute too with some fresh ideas? 😃 I'd love to hear them all! |
Right, so when I started using Arkana - works great by the way - I wasn't told that I HAD to create two files. Maybe I missed that somewhere, but I did get lost initially. I hope this helps someway. I love the library by the way. |
Thank you so much for the feedback @alexspurlock25 ! I'll make sure the documentation is more clear 🙇 I'm glad to hear you enjoy using Arkana! ❤️ |
@JeanBaptisteBolh please let me know if the info above resolves the issues you were seeing :) Looking forward to hearing back from you! 🙇 |
Hi @rogerluan thanks for checking in! Apologies for not getting back quickly, been a busy day at work... I think I figured it out since my command just ran successfully so first of all, THANK YOU! For the README improvements, I'll try to spell out instructions as I would tell them to someone else after going through this experience. I'll admit this may be more verbose than what you will end up with, but here we go. Example:
.env
That's how it works in my brain... let me know if I'm not thinking about this correctly and thank you again for the help :) |
@JeanBaptisteBolh what do you think of the new section in the README? The majority of it came from a contribution added in this PR #61, but I just incorporated some of your feedback on it as well, from your message above 🙇 I opted not to use a prose style (like you suggested above), keeping a procedural tone instead, but the content should be easier to digest now. I hope that makes it clearer! |
I added arkana to my gem file:
gem 'arkana'
And installed with
bundle install
It appears to be a success. However, when I try to run "bundle exec arkana" in my command line, I get the following error:
The text was updated successfully, but these errors were encountered: