-
Notifications
You must be signed in to change notification settings - Fork 311
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
Client-supplied endpoint gets truncated #38
Comments
Thanks Boyan, will look into this. Actually my next step was to make sure that this gem works with any backend including enterprise version. |
Right, this is fixed now Boyan. You can specify arbitrary paths with your host and these will be preserved during requests. Please install release v0.6.2. Best Piotr |
Thanks Piotr, it works perfectly! |
When using OAuth with GitHub Enterprise: github = Github.new endpoint: '<some-url-with-github-enterprise>/api/v3', client_id: '...', client_secret: '...'
puts github.client.site # https://github.com I have to manually set Perhaps a nice feature would be when setting the endpoint to automatically set the right URL for OAuth |
I agree, will look into this probably over the weekend. |
@boyan, the gem now allows you to set the github = Github.new endpoint: ..., site: ...., client_id: ..., client_secret: ....
or
github.client :site => .... Please download the v0.6.4 release. |
After
'/api/v3' becomes truncated from the host to which requests are made.
The text was updated successfully, but these errors were encountered: