rash 0.3.0 → 0.3.1

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.
File without changes
@@ -54,5 +54,6 @@ Copyright (c) 2010 Tom Cocca. See LICENSE for details.
54
54
 
55
55
  === Acknowledgements
56
56
 
57
- http://github.com/intridea for Hashie
58
- http://github.com/mislav for contributions to Rash
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 'rake/rdoctask'
11
- Rake::RDocTask.new do |rdoc|
12
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
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}"
@@ -19,6 +19,7 @@ module Hashie
19
19
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
20
20
  gsub(/([a-z\d])([A-Z])/,'\1_\2').
21
21
  tr("-", "_").
22
+ squeeze("_").
22
23
  downcase
23
24
  end
24
25
 
@@ -1,3 +1,3 @@
1
1
  module Rash
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -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 "hashie", '~> 1.0.0'
20
- s.add_development_dependency "rspec", "~> 2.5.0"
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")
@@ -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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
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: 2010-08-31 00:00:00 -04:00
18
+ date: 2011-09-06 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: hashie
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: 23
29
+ hash: 19
30
30
  segments:
31
31
  - 1
32
+ - 1
32
33
  - 0
33
- - 0
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
- name: rspec
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: 27
45
+ hash: 25
46
46
  segments:
47
- - 2
48
- - 5
49
47
  - 0
50
- version: 2.5.0
51
- type: :development
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