iron-extensions 1.1.4 → 1.1.5
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.
- data/History.txt +4 -0
- data/Version.txt +1 -1
- data/lib/iron/extensions/enumerable.rb +1 -1
- data/spec/extensions/enumerable_spec.rb +6 -0
- metadata +2 -2
data/History.txt
CHANGED
data/Version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.5
|
@@ -9,6 +9,12 @@ describe Enumerable do
|
|
9
9
|
[:a, :b].convert_to_hash(false).should == {:a => false, :b => false}
|
10
10
|
end
|
11
11
|
|
12
|
+
it 'should duplicate default hash values' do
|
13
|
+
h = [1,2,3].convert_to_hash({})
|
14
|
+
h[1][:foo] = 5
|
15
|
+
h[2][:foo].should be_nil
|
16
|
+
end
|
17
|
+
|
12
18
|
it 'should accept a block to set hash values' do
|
13
19
|
[:a, :b, :c].convert_to_hash {|k| k.to_s.upcase}.should == {:a => 'A', :b => 'B', :c => 'C'}
|
14
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|