rash 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/README.rdoc +3 -2
- data/Rakefile +4 -3
- data/lib/hashie/rash.rb +1 -0
- data/lib/rash/version.rb +1 -1
- data/rash.gemspec +4 -5
- data/spec/rash_spec.rb +3 -1
- metadata +45 -15
data/.gemtest
ADDED
File without changes
|
data/README.rdoc
CHANGED
@@ -54,5 +54,6 @@ Copyright (c) 2010 Tom Cocca. See LICENSE for details.
|
|
54
54
|
|
55
55
|
=== Acknowledgements
|
56
56
|
|
57
|
-
|
58
|
-
|
57
|
+
* Intridea (https://github.com/intridea) for Hashie
|
58
|
+
* Mislav Marohnić (https://github.com/mislav) for contributions to Rash
|
59
|
+
* Steve Agalloco (https://github.com/spagalloco) for updating Rash to use bundler, rspec 2.5, hashie 1.0 and fixing some load dependencies
|
data/Rakefile
CHANGED
@@ -7,9 +7,10 @@ RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
task :test => :spec
|
8
8
|
task :default => :spec
|
9
9
|
|
10
|
-
require '
|
11
|
-
|
12
|
-
|
10
|
+
require 'rdoc/task'
|
11
|
+
require File.expand_path('../lib/rash/version', __FILE__)
|
12
|
+
RDoc::Task.new do |rdoc|
|
13
|
+
version = Rash::VERSION
|
13
14
|
|
14
15
|
rdoc.rdoc_dir = 'rdoc'
|
15
16
|
rdoc.title = "rash #{version}"
|
data/lib/hashie/rash.rb
CHANGED
data/lib/rash/version.rb
CHANGED
data/rash.gemspec
CHANGED
@@ -5,19 +5,18 @@ require "rash/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{rash}
|
7
7
|
s.authors = ["tcocca"]
|
8
|
-
s.date = %q{2010-08-31}
|
9
8
|
s.description = %q{simple extension to Hashie::Mash for rubyified keys, all keys are converted to underscore to eliminate horrible camelCasing}
|
10
9
|
s.email = %q{tom.cocca@gmail.com}
|
11
10
|
s.homepage = %q{http://github.com/tcocca/rash}
|
12
11
|
s.rdoc_options = ["--charset=UTF-8"]
|
13
|
-
s.rubygems_version = %q{1.3.5}
|
14
12
|
s.summary = %q{simple extension to Hashie::Mash for rubyified keys}
|
15
13
|
|
16
14
|
s.version = Rash::VERSION
|
17
|
-
s.platform = Gem::Platform::RUBY
|
18
15
|
|
19
|
-
s.add_dependency
|
20
|
-
s.add_development_dependency
|
16
|
+
s.add_dependency 'hashie', '~> 1.1.0'
|
17
|
+
s.add_development_dependency 'rake', '~> 0.9'
|
18
|
+
s.add_development_dependency 'rdoc', '~> 3.9'
|
19
|
+
s.add_development_dependency 'rspec', '~> 2.5'
|
21
20
|
|
22
21
|
s.require_paths = ['lib']
|
23
22
|
s.files = `git ls-files`.split("\n")
|
data/spec/rash_spec.rb
CHANGED
@@ -18,7 +18,8 @@ describe Hashie::Rash do
|
|
18
18
|
:nestedThree => 23
|
19
19
|
},
|
20
20
|
"spaced Key" => "When would this happen?",
|
21
|
-
"trailing spaces " => "better safe than sorry"
|
21
|
+
"trailing spaces " => "better safe than sorry",
|
22
|
+
"extra spaces" => "hopefully this never happens"
|
22
23
|
})
|
23
24
|
}
|
24
25
|
|
@@ -39,6 +40,7 @@ describe Hashie::Rash do
|
|
39
40
|
subject.nested_two.nested_three.should == 23
|
40
41
|
subject.spaced_key.should == "When would this happen?"
|
41
42
|
subject.trailing_spaces.should == "better safe than sorry"
|
43
|
+
subject.extra_spaces.should == "hopefully this never happens"
|
42
44
|
end
|
43
45
|
|
44
46
|
it "should allow camelCased accessors" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- tcocca
|
@@ -15,41 +15,70 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-09-06 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 19
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
+
- 1
|
32
33
|
- 0
|
33
|
-
|
34
|
-
version: 1.0.0
|
35
|
-
type: :runtime
|
34
|
+
version: 1.1.0
|
36
35
|
version_requirements: *id001
|
36
|
+
name: hashie
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
38
|
+
type: :development
|
39
39
|
prerelease: false
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 25
|
46
46
|
segments:
|
47
|
-
- 2
|
48
|
-
- 5
|
49
47
|
- 0
|
50
|
-
|
51
|
-
|
48
|
+
- 9
|
49
|
+
version: "0.9"
|
52
50
|
version_requirements: *id002
|
51
|
+
name: rake
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
type: :development
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 21
|
61
|
+
segments:
|
62
|
+
- 3
|
63
|
+
- 9
|
64
|
+
version: "3.9"
|
65
|
+
version_requirements: *id003
|
66
|
+
name: rdoc
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 9
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 5
|
79
|
+
version: "2.5"
|
80
|
+
version_requirements: *id004
|
81
|
+
name: rspec
|
53
82
|
description: simple extension to Hashie::Mash for rubyified keys, all keys are converted to underscore to eliminate horrible camelCasing
|
54
83
|
email: tom.cocca@gmail.com
|
55
84
|
executables: []
|
@@ -60,6 +89,7 @@ extra_rdoc_files: []
|
|
60
89
|
|
61
90
|
files:
|
62
91
|
- .document
|
92
|
+
- .gemtest
|
63
93
|
- .gitignore
|
64
94
|
- .rspec
|
65
95
|
- Gemfile
|