Doa 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Doa.gemspec +4 -4
- data/VERSION +1 -1
- data/lib/doa.rb +0 -1
- data/lib/doa/instance_methods.rb +6 -6
- metadata +17 -5
data/Doa.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{Doa}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nolan Eakins <sneakin@semanticgap.com>"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-08-04}
|
13
13
|
s.description = %q{rSpec controller macros}
|
14
14
|
s.email = %q{suppert@semanticgap.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/sneakin/Doa}
|
33
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
36
36
|
s.summary = %q{The Tester}
|
37
37
|
s.test_files = [
|
38
38
|
"spec/application.rb",
|
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
45
|
s.specification_version = 3
|
46
46
|
|
47
|
-
if Gem::Version.new(Gem::
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
48
|
else
|
49
49
|
end
|
50
50
|
else
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/doa.rb
CHANGED
data/lib/doa/instance_methods.rb
CHANGED
@@ -33,10 +33,10 @@ module Doa
|
|
33
33
|
p = Doa.default_params.try(:clone) ||
|
34
34
|
HashWithIndifferentAccess.new
|
35
35
|
|
36
|
-
p.
|
37
|
-
p.
|
38
|
-
p.
|
39
|
-
p.
|
36
|
+
p.deep_merge!(super_params)
|
37
|
+
p.deep_merge!(action_params)
|
38
|
+
p.deep_merge!(self.instance_eval(&default_params)) if default_params
|
39
|
+
p.deep_merge!(shared_params)
|
40
40
|
|
41
41
|
@_params = HashWithIndifferentAccess.new(p)
|
42
42
|
end
|
@@ -46,7 +46,7 @@ module Doa
|
|
46
46
|
# passed as an argument.
|
47
47
|
def doa(per_call_params = Hash.new)
|
48
48
|
send(action_method, action_name,
|
49
|
-
self.params.
|
49
|
+
self.params.deep_merge(per_call_params))
|
50
50
|
end
|
51
51
|
|
52
52
|
# Alias for #doa
|
@@ -62,7 +62,7 @@ module Doa
|
|
62
62
|
next acc unless klass.respond_to?(:default_params)
|
63
63
|
|
64
64
|
dp = klass.default_params
|
65
|
-
acc.
|
65
|
+
acc.deep_merge!(self.instance_eval(&dp) || Hash.new) if dp
|
66
66
|
acc
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Doa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Nolan Eakins <sneakin@semanticgap.com>
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-08-04 00:00:00 -04:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -44,21 +50,27 @@ rdoc_options:
|
|
44
50
|
require_paths:
|
45
51
|
- lib
|
46
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
47
54
|
requirements:
|
48
55
|
- - ">="
|
49
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
50
60
|
version: "0"
|
51
|
-
version:
|
52
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
53
63
|
requirements:
|
54
64
|
- - ">="
|
55
65
|
- !ruby/object:Gem::Version
|
66
|
+
hash: 3
|
67
|
+
segments:
|
68
|
+
- 0
|
56
69
|
version: "0"
|
57
|
-
version:
|
58
70
|
requirements: []
|
59
71
|
|
60
72
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.3.
|
73
|
+
rubygems_version: 1.3.7
|
62
74
|
signing_key:
|
63
75
|
specification_version: 3
|
64
76
|
summary: The Tester
|