wref 0.0.3 → 0.0.4

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.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/lib/wref.rb +1 -1
  3. data/spec/wref_spec.rb +5 -2
  4. data/wref.gemspec +1 -1
  5. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -262,7 +262,7 @@ class Wref_map
262
262
 
263
263
  ids.each do |id|
264
264
  if obj = self.get!(id)
265
- yielder << obj
265
+ yielder << [id, obj]
266
266
  end
267
267
  end
268
268
  end
@@ -28,11 +28,14 @@ describe "Wref" do
28
28
  #Test each-method.
29
29
  count = 0
30
30
  str_col = ""
31
- map.each do |a_str|
31
+ key_col = ""
32
+ map.each do |key, a_str|
32
33
  count += 1
33
34
  str_col << a_str
35
+ key_col << key.to_s
34
36
  end
35
37
 
38
+ raise "Expected key-collection to be '56' but it wasnt: #{key_col}" if key_col != "56"
36
39
  raise "Expected collection to be 'Testtrala' but it wasnt: #{str_col}" if str_col != "Testtrala"
37
40
  raise "Expected count 2 but it wasnt: #{count}" if count != 2
38
41
 
@@ -50,7 +53,7 @@ describe "Wref" do
50
53
 
51
54
  #Test each-method.
52
55
  count = 0
53
- map.each do |a_str|
56
+ map.each do |key, a_str|
54
57
  count += 1
55
58
  end
56
59
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wref}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wref
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kasper Johansen
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- hash: 4315539060492867087
96
+ hash: 2862739513814942165
97
97
  segments:
98
98
  - 0
99
99
  version: "0"