gris 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -3
- data/Gemfile.lock +44 -46
- data/gris.gemspec +6 -6
- data/lib/gris.rb +1 -0
- data/lib/gris/application.rb +3 -3
- data/lib/gris/grape_extensions/crud_helpers.rb +0 -6
- data/lib/gris/version.rb +1 -1
- metadata +13 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b32ac23c27b8fed64e180c4d8f6378221682736
|
4
|
+
data.tar.gz: e2936bf6fb57ae5c779ca20a27cee174df727830
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f0521908ef8d23d2fe40b5d9205acce5b222d6a4774f808414b32fbf4c2b5720019e69fec9f2a254ef1df3ac32fb9741d360b3286063a2b4bcee3297e4480c9
|
7
|
+
data.tar.gz: fc0f17a2faa481c1f4c1abaf3f6ac1489d45990a544e01a17d461fc8eb27c13d922a30561081f2370165b6ae02378bccc157f2dbd120698989140688f3963bbb
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,31 +1,31 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gris (0.1.
|
4
|
+
gris (0.1.2)
|
5
5
|
activesupport (~> 4.2, >= 4.2.0)
|
6
6
|
dotenv (~> 1.0.2, >= 1.0.2)
|
7
7
|
git (~> 1.2, >= 1.2.8)
|
8
8
|
grape (~> 0.11.0, >= 0.11.0)
|
9
9
|
grape-roar (~> 0.3.0, >= 0.3.0)
|
10
|
-
grape-swagger (~> 0.
|
10
|
+
grape-swagger (~> 0.10.0)
|
11
11
|
hashie-forbidden_attributes (~> 0.1.0)
|
12
12
|
logging
|
13
13
|
racksh (~> 1.0)
|
14
14
|
rake (~> 10.4, >= 10.4.2)
|
15
|
-
roar (~> 1.0.
|
15
|
+
roar (~> 1.0.1)
|
16
16
|
thor (~> 0.19, >= 0.19.1)
|
17
17
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
activemodel (4.2.
|
22
|
-
activesupport (= 4.2.
|
21
|
+
activemodel (4.2.1)
|
22
|
+
activesupport (= 4.2.1)
|
23
23
|
builder (~> 3.1)
|
24
|
-
activerecord (4.2.
|
25
|
-
activemodel (= 4.2.
|
26
|
-
activesupport (= 4.2.
|
24
|
+
activerecord (4.2.1)
|
25
|
+
activemodel (= 4.2.1)
|
26
|
+
activesupport (= 4.2.1)
|
27
27
|
arel (~> 6.0)
|
28
|
-
activesupport (4.2.
|
28
|
+
activesupport (4.2.1)
|
29
29
|
i18n (~> 0.7)
|
30
30
|
json (~> 1.7, >= 1.7.7)
|
31
31
|
minitest (~> 5.1)
|
@@ -43,10 +43,8 @@ GEM
|
|
43
43
|
ice_nine (~> 0.11.0)
|
44
44
|
thread_safe (~> 0.3, >= 0.3.1)
|
45
45
|
builder (3.2.2)
|
46
|
-
byebug (
|
47
|
-
columnize (
|
48
|
-
debugger-linecache (~> 1.2)
|
49
|
-
slop (~> 3.6)
|
46
|
+
byebug (4.0.3)
|
47
|
+
columnize (= 0.9.0)
|
50
48
|
celluloid (0.16.0)
|
51
49
|
timers (~> 4.0.0)
|
52
50
|
coderay (1.1.0)
|
@@ -54,17 +52,16 @@ GEM
|
|
54
52
|
descendants_tracker (~> 0.0.1)
|
55
53
|
colorize (0.7.5)
|
56
54
|
columnize (0.9.0)
|
57
|
-
debugger-linecache (1.2.0)
|
58
55
|
descendants_tracker (0.0.4)
|
59
56
|
thread_safe (~> 0.3, >= 0.3.1)
|
60
57
|
diff-lcs (1.2.5)
|
61
58
|
dotenv (1.0.2)
|
62
|
-
equalizer (0.0.
|
63
|
-
fakefs (0.6.
|
59
|
+
equalizer (0.0.11)
|
60
|
+
fakefs (0.6.7)
|
64
61
|
fasterer (0.1.8)
|
65
62
|
colorize (~> 0.7)
|
66
63
|
ruby_parser (~> 3.6)
|
67
|
-
ffi (1.9.
|
64
|
+
ffi (1.9.8)
|
68
65
|
formatador (0.2.5)
|
69
66
|
git (1.2.9.1)
|
70
67
|
grape (0.11.0)
|
@@ -83,10 +80,10 @@ GEM
|
|
83
80
|
grape-roar (0.3.0)
|
84
81
|
grape
|
85
82
|
roar (>= 1.0)
|
86
|
-
grape-swagger (0.
|
83
|
+
grape-swagger (0.10.1)
|
87
84
|
grape (>= 0.8.0)
|
88
85
|
grape-entity
|
89
|
-
guard (2.
|
86
|
+
guard (2.12.5)
|
90
87
|
formatador (>= 0.2.4)
|
91
88
|
listen (~> 2.7)
|
92
89
|
lumberjack (~> 1.0)
|
@@ -95,22 +92,22 @@ GEM
|
|
95
92
|
pry (>= 0.9.12)
|
96
93
|
shellany (~> 0.0)
|
97
94
|
thor (>= 0.18.1)
|
98
|
-
guard-compat (1.2.
|
95
|
+
guard-compat (1.2.1)
|
99
96
|
guard-rspec (4.5.0)
|
100
97
|
guard (~> 2.1)
|
101
98
|
guard-compat (~> 1.1)
|
102
99
|
rspec (>= 2.99.0, < 4.0)
|
103
|
-
guard-rubocop (1.
|
100
|
+
guard-rubocop (1.2.0)
|
104
101
|
guard (~> 2.0)
|
105
102
|
rubocop (~> 0.20)
|
106
103
|
hashie (3.4.0)
|
107
|
-
hashie-forbidden_attributes (0.1.
|
104
|
+
hashie-forbidden_attributes (0.1.1)
|
108
105
|
hashie (>= 3.0)
|
109
106
|
hitimes (1.2.2)
|
110
107
|
i18n (0.7.0)
|
111
108
|
ice_nine (0.11.1)
|
112
109
|
json (1.8.2)
|
113
|
-
listen (2.
|
110
|
+
listen (2.9.0)
|
114
111
|
celluloid (>= 0.15.2)
|
115
112
|
rb-fsevent (>= 0.9.3)
|
116
113
|
rb-inotify (>= 0.9)
|
@@ -124,15 +121,15 @@ GEM
|
|
124
121
|
minitest (5.5.1)
|
125
122
|
multi_json (1.11.0)
|
126
123
|
multi_xml (0.5.5)
|
127
|
-
nenv (0.
|
124
|
+
nenv (0.2.0)
|
128
125
|
nokogiri (1.6.6.2)
|
129
126
|
mini_portile (~> 0.6.0)
|
130
|
-
notiffany (0.0.
|
127
|
+
notiffany (0.0.6)
|
131
128
|
nenv (~> 0.1)
|
132
129
|
shellany (~> 0.0)
|
133
|
-
parser (2.2.0.
|
130
|
+
parser (2.2.0.3)
|
134
131
|
ast (>= 1.1, < 3.0)
|
135
|
-
powerpack (0.0
|
132
|
+
powerpack (0.1.0)
|
136
133
|
pry (0.10.1)
|
137
134
|
coderay (~> 1.1.0)
|
138
135
|
method_source (~> 0.8.1)
|
@@ -158,25 +155,26 @@ GEM
|
|
158
155
|
uber (~> 0.0.7)
|
159
156
|
roar (1.0.1)
|
160
157
|
representable (>= 2.0.1, <= 3.0.0)
|
161
|
-
rspec (3.
|
162
|
-
rspec-core (~> 3.
|
163
|
-
rspec-expectations (~> 3.
|
164
|
-
rspec-mocks (~> 3.
|
165
|
-
rspec-core (3.
|
166
|
-
rspec-support (~> 3.
|
167
|
-
rspec-expectations (3.
|
158
|
+
rspec (3.2.0)
|
159
|
+
rspec-core (~> 3.2.0)
|
160
|
+
rspec-expectations (~> 3.2.0)
|
161
|
+
rspec-mocks (~> 3.2.0)
|
162
|
+
rspec-core (3.2.2)
|
163
|
+
rspec-support (~> 3.2.0)
|
164
|
+
rspec-expectations (3.2.0)
|
168
165
|
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
-
rspec-support (~> 3.
|
170
|
-
rspec-mocks (3.1
|
171
|
-
|
172
|
-
|
173
|
-
|
166
|
+
rspec-support (~> 3.2.0)
|
167
|
+
rspec-mocks (3.2.1)
|
168
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
+
rspec-support (~> 3.2.0)
|
170
|
+
rspec-support (3.2.2)
|
171
|
+
rubocop (0.29.1)
|
174
172
|
astrolabe (~> 1.3)
|
175
|
-
parser (>= 2.2.0.
|
176
|
-
powerpack (~> 0.
|
173
|
+
parser (>= 2.2.0.1, < 3.0)
|
174
|
+
powerpack (~> 0.1)
|
177
175
|
rainbow (>= 1.99.1, < 3.0)
|
178
176
|
ruby-progressbar (~> 1.4)
|
179
|
-
ruby-progressbar (1.7.
|
177
|
+
ruby-progressbar (1.7.4)
|
180
178
|
ruby_parser (3.6.5)
|
181
179
|
sexp_processor (~> 4.1)
|
182
180
|
sexp_processor (4.5.0)
|
@@ -184,7 +182,7 @@ GEM
|
|
184
182
|
slop (3.6.0)
|
185
183
|
sqlite3 (1.3.10)
|
186
184
|
thor (0.19.1)
|
187
|
-
thread_safe (0.3.
|
185
|
+
thread_safe (0.3.5)
|
188
186
|
timers (4.0.1)
|
189
187
|
hitimes
|
190
188
|
tzinfo (1.2.2)
|
@@ -200,9 +198,9 @@ PLATFORMS
|
|
200
198
|
ruby
|
201
199
|
|
202
200
|
DEPENDENCIES
|
203
|
-
activerecord (~> 4.2
|
201
|
+
activerecord (~> 4.2)
|
204
202
|
acts_as_fu (~> 0)
|
205
|
-
bundler (~> 1.
|
203
|
+
bundler (~> 1.9)
|
206
204
|
byebug
|
207
205
|
fakefs (~> 0.4)
|
208
206
|
fasterer (~> 0.1.8)
|
@@ -210,5 +208,5 @@ DEPENDENCIES
|
|
210
208
|
guard-rspec
|
211
209
|
guard-rubocop
|
212
210
|
rake (~> 10.0)
|
213
|
-
rspec (~> 3.
|
211
|
+
rspec (~> 3.2)
|
214
212
|
rubocop
|
data/gris.gemspec
CHANGED
@@ -28,14 +28,14 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_dependency 'grape', '~> 0.11.0', '>= 0.11.0'
|
29
29
|
s.add_dependency 'grape-roar', '~> 0.3.0', '>= 0.3.0'
|
30
30
|
|
31
|
-
s.add_dependency 'grape-swagger', '~> 0.
|
32
|
-
s.add_dependency 'roar', '~> 1.0.
|
31
|
+
s.add_dependency 'grape-swagger', '~> 0.10.0'
|
32
|
+
s.add_dependency 'roar', '~> 1.0.1'
|
33
33
|
s.add_dependency 'racksh', '~> 1.0'
|
34
34
|
s.add_dependency 'hashie-forbidden_attributes', '~> 0.1.0'
|
35
35
|
|
36
|
-
s.add_development_dependency 'bundler', '~> 1.
|
37
|
-
s.add_development_dependency 'rspec', '~> 3.
|
38
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
39
|
-
s.add_development_dependency 'activerecord', '~> 4.2'
|
36
|
+
s.add_development_dependency 'bundler', '~> 1.9'
|
37
|
+
s.add_development_dependency 'rspec', '~> 3.2'
|
38
|
+
s.add_development_dependency 'rubocop', '~> 0.29'
|
39
|
+
s.add_development_dependency 'activerecord', '~> 4.2'
|
40
40
|
s.add_development_dependency 'acts_as_fu', '~> 0'
|
41
41
|
end
|
data/lib/gris.rb
CHANGED
data/lib/gris/application.rb
CHANGED
@@ -9,9 +9,9 @@ module Gris
|
|
9
9
|
Gris::Deprecations.initialization_checks
|
10
10
|
@filenames = ['', '.html', 'index.html', '/index.html']
|
11
11
|
@rack_static = ::Rack::Static.new(
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
-> { [404, {}, []] },
|
13
|
+
root: File.expand_path('../public', __FILE__),
|
14
|
+
urls: ['/']
|
15
15
|
)
|
16
16
|
end
|
17
17
|
|
@@ -1,9 +1,3 @@
|
|
1
|
-
# We are using hashie-forbidden_attributes gem to prevent ActiveModel from
|
2
|
-
# raising a ForbiddenAttributesProtection exception when we mass assign
|
3
|
-
# attributes.
|
4
|
-
#
|
5
|
-
require 'hashie_forbidden_attributes'
|
6
|
-
|
7
1
|
module Gris
|
8
2
|
module CrudHelpers
|
9
3
|
def create(type, options = {})
|
data/lib/gris/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gris
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Fareed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -170,40 +170,28 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
174
|
-
- - ">="
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: 0.9.0
|
173
|
+
version: 0.10.0
|
177
174
|
type: :runtime
|
178
175
|
prerelease: false
|
179
176
|
version_requirements: !ruby/object:Gem::Requirement
|
180
177
|
requirements:
|
181
178
|
- - "~>"
|
182
179
|
- !ruby/object:Gem::Version
|
183
|
-
version: 0.
|
184
|
-
- - ">="
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: 0.9.0
|
180
|
+
version: 0.10.0
|
187
181
|
- !ruby/object:Gem::Dependency
|
188
182
|
name: roar
|
189
183
|
requirement: !ruby/object:Gem::Requirement
|
190
184
|
requirements:
|
191
185
|
- - "~>"
|
192
186
|
- !ruby/object:Gem::Version
|
193
|
-
version: 1.0.
|
194
|
-
- - ">="
|
195
|
-
- !ruby/object:Gem::Version
|
196
|
-
version: 1.0.0
|
187
|
+
version: 1.0.1
|
197
188
|
type: :runtime
|
198
189
|
prerelease: false
|
199
190
|
version_requirements: !ruby/object:Gem::Requirement
|
200
191
|
requirements:
|
201
192
|
- - "~>"
|
202
193
|
- !ruby/object:Gem::Version
|
203
|
-
version: 1.0.
|
204
|
-
- - ">="
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: 1.0.0
|
194
|
+
version: 1.0.1
|
207
195
|
- !ruby/object:Gem::Dependency
|
208
196
|
name: racksh
|
209
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,60 +226,42 @@ dependencies:
|
|
238
226
|
requirements:
|
239
227
|
- - "~>"
|
240
228
|
- !ruby/object:Gem::Version
|
241
|
-
version: 1.
|
242
|
-
- - ">="
|
243
|
-
- !ruby/object:Gem::Version
|
244
|
-
version: 1.7.9
|
229
|
+
version: '1.9'
|
245
230
|
type: :development
|
246
231
|
prerelease: false
|
247
232
|
version_requirements: !ruby/object:Gem::Requirement
|
248
233
|
requirements:
|
249
234
|
- - "~>"
|
250
235
|
- !ruby/object:Gem::Version
|
251
|
-
version: 1.
|
252
|
-
- - ">="
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: 1.7.9
|
236
|
+
version: '1.9'
|
255
237
|
- !ruby/object:Gem::Dependency
|
256
238
|
name: rspec
|
257
239
|
requirement: !ruby/object:Gem::Requirement
|
258
240
|
requirements:
|
259
241
|
- - "~>"
|
260
242
|
- !ruby/object:Gem::Version
|
261
|
-
version: '3.
|
262
|
-
- - ">="
|
263
|
-
- !ruby/object:Gem::Version
|
264
|
-
version: 3.1.0
|
243
|
+
version: '3.2'
|
265
244
|
type: :development
|
266
245
|
prerelease: false
|
267
246
|
version_requirements: !ruby/object:Gem::Requirement
|
268
247
|
requirements:
|
269
248
|
- - "~>"
|
270
249
|
- !ruby/object:Gem::Version
|
271
|
-
version: '3.
|
272
|
-
- - ">="
|
273
|
-
- !ruby/object:Gem::Version
|
274
|
-
version: 3.1.0
|
250
|
+
version: '3.2'
|
275
251
|
- !ruby/object:Gem::Dependency
|
276
252
|
name: rubocop
|
277
253
|
requirement: !ruby/object:Gem::Requirement
|
278
254
|
requirements:
|
279
255
|
- - "~>"
|
280
256
|
- !ruby/object:Gem::Version
|
281
|
-
version: '0.
|
282
|
-
- - ">="
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
version: 0.28.0
|
257
|
+
version: '0.29'
|
285
258
|
type: :development
|
286
259
|
prerelease: false
|
287
260
|
version_requirements: !ruby/object:Gem::Requirement
|
288
261
|
requirements:
|
289
262
|
- - "~>"
|
290
263
|
- !ruby/object:Gem::Version
|
291
|
-
version: '0.
|
292
|
-
- - ">="
|
293
|
-
- !ruby/object:Gem::Version
|
294
|
-
version: 0.28.0
|
264
|
+
version: '0.29'
|
295
265
|
- !ruby/object:Gem::Dependency
|
296
266
|
name: activerecord
|
297
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -299,9 +269,6 @@ dependencies:
|
|
299
269
|
- - "~>"
|
300
270
|
- !ruby/object:Gem::Version
|
301
271
|
version: '4.2'
|
302
|
-
- - ">="
|
303
|
-
- !ruby/object:Gem::Version
|
304
|
-
version: 4.2.0
|
305
272
|
type: :development
|
306
273
|
prerelease: false
|
307
274
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -309,9 +276,6 @@ dependencies:
|
|
309
276
|
- - "~>"
|
310
277
|
- !ruby/object:Gem::Version
|
311
278
|
version: '4.2'
|
312
|
-
- - ">="
|
313
|
-
- !ruby/object:Gem::Version
|
314
|
-
version: 4.2.0
|
315
279
|
- !ruby/object:Gem::Dependency
|
316
280
|
name: acts_as_fu
|
317
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -435,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
399
|
version: '0'
|
436
400
|
requirements: []
|
437
401
|
rubyforge_project:
|
438
|
-
rubygems_version: 2.
|
402
|
+
rubygems_version: 2.4.3
|
439
403
|
signing_key:
|
440
404
|
specification_version: 4
|
441
405
|
summary: A simple api microservice generator.
|