grape-app 0.11.0 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39ce25e8c0f9c276a8c2c22d1b6138b1160172e850236ffe8ea959880851d375
4
- data.tar.gz: 6380778138b98ee32ae6a844cb82a37adaa48d3747e7395c8eec21d478400a92
3
+ metadata.gz: d3db1043050da92ec87787def57768e532cfa6af8e018433d9dced14fb3a7529
4
+ data.tar.gz: 3236aa9b797c67ebd96e14359edefc15756f84514dff6471a481a2f6cc26f061
5
5
  SHA512:
6
- metadata.gz: 4479eb190adf06cd626071cd8be85146331c15f18a82fc20204c2c33dd466697aa85add791cc05dd24e0d690630538ed50573eb73a23d798a4d093eed8b2c1a0
7
- data.tar.gz: 2a39eb90dcfff318003aef1c68246f25c674a543630f01adb2299bf71b8e12543e991a15df01056e9534b1b7607105bf01862a9e5e292198f9c5559af15ce505
6
+ metadata.gz: 1824f08abc4e0a7d734fcc20010dad4f0b22a97d9a3b2c6110785ace7c97e3a7577209b29e756372f3cec1e5c442ff251ac1a9eb02c55bc434ca541721c27f02
7
+ data.tar.gz: ef9222fa4ab8b9eab2e88a583cf5e14338a28fba281019b94fd927badb7c8e6192913c6003521f002216d8bf9233ca73bc798ff79fbdc159c6603647fdc5d028
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ["2.7", "3.0", "3.1"]
14
+ ruby-version: ["3.0", "3.1", "3.2", "3.3"]
15
15
  gemfiles: ["Gemfile", "Gemfile.rails6"]
16
16
  env:
17
17
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
data/Gemfile CHANGED
@@ -1,2 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
+
4
+ gem 'activejob'
5
+ gem 'activerecord'
6
+ gem 'rack-test'
7
+ gem 'rake'
8
+ gem 'rspec'
9
+ gem 'rubocop-bsm'
10
+ gem 'sqlite3'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape-app (0.11.0)
4
+ grape-app (0.11.2)
5
5
  activesupport
6
6
  grape (>= 1.7)
7
7
  grape-entity
@@ -14,24 +14,35 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activejob (7.0.4.1)
18
- activesupport (= 7.0.4.1)
17
+ activejob (7.1.3)
18
+ activesupport (= 7.1.3)
19
19
  globalid (>= 0.3.6)
20
- activemodel (7.0.4.1)
21
- activesupport (= 7.0.4.1)
22
- activerecord (7.0.4.1)
23
- activemodel (= 7.0.4.1)
24
- activesupport (= 7.0.4.1)
25
- activesupport (7.0.4.1)
20
+ activemodel (7.1.3)
21
+ activesupport (= 7.1.3)
22
+ activerecord (7.1.3)
23
+ activemodel (= 7.1.3)
24
+ activesupport (= 7.1.3)
25
+ timeout (>= 0.4.0)
26
+ activesupport (7.1.3)
27
+ base64
28
+ bigdecimal
26
29
  concurrent-ruby (~> 1.0, >= 1.0.2)
30
+ connection_pool (>= 2.2.5)
31
+ drb
27
32
  i18n (>= 1.6, < 2)
28
33
  minitest (>= 5.1)
34
+ mutex_m
29
35
  tzinfo (~> 2.0)
30
36
  ast (2.4.2)
37
+ base64 (0.2.0)
38
+ bigdecimal (3.1.6)
31
39
  builder (3.2.4)
32
- concurrent-ruby (1.1.10)
40
+ concurrent-ruby (1.2.3)
41
+ connection_pool (2.4.1)
33
42
  diff-lcs (1.5.0)
34
- dry-core (1.0.0)
43
+ drb (2.2.0)
44
+ ruby2_keywords
45
+ dry-core (1.0.1)
35
46
  concurrent-ruby (~> 1.0)
36
47
  zeitwerk (~> 2.6)
37
48
  dry-inflector (1.0.0)
@@ -39,99 +50,109 @@ GEM
39
50
  concurrent-ruby (~> 1.0)
40
51
  dry-core (~> 1.0, < 2)
41
52
  zeitwerk (~> 2.6)
