celsius 0.4.2 → 0.4.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.
- checksums.yaml +4 -4
- data/lib/celsius/hash.rb +1 -1
- data/lib/celsius/version.rb +1 -1
- data/spec/celsius/hash_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6afda84543b2e511ca4989f9bbbf11c0efc0bbd5
|
4
|
+
data.tar.gz: d5557516cf5239189489269af46f952aa5bfd72e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76ee9bd0ead0cccf7bcd82b28851036e781a9cddd30949283c2c7e6c6b8d0ee244f1aeb0e8ac92e38988af99b03519a4bd2e9d76be48d47460456898f1ac544f
|
7
|
+
data.tar.gz: 84087a0ca40eb9e6e4a6981fe453bff6ceb71574f0f1dfa34b58f352ae901f3904ca73fc4d7d5109ce5f94befa05591ff82586b11ea663b9457909c0d9212e8d
|
data/lib/celsius/hash.rb
CHANGED
data/lib/celsius/version.rb
CHANGED
data/spec/celsius/hash_spec.rb
CHANGED
@@ -62,6 +62,7 @@ describe Celsius::Hash do
|
|
62
62
|
let(:hash) do
|
63
63
|
{
|
64
64
|
foo: "bar",
|
65
|
+
"bar" => "foo",
|
65
66
|
muff: false
|
66
67
|
}
|
67
68
|
end
|
@@ -69,6 +70,8 @@ describe Celsius::Hash do
|
|
69
70
|
it "fetches a value by key indifferently from the given hash" do
|
70
71
|
expect(described_class.smart_fetch(hash, :foo)).to eq(hash[:foo])
|
71
72
|
expect(described_class.smart_fetch(hash, "foo")).to eq(hash[:foo])
|
73
|
+
expect(described_class.smart_fetch(hash, :bar)).to eq(hash["bar"])
|
74
|
+
expect(described_class.smart_fetch(hash, "bar")).to eq(hash["bar"])
|
72
75
|
expect(described_class.smart_fetch(hash, "muff")).to eq(hash[:muff])
|
73
76
|
end
|
74
77
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: celsius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Sievers
|
@@ -142,7 +142,7 @@ rubyforge_project:
|
|
142
142
|
rubygems_version: 2.4.5
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
|
-
summary: celsius-0.4.
|
145
|
+
summary: celsius-0.4.3
|
146
146
|
test_files:
|
147
147
|
- spec/assets/locales/de.yml
|
148
148
|
- spec/assets/locales/en.yml
|