strong_resources 0.6.2 → 0.6.3

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: dfbf549ffd25b301a302af319a73cd1348dffe74
4
- data.tar.gz: 4c836489bb12cdb8d6dbfecc24f41a6af50b40c9
3
+ metadata.gz: 6fa1858d3151a0ccc3873ce7614ad1c739bd1934
4
+ data.tar.gz: ae7a5549f4996d14f1d568f05484d87b4b19f208
5
5
  SHA512:
6
- metadata.gz: 466e256966eb924f8f0bf95ba87f25c262f51dbbf8672644b94c413b1c89db1c57584cbcf268dd35dd00524df03c4fe1c91655dab1db215f519cbfe353f63ad5
7
- data.tar.gz: 345d82757d32e9b30e7fda0e9ab1149c89302653a8a626967979447740ddc13ccad77d4a8ddda7a6b7859cb78fab7f5e608b233664e60a66d5e9820a08e06c4c
6
+ metadata.gz: ff142dcd36ffadd091f4f44d86a4592660435e9a5953fa8227e812bf54736059f84f310f1e4097226c3fbdff2a0690132ed321bc3ec907511b78dfe30ee661ef
7
+ data.tar.gz: cfba12fff9d98c201c1c16e518335a8428203ba7d4bf597e51e794675f829e6fcb4b1575ba5c107ab3cb7a14f0ff3f550dd78de695c7a19823a4f8d3db31baa1
@@ -24,6 +24,7 @@ module StrongResources
24
24
  strong_param :string, swagger: :string, type: ActionController::Parameters.string
25
25
  strong_param :integer, swagger: :integer, type: ActionController::Parameters.integer
26
26
  strong_param :boolean, swagger: :boolean, type: ActionController::Parameters.boolean
27
+ strong_param :number, swagger: :number, type: ActionController::Parameters.decimal
27
28
  end
28
29
  end
29
30
  end
@@ -10,7 +10,7 @@ module StrongResources
10
10
  attr_reader :name, :customized_actions, :jsonapi_type
11
11
 
12
12
  def self.from(name, opts = {}, &blk)
13
- config = StrongResources.config.strong_resources[name]
13
+ config = StrongResources.find(name)
14
14
  resource = new(name)
15
15
  resource.instance_eval(&config[:base])
16
16
  resource.instance_eval(&blk) if blk
@@ -1,3 +1,3 @@
1
1
  module StrongResources
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-18 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi_compliable
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 2.6.11
198
+ rubygems_version: 2.5.1
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: Auto-generate swagger docs and strong params