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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/polyrex.rb +12 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59bac688408a17f7ff5edff67c2229f5333fa80f
|
4
|
+
data.tar.gz: 36a65faaf48a5d18e9a8d7b8ee52a00919bfdc53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|