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 +8 -8
- data/Gemfile.lock +1 -1
- data/lib/simple_action/concerns/delegates_to_params.rb +0 -26
- data/lib/simple_action/params.rb +6 -0
- data/lib/simple_action/version.rb +1 -1
- data/spec/acceptance_spec.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
|
+
MGM4YTI5YzE2NzM4OTIyMWE2NjcyYzUyYTMzMmYzMGFjYzc2MzM3Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjI4Njk3ODc2NmE5NGI2Y2M1MDlhZjM4YzJiYWZkNTYzNjk1OWRlOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjlhNGU4NjljZDVlMWIyYzNmYTNkOWJjZTdiYzViNTc3YTVmNTJhNjgwYmNk
|
10
|
+
ZjdiNzgyMjQzNzRmZjkwYmNjMjhjMjhkMWY1OTYwNWE2MTE5MTI2NTIzNmMz
|
11
|
+
NGYwYjRhNmEwY2I1MGNkZjJlMTc4MTIzYmFhZTZiZTU5NzUwZDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODM2NGExMWE1ZTEyMjk0NDk1NTg3NGFhZjUwNDM0NGFiNWJiODc2ODU5YTYx
|
14
|
+
MjAzY2E3MTMzY2NjYWIwYWM4YjMwZjVlYWRkOWRhZTI5ODdkZTc4NjdjZDVh
|
15
|
+
YTQyYTMzN2FjZTg5ZTdiMzFjYzc4ZWQ0OTQ0MmRjMjI5MTZhNDA=
|
data/Gemfile.lock
CHANGED
@@ -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? &&
|
data/lib/simple_action/params.rb
CHANGED
data/spec/acceptance_spec.rb
CHANGED
@@ -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"
|
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
|
+
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-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_params
|