dynarex 1.9.0 → 1.9.4

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: 8e6660d683455358e6a77e1bd0f8d06dd6814d8dabd851060996621d599ce50a
4
- data.tar.gz: 1d49db71ed647c16285f9df9224dedbd51379e51754c24dd05fadc5a8abcde18
3
+ metadata.gz: c401a45ef4beaa3cbd24bbfdb27c9ea98ed97663c68258c0c4df22da5a93b4fe
4
+ data.tar.gz: 106b7cf191a6ae68068c2dd7dca8459f9fdf87a5eaca6ff90f54409dc62a2861
5
5
  SHA512:
6
- metadata.gz: d84184fe51c5674416c47da3759e5cf986fac428de8e7fa25d315f86d30570ca3e3e8ae0f3598b2df5677d2991f20f125e6d5536990d2bae4e2a6e341b4bb391
7
- data.tar.gz: 51a76a88bb2a6f054d11011917e3d2ba815d41adb5c457b97332ff2db31ee17eb298d2f2cd7416678848bee4f0068f69de65129ff8ed3c10fed0e724e4f8d9b7
6
+ metadata.gz: 0da38d16db5aa75bf5fed6264cdcae8397a81e1bfb9a1dcb647e50c9e54074ca3685097e5a04a2ab9478febaec3bdb27bf6fa16de55b858edd6efdde57d88c36
7
+ data.tar.gz: c67ed57227363ed2ca40e6478f1dc9c4a590e24bbb3ca02cb3cda7dc0828853ee1ec900db382c108d83c733325639aefbeba2a0cdb553d0ad081821dfb009470
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
 
@@ -534,7 +534,7 @@ EOF
534
534
  if raw_buffer.is_a? String then
535
535
 
536
536
  buffer = block_given? ? yield(raw_buffer) : raw_buffer.clone
537
- string_parse buffer
537
+ string_parse buffer.force_encoding('UTF-8')
538
538
 
539
539
  else
540
540
  foreign_import x
@@ -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
@@ -1305,7 +1311,7 @@ EOF
1305
1311
  @local_filepath = s
1306
1312
 
1307
1313
  if FileX.exists? s then
1308
- buffer = FileX.read s
1314
+ buffer = FileX.read(s).force_encoding("UTF-8")
1309
1315
  elsif @schema
1310
1316
  dynarex_new @schema, default_key: @default_key
1311
1317
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- G�$�o ������'���̼�8��g%=�d�ߜ&��
2
- ϗ�#M���_���}��,>��k��ɜ�TQrL��� �Y�FC��"{�^D\��=�ag����O%�<�/���9�U~T�� C?LJ���6w��ufyX��r� ���{K���V ����-r���4��T�t�{8g�HQ�<��+�*A_��"��~բgC�k��{�Y�"|����-�X�w�M�Qr�i��S�1�*2�48�q�c??A!ֹ���P�B�E�<ώ&���$L��N'߅Th��oO;�T9]
3
- ��^�9�؁������NY3����Ǿ�xGZ4� >7&���������N�@g���4� � ^�+kw��Ax��ɏ B��A���֐
1
+ 9I~1��y�dM�hh�:�q��g��pܚ�T��'��^�# �b��.HU�)<����@)�����棻����BuJ��#�Ͻl 3p`]�(q8@/_�P��,te�lxr��3��]杏�(w`$
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.0
4
+ version: 1.9.4
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-21 00:00:00.000000000 Z
38
+ date: 2022-02-19 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: dynarex-import
@@ -81,22 +81,22 @@ dependencies:
81
81
  name: rexslt
82
82
  requirement: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: 0.7.0
87
84
  - - "~>"
88
85
  - !ruby/object:Gem::Version
89
86
  version: '0.7'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 0.7.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 0.7.0
97
94
  - - "~>"
98
95
  - !ruby/object:Gem::Version
99
96
  version: '0.7'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 0.7.0
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: dynarex-xslt
102
102
  requirement: !ruby/object:Gem::Requirement
@@ -141,82 +141,82 @@ dependencies:
141
141
  name: rxraw-lineparser
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: 0.2.0
147
144
  - - "~>"
148
145
  - !ruby/object:Gem::Version
149
146
  version: '0.2'
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 0.2.0
150
150
  type: :runtime
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- version: 0.2.0
157
154
  - - "~>"
158
155
  - !ruby/object:Gem::Version
159
156
  version: '0.2'
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 0.2.0
160
160
  - !ruby/object:Gem::Dependency
161
161
  name: rowx
162
162
  requirement: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0.7'
166
+ version: '0.8'
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- version: 0.7.4
169
+ version: 0.8.0
170
170
  type: :runtime
171
171
  prerelease: false
172
172
  version_requirements: !ruby/object:Gem::Requirement
173
173
  requirements:
174
174
  - - "~>"
175
175
  - !ruby/object:Gem::Version
176
- version: '0.7'
176
+ version: '0.8'
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: 0.7.4
179
+ version: 0.8.0
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
203
203
  requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: '1.0'
204
207
  - - ">="
205
208
  - !ruby/object:Gem::Version
206
209
  version: 1.0.1
207
- - - "~>"
208
- - !ruby/object:Gem::Version
209
- version: '1.1'
210
210
  type: :runtime
211
211
  prerelease: false
212
212
  version_requirements: !ruby/object:Gem::Requirement
213
213
  requirements:
214
+ - - "~>"
215
+ - !ruby/object:Gem::Version
216
+ version: '1.0'
214
217
  - - ">="
215
218
  - !ruby/object:Gem::Version
216
219
  version: 1.0.1
217
- - - "~>"
218
- - !ruby/object:Gem::Version
219
- version: '1.1'
220
220
  description:
221
221
  email: digital.robertson@gmail.com
222
222
  executables: []
@@ -243,8 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 2.7.10
246
+ rubygems_version: 3.2.22
248
247
  signing_key:
249
248
  specification_version: 4
250
249
  summary: The Dynarex gem creates, reads, updates or delete rows of Dynarex flavoured
metadata.gz.sig CHANGED
Binary file