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 +4 -4
- data/.github/workflows/main.yml +20 -20
- data/.rubocop.yml +50 -13
- data/CHANGELOG.md +28 -5
- data/Gemfile +14 -13
- data/Gemfile.lock +262 -213
- data/README.md +319 -319
- data/lib/{extentions → extensions}/array.rb +8 -8
- data/lib/{extentions → extensions}/hash.rb +36 -36
- data/lib/generators/rspec/json_api/type/type_generator.rb +23 -23
- data/lib/rspec/json_api/compare_hash.rb +114 -114
- data/lib/rspec/json_api/version.rb +7 -7
- data/lib/rspec/json_api.rb +25 -25
- data/rspec-json_api.gemspec +38 -37
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6dbc4d7e9cad6a0077c93be19b454999442378eca8cce7b1496b2a4695014a0
|
|
4
|
+
data.tar.gz: 976d1585d20673d2d91b0261242bd56a4290cfed483d085fa27b1f737c03e746
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 290773425e56acd72ac1ba7c1c0832216412ba0d7ee974a7817b4fc2c82e4dbb6c6ca14072b13d53c005fd97b2658f3ef160191c8a944a7733ab74d23efb4b37
|
|
7
|
+
data.tar.gz: b8e752a18818eb6815e567727d2ce2ba2cd4653c147e2aa6209f43ad3f70a95c8d96ae0b90579a8a56040c4880e9f32f51037bc9ff953963bf3b5625d373be9c
|
data/.github/workflows/main.yml
CHANGED
|
@@ -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@
|
|
10
|
-
- name: Set up Ruby
|
|
11
|
-
uses: ruby/setup-ruby@v1
|
|
12
|
-
with:
|
|
13
|
-
ruby-version: 3.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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@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.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Style/
|
|
9
|
-
Enabled: true
|
|
10
|
-
EnforcedStyle: double_quotes
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
## [
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
gemspec
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
gem "
|
|
11
|
-
gem "
|
|
12
|
-
gem "
|
|
13
|
-
gem "
|
|
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"
|