polyrex 1.1.3 → 1.1.4

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: 12ded278477a495cf6eaa0c402a40c5451f4e35e
4
- data.tar.gz: fcc70ec6262820debcb045f1bff508f12b3e000b
3
+ metadata.gz: 59bac688408a17f7ff5edff67c2229f5333fa80f
4
+ data.tar.gz: 36a65faaf48a5d18e9a8d7b8ee52a00919bfdc53
5
5
  SHA512:
6
- metadata.gz: 5dc29ad11406d399d6bbe60837fb600dfd5159eae3bc7f1e95654a0e9c11a55880102f272b483557a36426fa40dd6f67075e8b00f4ff31ee62a7357954d9b287
7
- data.tar.gz: 5fe387e8dba98915c77c060db33af93c5bff19072ecd601996e7f2c9ce544f2e7a068d9aa2a34ed9100bd80d3a0daaa29e7743320476f82e984797bd29480f11
6
+ metadata.gz: 0e4bd552718ff149a369918222ed51db85d506bc8d08c69126893ea07a30f3b0d00ec4e086c18d0f7b5ad59046fe94356a02e5e1b991e6f6583fcbb36a4a07bc
7
+ data.tar.gz: 9799dfeee638f8bff9441e97ad81e58c1fe225397b4095c8462801afa5296838a73770d1fc954016d3aae0d63da04dbcc5af8fda40e95dcd2669528981a19fc3
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -107,6 +107,18 @@ class Polyrex
107
107
  format_mask.to_s.gsub(/\s/, separator)
108
108
  end
109
109
  end
110
+
111
+ def each_recursive(parent=self, &blk)
112
+
113
+ parent.records.each do |x|
114
+
115
+ blk.call(x, parent) if block_given?
116
+
117
+ each_recursive(x, &blk) if x.records.any?
118
+
119
+ end
120
+
121
+ end
110
122
 
111
123
  def record()
112
124
  @parent_node
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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  EUI+ncIuEEQSxIVKGeaQ49Dk10P2t0cX3DGyMlv7sreJohHxJfNKsjG/SAk0cks0
32
32
  9+gffejS1ORTgQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-11-21 00:00:00.000000000 Z
34
+ date: 2016-11-23 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
metadata.gz.sig CHANGED
Binary file