polyrex 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e0cf4e2902f61f8d5980a71006f7865acb660c4
4
- data.tar.gz: f0568da646249541130467ee3eea4412bdc02b7a
3
+ metadata.gz: aa66cc47402e8872605c7c6671e07060baf24709
4
+ data.tar.gz: d025775f3d2fd188896fb73f8fb44cbbc7018fab
5
5
  SHA512:
6
- metadata.gz: 7ce2fb7420ae012fd5d33dc386f8c6d4c88de366eda262e793ec70e6d577a5cd5cb4fddf0aff3c8cb3c768d23c4b28b436c1f7726615192093b8359b7cce4e66
7
- data.tar.gz: 986f056026a5f741c3afda72c1e95334e7a73aec7a2240a5599653f2b854ae1613cc8ceb6f4c1a490605372565065a87ad7bb4fe335e193f2d0a9d5f8b69f400
6
+ metadata.gz: 3bab856572bad829a2ca876f95b4b768db62ee26ab45d3278132a2916c143061553ba7ccd344ea81b0ca780b3ba170dd383f594df9ef61b8298f5123969cb003
7
+ data.tar.gz: fc7c46ea930d611faacc2ee0e91ba2c80b9fd75f236ad3a735b3f24a4ece5bfbfd8f570bda7535bc7a84d262334b8a39602eccf37d7dd61d3847ee2d409f6f22
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -110,9 +110,9 @@ class Polyrex
110
110
 
111
111
  def each_recursive(parent=self, level=0, &blk)
112
112
 
113
- parent.records.each do |x|
113
+ parent.records.each.with_index do |x, index|
114
114
 
115
- blk.call(x, parent, level) if block_given?
115
+ blk.call(x, parent, level, index) if block_given?
116
116
 
117
117
  each_recursive(x, level+1, &blk) if x.records.any?
118
118
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file