dynarex 1.7.27 → 1.7.28

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: 9b70101593257a35564a9bd6d6c46f7d6cb2ca49
4
- data.tar.gz: f73c69af907b23fcd18e2eab0c2665e77af52457
3
+ metadata.gz: d8903447f1a72a48dffb56ea581f2ad1680fdc0e
4
+ data.tar.gz: 50be4e5888225d8f5e27ac8ad5110f09b1cf0b54
5
5
  SHA512:
6
- metadata.gz: 20140cd68148d7e2c2471fa41d5138f8fa93233460c94fce2794b64d855fab4ce0c9f114dc557ba305937f2d92ac5d9ad57af7eb4e19070f04b49f0d485f254a
7
- data.tar.gz: ea2fc97ff9a89e51fa787908618acfb1b8fa023f3c0287daff1604eba1b7d7a4b834e0a1e3bf8eb7f455d844565c2700d2c5483fa1a1572d3ed68b29a0fd065b
6
+ metadata.gz: c70048158e28f3199130946548ff88cb24112cc099663d0ed23b8df41b1d55c23d14b614d759620faed04af9ccb44c880cedd2042faa017950e903f6eb64733d
7
+ data.tar.gz: 4661e4f9ee237812e3a2820ae885b2804503d57a3b2871127703851f8411ad64929f1fc1fbc82db4a4508bc38cc6c3c13411363b6c3a5ef76e680fd2f73e8e7e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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('>','&gt;')\
788
+ v = value.to_s.gsub('>','&gt;')\
789
789
  .gsub('<','&lt;')\
790
790
  .gsub(/(&\s|&[a-zA-Z\.]+;?)/) {|x| x[-1] == ';' ? x \
791
791
  : x.sub('&','&amp;')}
@@ -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.27
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: 2017-11-28 00:00:00.000000000 Z
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