Doa 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{Doa}
8
- s.version = "0.1.2"
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{2009-10-21}
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.5}
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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.2
1
+ 0.1.3
data/lib/doa.rb CHANGED
@@ -21,7 +21,6 @@
21
21
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
22
  # OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
- require 'facets/hash'
25
24
  require 'doa/class_methods'
26
25
  require 'doa/instance_methods'
27
26
 
@@ -33,10 +33,10 @@ module Doa
33
33
  p = Doa.default_params.try(:clone) ||
34
34
  HashWithIndifferentAccess.new
35
35
 
36
- p.recursive_merge!(super_params)
37
- p.recursive_merge!(action_params)
38
- p.recursive_merge!(self.instance_eval(&default_params)) if default_params
39
- p.recursive_merge!(shared_params)
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.recursive_merge(per_call_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.recursive_merge!(self.instance_eval(&dp) || Hash.new) if dp
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
- version: 0.1.2
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: 2009-10-21 00:00:00 -04:00
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.5
73
+ rubygems_version: 1.3.7
62
74
  signing_key:
63
75
  specification_version: 3
64
76
  summary: The Tester