polyrex 1.4.0 → 1.4.1
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 +6 -2
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d41c1df7395c2dcc010153902223cf24fd73e40df7e4760fd52c3a1a2e1001d
|
4
|
+
data.tar.gz: d45fbf80463978ca670db7f83c0a5d52072fee396dc9585bc220c2509a279dc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7688c1faacb46605abda5ea71faa119b5f7ca5ab497b366424dd96c0c723b6c23d7c426cf1c23a3c98654346b4dcd5728595174f8a15b177295cc353dd2737c
|
7
|
+
data.tar.gz: 0db28f418693178a88708b7bcf1cb838a2e7d37437196638a0e327de8140bfea60c11c544454669d4aed8d7ba8f6a03df2b6a366a2d96a39535f3fea5f6228e7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/polyrex.rb
CHANGED
@@ -44,11 +44,11 @@ class Polyrex
|
|
44
44
|
attr_accessor :summary_fields, :xslt_schema, :id_counter,
|
45
45
|
:schema, :type, :delimiter, :xslt, :format_masks
|
46
46
|
|
47
|
-
def initialize(location=nil, schema: nil, id_counter: '1',
|
47
|
+
def initialize(location=nil, schema: nil, id_counter: '1',
|
48
|
+
delimiter: '', debug: false)
|
48
49
|
|
49
50
|
@id_counter, @debug = id_counter, debug
|
50
51
|
@format_masks = []
|
51
|
-
@delimiter = ''
|
52
52
|
|
53
53
|
self.method(:schema=).call(schema) if schema
|
54
54
|
|
@@ -77,6 +77,8 @@ class Polyrex
|
|
77
77
|
|
78
78
|
@polyrex_xslt = RecordxXSLT.new
|
79
79
|
#@parent_node = @doc.root if @doc
|
80
|
+
|
81
|
+
set_delimiter(delimiter)
|
80
82
|
end
|
81
83
|
|
82
84
|
def add(pxobj)
|
@@ -110,6 +112,8 @@ class Polyrex
|
|
110
112
|
end
|
111
113
|
end
|
112
114
|
|
115
|
+
alias set_delimiter delimiter=
|
116
|
+
|
113
117
|
def each_recursive(parent=self, level=0, &blk)
|
114
118
|
|
115
119
|
parent.records.each.with_index do |x, index|
|
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
rivEdfkvT/8GV5Nip0lSS+cuk20UhOdJR9QIcCJp0QL4NUik9VYljGbQbQQS6Isc
|
36
36
|
iIwZ6uFJfcp9SWBRrSZmlI52
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
38
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: polyrex-objects
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
version: '1.9'
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.9.
|
109
|
+
version: 1.9.8
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -116,7 +116,7 @@ dependencies:
|
|
116
116
|
version: '1.9'
|
117
117
|
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 1.9.
|
119
|
+
version: 1.9.8
|
120
120
|
description:
|
121
121
|
email: digital.robertson@gmail.com
|
122
122
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|