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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTZhMmE3YjRmMjU5OGE2YTM0YmRlMmNlM2Q3MjA3Y2U3MmEwMDI0Zg==
4
+ NzZkM2MxNDg3NjZiMjFhYTM3ZThhMWJmOTAwZDE1NzkyMTIyZjMyOQ==
5
5
  data.tar.gz: !binary |-
6
- ODc4ZThmZDYwMjk3M2RmNjEyYzdhODRlMDA3ZGFlYzhhMGMwOGU0Mw==
6
+ MzYzNzllZWI4Yjg4ZGE4MTAzNWJhYTEzZWYzOWNmOWI1ZmQ0ZTQ5MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjdkZmRjYTEzM2M1MzM3ZWIzNGNhMmFlYTkzMTIxYjA1OTdhYzc5ZjYyZmRk
10
- ODdjYzA5ZmQ5MmU5Nzc5OTc5ZWZlZDE1Y2ExMjBmNTFmMWExNzU5YTg4ZDg3
11
- MzM0OGM4OGY2NDc2YjBjZjM0NTY1YThkYWEzYTFkNTNjMzY3NTY=
9
+ MGEwYWM2NmZhZjQzYWVlNjk3MDNmYzE5NmIyYTI2NzY3NDdhOWUzNDAwNmIy
10
+ MTI0MjZhYzlhZDlhMjM1ZjA3NTdhYmZiYTZhZGIzNWEwNWZiODI3OGE1ZGU4
11
+ ZTdiMjZhMDk0ZDk2MDk3MGQzYjg0OTVkODY4MmY5ZDFmZTg0ZTM=
12
12
  data.tar.gz: !binary |-
13
- ZTlkZDMwYTI5N2Q4YTUwNjQyMzljNmIzYTkxZTllNDkyYjQyZWFjMWNhZDEx
14
- MzQ0YjgwNmY0ODZjNzNjMmQxNzJjMTUxMzE4MTc2MTllNjRiY2E2YWU2N2Uw
15
- M2E4OTVmMWQ3MTAwYzA2YjY2YTMyNTEyM2UyOTY4NzU5MWU5N2I=
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.1)
5
- simple_params (>= 1.6.8, < 2.0)
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.8)
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
@@ -1,3 +1,3 @@
1
1
  module SimpleAction
2
- VERSION = "1.6.3"
2
+ VERSION = "1.6.4"
3
3
  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.3
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-07-13 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_params