grape-app 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: 2107f8caea8b19634096f3ff7d4c87fced7f2a52
4
- data.tar.gz: 9f10c0b9936ef77734dd20f96c2a0379628e1708
3
+ metadata.gz: effa2e15863207418673a02bb1ddd9d8fa91c1aa
4
+ data.tar.gz: 75c1501950830a3a7723c15623f7cbb78fdebd39
5
5
  SHA512:
6
- metadata.gz: '08acf746d8e72a2345d8ddbbc896650ab8c651f52eb84d03f97c8d6e72dfa49289980d13f786a7d9469996e5003376b900e54f4f1e7124ea1342bb3f00be0bc3'
7
- data.tar.gz: 51112edc7714560c18cd5390c87bccc50f9a8eeb29eec43e217050b15490983a927bded528c17b250a8de22924bf8cfc9c4b0cfef30ff11e6504ed59b4f68e30
6
+ metadata.gz: 3c5fc45934f21e0189d65a73783f20c1c3469a63c3f84da608fc80b18ff900640f0d97837933dd2ed17cf00ff1b5b9c30b341e84afa95fca972b524c196bc7ca
7
+ data.tar.gz: 343751d86b89aca657864c6308dd169b0f90ea9d70c93d089c91efd4742efa2d43eeda0c0c3aef64aef8a516b079eeb4fa196bc7a6a6ed6c4dec06bfa53b5f96
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape-app (0.4.0)
4
+ grape-app (0.4.1)
5
5
  activesupport
6
6
  grape
7
7
  grape-entity
@@ -13,11 +13,18 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
+ activemodel (5.0.1)
17
+ activesupport (= 5.0.1)
18
+ activerecord (5.0.1)
19
+ activemodel (= 5.0.1)
20
+ activesupport (= 5.0.1)
21
+ arel (~> 7.0)
16
22
  activesupport (5.0.1)
17
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
24
  i18n (~> 0.7)
19
25
  minitest (~> 5.1)
20
26
  tzinfo (~> 1.1)
27
+ arel (7.1.4)
21
28
  axiom-types (0.1.1)
22
29
  descendants_tracker (~> 0.0.4)
23
30
  ice_nine (~> 0.11.0)
@@ -43,10 +50,10 @@ GEM
43
50
  grape-entity (0.6.1)
44
51
  activesupport (>= 5.0.0)
45
52
  multi_json (>= 1.3.2)
46
- hashie (3.5.3)
53
+ hashie (3.5.4)
47
54
  hashie-forbidden_attributes (0.1.1)
48
55
  hashie (>= 3.0)
49
- i18n (0.8.0)
56
+ i18n (0.8.1)
50
57
  ice_nine (0.11.2)
51
58
  minitest (5.10.1)
52
59
  multi_json (1.12.1)
@@ -74,8 +81,9 @@ GEM
74
81
  diff-lcs (>= 1.2.0, < 2.0)
75
82
  rspec-support (~> 3.5.0)
76
83
  rspec-support (3.5.0)
84
+ sqlite3 (1.3.13)
77
85
  thor (0.19.4)
78
- thread_safe (0.3.5)
86
+ thread_safe (0.3.6)
79
87
  tool (0.2.3)
80
88
  tzinfo (1.2.2)
81
89
  thread_safe (~> 0.1)
@@ -89,10 +97,12 @@ PLATFORMS
89
97
  ruby
90
98
 
91
99
  DEPENDENCIES
100
+ activerecord
92
101
  bundler
93
102
  grape-app!
94
103
  rake
95
104
  rspec
105
+ sqlite3
96
106
 
97
107
  BUNDLED WITH
98
108
  1.14.3
data/grape-app.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'grape-app'
5
- s.version = '0.4.0'
5
+ s.version = '0.4.1'
6
6
  s.authors = ['Black Square Media Ltd']
7
7
  s.email = ['info@blacksquaremedia.com']
8
8
  s.summary = %{Stanalone Grape API apps}
@@ -27,5 +27,8 @@ Gem::Specification.new do |s|
27
27
  s.add_development_dependency 'bundler'
28
28
  s.add_development_dependency 'rake'
29
29
  s.add_development_dependency 'rspec'
30
+ s.add_development_dependency 'activerecord'
31
+ s.add_development_dependency 'sqlite3'
32
+
30
33
  end
31
34
 
@@ -17,5 +17,7 @@ if defined?(ActiveRecord)
17
17
  ActiveRecord::Base.default_timezone = :utc
18
18
  ActiveRecord::Base.establish_connection(Grape::App.env.to_sym)
19
19
 
20
- Grape::App.middleware.use ActiveRecord::ConnectionAdapters::ConnectionManagement
20
+ if defined?(ActiveRecord::ConnectionAdapters::ConnectionManagement)
21
+ Grape::App.middleware.use ActiveRecord::ConnectionAdapters::ConnectionManagement
22
+ end
21
23
  end
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'grape-app', path: '../../'
4
+ gem 'activerecord'
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: "sqlite3"
3
+ database: ":memory:"
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  ENV['RACK_ENV'] ||= "test"
2
+ require 'active_record'
2
3
  require 'grape-app'
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.4.0
4
+ version: 0.4.1
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: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -150,6 +150,34 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activerecord
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: sqlite3
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'
153
181
  description: ''
154
182
  email:
155
183
  - info@blacksquaremedia.com
@@ -196,6 +224,7 @@ files:
196
224
  - lib/grape_app.rb
197
225
  - spec/grape/app_spec.rb
198
226
  - spec/scenario/Gemfile
227
+ - spec/scenario/config/database.yml
199
228
  - spec/scenario/config/environments/test.rb
200
229
  - spec/scenario/config/locales/en.yml
201
230
  - spec/scenario/lib/my_lib.rb
@@ -220,13 +249,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
249
  version: '0'
221
250
  requirements: []
222
251
  rubyforge_project:
223
- rubygems_version: 2.5.2
252
+ rubygems_version: 2.6.8
224
253
  signing_key:
225
254
  specification_version: 4
226
255
  summary: Stanalone Grape API apps
227
256
  test_files:
228
257
  - spec/grape/app_spec.rb
229
258
  - spec/scenario/Gemfile
259
+ - spec/scenario/config/database.yml
230
260
  - spec/scenario/config/environments/test.rb
231
261
  - spec/scenario/config/locales/en.yml
232
262
  - spec/scenario/lib/my_lib.rb