42
- dry-types (1.7.0)
53
+ dry-types (1.7.2)
54
+ bigdecimal (~> 3.0)
43
55
  concurrent-ruby (~> 1.0)
44
- dry-core (~> 1.0, < 2)
45
- dry-inflector (~> 1.0, < 2)
46
- dry-logic (>= 1.4, < 2)
56
+ dry-core (~> 1.0)
57
+ dry-inflector (~> 1.0)
58
+ dry-logic (~> 1.4)
47
59
  zeitwerk (~> 2.6)
48
- globalid (1.0.1)
49
- activesupport (>= 5.0)
50
- grape (1.7.0)
51
- activesupport
60
+ globalid (1.2.1)
61
+ activesupport (>= 6.1)
62
+ grape (2.0.0)
63
+ activesupport (>= 5)
52
64
  builder
53
65
  dry-types (>= 1.1)
54
66
  mustermann-grape (~> 1.0.0)
55
67
  rack (>= 1.3.0)
56
68
  rack-accept
57
- grape-entity (0.10.2)
69
+ grape-entity (1.0.0)
58
70
  activesupport (>= 3.0.0)
59
71
  multi_json (>= 1.3.2)
60
- i18n (1.12.0)
72
+ i18n (1.14.1)
61
73
  concurrent-ruby (~> 1.0)
62
- json (2.6.3)
63
- mini_portile2 (2.8.1)
64
- minitest (5.17.0)
74
+ json (2.7.1)
75
+ language_server-protocol (3.17.0.3)
76
+ mini_portile2 (2.8.5)
77
+ minitest (5.21.2)
65
78
  multi_json (1.15.0)
66
79
  mustermann (3.0.0)
67
80
  ruby2_keywords (~> 0.0.1)
68
81
  mustermann-grape (1.0.2)
69
82
  mustermann (>= 1.0.0)
70
- openssl (3.1.0)
71
- parallel (1.22.1)
72
- parser (3.2.0.0)
83
+ mutex_m (0.2.0)
84
+ openssl (3.2.0)
85
+ parallel (1.24.0)
86
+ parser (3.3.0.4)
73
87
  ast (~> 2.4.1)
74
- rack (3.0.4.1)
88
+ racc
89
+ racc (1.7.3)
90
+ rack (3.0.8)
75
91
  rack-accept (0.4.5)
76
92
  rack (>= 0.4)
77
- rack-cors (1.1.1)
93
+ rack-cors (2.0.1)
78
94
  rack (>= 2.0.0)
79
95
  rack-ssl-enforcer (0.2.9)
80
- rack-test (2.0.2)
96
+ rack-test (2.1.0)
81
97
  rack (>= 1.3)
82
98
  rainbow (3.1.1)
83
- rake (13.0.6)
84
- regexp_parser (2.6.2)
85
- rexml (3.2.5)
99
+ rake (13.1.0)
100
+ regexp_parser (2.9.0)
101
+ rexml (3.2.6)
86
102
  rspec (3.12.0)
87
103
  rspec-core (~> 3.12.0)
88
104
  rspec-expectations (~> 3.12.0)
89
105
  rspec-mocks (~> 3.12.0)
90
- rspec-core (3.12.0)
106
+ rspec-core (3.12.2)
91
107
  rspec-support (~> 3.12.0)
92
- rspec-expectations (3.12.2)
108
+ rspec-expectations (3.12.3)
93
109
  diff-lcs (>= 1.2.0, < 2.0)
94
110
  rspec-support (~> 3.12.0)
95
- rspec-mocks (3.12.3)
111
+ rspec-mocks (3.12.6)
96
112
  diff-lcs (>= 1.2.0, < 2.0)
97
113
  rspec-support (~> 3.12.0)
98
- rspec-support (3.12.0)
99
- rubocop (1.43.0)
114
+ rspec-support (3.12.1)
115
+ rubocop (1.60.1)
100
116
  json (~> 2.3)
117
+ language_server-protocol (>= 3.17.0)
101
118
  parallel (~> 1.10)
102
- parser (>= 3.2.0.0)
119
+ parser (>= 3.3.0.2)
103
120
  rainbow (>= 2.2.2, < 4.0)
104
121
  regexp_parser (>= 1.8, < 3.0)
