File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,9 @@ Style/TrailingCommaInHashLiteral:
42
42
43
43
Lint/RedundantCopDisableDirective :
44
44
Enabled : false
45
+
46
+ Metrics/AbcSize :
47
+ Max : 17
48
+
49
+ Bundler/DuplicatedGem :
50
+ Enabled : false
Original file line number Diff line number Diff line change @@ -49,4 +49,8 @@ if RUBY_VERSION >= "2.7"
49
49
gem "yajl-ruby" , "~> 1.4"
50
50
end
51
51
52
+ # test on the oldest version of the json gem we can expect based on the required_ruby_version
53
+ # see https://stdgems.org/compare/2.3/
54
+ gem "json" , "1.8.3.1" if RUBY_VERSION < "2.4"
55
+
52
56
gem "libyajl2" , "~> 2.1"
Original file line number Diff line number Diff line change 2
2
remote: .
3
3
specs:
4
4
json_scanner (0.3.1)
5
- json
5
+ json (>= 1.8.3.1)
6
6
7
7
GEM
8
8
remote: https://rubygems.org/
12
12
coderay (1.1.3)
13
13
diff-lcs (1.5.1)
14
14
jaro_winkler (1.5.6)
15
- json (2.7.6 )
15
+ json (1.8.3.1 )
16
16
libyajl2 (2.1.0)
17
17
method_source (0.9.2)
18
18
parallel (1.19.2)
@@ -61,6 +61,7 @@ PLATFORMS
61
61
x86_64-linux
62
62
63
63
DEPENDENCIES
64
+ json (= 1.8.3.1)
64
65
json_scanner!
65
66
libyajl2 (~> 2.1)
66
67
pry (~> 0.12.2)
Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
spec . require_paths = [ "lib" ]
30
30
spec . extensions = [ "ext/json_scanner/extconf.rb" ]
31
31
spec . metadata [ "rubygems_mfa_required" ] = "true"
32
- spec . add_dependency "json"
32
+ spec . add_dependency "json" , ">= 1.8.3.1"
33
33
end
You can’t perform that action at this time.
0 commit comments