rspec-json_api 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b4b978bb71054b9d75d61a47c0213eb26888876c72a132bd77da8e2a8aea15b
4
- data.tar.gz: 69896916d64f74eb3c63708f6a84e412c9a0b8e5d2b9283fad40133f7f80a143
3
+ metadata.gz: d6dbc4d7e9cad6a0077c93be19b454999442378eca8cce7b1496b2a4695014a0
4
+ data.tar.gz: 976d1585d20673d2d91b0261242bd56a4290cfed483d085fa27b1f737c03e746
5
5
  SHA512:
6
- metadata.gz: e69138827c7e5241305a32bac25ba0247e60bc7836bd31a22dd5fa3160a8c8247872359e716ded38e2876a299343cc516d643d2d0c8263a85928a11e4dc69b6d
7
- data.tar.gz: a3ab6e463a51bb29c9a12fae052fff6f0f9a8e3732642b5a1a4a195078761e8a216235a655987a767c5b2f737ccb5a9dcb303d6ef66ff032a8ff811c113ba00c
6
+ metadata.gz: 290773425e56acd72ac1ba7c1c0832216412ba0d7ee974a7817b4fc2c82e4dbb6c6ca14072b13d53c005fd97b2658f3ef160191c8a944a7733ab74d23efb4b37
7
+ data.tar.gz: b8e752a18818eb6815e567727d2ce2ba2cd4653c147e2aa6209f43ad3f70a95c8d96ae0b90579a8a56040c4880e9f32f51037bc9ff953963bf3b5625d373be9c
@@ -1,20 +1,20 @@
1
- name: Ruby
2
-
3
- on: [push,pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 3.0.1
14
- - name: Bundle gems
15
- run: |
16
- gem install bundler -v 2.2.15
17
- bundle install
18
- - name: Run rspec
19
- run: |
20
- bundle exec rspec
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.2.2
14
+ bundler: 4.0.4
15
+ - name: Bundle gems
16
+ run: bundle install
17
+ - name: Run rspec
18
+ run: bundle exec rspec
19
+ - name: Run rubocop
20
+ run: bundle exec rubocop
data/.rubocop.yml CHANGED
@@ -1,13 +1,50 @@
1
- AllCops:
2
- TargetRubyVersion: 3.0.1
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
1
+ AllCops:
2
+ TargetRubyVersion: 3.2
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+ Exclude:
6
+ - "README.md"
7
+
8
+ Style/StringLiterals:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Style/StringLiteralsInInterpolation:
13
+ Enabled: true
14
+ EnforcedStyle: double_quotes
15
+
16
+ Layout/LineLength:
17
+ Max: 120
18
+
19
+ Metrics/BlockLength:
20
+ Exclude:
21
+ - "spec/**/*_spec.rb"
22
+
23
+ Metrics/MethodLength:
24
+ Exclude:
25
+ - "lib/rspec/json_api/compare_hash.rb"
26
+ - "lib/extensions/hash.rb"
27
+
28
+ Metrics/AbcSize:
29
+ Exclude:
30
+ - "lib/rspec/json_api/compare_hash.rb"
31
+ - "lib/rspec/json_api/matchers/match_json_schema.rb"
32
+
33
+ Metrics/CyclomaticComplexity:
34
+ Exclude:
35
+ - "lib/rspec/json_api/compare_hash.rb"
36
+
37
+ Metrics/PerceivedComplexity:
38
+ Exclude:
39
+ - "lib/rspec/json_api/compare_hash.rb"
40
+
41
+ Style/Documentation:
42
+ Enabled: false
43
+
44
+ Naming/PredicatePrefix:
45
+ Exclude:
46
+ - "lib/rspec/json_api/matchers.rb"
47
+
48
+ Naming/PredicateMethod:
49
+ Exclude:
50
+ - "lib/rspec/json_api/compare_hash.rb"
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2021-08-24
4
-
5
- - Initial release
1
+ ## [Unreleased]
2
+
3
+ ## [1.4.0] - 2026-01-23
4
+
5
+ ### Changed
6
+ - Updated Ruby version requirement from `>= 3.0.0` to `>= 3.2.0` (required for Rails 8.1 compatibility)
7
+ - Maintained Rails compatibility: supports Rails `>= 6.1.4.1` including Rails 8.1
8
+ - Maintained ActiveSupport compatibility: supports ActiveSupport `>= 6.1.4.1` including Rails 8.1
9
+ - Maintained RSpec Rails compatibility: supports RSpec Rails `>= 5.0.2` (tested with Rails 8.1)
10
+ - Updated Bundler from 2.2.19 to 4.0.4 (latest version as of January 2026)
11
+ - Updated RuboCop to `~> 1.65` and updated TargetRubyVersion to 3.2
12
+ - Updated Rake to `~> 13.2`
13
+ - Updated Diffy to `~> 3.4`
14
+ - Updated all transitive dependencies to latest compatible versions
15
+ - Verified compatibility with Rails 8.1.2 while maintaining support for older Rails versions
16
+ - Added `rubygems_mfa_required` metadata for enhanced security
17
+ - Updated GitHub Actions CI workflow to use Ruby 3.2.2 and Bundler 4.0.4
18
+
19
+ ### Fixed
20
+ - Fixed RuboCop style violations (trailing commas, empty literals, symbol proc usage)
21
+ - Fixed module function style (changed `extend self` to `module_function`)
22
+ - Fixed line endings in Gemfile (CRLF to LF)
23
+ - Fixed CI workflow bundler version mismatch
24
+ - Fixed README typos and improved code examples consistency
25
+
26
+ ## [0.1.0] - 2021-08-24
27
+
28
+ - Initial release
data/Gemfile CHANGED
@@ -1,13 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
-
6
- # Specify your gem's dependencies in rspec-json_api.gemspec
7
- gemspec
8
-
9
- gem "activesupport", "~> 6.1", ">= 6.1.4.1"
10
- gem "diffy"
11
- gem "rake", "~> 13.0", ">= 13.0.6"
12
- gem "rspec-rails", "~> 5.0", ">= 5.0.2"
13
- gem "rubocop"
1
+ # frozen_string_literal: true
2
+
3
+ # Bundler version: 4.0.4 (see Gemfile.lock BUNDLED WITH section)
4
+ source "https://rubygems.org"
5
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6
+
7
+ # Specify your gem's dependencies in rspec-json_api.gemspec
8
+ gemspec
9
+
10
+ gem "activesupport", ">= 6.1.4.1"
11
+ gem "diffy", "~> 3.4"
12
+ gem "rake", "~> 13.2"
13
+ gem "rspec-rails", ">= 5.0.2"
14
+ gem "rubocop", "~> 1.65"