cowtech-rails 1.9.0.2 → 1.9.0.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.
@@ -66,7 +66,7 @@ module Cowtech
66
66
  end
67
67
 
68
68
  def dump
69
- raise Exception.new("DUMP: #{self.to_json}")
69
+ raise Exception.new("DUMP: #{self.to_yaml}")
70
70
  end
71
71
  end
72
72
 
@@ -97,12 +97,20 @@ module Cowtech
97
97
  end
98
98
 
99
99
  module Hash
100
- def method_missing(method, *arg)
101
- self[method.to_sym] || self[method.to_s]
100
+ def method_missing(method, *args, &block)
101
+ if self.has_key?(method.to_sym) || self.has_key?(method.to_s) then
102
+ self[method.to_sym] || self[method.to_s]
103
+ else
104
+ super(method, *args, &block)
105
+ end
102
106
  end
103
107
 
104
108
  def respond_to?(method)
105
- self.has_key?(method.to_sym) || self.has_key?(method.to_s)
109
+ if self.has_key?(method.to_sym) || self.has_key?(method.to_s) then
110
+ true
111
+ else
112
+ super(method)
113
+ end
106
114
  end
107
115
  end
108
116
 
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 1
11
11
  MINOR = 9
12
12
  PATCH = 0
13
- BUILD = 2
13
+ BUILD = 3
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.2
4
+ version: 1.9.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-14 00:00:00.000000000Z
12
+ date: 2011-07-15 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A general purpose Rails utility plugin.
15
15
  email: shogun_panda@me.com