105
122
  rexml (>= 3.2.5, < 4.0)
106
- rubocop-ast (>= 1.24.1, < 2.0)
123
+ rubocop-ast (>= 1.30.0, < 2.0)
107
124
  ruby-progressbar (~> 1.7)
108
125
  unicode-display_width (>= 2.4.0, < 3.0)
109
- rubocop-ast (1.24.1)
110
- parser (>= 3.1.1.0)
126
+ rubocop-ast (1.30.0)
127
+ parser (>= 3.2.1.0)
111
128
  rubocop-bsm (0.6.1)
112
129
  rubocop (~> 1.0)
113
130
  rubocop-performance
114
131
  rubocop-rake
115
132
  rubocop-rspec
116
- rubocop-capybara (2.17.0)
133
+ rubocop-capybara (2.20.0)
134
+ rubocop (~> 1.41)
135
+ rubocop-factory_bot (2.25.1)
117
136
  rubocop (~> 1.41)
118
- rubocop-performance (1.15.2)
119
- rubocop (>= 1.7.0, < 2.0)
120
- rubocop-ast (>= 0.4.0)
137
+ rubocop-performance (1.20.2)
138
+ rubocop (>= 1.48.1, < 2.0)
139
+ rubocop-ast (>= 1.30.0, < 2.0)
121
140
  rubocop-rake (0.6.0)
122
141
  rubocop (~> 1.0)
123
- rubocop-rspec (2.18.1)
124
- rubocop (~> 1.33)
142
+ rubocop-rspec (2.26.1)
143
+ rubocop (~> 1.40)
125
144
  rubocop-capybara (~> 2.17)
126
- ruby-progressbar (1.11.0)
145
+ rubocop-factory_bot (~> 2.22)
146
+ ruby-progressbar (1.13.0)
127
147
  ruby2_keywords (0.0.5)
128
- sqlite3 (1.6.0)
148
+ sqlite3 (1.7.0)
129
149
  mini_portile2 (~> 2.8.0)
130
- thor (1.2.1)
131
- tzinfo (2.0.5)
150
+ thor (1.3.0)
151
+ timeout (0.4.1)
152
+ tzinfo (2.0.6)
132
153
  concurrent-ruby (~> 1.0)
133
- unicode-display_width (2.4.2)
134
- zeitwerk (2.6.6)
154
+ unicode-display_width (2.5.0)
155
+ zeitwerk (2.6.12)
135
156
 
136
157
  PLATFORMS
137
158
  ruby
@@ -139,7 +160,6 @@ PLATFORMS
139
160
  DEPENDENCIES
140
161
  activejob
141
162
  activerecord
142
- bundler
143
163
  grape-app!
144
164
  rack-test
145
165
  rake
data/Gemfile.rails6 CHANGED
@@ -1,6 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
+ gem 'activejob', '~> 6.1'
4
5
  gem 'activesupport', '~> 6.1'
5
6
  gem 'activerecord', '~> 6.1'
6
- gem 'activejob', '~> 6.1'
7
+ gem 'rack-test'
8
+ gem 'rake'
9
+ gem 'rspec'
10
+ gem 'rubocop-bsm'
11
+ gem 'sqlite3'
data/Gemfile.rails6.lock CHANGED
@@ -1,133 +1,145 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape-app (0.10.1)
4
+ grape-app (0.11.1)
5
5
  activesupport
6
- grape (>= 1.2)
6
+ grape (>= 1.7)
7
7
  grape-entity
8
8
  openssl
9
9
  rack-cors (>= 1.1)
10
10
  rack-ssl-enforcer
11
11
  thor
12
- zeitwerk (>= 2.1)
12
+ zeitwerk (>= 2.6)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activejob (6.1.6.1)
18
- activesupport (= 6.1.6.1)
17
+ activejob (6.1.7.6)
18
+ activesupport (= 6.1.7.6)
19
19
  globalid (>= 0.3.6)
