rexle 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -3
- data.tar.gz.sig +0 -0
- data/lib/rexle.rb +7 -10
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7496a571df008233cd8455b745d22c8aec4f3d
|
4
|
+
data.tar.gz: af785e26c3fe01abcc3dd2de24c7ddb0be4530c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 464648a243509de11f28d7ecfc61a6740dcbd60201d65f9953f975da71f6da3162e7e6e798e08b588a352f47966be740bbe96282eb52171b1fb817c0fcf619f7
|
7
|
+
data.tar.gz: 045532d9461e436cd0312cf4ff915b8c44c66a2bddd1bdce50c7d820d728a35c5839b8f0188d1c5fe25bc28e1d259d02f5994d39c2b853a4a1e58b79e9f80d80
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
�Խ�/~U��H�:�5�~Ŷ��*�+;o�j��V�3��-AH��T�[o���m�|� �K�\
|
3
|
-
�ZY6{YOF~���:G~%M���G�L߸]D��z�B�`�08��6MA�Y�H"t[dR0�o��/b�v���O�F��v��:E��;�R��!��Q!���
|
1
|
+
0r�C7X�1�%�п��?u�<�DZ��E�oQ�t"��ɗ�q�S"�<ht�n`���KΨx����g��_�"~kU|C�j3+_�0If�W/OmB��anl���L�&v�$L~�[<dBpZ$(�<��<0E������ �p��^��s�i�d5$:��3��|Ė�������L�5��[Dt�ߏ�[hG��44l�_@�(�AQB-�a���ݸ��U8�ہmVQ�[��������r��a�;��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle.rb
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
|
3
3
|
# file: rexle.rb
|
4
4
|
|
5
|
-
require 'rexml/document'
|
6
5
|
require 'rexleparser'
|
7
6
|
require 'dynarex-parser'
|
8
7
|
require 'polyrex-parser'
|
9
8
|
require 'rexle-css'
|
10
9
|
require 'cgi'
|
11
|
-
|
10
|
+
|
12
11
|
|
13
12
|
# modifications:
|
14
13
|
|
14
|
+
# 29-Jan-2015: Removed code references to REXML, as it was no longer needed.
|
15
15
|
# 26-Jan-2015: bug fix: An element containing a nil value is now treated as an
|
16
16
|
# empty string when quering with an XPath
|
17
17
|
# 25-Dec-2014: bug fix: script tag is now formatted with expected attributes
|
@@ -274,8 +274,7 @@ class Rexle
|
|
274
274
|
if x then
|
275
275
|
procs = {
|
276
276
|
String: proc {|x| parse_string(x)},
|
277
|
-
Array: proc {|x| x}
|
278
|
-
:"REXML::Document" => proc {|x| scan_doc x.root}
|
277
|
+
Array: proc {|x| x}
|
279
278
|
}
|
280
279
|
|
281
280
|
doc_node = ['doc','',{}]
|
@@ -1060,8 +1059,7 @@ class Rexle
|
|
1060
1059
|
if x then
|
1061
1060
|
procs = {
|
1062
1061
|
String: proc {|x| parse_string(x)},
|
1063
|
-
Array: proc {|x| x}
|
1064
|
-
:"REXML::Document" => proc {|x| scan_doc x.root}
|
1062
|
+
Array: proc {|x| x}
|
1065
1063
|
}
|
1066
1064
|
a = procs[x.class.to_s.to_sym].call(x)
|
1067
1065
|
else
|
@@ -1149,13 +1147,12 @@ class Rexle
|
|
1149
1147
|
# check if the XML string is a dynarex document
|
1150
1148
|
if x[/<summary>/] then
|
1151
1149
|
|
1152
|
-
|
1153
|
-
recordx_type = doc.root.text('recordx_type')
|
1150
|
+
recordx_type = x[/<recordx_type>(\w+)/m,1]
|
1154
1151
|
|
1155
1152
|
if recordx_type then
|
1156
1153
|
procs = {
|
1157
1154
|
'dynarex' => proc {|x| DynarexParser.new(x).to_a},
|
1158
|
-
'polyrex' => proc {|x| PolyrexParser.new(x).to_a},
|
1155
|
+
#'polyrex' => proc {|x| PolyrexParser.new(x).to_a},
|
1159
1156
|
'polyrex' => proc {|x| RexleParser.new(x).to_a}
|
1160
1157
|
}
|
1161
1158
|
procs[recordx_type].call(x)
|
@@ -1202,4 +1199,4 @@ class Rexle
|
|
1202
1199
|
[node.name, node.text.to_s, attributes, *children]
|
1203
1200
|
end
|
1204
1201
|
|
1205
|
-
end
|
1202
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
UOGKUMV5RApHDnC0ywMYNe0HK7qMSTP5YLKs8JUjNxpc5jl8+o3D3sHkNN4DzbQm
|
32
32
|
jVfzDZ+niKvAUA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-01-
|
34
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexleparser
|
metadata.gz.sig
CHANGED
Binary file
|