rash_alt 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/rash/version.rb +1 -1
- data/spec/rash_spec.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd1100f448e31fc6ea93c36771dd1af58009b6167aabf92312b6fd5c183c448
|
4
|
+
data.tar.gz: 10cc07c093a9eedb1dd2ab96f8cd98aeebe1b787d09b0ddc96d4e87ca5258664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4754aaa44eeecc05ca8be6f279f4759c643b74ce9a40efb5fac447936ab06aa12da90de9788275bc5c3d8fb48db013745156311412d3f36e879cf9694799a936
|
7
|
+
data.tar.gz: c32efb72c4a1f6fa71051b2fe79382cdf4535b35ceaba64be6d26f226d7a85b1a549d1eb2caaf30f64b07f0073e943b23e435991beffe2b1ca16183cc3793aac
|
data/README.md
CHANGED
data/lib/rash/version.rb
CHANGED
data/spec/rash_spec.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'hashie'
|
2
3
|
|
3
4
|
describe Hashie::Mash::Rash do
|
4
5
|
subject {
|
@@ -49,7 +50,7 @@ describe Hashie::Mash::Rash do
|
|
49
50
|
|
50
51
|
it "should allow camelCased accessors" do
|
51
52
|
#avoiding hashie v5- warnings
|
52
|
-
subject.class.disable_warnings(:varOne)
|
53
|
+
subject.class.disable_warnings(:varOne) if Gem::Version.new(Hashie::VERSION) >= Gem::Version.new("5.0.0")
|
53
54
|
|
54
55
|
subject.varOne.should == 1
|
55
56
|
subject.varOne = "once"
|
@@ -59,7 +60,7 @@ describe Hashie::Mash::Rash do
|
|
59
60
|
|
60
61
|
it "should allow camelCased accessors on nested hashes" do
|
61
62
|
# avoiding hashie v5- warnings
|
62
|
-
subject.class.disable_warnings(:nestedOne)
|
63
|
+
subject.class.disable_warnings(:nestedOne) if Gem::Version.new(Hashie::VERSION) >= Gem::Version.new("5.0.0")
|
63
64
|
|
64
65
|
subject.nested.nestedOne.should == "One"
|
65
66
|
subject.nested.nestedOne = "once"
|