rexslt 0.6.6 → 0.6.7
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 +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexslt.rb +6 -2
- metadata +3 -3
- 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: 6b9f9d1e95abd8795d63744c0613a83fefb69538
|
|
4
|
+
data.tar.gz: b6894d0c8ba12bc0dd496317a0dba27867068d46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f500a58273e176530b31f57eafc970e35f0a804ce150ebd50ce1165b39af263b57fabb1c3f996a902f2f8df94bbf4d54ea1cd23139f28510537d249f5433eee2
|
|
7
|
+
data.tar.gz: a5eceb8b10c79f6607fe721869e6221b35e7bf75ea5b24fa94fc8c72441a93398faf9f9ccb5dbfb2b1b0f8b29e679654ce61d3c411215c7efd7552c3a22265b4
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rexslt.rb
CHANGED
|
@@ -8,6 +8,9 @@ require 'rxfhelper'
|
|
|
8
8
|
|
|
9
9
|
# modifications:
|
|
10
10
|
|
|
11
|
+
# 21-May-2016: bug fix: An update to the Rexle gem regarding the new
|
|
12
|
+
# Rexle::Element::Attribute datatype caused the sort_by code
|
|
13
|
+
# to break. This has now been rectified.
|
|
11
14
|
# 04-May-2016: bug fix: disabled the method which strips out all new
|
|
12
15
|
# line spaces, and replaced it with a statement in the
|
|
13
16
|
# read_raw_text() method which strips out space before and
|
|
@@ -140,7 +143,7 @@ class Rexslt
|
|
|
140
143
|
|
|
141
144
|
r = x.element(sort_field);
|
|
142
145
|
|
|
143
|
-
if r.respond_to?(:
|
|
146
|
+
if r.respond_to?(:value) then
|
|
144
147
|
r.value
|
|
145
148
|
else
|
|
146
149
|
data_type == 'text' ? r : r.to_i
|
|
@@ -265,11 +268,12 @@ class Rexslt
|
|
|
265
268
|
sort_node.parent.delete sort_node
|
|
266
269
|
|
|
267
270
|
if sort_field then
|
|
271
|
+
|
|
268
272
|
nodes = nodes.sort_by do |node|
|
|
269
273
|
|
|
270
274
|
r = node.element sort_field
|
|
271
275
|
|
|
272
|
-
if r.is_a? Rexle::Element then
|
|
276
|
+
if r.is_a? Rexle::Element or r.is_a? Rexle::Element::Attribute then
|
|
273
277
|
r.value
|
|
274
278
|
else
|
|
275
279
|
# it's a string
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rexslt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
38j2+6ULVWalsVein3whb7qB6IOvxoSqjz6n7jAKFGHovoXPUqpv5y5Yor23rTrn
|
|
32
32
|
0YwisIc3UkL30g==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-05-
|
|
34
|
+
date: 2016-05-21 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: rxfhelper
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: '0'
|
|
101
101
|
requirements: []
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 2.
|
|
103
|
+
rubygems_version: 2.5.1
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 4
|
|
106
106
|
summary: Rexslt is an XSLT processor written purely in Ruby
|
metadata.gz.sig
CHANGED
|
Binary file
|