polyrex-links 0.1.10 → 0.2.0
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/polyrex-links.rb +7 -3
- 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: 41424c9dc0def1657a8c5490cfbacf005b7a2cef
|
|
4
|
+
data.tar.gz: d63105703070c31f9526c95b9522a11380f17846
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20905b20dd68c14e4edc7a8ad80381be0aac6cfb2ce7a6ccc74e779e6c67aad4da878b92d04eb0f86bff79ed37df58a4e61c03436ced0ee6e4d6f6d692477ef1
|
|
7
|
+
data.tar.gz: c7f5bf88e9a16b74eb17ab975c5fac0fb73bed5ac65bf99721596d7a3dcb4685d7f631543c61c2a44b43b0129999ee48dd676c3b0c1960e86942a869959185e4
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/polyrex-links.rb
CHANGED
|
@@ -6,9 +6,10 @@ require 'polyrex'
|
|
|
6
6
|
|
|
7
7
|
class PolyrexLinks < Polyrex
|
|
8
8
|
|
|
9
|
-
def initialize(x='links/link[name,url]')
|
|
9
|
+
def initialize(x='links/link[name,url]', delimiter: ' # ', debug: false)
|
|
10
10
|
super(x)
|
|
11
|
-
self.delimiter =
|
|
11
|
+
self.delimiter = delimiter
|
|
12
|
+
@debug = debug
|
|
12
13
|
end
|
|
13
14
|
|
|
14
15
|
def locate(raw_path)
|
|
@@ -27,7 +28,10 @@ class PolyrexLinks < Polyrex
|
|
|
27
28
|
|
|
28
29
|
# return the found path along with any remaining string which
|
|
29
30
|
# it didn't find, or it will return nil.
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
puts "c: %s\npath: %s\nr: %s" % [c, path, r].map(&:inspect) if @debug
|
|
33
|
+
|
|
34
|
+
r ? [r, path.sub(c.join('/'),'')] : nil
|
|
31
35
|
end
|
|
32
36
|
|
|
33
37
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polyrex-links
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
BPwFsWAbLaLB8f5sRH9pSgr7gqm3ky2fSBk//wtYHz86+AKvwZ0E3pvp6FuWl5Az
|
|
31
31
|
iPQ=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2018-
|
|
33
|
+
date: 2018-04-01 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: polyrex
|
metadata.gz.sig
CHANGED
|
Binary file
|