simple_action 1.3.4 → 1.3.5

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
- YmNmYjE4NzEzNzg0ZWFiYTA0MGQyMjgyYWQwYTBkMDJlNzAzYjhiMg==
4
+ MGM4YTI5YzE2NzM4OTIyMWE2NjcyYzUyYTMzMmYzMGFjYzc2MzM3Yg==
5
5
  data.tar.gz: !binary |-
6
- OGQyMTMzZTQ0YWNhN2FmOTA5MTAyMzNkZWVkNjkyMWJhNmVjNzU0ZQ==
6
+ NjI4Njk3ODc2NmE5NGI2Y2M1MDlhZjM4YzJiYWZkNTYzNjk1OWRlOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWZmZGM4ODY5ZmQzMGE4MTNmODI0ODM0ZjE0ODc4MjllZTI0ZmYxMDlmMWFi
10
- Y2JiOGI1YTFmYmNmMzc1MjFiYzNmZGY3MzBiOWE2NjY2Y2Y2YmJlOGU3ZGJm
11
- ODI5YjY0NjYwZmFjMDczMmU2ODYwYjI3NTYxNTZmODcxZjFmNTA=
9
+ MjlhNGU4NjljZDVlMWIyYzNmYTNkOWJjZTdiYzViNTc3YTVmNTJhNjgwYmNk
10
+ ZjdiNzgyMjQzNzRmZjkwYmNjMjhjMjhkMWY1OTYwNWE2MTE5MTI2NTIzNmMz
11
+ NGYwYjRhNmEwY2I1MGNkZjJlMTc4MTIzYmFhZTZiZTU5NzUwZDk=
12
12
  data.tar.gz: !binary |-
13
- ZjQ2YWNiZGIxOWQ3M2ZkYTg1YTQzMjJlYzVmNGE3NjAxNzczZThkZjAzY2U3
14
- MjdmM2QwODRlMjM2OWRkYWI4ZTk4ZjY2ZmMxMmM4ZGU3N2VmM2Q4YWU2MWNl
15
- NDhlNDkyNTU3NTcxYWE0MWUyNTg1YzliZDM0YzI5MGU5YzIzMWE=
13
+ ODM2NGExMWE1ZTEyMjk0NDk1NTg3NGFhZjUwNDM0NGFiNWJiODc2ODU5YTYx
14
+ MjAzY2E3MTMzY2NjYWIwYWM4YjMwZjVlYWRkOWRhZTI5ODdkZTc4NjdjZDVh
15
+ YTQyYTMzN2FjZTg5ZTdiMzFjYzc4ZWQ0OTQ0MmRjMjI5MTZhNDA=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple_action (1.3.3)
4
+ simple_action (1.3.4)
5
5
  simple_params (>= 1.3.4, < 2.0)
6
6
 
7
7
  GEM
@@ -14,32 +14,6 @@ module SimpleAction
14
14
  super(sym, *args, &block)
15
15
  end
16
16
 
17
-
18
- # # Overriding this method to allow for non-strict enforcement!
19
- # def method_missing(method_name, *arguments, &block)
20
- # if strict_enforcement?
21
- # raise SimpleParamsError, "parameter #{method_name} is not defined."
22
- # else
23
- # if @original_params.include?(method_name.to_sym)
24
- # value = @original_params[method_name.to_sym]
25
- # if value.is_a?(Hash)
26
- # define_anonymous_class(method_name, value)
27
- # else
28
- # Attribute.new(self, method_name).value = value
29
- # end
30
- # end
31
- # end
32
- # end
33
-
34
- # def respond_to?(method_name, include_private = false)
35
- # if strict_enforcement?
36
- # super
37
- # else
38
- # @original_params.include?(method_name.to_sym) || super
39
- # end
40
- # end
41
-
42
-
43
17
  private
44
18
  def pass_sym_to_params?(sym)
45
19
  params.present? &&
@@ -2,5 +2,11 @@ require "simple_params"
2
2
 
3
3
  module SimpleAction
4
4
  class Params < ::SimpleParams::Params
5
+ # Use Rails Helpers by default
6
+ class << self
7
+ def using_rails_helpers?
8
+ true
9
+ end
10
+ end
5
11
  end
6
12
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleAction
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
@@ -235,7 +235,7 @@ describe "SimpleAction acceptance spec" do
235
235
  it { should_not be_valid }
236
236
  it { should_not be_success }
237
237
 
238
- it "should have name error", failing: true do
238
+ it "should have name error" do
239
239
  subject.errors[:name].should eq(["can't be outlier"])
240
240
  end
241
241
  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.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - brycesenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_params