polyrex 1.1.12 → 1.1.13
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.tar.gz.sig +1 -2
- data/lib/polyrex.rb +9 -6
- metadata +30 -31
- 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: 7b5969096e2a90c6076f804745cd2722cc88f908
|
4
|
+
data.tar.gz: 9f98b301dd9c402b8d3398986366aff7403500ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa339d87856a0284db91be4042c8a18cc9b20013ff023b5d3d5bfd2d003322edbf04c9962d1b5bf2ff277e8ee041d7836f5cbec535f25a9994beadd9cac7e820
|
7
|
+
data.tar.gz: 2d546271156b0ce4cc4e6f77fd77da81f7f148a56bee31423600d73df23ce226bb98546c734d9c68906180a9a2e5abf9665bb8d86b683024efa19b85ce62e0c2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
��mz��� ��낔e��D�f��k��&�aA�/��~�q>nžMĂ�C����/���u���5F�����U���Φ5�ek��K��������s�~��<wq�6��B[=vN,�aR!p��1��3
|
1
|
+
��0y��^��_��~o
|
data/lib/polyrex.rb
CHANGED
@@ -42,21 +42,20 @@ class Polyrex
|
|
42
42
|
attr_accessor :summary_fields, :xslt_schema, :id_counter,
|
43
43
|
:schema, :type, :delimiter, :xslt, :format_masks
|
44
44
|
|
45
|
-
def initialize(location=nil,
|
45
|
+
def initialize(location=nil, schema: nil, id_counter: '1')
|
46
46
|
|
47
|
-
options = {id_counter: '1'}.merge opt
|
48
47
|
|
49
|
-
@id_counter =
|
48
|
+
@id_counter = id_counter
|
50
49
|
@format_masks = []
|
51
50
|
@delimiter = ''
|
51
|
+
|
52
|
+
self.method(:schema=).call(schema) if schema
|
52
53
|
|
53
54
|
if location then
|
54
55
|
|
55
|
-
self.method(:schema=).call(options[:schema]) if options[:schema]
|
56
|
-
|
57
56
|
openx(location)
|
58
57
|
|
59
|
-
if
|
58
|
+
if schema then
|
60
59
|
|
61
60
|
fields = @schema[/\/.*/].scan(/\[([^\]]+)/).map \
|
62
61
|
{|x| x.first.split(',').map(&:strip)}
|
@@ -155,6 +154,10 @@ class Polyrex
|
|
155
154
|
@parent_node = @doc.root.element("//[@id='#{id}']")
|
156
155
|
self
|
157
156
|
end
|
157
|
+
|
158
|
+
def order=(val)
|
159
|
+
@order = val.to_s
|
160
|
+
end
|
158
161
|
|
159
162
|
# -- end of crud methods --
|
160
163
|
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
/
|
30
|
-
|
31
|
-
|
32
|
-
9+gffejS1ORTgQ==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMzE3MTMwMzQ5WhcN
|
15
|
+
MTkwMzE3MTMwMzQ5WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2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146WaQbEgU87QlxPJLhz3yXKi7lwa9XgHQzuifNDi
|
31
|
+
OXU=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: polyrex-schema
|
@@ -62,7 +61,7 @@ dependencies:
|
|
62
61
|
version: '0.9'
|
63
62
|
- - ">="
|
64
63
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.9.
|
64
|
+
version: 0.9.8
|
66
65
|
type: :runtime
|
67
66
|
prerelease: false
|
68
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -72,7 +71,7 @@ dependencies:
|
|
72
71
|
version: '0.9'
|
73
72
|
- - ">="
|
74
73
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.9.
|
74
|
+
version: 0.9.8
|
76
75
|
- !ruby/object:Gem::Dependency
|
77
76
|
name: polyrex-createobject
|
78
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +81,7 @@ dependencies:
|
|
82
81
|
version: '0.6'
|
83
82
|
- - ">="
|
84
83
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.6.
|
84
|
+
version: 0.6.1
|
86
85
|
type: :runtime
|
87
86
|
prerelease: false
|
88
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -92,7 +91,7 @@ dependencies:
|
|
92
91
|
version: '0.6'
|
93
92
|
- - ">="
|
94
93
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.6.
|
94
|
+
version: 0.6.1
|
96
95
|
- !ruby/object:Gem::Dependency
|
97
96
|
name: polyrex-object-methods
|
98
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +121,7 @@ dependencies:
|
|
122
121
|
version: '0.1'
|
123
122
|
- - ">="
|
124
123
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.1.
|
124
|
+
version: 0.1.6
|
126
125
|
type: :runtime
|
127
126
|
prerelease: false
|
128
127
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -132,7 +131,7 @@ dependencies:
|
|
132
131
|
version: '0.1'
|
133
132
|
- - ">="
|
134
133
|
- !ruby/object:Gem::Version
|
135
|
-
version: 0.1.
|
134
|
+
version: 0.1.6
|
136
135
|
- !ruby/object:Gem::Dependency
|
137
136
|
name: dynarex
|
138
137
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,7 +141,7 @@ dependencies:
|
|
142
141
|
version: '1.7'
|
143
142
|
- - ">="
|
144
143
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.7.
|
144
|
+
version: 1.7.30
|
146
145
|
type: :runtime
|
147
146
|
prerelease: false
|
148
147
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -152,7 +151,7 @@ dependencies:
|
|
152
151
|
version: '1.7'
|
153
152
|
- - ">="
|
154
153
|
- !ruby/object:Gem::Version
|
155
|
-
version: 1.7.
|
154
|
+
version: 1.7.30
|
156
155
|
description:
|
157
156
|
email: james@jamesrobertson.eu
|
158
157
|
executables: []
|
@@ -180,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
179
|
version: '0'
|
181
180
|
requirements: []
|
182
181
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.6.
|
182
|
+
rubygems_version: 2.6.13
|
184
183
|
signing_key:
|
185
184
|
specification_version: 4
|
186
185
|
summary: A flavour of XML for storing and retrieveing records in a Polyrex hierarchy
|
metadata.gz.sig
CHANGED
Binary file
|