rash 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/rash.rb +0 -12
- data/rash.gemspec +5 -5
- metadata +3 -3
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.email = "tom.cocca@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/tcocca/rash"
|
12
12
|
gem.authors = ["tcocca"]
|
13
|
-
gem.add_dependency "hashie", ">= 0.
|
13
|
+
gem.add_dependency "hashie", ">= 0.4.0"
|
14
14
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
15
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/rash.rb
CHANGED
@@ -23,18 +23,6 @@ module Hashie
|
|
23
23
|
downcase
|
24
24
|
end
|
25
25
|
|
26
|
-
def convert_value(val, duping=false) #:nodoc:
|
27
|
-
obj = super
|
28
|
-
obj = self.class.new(obj) if Hashie::Mash === obj
|
29
|
-
obj
|
30
|
-
end
|
31
|
-
|
32
|
-
def initializing_reader(key)
|
33
|
-
ck = convert_key(key)
|
34
|
-
regular_writer(ck, self.class.new) unless key?(ck)
|
35
|
-
regular_reader(ck)
|
36
|
-
end
|
37
|
-
|
38
26
|
end
|
39
27
|
|
40
28
|
end
|
data/rash.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rash}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["tcocca"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-31}
|
13
13
|
s.description = %q{simple extension to Hashie::Mash for rubyified keys, all keys are converted to underscore to eliminate horrible camelCasing}
|
14
14
|
s.email = %q{tom.cocca@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -44,14 +44,14 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.specification_version = 3
|
45
45
|
|
46
46
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
47
|
-
s.add_runtime_dependency(%q<hashie>, [">= 0.
|
47
|
+
s.add_runtime_dependency(%q<hashie>, [">= 0.4.0"])
|
48
48
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
49
49
|
else
|
50
|
-
s.add_dependency(%q<hashie>, [">= 0.
|
50
|
+
s.add_dependency(%q<hashie>, [">= 0.4.0"])
|
51
51
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
52
52
|
end
|
53
53
|
else
|
54
|
-
s.add_dependency(%q<hashie>, [">= 0.
|
54
|
+
s.add_dependency(%q<hashie>, [">= 0.4.0"])
|
55
55
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tcocca
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-08-
|
12
|
+
date: 2010-08-31 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.
|
23
|
+
version: 0.4.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|