polyrex 1.3.6 → 1.4.0

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: 104bc39885ae16423302c809bbd147cba7006d31b1d386b6a2e32997725997a6
4
- data.tar.gz: f567d9c395085eda997b252c73e178fb98ec19acf933a0052bbac88ac2bd4687
3
+ metadata.gz: 96b636287f31181cee8839e54a4daa4aaea2028d3f81905bdea129d716cf782d
4
+ data.tar.gz: 29dddede31989032bcd9736513556c76e4714303bf25f1a3005690403a940977
5
5
  SHA512:
6
- metadata.gz: 545b1b74fce87f9a624d76a885560c0cead98e00d96ca8bdc4fad483d0e155f03cbd6704e025940275914206ebae7f7d94e501a19f78ab14cbdecd6ef4f5c5b9
7
- data.tar.gz: ed15d6cf1e7a2a465e4ddd2ee99413ac20e7200d07558b19cc0e53792d6089e2499ee981e473d946a39b4ff0af0486967e60567a928aa26819f4255faf64ae03
6
+ metadata.gz: d49d8b6d854d265d95c260483beb1defc4d210db272e7a8fc6e57ed67bbc08f07ff461bcf96d81c41a248b1a3131f326251e752b01fefdf725b806f57b28403b
7
+ data.tar.gz: 8dfc539223f2c6b331e64086f0e320d6670bea3a3fb1a24ccb9a8963e723b206a7c3630e0628ec6345f5503fc5562509cbcbe7bf389d73deda0c4ece71c62e87
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- grp3�MzJIiqLIl��XOa�^dJ�:�}Uo������Gl�i��)/'
2
- $ZA[�"�%T2/h�8���o(f�\ս
3
- �=TPG���)Ņ(ڻ���%�f�S��Qk��L8SDN!y���D��A�n�i`�`&r�78�����V-UdV.5$cH��8鯑��C���G�f��RP"�!W�X�
1
+ }2x>ؠ-W%��op{+��;ê��~c��HlS���rG,m q|Pt&�9��5;ԣ��ˮ�<f�7n3�Kj�i�@�_�1��]vA���N��*�
2
+ �깦5��[X�ل�T(�!�<I^�l:����0ckG��I�й�8�ƋhS
3
+ ���s�S��
data/lib/polyrex.rb CHANGED
@@ -39,7 +39,7 @@ class PolyrexException < Exception
39
39
  end
40
40
 
41
41
  class Polyrex
42
- include RXFHelperModule
42
+ include RXFReadWriteModule
43
43
 
44
44
  attr_accessor :summary_fields, :xslt_schema, :id_counter,
45
45
  :schema, :type, :delimiter, :xslt, :format_masks
@@ -54,13 +54,13 @@ class Polyrex
54
54
 
55
55
  if location then
56
56
 
57
- s, type = RXFHelper.read(location)
57
+ s, type = RXFReader.read(location)
58
58
  return import(s) if s =~ /^\<\?polyrex\b/
59
59
 
60
60
  @local_filepath = location if type == :file or type == :dfs
61
61
 
62
62
  openx(s)
63
-
63
+ puts 'before schema' if @debug
64
64
  if schema then
65
65
 
66
66
  fields = @schema[/\/.*/].scan(/\[([^\]]+)/).map \
@@ -173,7 +173,7 @@ class Polyrex
173
173
 
174
174
  def parse(x=nil, options={})
175
175
 
176
- buffer, type = RXFHelper.read(x)
176
+ buffer, type = RXFReader.read(x)
177
177
 
178
178
  if type == :unknown and buffer.lines.length <= 1 then
179
179
  raise PolyrexException, 'File not found: ' + x.inspect
@@ -724,6 +724,8 @@ xsl_buffer = '
724
724
 
725
725
  def openx(s)
726
726
 
727
+ puts 'inside openx' if @debug
728
+
727
729
  if s[/</] # xml
728
730
  buffer = s
729
731
  elsif s[/\[/] then # schema
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  rivEdfkvT/8GV5Nip0lSS+cuk20UhOdJR9QIcCJp0QL4NUik9VYljGbQbQQS6Isc
36
36
  iIwZ6uFJfcp9SWBRrSZmlI52
37
37
  -----END CERTIFICATE-----
38
- date: 2022-01-27 00:00:00.000000000 Z
38
+ date: 2022-02-21 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: polyrex-objects
@@ -106,7 +106,7 @@ dependencies:
106
106
  version: '1.9'
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 1.9.1
109
+ version: 1.9.5
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  version: '1.9'
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 1.9.1
119
+ version: 1.9.5
120
120
  description:
121
121
  email: digital.robertson@gmail.com
122
122
  executables: []
@@ -143,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.7.10
146
+ rubygems_version: 3.2.22
148
147
  signing_key:
149
148
  specification_version: 4
150
149
  summary: A flavour of XML for storing and retrieving records in a Polyrex hierarchy
metadata.gz.sig CHANGED
Binary file