Skip to content
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

Bug: Explicit require net/http #158

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

mnyrop
Copy link
Member

@mnyrop mnyrop commented Jul 28, 2023

Hi folks!

We're working on a small CLI gem for our in-house GBL that uses GeoCombine. We hit a small bug with GeoCombine::Harvester. calling .repositories throws:

NameError:
       uninitialized constant GeoCombine::Harvester::Net

from this line

@repositories ||= JSON.parse(Net::HTTP.get(self.class.ogm_api_uri))

Adding an explicit require 'net/http' to harvester.rb solved it; this PR includes that & a small second commit to make rubocop test pass (edit: looks redundant with #157?)

Spec tests passed locally on ruby-3.2.2.

@thatbudakguy
Copy link
Member

not sure why CI isn't running, but I'm going to go ahead and merge this. thanks!

@thatbudakguy thatbudakguy merged commit 00aaaf0 into OpenGeoMetadata:main Aug 3, 2023
@mnyrop mnyrop deleted the bug/net-explicit-require branch August 3, 2023 20:45
@mnyrop
Copy link
Member Author

mnyrop commented Aug 3, 2023

@thatbudakguy it looks the CI only runs on commits & not PRs!

@thatbudakguy
Copy link
Member

oh, good catch! I should fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants