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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5372615b4ec91fc55c240cae2a993e641e3c53da03986c7fc68871393953efce
4
- data.tar.gz: c6ded46e9e56dd208c1c8f8babb9675adc54b13b31dc4ca0cbba3c6067e0d739
3
+ metadata.gz: 2867661991a75f28812c00afdf605322ca5aea5dbffea3783c762b35d201bc0e
4
+ data.tar.gz: 836d57982fec58d654e8cec773c1ce91a321c1a02066c47f11a7deba87c78f64
5
5
  SHA512:
6
- metadata.gz: e560695bd9a1179eaa5b96947d24b63f99d81dac67646c12a19211863bce9e604e37f253108b9ce0a449173b6652a5dc7b3024ba494f14b8e6edc9102bd4e606
7
- data.tar.gz: f1cb6159a438012e52f27843d998df8d00c8d16d748b4f28c533535adc76af61bb127c6c7891373c2a1491797f19218570ab4f653da1fc65bfff5665cc5b2690
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, @default_key, @json_out, @debug = \
98
- username, password, schema, default_key, json_out, debug
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
- puts 'dinddd'
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
- reserved = %w(require parent)
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.1
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-25 00:00:00.000000000 Z
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.7.4
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.7.4
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