iqeo-conf 0.0.7 → 0.0.8
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/Gemfile.lock +1 -1
- data/lib/iqeo/configuration/version.rb +1 -1
- data/lib/iqeo/configuration.rb +1 -1
- data/pkg/iqeo-conf-0.0.7.gem +0 -0
- data/spec/configuration_spec.rb +6 -4
- metadata +3 -2
data/Gemfile.lock
CHANGED
data/lib/iqeo/configuration.rb
CHANGED
@@ -57,7 +57,7 @@ module Iqeo
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def method_missing name, *values, &block
|
60
|
-
return @items.send name, *values if @items.respond_to? name # @items methods are highest priority
|
60
|
+
return @items.send( name, *values, &block ) if @items.respond_to? name # @items methods are highest priority
|
61
61
|
|
62
62
|
name = name.to_s.chomp('=') # todo: write a test case for a non-string object as key being converted by .to_s
|
63
63
|
|
Binary file
|
data/spec/configuration_spec.rb
CHANGED
@@ -632,14 +632,16 @@ describe Configuration do
|
|
632
632
|
expect do
|
633
633
|
conf = Configuration.new
|
634
634
|
conf.alpha 1
|
635
|
-
conf.bravo
|
636
|
-
conf.charlie 3
|
637
|
-
conf.delta
|
635
|
+
conf.bravo 2
|
636
|
+
conf.charlie 3
|
637
|
+
conf.delta 4
|
638
638
|
end.to_not raise_error
|
639
639
|
conf.should_not be_nil
|
640
|
+
sum = 0
|
640
641
|
expect do
|
641
|
-
conf.each { |k,v|
|
642
|
+
conf.each { |k,v| sum += v }
|
642
643
|
end.to_not raise_error
|
644
|
+
sum.should == 10
|
643
645
|
conf.size.should == 4
|
644
646
|
end
|
645
647
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iqeo-conf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
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: 2012-05-
|
12
|
+
date: 2012-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- pkg/iqeo-conf-0.0.4.gem
|
70
70
|
- pkg/iqeo-conf-0.0.5.gem
|
71
71
|
- pkg/iqeo-conf-0.0.6.gem
|
72
|
+
- pkg/iqeo-conf-0.0.7.gem
|
72
73
|
- spec/configuration_spec.rb
|
73
74
|
- spec/spec_helper.rb
|
74
75
|
homepage: http://iqeo.github.com/iqeo-conf
|