gris 0.0.8 → 0.0.9

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: a683be06c5c714578f43ac6e2d0f21ed51d74a4c
4
- data.tar.gz: 3191f2ffde90d228298f06887c62f16a8b210007
3
+ metadata.gz: c520fc0e5c1c85be3e92bbd368c0cc9c115bff9f
4
+ data.tar.gz: 979ad76a2efb240e54ed5e50a71b9003ac4c3f3a
5
5
  SHA512:
6
- metadata.gz: 616ddbd83398dd971737f535c87f4faf0df5b23f0a315ea6b94bc81ee956737b6f95e52eff93826b03d3fa19364242dd33a92208a17b7604dc7a29211829852f
7
- data.tar.gz: 708d01729f56cf84ee336ae253fd5e3592f0d2e65ffa23e0752aad9ab36b94e42795aeb6955b6a9140a37596dd9b968d03456b32d02a61536d2ce4edc160645d
6
+ metadata.gz: 2a9d583cace012e18c545f0a875febe627a9bc746b9c6f4979d36a6922152bcf40109a2cd23d357314fa24029327ee70342fbb2433de68b2dacbda49a340cc3e
7
+ data.tar.gz: 58ac85ddf88f7f1de4b41e17253b20924f68b2a68f5d78266d436988feb939a39151d8c64661a064482fc00a5fb6d5fba0d5b17779e9ea90a8e556a4f6671e07
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source 'https://rubygems.org/'
2
2
 
3
3
  gemspec
4
4
 
5
+ gem 'hashie_rails', git: 'https://github.com/dylanfareed/hashie_rails.git', branch: 'off-the-rails'
6
+
5
7
  group :development do
6
8
  gem 'byebug'
7
9
  gem 'rubocop'
data/Gemfile.lock CHANGED
@@ -1,13 +1,23 @@
1
+ GIT
2
+ remote: https://github.com/dylanfareed/hashie_rails.git
3
+ revision: 864e1df7f08c364159ab56b5f0318e1c1d3a3bcf
4
+ branch: off-the-rails
5
+ specs:
6
+ hashie_rails (0.0.1)
7
+ activesupport (~> 4.2.0)
8
+ hashie (>= 3.0)
9
+
1
10
  PATH
2
11
  remote: .
3
12
  specs:
4
- gris (0.0.8)
13
+ gris (0.0.9)
5
14
  activesupport (~> 4.2, >= 4.2.0)
6
15
  dotenv (~> 1.0.2, >= 1.0.2)
7
16
  git (~> 1.2, >= 1.2.8)
8
- grape (~> 0.10.1, >= 0.10.1)
17
+ grape (~> 0.11.0, >= 0.11.0)
9
18
  grape-roar (~> 0.3.0, >= 0.3.0)
10
19
  grape-swagger (~> 0.9.0, >= 0.9.0)
20
+ hashie_rails
11
21
  logging
12
22
  racksh (~> 1.0)
13
23
  rake (~> 10.4, >= 10.4.2)
@@ -62,7 +72,7 @@ GEM
62
72
  ffi (1.9.6)
63
73
  formatador (0.2.5)
64
74
  git (1.2.9.1)
65
- grape (0.10.1)
75
+ grape (0.11.0)
66
76
  activesupport
67
77
  builder
68
78
  hashie (>= 2.1.0)
@@ -98,7 +108,7 @@ GEM
98
108
  guard-rubocop (1.1.0)
99
109
  guard (~> 2.0)
100
110
  rubocop (~> 0.20)
101
- hashie (3.3.2)
111
+ hashie (3.4.0)
102
112
  hitimes (1.2.2)
103
113
  i18n (0.7.0)
104
114
  ice_nine (0.11.1)
@@ -145,7 +155,7 @@ GEM
145
155
  rb-fsevent (0.9.4)
146
156
  rb-inotify (0.9.5)
147
157
  ffi (>= 0.5.0)
148
- representable (2.1.4)
158
+ representable (2.1.5)
149
159
  multi_json
150
160
  nokogiri
151
161
  uber (~> 0.0.7)
@@ -192,12 +202,13 @@ PLATFORMS
192
202
  DEPENDENCIES
193
203
  activerecord (~> 4.2, >= 4.2.0)
194
204
  acts_as_fu (~> 0)
195
- bundler (~> 1.7.10, >= 1.7.10)
205
+ bundler (~> 1.7.9, >= 1.7.9)
196
206
  byebug
197
207
  fakefs (~> 0.4)
198
208
  gris!
