Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.1
ruby-version: 3.2.2
bundler: 4.0.4
- name: Bundle gems
run: |
gem install bundler -v 2.2.15
bundle install
run: bundle install
- name: Run rspec
run: |
bundle exec rspec
run: bundle exec rspec
- name: Run rubocop
run: bundle exec rubocop
39 changes: 38 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
AllCops:
TargetRubyVersion: 3.0.1
TargetRubyVersion: 3.2
NewCops: enable
SuggestExtensions: false
Exclude:
- "README.md"

Style/StringLiterals:
Enabled: true
Expand All @@ -11,3 +15,36 @@ Style/StringLiteralsInInterpolation:

Layout/LineLength:
Max: 120

Metrics/BlockLength:
Exclude:
- "spec/**/*_spec.rb"

Metrics/MethodLength:
Exclude:
- "lib/rspec/json_api/compare_hash.rb"
- "lib/extensions/hash.rb"

Metrics/AbcSize:
Exclude:
- "lib/rspec/json_api/compare_hash.rb"
- "lib/rspec/json_api/matchers/match_json_schema.rb"

Metrics/CyclomaticComplexity:
Exclude:
- "lib/rspec/json_api/compare_hash.rb"

Metrics/PerceivedComplexity:
Exclude:
- "lib/rspec/json_api/compare_hash.rb"

Style/Documentation:
Enabled: false

Naming/PredicatePrefix:
Exclude:
- "lib/rspec/json_api/matchers.rb"

Naming/PredicateMethod:
Exclude:
- "lib/rspec/json_api/compare_hash.rb"
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
## [Unreleased]

## [1.4.0] - 2026-01-23

### Changed
- Updated Ruby version requirement from `>= 3.0.0` to `>= 3.2.0` (required for Rails 8.1 compatibility)
- Maintained Rails compatibility: supports Rails `>= 6.1.4.1` including Rails 8.1
- Maintained ActiveSupport compatibility: supports ActiveSupport `>= 6.1.4.1` including Rails 8.1
- Maintained RSpec Rails compatibility: supports RSpec Rails `>= 5.0.2` (tested with Rails 8.1)
- Updated Bundler from 2.2.19 to 4.0.4 (latest version as of January 2026)
- Updated RuboCop to `~> 1.65` and updated TargetRubyVersion to 3.2
- Updated Rake to `~> 13.2`
- Updated Diffy to `~> 3.4`
- Updated all transitive dependencies to latest compatible versions
- Verified compatibility with Rails 8.1.2 while maintaining support for older Rails versions
- Added `rubygems_mfa_required` metadata for enhanced security
- Updated GitHub Actions CI workflow to use Ruby 3.2.2 and Bundler 4.0.4

### Fixed
- Fixed RuboCop style violations (trailing commas, empty literals, symbol proc usage)
- Fixed module function style (changed `extend self` to `module_function`)
- Fixed line endings in Gemfile (CRLF to LF)
- Fixed CI workflow bundler version mismatch
- Fixed README typos and improved code examples consistency

## [0.1.0] - 2021-08-24

- Initial release
11 changes: 6 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# frozen_string_literal: true

# Bundler version: 4.0.4 (see Gemfile.lock BUNDLED WITH section)
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Specify your gem's dependencies in rspec-json_api.gemspec
gemspec

gem "activesupport", "~> 6.1", ">= 6.1.4.1"
gem "diffy"
gem "rake", "~> 13.0", ">= 13.0.6"
gem "rspec-rails", "~> 5.0", ">= 5.0.2"
gem "rubocop"
gem "activesupport", ">= 6.1.4.1"
gem "diffy", "~> 3.4"
gem "rake", "~> 13.2"
gem "rspec-rails", ">= 5.0.2"
gem "rubocop", "~> 1.65"
Loading