20
- activemodel (6.1.6.1)
21
- activesupport (= 6.1.6.1)
22
- activerecord (6.1.6.1)
23
- activemodel (= 6.1.6.1)
24
- activesupport (= 6.1.6.1)
25
- activesupport (6.1.6.1)
20
+ activemodel (6.1.7.6)
21
+ activesupport (= 6.1.7.6)
22
+ activerecord (6.1.7.6)
23
+ activemodel (= 6.1.7.6)
24
+ activesupport (= 6.1.7.6)
25
+ activesupport (6.1.7.6)
26
26
  concurrent-ruby (~> 1.0, >= 1.0.2)
27
27
  i18n (>= 1.6, < 2)
28
28
  minitest (>= 5.1)
29
29
  tzinfo (~> 2.0)
30
30
  zeitwerk (~> 2.3)
31
31
  ast (2.4.2)
32
+ base64 (0.1.1)
32
33
  builder (3.2.4)
33
- concurrent-ruby (1.1.10)
34
+ concurrent-ruby (1.2.2)
34
35
  diff-lcs (1.5.0)
35
- dry-container (0.10.0)
36
+ dry-core (1.0.0)
36
37
  concurrent-ruby (~> 1.0)
37
- dry-core (0.7.1)
38
+ zeitwerk (~> 2.6)
39
+ dry-inflector (1.0.0)
40
+ dry-logic (1.5.0)
38
41
  concurrent-ruby (~> 1.0)
39
- dry-inflector (0.3.0)
40
- dry-logic (1.2.0)
42
+ dry-core (~> 1.0, < 2)
43
+ zeitwerk (~> 2.6)
44
+ dry-types (1.7.1)
41
45
  concurrent-ruby (~> 1.0)
42
- dry-core (~> 0.5, >= 0.5)
43
- dry-types (1.5.1)
44
- concurrent-ruby (~> 1.0)
45
- dry-container (~> 0.3)
46
- dry-core (~> 0.5, >= 0.5)
47
- dry-inflector (~> 0.1, >= 0.1.2)
48
- dry-logic (~> 1.0, >= 1.0.2)
49
- globalid (1.0.0)
46
+ dry-core (~> 1.0)
47
+ dry-inflector (~> 1.0)
48
+ dry-logic (~> 1.4)
49
+ zeitwerk (~> 2.6)
50
+ globalid (1.1.0)
50
51
  activesupport (>= 5.0)
51
- grape (1.6.2)
52
+ grape (1.7.1)
52
53
  activesupport
53
54
  builder
54
55
  dry-types (>= 1.1)
55
56
  mustermann-grape (~> 1.0.0)
56
- rack (>= 1.3.0)
57
+ rack (>= 1.3.0, < 3)
57
58
  rack-accept
58
- grape-entity (0.10.1)
59
+ grape-entity (1.0.0)
59
60
  activesupport (>= 3.0.0)
60
61
  multi_json (>= 1.3.2)
61
- i18n (1.11.0)
62
+ i18n (1.14.1)
62
63
  concurrent-ruby (~> 1.0)
63
- json (2.6.2)
64
- minitest (5.16.2)
64
+ json (2.6.3)
65
+ language_server-protocol (3.17.0.3)
66
+ minitest (5.19.0)
65
67
  multi_json (1.15.0)
66
- mustermann (1.1.1)
68
+ mustermann (3.0.0)
67
69
  ruby2_keywords (~> 0.0.1)
68
70
  mustermann-grape (1.0.2)
69
71
  mustermann (>= 1.0.0)
70
- openssl (3.0.0)
71
- parallel (1.22.1)
72
- parser (3.1.2.0)
72
+ openssl (3.1.0)
73
+ parallel (1.23.0)
74
+ parser (3.2.2.3)
73
75
  ast (~> 2.4.1)
74
- rack (2.2.4)
76
+ racc
77
+ racc (1.7.1)
78
+ rack (2.2.8)
75
79
  rack-accept (0.4.5)
76
80
  rack (>= 0.4)
77
- rack-cors (1.1.1)
81
+ rack-cors (2.0.1)
78
82
  rack (>= 2.0.0)
79
83
  rack-ssl-enforcer (0.2.9)
80
- rack-test (2.0.2)
84
+ rack-test (2.1.0)
81
85
  rack (>= 1.3)
82
86
  rainbow (3.1.1)
83
87
  rake (13.0.6)
