-
Notifications
You must be signed in to change notification settings - Fork 12
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
Beta Version is not Loadable #7
Comments
@MattyCodes @FHappy, I wanted to let you know that we merged the beta branch into main so you may want to update your dependency to use the main github branch. That said, we haven't been able to reproduce this issue.
@FHappy, are you running into the same problem? Cheers |
@rgomezp looks like we have similar issues as well. Problem with gem loading on
|
@nickKolya , |
Overview
It is my understanding that new API consumers are meant to be using the "beta 1.0.0" version of this library, however we've run into some issues loading it which I think are related to how the library is registered with RubyGems. Here is the guide we are following: https://github.com/OneSignal/onesignal-ruby-client/blob/aa5a0bea2fadf3f023d76de5f1492f25af3f7d34/README.md. After installing the gem, when trying to require it in our project in the boot-file (or in a console), we see the following error:
Steps to Reproduce
Per the documentation, we've added the following to our Gemfile:
Then we run
bundle
, which appears to work and yields the following output:Then, either in a console or on application-startup, add the line
require 'onesignal'
and you should see the error above.Temporary Fix
For the time being, we have found that we can work around this issue by specifying the git location and the git branch for the targeted beta release; the line in the Gemfile must be changed to:
When running
bundle
with that in our Gemfile, we are able to use the library as expected:Summary
The temporary fix will give us access to the library in our project for now, but it is not an optimal solution. When targeting this branch
bundle
could begin failing if this branch were deleted from GitHub, or if the release were removed from the branch etc. In the short-term it would make sense to update the docs to reflect this usage, but long-term we would like to just target the gem version alone rather than listing the repository and branch as well.The text was updated successfully, but these errors were encountered: