simple_action 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +3 -3
- data/lib/simple_action/concerns/delegates_to_params.rb +11 -1
- data/lib/simple_action/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzZkM2MxNDg3NjZiMjFhYTM3ZThhMWJmOTAwZDE1NzkyMTIyZjMyOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzYzNzllZWI4Yjg4ZGE4MTAzNWJhYTEzZWYzOWNmOWI1ZmQ0ZTQ5MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGEwYWM2NmZhZjQzYWVlNjk3MDNmYzE5NmIyYTI2NzY3NDdhOWUzNDAwNmIy
|
10
|
+
MTI0MjZhYzlhZDlhMjM1ZjA3NTdhYmZiYTZhZGIzNWEwNWZiODI3OGE1ZGU4
|
11
|
+
ZTdiMjZhMDk0ZDk2MDk3MGQzYjg0OTVkODY4MmY5ZDFmZTg0ZTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTRkNzhmODM5MTM3NDE0MmM3MGYwZmEzNDU5NDljNDE0YzE0ZmM1NDY4MmRm
|
14
|
+
MWM0MzA3NDAwMGY3YmUyYjRiNmJmNzJlZDQwN2UwYjQ0MGI2ZDhiMWQxODQ1
|
15
|
+
MWUyMTE0YmNjZDdiMTI2ZWRhMDcxM2EwZjQ0YTY4N2EyYzU0YzQ=
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_action (1.6.
|
5
|
-
simple_params (>= 1.6.
|
4
|
+
simple_action (1.6.3)
|
5
|
+
simple_params (>= 1.6.9, < 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -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.9)
|
52
52
|
activemodel (>= 3.0, < 5.0)
|
53
53
|
shoulda-matchers (~> 2.8)
|
54
54
|
virtus (>= 1.0.0)
|
@@ -49,7 +49,9 @@ module SimpleAction
|
|
49
49
|
def delegatable_params_method?(sym)
|
50
50
|
params_accessor?(sym) ||
|
51
51
|
attributes_method?(sym) ||
|
52
|
-
build_method?(sym)
|
52
|
+
build_method?(sym) ||
|
53
|
+
validators_method?(sym) ||
|
54
|
+
client_side_validation_method?(sym)
|
53
55
|
end
|
54
56
|
|
55
57
|
def params_accessor?(sym)
|
@@ -64,5 +66,13 @@ module SimpleAction
|
|
64
66
|
def build_method?(sym)
|
65
67
|
sym.to_s.gsub('=', '').start_with?('build_')
|
66
68
|
end
|
69
|
+
|
70
|
+
def validators_method?(sym)
|
71
|
+
sym.to_s.sub('?', '').end_with?('_validators')
|
72
|
+
end
|
73
|
+
|
74
|
+
def client_side_validation_method?(sym)
|
75
|
+
sym.to_s.start_with?('client_side_validation')
|
76
|
+
end
|
67
77
|
end
|
68
78
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- brycesenz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_params
|