84
- regexp_parser (2.5.0)
85
- rexml (3.2.5)
86
- rspec (3.11.0)
87
- rspec-core (~> 3.11.0)
88
- rspec-expectations (~> 3.11.0)
89
- rspec-mocks (~> 3.11.0)
90
- rspec-core (3.11.0)
91
- rspec-support (~> 3.11.0)
92
- rspec-expectations (3.11.0)
88
+ regexp_parser (2.8.1)
89
+ rexml (3.2.6)
90
+ rspec (3.12.0)
91
+ rspec-core (~> 3.12.0)
92
+ rspec-expectations (~> 3.12.0)
93
+ rspec-mocks (~> 3.12.0)
94
+ rspec-core (3.12.2)
95
+ rspec-support (~> 3.12.0)
96
+ rspec-expectations (3.12.3)
93
97
  diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.11.0)
95
- rspec-mocks (3.11.1)
98
+ rspec-support (~> 3.12.0)
99
+ rspec-mocks (3.12.6)
96
100
  diff-lcs (>= 1.2.0, < 2.0)
97
- rspec-support (~> 3.11.0)
98
- rspec-support (3.11.0)
99
- rubocop (1.31.2)
101
+ rspec-support (~> 3.12.0)
102
+ rspec-support (3.12.1)
103
+ rubocop (1.56.2)
104
+ base64 (~> 0.1.1)
100
105
  json (~> 2.3)
106
+ language_server-protocol (>= 3.17.0)
101
107
  parallel (~> 1.10)
102
- parser (>= 3.1.0.0)
108
+ parser (>= 3.2.2.3)
103
109
  rainbow (>= 2.2.2, < 4.0)
104
110
  regexp_parser (>= 1.8, < 3.0)
105
111
  rexml (>= 3.2.5, < 4.0)
106
- rubocop-ast (>= 1.18.0, < 2.0)
112
+ rubocop-ast (>= 1.28.1, < 2.0)
107
113
  ruby-progressbar (~> 1.7)
108
- unicode-display_width (>= 1.4.0, < 3.0)
109
- rubocop-ast (1.19.1)
110
- parser (>= 3.1.1.0)
111
- rubocop-bsm (0.6.0)
114
+ unicode-display_width (>= 2.4.0, < 3.0)
115
+ rubocop-ast (1.29.0)
116
+ parser (>= 3.2.1.0)
117
+ rubocop-bsm (0.6.1)
112
118
  rubocop (~> 1.0)
113
119
  rubocop-performance
114
120
  rubocop-rake
115
121
  rubocop-rspec
116
- rubocop-performance (1.14.2)
122
+ rubocop-capybara (2.18.0)
123
+ rubocop (~> 1.41)
124
+ rubocop-factory_bot (2.23.1)
125
+ rubocop (~> 1.33)
126
+ rubocop-performance (1.19.0)
117
127
  rubocop (>= 1.7.0, < 2.0)
118
128
  rubocop-ast (>= 0.4.0)
119
129
  rubocop-rake (0.6.0)
120
130
  rubocop (~> 1.0)
121
- rubocop-rspec (2.12.1)
122
- rubocop (~> 1.31)
123
- ruby-progressbar (1.11.0)
131
+ rubocop-rspec (2.23.2)
132
+ rubocop (~> 1.33)
133
+ rubocop-capybara (~> 2.17)
134
+ rubocop-factory_bot (~> 2.22)
135
+ ruby-progressbar (1.13.0)
124
136
  ruby2_keywords (0.0.5)
125
- sqlite3 (1.4.4)
126
- thor (1.2.1)
127
- tzinfo (2.0.4)
137
+ sqlite3 (1.6.4-x86_64-linux)
138
+ thor (1.2.2)
139
+ tzinfo (2.0.6)
128
140
  concurrent-ruby (~> 1.0)
129
- unicode-display_width (2.2.0)
130
- zeitwerk (2.6.0)
141
+ unicode-display_width (2.4.2)
142
+ zeitwerk (2.6.11)
131
143
 
132
144
  PLATFORMS
133
145
  x86_64-linux
@@ -136,7 +148,6 @@ DEPENDENCIES
136
148
  activejob (~> 6.1)
137
149
  activerecord (~> 6.1)
138
150
  activesupport (~> 6.1)
139
- bundler
140
151
  grape-app!
141
152
  rack-test
142
153
  rake