199
209
  guard-rspec
200
210
  guard-rubocop
211
+ hashie_rails!
201
212
  rake (~> 10.0)
202
213
  rspec (~> 3.1, >= 3.1.0)
203
214
  rubocop
data/README.md CHANGED
@@ -5,3 +5,5 @@ Gris is a framework for building Rack-based hypermedia APIs using Grape, Roar an
5
5
  It is derived from/inspired by the stellar and more sophisticated [Napa framework by Bellycard Inc.](https://github.com/bellycard/napa).
6
6
 
7
7
  Gris aims to provide generators and middleware common to API microservices. For the moment, however, it is in development and primarily exploratory. Note that the ground may shift.
8
+
9
+ [ ![Codeship Status for dylanfareed/gris](https://codeship.com/projects/0cb8dbd0-9f39-0132-8516-520a26f6f18f/status?branch=master)](https://codeship.com/projects/65080)
data/gris.gemspec CHANGED
@@ -25,14 +25,15 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_dependency 'logging'
27
27
  s.add_dependency 'dotenv', '~> 1.0.2', '>= 1.0.2'
28
- s.add_dependency 'grape', '~> 0.10.1', '>= 0.10.1'
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
31
  s.add_dependency 'grape-swagger', '~> 0.9.0', '>= 0.9.0'
32
32
  s.add_dependency 'roar', '~> 1.0.0', '>= 1.0.0'
33
33
  s.add_dependency 'racksh', '~> 1.0'
34
+ s.add_dependency 'hashie_rails'
34
35
 
35
- s.add_development_dependency 'bundler', '~> 1.7.10', '>= 1.7.10'
36
+ s.add_development_dependency 'bundler', '~> 1.7.9', '>= 1.7.9'
36
37
  s.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
37
38
  s.add_development_dependency 'rubocop', '~> 0.28', '>= 0.28.0'
38
39
  s.add_development_dependency 'activerecord', '~> 4.2', '>= 4.2.0'
@@ -1,3 +1,13 @@
1
+ # We are using a customized version of hashie_rails gem
2
+ # to prevent ActiveModel from raising a
3
+ # ForbiddenAttributesProtection exception when we mass
4
+ # assign attributes.
5
+ #
6
+ # https://github.com/Maxim-Filimonov/hashie_rails/pull/3
7
+ # https://github.com/dylanfareed/hashie_rails/tree/off-the-rails
8
+ #
9
+ require 'hashie_rails'
10
+
1
11
  module Gris
2
12
  module CrudHelpers
3
13
  def create(type, options = {})
data/lib/gris/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
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.0.8
4
+ version: 0.0.9
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-02-23 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -130,20 +130,20 @@ dependencies:
130
130
  requirements:
131
131
  - - "~>"
132
132
  - !ruby/object:Gem::Version
133
- version: 0.10.1
133
+ version: 0.11.0
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: 0.10.1
136
+ version: 0.11.0
137
137
  type: :runtime
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: 0.10.1
143
+ version: 0.11.0
144
144
  - - ">="
145
145
  - !ruby/object:Gem::Version
146
- version: 0.10.1
146
+ version: 0.11.0
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: grape-roar
149
149
  requirement: !ruby/object:Gem::Requirement
@@ -218,26 +218,40 @@ dependencies:
218
218
  - - "~>"
219
219
  - !ruby/object:Gem::Version
220
220
  version: '1.0'
221
+ - !ruby/object:Gem::Dependency
222
+ name: hashie_rails
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ type: :runtime
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
221
235
  - !ruby/object:Gem::Dependency
222
236
  name: bundler
223
237
  requirement: !ruby/object:Gem::Requirement
224
238
  requirements:
225
239
  - - "~>"
226
240
  - !ruby/object:Gem::Version
227
- version: 1.7.10
241
+ version: 1.7.9
228
242
  - - ">="
229
243
  - !ruby/object:Gem::Version
230
- version: 1.7.10
244
+ version: 1.7.9
231
245
  type: :development
232
246
  prerelease: false
233
247
  version_requirements: !ruby/object:Gem::Requirement
234
248
  requirements:
235
249
  - - "~>"
236
250
  - !ruby/object:Gem::Version
237
- version: 1.7.10
251
+ version: 1.7.9
238
252
  - - ">="
239
253
  - !ruby/object:Gem::Version
240
- version: 1.7.10
254
+ version: 1.7.9
241
255
  - !ruby/object:Gem::Dependency
242
256
  name: rspec
243
257
  requirement: !ruby/object:Gem::Requirement