rexle 1.4.12 → 1.4.13

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
- SHA1:
3
- metadata.gz: ee5025a1b7024bbabc6dcc59e61684a51591e74a
4
- data.tar.gz: 0ebca98f0dde0b6e0beabdfb2e4e0420df6733b5
2
+ SHA256:
3
+ metadata.gz: de0cb527844ed9922d9339bf5916ac540c483c3c6eacade3b821316599550662
4
+ data.tar.gz: e209722768c1e6601de0c03f1f152f9f8f2f70f453af1a4c203ccfaab0396771
5
5
  SHA512:
6
- metadata.gz: 3ff4dcf7c5def8ade8af5ac86f43465822462f91f5ee359b151333b57f25c31ebae3e0e2169699dfb6f7e54b7b43338e430f7c7e065fccdece7a93b76c1e7161
7
- data.tar.gz: 458660e545b6368026669851b1092afda165be85225c197d28fa83c0adb583b60b00f6bc1d5224f951dbcd6648c38faf023e7a58df040c2ce4131efc621a0732
6
+ metadata.gz: e7a9ea16dfd0f189f124f66c79ae70cfcc59f9fc9ac0ebb61eb41e924fce2c5fed60dbed5bbf9202831abf9720af8b1165ae2f585234798e6f163da2942890d3
7
+ data.tar.gz: 5271e22f60e7d6e92ac080c65d60da3cc5b3e7f7b57cd899322e0e238b7802da8f5bce3be4523d89055d8337d56ed9f2e6a42c2e7dcf14a9adffb7f80d5a56c7
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -11,6 +11,8 @@ require 'backtrack-xpath'
11
11
 
12
12
 
13
13
  # modifications:
14
+
15
+ # 02-Oct-2018: feature: Added Rexle::Elements#last
14
16
  # 18-Jan-2018: bug fix: An Element's attributes are now cloned too
15
17
  # 16-Sep-2017: improvement: Multiple results are now returned if the
16
18
  # xpath contains an *and* operator
@@ -194,9 +196,12 @@ class Rexle
194
196
  attr_reader :prefixes, :doctype
195
197
  attr_accessor :instructions
196
198
 
197
- def initialize(x=nil, rexle: self)
199
+ def initialize(x=nil, rexle: self, debug: false)
198
200
 
199
- @rexle = rexle
201
+ @rexle, @debug = rexle, debug
202
+
203
+ puts 'inside Rexle' if debug
204
+
200
205
  super()
201
206
 
202
207
  @instructions = [["xml", "version='1.0' encoding='UTF-8'"]]
@@ -1364,6 +1369,7 @@ class Rexle
1364
1369
  end
1365
1370
  end
1366
1371
 
1372
+ def last() @elements.last end
1367
1373
  def length() @elements.length end
1368
1374
  def to_a() @elements end
1369
1375
 
@@ -1586,4 +1592,4 @@ class Rexle
1586
1592
 
1587
1593
  end
1588
1594
 
1589
- end
1595
+ 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.4.12
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,28 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE3MDQxMzEwNTAxNFoXDTE4MDQxMzEwNTAxNFowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAO/USGxYqMJ9dVxCjmOPcM+SHXQYsBZt1y4tios4tNorTiyy2L3aXubilUIe
19
- +9PQ14oMMp3ApZxhXar3D1cgiPYZABHxEkpyM4nQWCfXabOzmLC+K8t3vu3f5eLF
20
- F7SLW4T6X2I3EEEj5WtFTin4B9R+O/WABy4ZYHK0pIRsSR+IJZ6kDkwn+KfzBY3Q
21
- yM0xMehy/gACXCGJJLarANGP8Z5m2w3KCgBYnw6oMOJpV7YM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eJbMdyTmYQb8XIAR5zXu0BHfqKRT1GLg94u03RBsBcno5YqNJ5OU42C+j8GEQt
34
+ nFb3gCj4YFPzQa6OVdSIi/kKW2J8wFxUvI8muMt7lbTaxFJLyK9Qdt/oKxwxXM1t
35
+ Zdf6ufm6l1fXtBUvl0XuKmNH8p6u/7SmI2oqJoV7Oiarx5i1LrpWL8Zc3q9MFaT4
36
+ pzftGMNXyXUyb9mSx4krfsRT
33
37
  -----END CERTIFICATE-----
34
- date: 2018-01-18 00:00:00.000000000 Z
38
+ date: 2018-10-02 00:00:00.000000000 Z
35
39
  dependencies:
36
40
  - !ruby/object:Gem::Dependency
37
41
  name: rexleparser
@@ -140,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
144
  version: '0'
141
145
  requirements: []
142
146
  rubyforge_project:
143
- rubygems_version: 2.6.13
147
+ rubygems_version: 2.7.6
144
148
  signing_key:
145
149
  specification_version: 4
146
150
  summary: Rexle is an XML parser written purely in Ruby
metadata.gz.sig CHANGED
Binary file