simple_action 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +5 -2
- data/lib/simple_action/concerns/accepts_params.rb +6 -0
- data/lib/simple_action/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzE4ZDAyZjZmZDc2NTI0YmYwYzAyMjZhODA5NjI4OTliYjhlY2MxOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDYyNTBmZWQwOGQ1MzhmYTk5YjBlMTY3M2YxZmYwMWYyMTc3NjBkMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzE3NjQxZTY1ZjgwZGE2MmMxNTA1YTkwNDRhYzUxMmE4MzUwMjZiNjNkN2Nk
|
10
|
+
ZTY4MTlhNDVhMzYyMTRjM2YzOTVjYWM5NTMyMTA3M2M3YWRhYjcwNzdiOWRh
|
11
|
+
MmUyYzEyZDlmNDFmODAyZGFkN2ZkMjdhNmRiM2JhYzcyMTJhNzM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDE1N2MxN2FlZDgzNjExNTM4ODNlYWNhOGE3MzQxYWFjZGEwMTVmNzkwMjAy
|
14
|
+
ZTUxYzcyNjNhOTY5ZjQ5MTExY2Q3MDVhMDUxODRhYTIzY2VhNjhkMGEzMDVh
|
15
|
+
NjEyZWE2YTk4ZjI3MDliYTUwYWY0N2I4OGFhYmI2ODg2N2U1MjM=
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_action (1.
|
4
|
+
simple_action (1.6.0)
|
5
5
|
simple_params (>= 1.6, < 2.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -48,7 +48,7 @@ GEM
|
|
48
48
|
rspec-mocks (2.99.3)
|
49
49
|
shoulda-matchers (2.8.0)
|
50
50
|
activesupport (>= 3.0.0)
|
51
|
-
simple_params (1.6.
|
51
|
+
simple_params (1.6.5)
|
52
52
|
activemodel (>= 3.0, < 5.0)
|
53
53
|
shoulda-matchers (~> 2.8)
|
54
54
|
virtus (>= 1.0.0)
|
@@ -71,3 +71,6 @@ DEPENDENCIES
|
|
71
71
|
rake (~> 10.1)
|
72
72
|
rspec (~> 2.6)
|
73
73
|
simple_action!
|
74
|
+
|
75
|
+
BUNDLED WITH
|
76
|
+
1.11.2
|
@@ -9,6 +9,7 @@ module SimpleAction
|
|
9
9
|
|
10
10
|
def params(&block)
|
11
11
|
klass_name = self.model_name.to_s
|
12
|
+
klass_name = get_non_namespaced_module(klass_name)
|
12
13
|
klass_name = klass_name + "Params"
|
13
14
|
@params_class = Class.new(SimpleAction::Params).tap do |klass|
|
14
15
|
extend ActiveModel::Naming
|
@@ -21,5 +22,10 @@ module SimpleAction
|
|
21
22
|
def api_pie_documentation
|
22
23
|
@params_class.api_pie_documentation
|
23
24
|
end
|
25
|
+
|
26
|
+
private
|
27
|
+
def get_non_namespaced_module(name)
|
28
|
+
name.split('::').last || name
|
29
|
+
end
|
24
30
|
end
|
25
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_action
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- brycesenz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_params
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.4.
|
144
|
+
rubygems_version: 2.4.8
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: A DSL for specifying services objects, including parameters and execution
|