rexslt 0.6.6 → 0.6.7

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
  SHA1:
3
- metadata.gz: 4dbbe98957afc6c78b725745365f82a3660f6706
4
- data.tar.gz: a77613d38f753e5f78d6e4c1051c5f61f4bc66f8
3
+ metadata.gz: 6b9f9d1e95abd8795d63744c0613a83fefb69538
4
+ data.tar.gz: b6894d0c8ba12bc0dd496317a0dba27867068d46
5
5
  SHA512:
6
- metadata.gz: 5e38b0b15a2c5a3946c4062169c6d59cc374a27e0f59faf4927f43f01ecdabc767858395347af30b760537c44ed0871a8e0c575ec117e0eba0e6f6cfea0744da
7
- data.tar.gz: d8c0cfa937bf54c2d92f106b7156ea9b1f12d12cbed65f445ca371f56d4371b9eb40c8c7659336a747e276d4fbf381be5875b7d6de4891853897ee6b9c365e33
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?(:text) then
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.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-04 00:00:00.000000000 Z
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.4.8
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