@@ -145,4 +156,4 @@ DEPENDENCIES
145
156
  sqlite3
146
157
 
147
158
  BUNDLED WITH
148
- 2.3.4
159
+ 2.3.16
data/grape-app.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'grape-app'
3
- s.version = '0.11.0'
3
+ s.version = '0.11.2'
4
4
  s.authors = ['Black Square Media Ltd']
5
5
  s.email = ['info@blacksquaremedia.com']
6
6
  s.summary = %(Standalone Grape API apps)
@@ -22,13 +22,5 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency 'thor'
23
23
  s.add_dependency 'zeitwerk', '>= 2.6'
24
24
 
25
- s.add_development_dependency 'activejob'
26
- s.add_development_dependency 'activerecord'
27
- s.add_development_dependency 'bundler'
28
- s.add_development_dependency 'rack-test'
29
- s.add_development_dependency 'rake'
30
- s.add_development_dependency 'rspec'
31
- s.add_development_dependency 'rubocop-bsm'
32
- s.add_development_dependency 'sqlite3'
33
25
  s.metadata['rubygems_mfa_required'] = 'true'
34
26
  end
@@ -25,9 +25,9 @@ module Grape::App::Helpers::Caching
25
25
  header 'Last-Modified', last_modified.httpdate if last_modified
26
26
  cache_control(**cache_control) unless cache_control.empty?
27
27
 
28
- if_modified_since = headers['If-Modified-Since']
28
+ if_modified_since = headers['if-modified-since']
29
29
  if_modified_since = Time.rfc2822(if_modified_since) rescue nil if if_modified_since # rubocop:disable Style/RescueModifier
30
- if_none_match = headers['If-None-Match']
30
+ if_none_match = headers['if-none-match']
31
31
  return unless if_modified_since || if_none_match
32
32
 
33
33
  fresh = true
@@ -8,6 +8,7 @@ ActiveSupport::Digest.hash_digest_class = OpenSSL::Digest::SHA256
8
8
  ActiveSupport::KeyGenerator.hash_digest_class = OpenSSL::Digest::SHA256 if ActiveSupport::KeyGenerator.respond_to?(:hash_digest_class=)
9
9
  ActiveSupport::MessageEncryptor.use_authenticated_message_encryption = true
10
10
  ActiveSupport::IsolatedExecutionState.isolation_level = :thread if defined?(ActiveSupport::IsolatedExecutionState)
11
+ # This is legacy and removed in removed with Rails 7.1
11
12
  Digest::UUID.use_rfc4122_namespaced_uuids = true if Digest::UUID.respond_to?(:use_rfc4122_namespaced_uuids=)
12
13
 
13
14
  # Set default time-zone
@@ -43,10 +44,13 @@ if defined?(ActiveRecord)
43
44
  ActiveRecord::Base.default_timezone = :utc
44
45
  end
45
46
 
46
- if ActiveRecord.respond_to?(:legacy_connection_handling=)
47
- ActiveRecord.legacy_connection_handling = false
48
- else
49
- ActiveRecord::Base.legacy_connection_handling = false
47
+ # legacy_connection_handling was deprecated in ActiveRecord 7
48
+ if ActiveRecord::VERSION::MAJOR < 7
49
+ if ActiveRecord.respond_to?(:legacy_connection_handling=)
50
+ ActiveRecord.legacy_connection_handling = false
51
+ else
52
+ ActiveRecord::Base.legacy_connection_handling = false
53
+ end
50
54
  end
51
55
 
52
56
  ActiveRecord.tap do |c|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media Ltd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-20 00:00:00.000000000 Z
11
+ date: 2024-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -122,118 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.6'
125
- - !ruby/object:Gem::Dependency
126
- name: activejob
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: activerecord
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: bundler
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: rack-test
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: rake
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: rspec
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: rubocop-bsm
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: sqlite3
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
125
  description: ''
238
126
  email:
239
127
  - info@blacksquaremedia.com
@@ -305,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
193
  - !ruby/object:Gem::Version
306
194
  version: '0'
307
195
  requirements: []
308
- rubygems_version: 3.3.7
196
+ rubygems_version: 3.5.4
309
197
  signing_key:
310
198
  specification_version: 4
311
199
  summary: Standalone Grape API apps