Repository navigation
Conversation
The ~> 2.1 pin stopped consumers upgrading to json 3. The gem only calls JSON.parse and JSON.generate, which json 3 keeps unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the old controlshift/oauth2 fork from the Gemfile. It only applied to this gem's own development; consumers already resolve oauth2 from rubygems, and agra runs this gem on oauth2 2.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace juwelier with a plain gemspec and Bundler's gem tasks, with the version in NationBuilder::VERSION. Require Ruby 3.3+ and run CI on 3.3, 3.4 and 4.0 for pushes to main and pull requests. The pending People specs made a live password-grant request to a real nation on every run, because spec_helper allowed real connections. They now stub NationBuilder with WebMock and real connections are blocked. The public API is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fixtures were escaped strings and a Ruby hash literal, so they never parsed, and the pending specs that referenced them never reached them. Restore them as JSON, load them in the People#list specs, and use not_found for an update 404 spec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the gem's dependencies, Ruby support and packaging up to date. The public API is unchanged: oauth2 underneath, the same constructor options and methods, and the same
OAuth2::Error/NationBuilder::Exceptions::ValidationErrorerrors.Dependencies
~> 2.1→>= 2.1, so consumers can upgrade to json 3. The gem only callsJSON.parseandJSON.generate, which json 3 keeps as they were.>= 0→~> 2.0. The Gemfile no longer points at the oldcontrolshift/oauth2fork. Gemfile sources only apply to this gem's own development, so consumers have always used oauth2 from rubygems. Agra already runs this gem on oauth2 2.1.> 3.0.0→>= 7.0.Ruby and packaging
NationBuilder::VERSION. RemovedVERSION,.document,.ruby-versionand.ruby-gemset.Specs
The two pending People specs made a live password-grant request to
controlshifttest.nationbuilder.comon every run, including CI, using credentials hardcoded inspec/people_spec.rb. That worked becausespec_helpercalledWebMock.allow_net_connect!. Those specs now stub NationBuilder with WebMock, real connections are blocked, and there's new coverage formatch,add,updateandadd_tagging. The hardcoded credentials stay in git history, so they should be rotated if they're still valid.Replaces #9.
🤖 Generated with Claude Code