dynarex 1.9.1 → 1.9.2
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/dynarex.rb +10 -4
- data.tar.gz.sig +0 -0
- metadata +16 -16
- 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: 2867661991a75f28812c00afdf605322ca5aea5dbffea3783c762b35d201bc0e
|
4
|
+
data.tar.gz: 836d57982fec58d654e8cec773c1ce91a321c1a02066c47f11a7deba87c78f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 508fed1ca1874abf189720f43b98e5a69a3a211b89150b3d2e101e78dcc39d6ba0620cc2c6513587487a15ef8c6e0e35669ce250dcf0cb7667cb4d4350c8a783
|
7
|
+
data.tar.gz: 4074667106bad745960eaacd6a053f5e08111ae93d8585ebe91285c3546a75a9ba90d628694121f60258a4e64d4b7ed47660889295d112389364b854dde441b5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dynarex.rb
CHANGED
@@ -94,8 +94,8 @@ class Dynarex
|
|
94
94
|
|
95
95
|
|
96
96
|
puts 'inside Dynarex::initialize' if debug
|
97
|
-
@username, @password, @schema,
|
98
|
-
|
97
|
+
@username, @password, @schema, = username, password, schema
|
98
|
+
@default_key, @json_out, @debug = default_key, json_out, debug
|
99
99
|
@autosave, @unique = autosave, unique
|
100
100
|
@local_filepath = filepath
|
101
101
|
|
@@ -440,7 +440,7 @@ EOF
|
|
440
440
|
header ? docheader + "--#\n" + out : out
|
441
441
|
|
442
442
|
elsif self.delimiter.length > 0 then
|
443
|
-
|
443
|
+
|
444
444
|
tfo = TableFormatter.new border: false, wrap: false, \
|
445
445
|
divider: self.delimiter
|
446
446
|
tfo.source = self.to_a.map{|x| x.values}
|
@@ -994,6 +994,9 @@ EOF
|
|
994
994
|
raise DynarexException, 'record_name can\'t be nil. Check the schema'
|
995
995
|
end
|
996
996
|
|
997
|
+
puts 'attributes: ' + attributes.inspect if @debug
|
998
|
+
puts '@record_name: ' + @record_name.inspect
|
999
|
+
|
997
1000
|
xml.send(@record_name, attributes) do
|
998
1001
|
item[:body].each do |name,value|
|
999
1002
|
|
@@ -1252,6 +1255,9 @@ EOF
|
|
1252
1255
|
if s.match(ptrn) then
|
1253
1256
|
|
1254
1257
|
@root_name, raw_summary, record_name, raw_fields = s.match(ptrn).captures
|
1258
|
+
reserved = %w(require parent gem)
|
1259
|
+
|
1260
|
+
raise 'reserved keyword: ' + record_name if reserved.include? record_name
|
1255
1261
|
summary, fields = [raw_summary || '',raw_fields].map {|x| x.split(/,/).map &:strip}
|
1256
1262
|
|
1257
1263
|
if fields.include? 'id' then
|
@@ -1260,7 +1266,7 @@ EOF
|
|
1260
1266
|
|
1261
1267
|
create_find fields
|
1262
1268
|
|
1263
|
-
|
1269
|
+
|
1264
1270
|
raise 'reserved keyword' if (fields & reserved).any?
|
1265
1271
|
|
1266
1272
|
else
|
data.tar.gz.sig
CHANGED
Binary file
|
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.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
Wt/hg1iB0cnuzli8yHYtvBQovgFKUdQ7vGKM2IC9ZoWstmfIRwUAdI/Y2eHvUg3z
|
36
36
|
dRm4fWf/5CZ2qPKTB8vb2s4Q
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-01
|
38
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dynarex-import
|
@@ -161,42 +161,42 @@ dependencies:
|
|
161
161
|
name: rowx
|
162
162
|
requirement: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0.7'
|
167
164
|
- - ">="
|
168
165
|
- !ruby/object:Gem::Version
|
169
|
-
version: 0.
|
166
|
+
version: 0.8.0
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0.8'
|
170
170
|
type: :runtime
|
171
171
|
prerelease: false
|
172
172
|
version_requirements: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
|
-
- - "~>"
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: '0.7'
|
177
174
|
- - ">="
|
178
175
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.
|
176
|
+
version: 0.8.0
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0.8'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: table-formatter
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
|
-
- - ">="
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: 0.7.0
|
187
184
|
- - "~>"
|
188
185
|
- !ruby/object:Gem::Version
|
189
186
|
version: '0.7'
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 0.7.1
|
190
190
|
type: :runtime
|
191
191
|
prerelease: false
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- - ">="
|
195
|
-
- !ruby/object:Gem::Version
|
196
|
-
version: 0.7.0
|
197
194
|
- - "~>"
|
198
195
|
- !ruby/object:Gem::Version
|
199
196
|
version: '0.7'
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.7.1
|
200
200
|
- !ruby/object:Gem::Dependency
|
201
201
|
name: kvx
|
202
202
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|