dynarex 1.7.27 → 1.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +6 -6
- 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: d8903447f1a72a48dffb56ea581f2ad1680fdc0e
|
|
4
|
+
data.tar.gz: 50be4e5888225d8f5e27ac8ad5110f09b1cf0b54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c70048158e28f3199130946548ff88cb24112cc099663d0ed23b8df41b1d55c23d14b614d759620faed04af9ccb44c880cedd2042faa017950e903f6eb64733d
|
|
7
|
+
data.tar.gz: 4661e4f9ee237812e3a2820ae885b2804503d57a3b2871127703851f8411ad64929f1fc1fbc82db4a4508bc38cc6c3c13411363b6c3a5ef76e680fd2f73e8e7e
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -67,17 +67,17 @@ class Dynarex
|
|
|
67
67
|
# Dynarex.new '<contacts><summary><schema>contacts/contact(name,age,dob)</schema></summary><records/></contacts>'
|
|
68
68
|
|
|
69
69
|
def initialize(rawx=nil, username: nil, password: nil, schema: nil,
|
|
70
|
-
default_key: nil, json_out: true)
|
|
70
|
+
default_key: nil, json_out: true, debug: false)
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
@username, @password, @schema, @default_key, @json_out = username,
|
|
74
|
-
password, schema, default_key, json_out
|
|
73
|
+
@username, @password, @schema, @default_key, @json_out, @debug = username,
|
|
74
|
+
password, schema, default_key, json_out, debug
|
|
75
|
+
|
|
75
76
|
@delimiter = ''
|
|
76
77
|
@spaces_delimited = false
|
|
77
78
|
@order = 'ascending'
|
|
78
79
|
@limit = nil
|
|
79
80
|
@records, @flat_records = [], []
|
|
80
|
-
@json_out = json_out
|
|
81
81
|
|
|
82
82
|
openx(rawx.clone) if rawx
|
|
83
83
|
|
|
@@ -785,7 +785,7 @@ EOF
|
|
|
785
785
|
|
|
786
786
|
@summary.each do |key,value|
|
|
787
787
|
|
|
788
|
-
v = value.gsub('>','>')\
|
|
788
|
+
v = value.to_s.gsub('>','>')\
|
|
789
789
|
.gsub('<','<')\
|
|
790
790
|
.gsub(/(&\s|&[a-zA-Z\.]+;?)/) {|x| x[-1] == ';' ? x \
|
|
791
791
|
: x.sub('&','&')}
|
|
@@ -1157,7 +1157,7 @@ EOF
|
|
|
1157
1157
|
|
|
1158
1158
|
@fields = @schema[/([^(]+)\)$/,1].split(/\s*,\s*/).map(&:to_sym)
|
|
1159
1159
|
|
|
1160
|
-
@fields << @default_key if @default_key and \
|
|
1160
|
+
@fields << @default_key if @default_key and not @default_key.empty? and \
|
|
1161
1161
|
!@fields.include? @default_key.to_sym
|
|
1162
1162
|
|
|
1163
1163
|
if @schema and @schema.match(/(\w+)\(([^\)]+)/) then
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynarex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
7ELNqcn7p7un/tZgEIU+gYBxvhUWftO9MF8fbJsCaMyfSZjXxXM+6+3Q0lBpYCSS
|
|
32
32
|
nuO5b3MqW2dcBw==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-import
|
metadata.gz.sig
CHANGED
|
Binary file
|