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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81c83c82d53e3cdb302bd1a944c47dd87da318f0
4
- data.tar.gz: 42b6340d8036fc2452cf4c2957d350ef7f1542bb
3
+ metadata.gz: 7b5969096e2a90c6076f804745cd2722cc88f908
4
+ data.tar.gz: 9f98b301dd9c402b8d3398986366aff7403500ed
5
5
  SHA512:
6
- metadata.gz: 835675748b02dea5f6a78fa93056a4206a416fe52d262fc4122c4790876250f44147a2f44e4f5d95ade1dc2f1e5ad295069edece19ca3f91e34da0be1c3f7619
7
- data.tar.gz: 6ba9b08069785003c2ec92d1b6dc02414d3af6e78b0c5ccbc83bfd2d2d514bf60112d3893ce7b3836a845b40484a275628951910e6274e007fb67ca341169520
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
- ��&)A۱gA]cD�V<_�4F5R~+��Z���;w@Ó[���z�e=�Mu�.�ߑ�C$���,�
2
- ��mz��� ��낔e��D�f��k��&�aA�/�� ~�q >nžMĂ�C��� �/���u���5 F�� ���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, opt={})
45
+ def initialize(location=nil, schema: nil, id_counter: '1')
46
46
 
47
- options = {id_counter: '1'}.merge opt
48
47
 
49
- @id_counter = options[: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 options[:schema] then
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.12
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MDMxMzAwMTc1OFoXDTE3MDMxMzAwMTc1OFowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAMHaX+783wGZuNk4XmPH98CFx3xRRErB9e0GZEWLs0ZX97B8Ygm2ZhgVsFjm
19
- M8aEpNWWoLj3Iv22LGP7dK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QzuifNDi
31
+ OXU=
33
32
  -----END CERTIFICATE-----
34
- date: 2017-01-15 00:00:00.000000000 Z
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.2
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.2
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.0
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.0
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.4
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.4
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.14
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.14
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.8
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