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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd603a378d64c8fbb03904d55edd34e0d7091298
4
- data.tar.gz: 6839032705d23e63401007f13d172594a464fc84
3
+ metadata.gz: 3b32ac23c27b8fed64e180c4d8f6378221682736
4
+ data.tar.gz: e2936bf6fb57ae5c779ca20a27cee174df727830
5
5
  SHA512:
6
- metadata.gz: 06373fec023d7f2d5f354345f2fde11c0e73cae735438769f46c4af074077cd5ad684872b2a60d2ef83b6c144708b506819005cac1ab614ab2f1aa4e022448d5
7
- data.tar.gz: 2ffeae32355e689bddd236ccea52ea88190c1942077f03dacec7d23a406fb15ef9cc2640a2cb71639e27fff75c29b6d9d6a87d0c4be5931c8df6247e7cd74fd0
6
+ metadata.gz: 0f0521908ef8d23d2fe40b5d9205acce5b222d6a4774f808414b32fbf4c2b5720019e69fec9f2a254ef1df3ac32fb9741d360b3286063a2b4bcee3297e4480c9
7
+ data.tar.gz: fc0f17a2faa481c1f4c1abaf3f6ac1489d45990a544e01a17d461fc8eb27c13d922a30561081f2370165b6ae02378bccc157f2dbd120698989140688f3963bbb
data/.travis.yml CHANGED
@@ -1,6 +1,12 @@
1
1
  language: ruby
2
2
 
3
- cache: bundler
4
-
5
3
  rvm:
6
- - ruby-2.1.5
4
+ - 2.1.5
5
+
6
+ before_install: gem install bundler
7
+
8
+ bundler_args: --no-deployment
9
+
10
+ script:
11
+ - "bundle exec rspec"
12
+ - "bundle exec rubocop"
data/Gemfile.lock CHANGED
@@ -1,31 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.1.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.9.0, >= 0.9.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.0, >= 1.0.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.0)
22
- activesupport (= 4.2.0)
21
+ activemodel (4.2.1)
22
+ activesupport (= 4.2.1)
23
23
  builder (~> 3.1)
24
- activerecord (4.2.0)
25
- activemodel (= 4.2.0)
26
- activesupport (= 4.2.0)
24
+ activerecord (4.2.1)
25
+ activemodel (= 4.2.1)
26
+ activesupport (= 4.2.1)
27
27
  arel (~> 6.0)
28
- activesupport (4.2.0)
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 (3.5.1)
47
- columnize (~> 0.8)
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.10)
63
- fakefs (0.6.4)
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.6)
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.9.0)
83
+ grape-swagger (0.10.1)
87
84
  grape (>= 0.8.0)
88
85
  grape-entity
89
- guard (2.11.1)
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.0)
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.1.0)
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.0)
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.8.5)
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.1.1)
124
+ nenv (0.2.0)
128
125
  nokogiri (1.6.6.2)
129
126
  mini_portile (~> 0.6.0)
130
- notiffany (0.0.2)
127
+ notiffany (0.0.6)
131
128
  nenv (~> 0.1)
132
129
  shellany (~> 0.0)
133
- parser (2.2.0.2)
130
+ parser (2.2.0.3)
134
131
  ast (>= 1.1, < 3.0)
135
- powerpack (0.0.9)
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.1.0)
162
- rspec-core (~> 3.1.0)
163
- rspec-expectations (~> 3.1.0)
164
- rspec-mocks (~> 3.1.0)
165
- rspec-core (3.1.7)
166
- rspec-support (~> 3.1.0)
167
- rspec-expectations (3.1.2)
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.1.0)
170
- rspec-mocks (3.1.3)
171
- rspec-support (~> 3.1.0)
172
- rspec-support (3.1.2)
173
- rubocop (0.28.0)
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.pre.7, < 3.0)
176
- powerpack (~> 0.0.6)
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.1)
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.4)
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, >= 4.2.0)
201
+ activerecord (~> 4.2)
204
202
  acts_as_fu (~> 0)
205
- bundler (~> 1.7.9, >= 1.7.9)
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.1, >= 3.1.0)
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.9.0', '>= 0.9.0'
32
- s.add_dependency 'roar', '~> 1.0.0', '>= 1.0.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.7.9', '>= 1.7.9'
37
- s.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
38
- s.add_development_dependency 'rubocop', '~> 0.28', '>= 0.28.0'
39
- s.add_development_dependency 'activerecord', '~> 4.2', '>= 4.2.0'
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
@@ -9,6 +9,7 @@ require 'grape-roar'
9
9
  require 'roar/representer'
10
10
  require 'roar/json'
11
11
  require 'roar/json/hal'
12
+ require 'hashie-forbidden_attributes'
12
13
 
13
14
  # require internal files
14
15
  require 'gris/application'
@@ -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
- -> { [404, {}, []] },
13
- root: File.expand_path('../public', __FILE__),
14
- urls: ['/']
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
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
 
4
4
  class Version
5
5
  class << self
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.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-22 00:00:00.000000000 Z
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.9.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.9.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.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.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.7.9
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.7.9
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.1'
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.1'
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.28'
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.28'
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.2.2
402
+ rubygems_version: 2.4.3
439
403
  signing_key:
440
404
  specification_version: 4
441
405
  summary: A simple api microservice generator.