rexle-css 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -2
- data/lib/rexle-css.rb +5 -1
- metadata +19 -19
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 016d0fe1666c30569830ddadce886bda414045ff
|
4
|
+
data.tar.gz: ca9f8784b3455df4ac087833ced23bfb233cb807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4ce24b66a02be8d5496788adb236d98d7d5fa7f6f719b408ef9dfb61b351596e4f42227811ea6b4b88c7584cca098f1747f89ed9c762ab502b1b930736456bc
|
7
|
+
data.tar.gz: aea30d136c8e634c55285057123cc025467aae29131485e827835dd7675c91b15813da84740c9ed8710395811ecb232cea0cb02b4f641f0cc63b6607961d8deb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
�
|
1
|
+
d���J�����S[1���PMΩ@����
|
2
|
+
ɶ�XQ|p�̶�kL#F�Л���pz��p�_%�A��15
|
3
|
+
C�`:yYC*��<am��ջ�owngx���%t&u�F�s4���XJ5�|�K�n������5z@��Ėv���7��8�WE�P�R���y���x�w���
|
data/lib/rexle-css.rb
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
|
3
3
|
# file: rexle-css.rb
|
4
4
|
|
5
|
+
# view test data at
|
6
|
+
# http://rorbuilder.info/r/gemtest/rexle-css/testdata_rexle-css.rdx
|
7
|
+
|
5
8
|
class RexleCSS
|
6
9
|
|
7
10
|
attr_reader :to_xpath
|
@@ -13,7 +16,8 @@ class RexleCSS
|
|
13
16
|
.gsub(/#(\w+)/,'.[@id="\1"]')\
|
14
17
|
.gsub(/\.(\w+)/,'[@class="\1"]')\
|
15
18
|
.gsub(/ /,'//').gsub(/>/,'/')\
|
16
|
-
.gsub(/^\*$/,'.')
|
19
|
+
.gsub(/^\*$/,'.')\
|
20
|
+
.gsub(/(\w+):first-child/,'\1[1]')
|
17
21
|
|
18
22
|
@to_xpath = '//' + selector
|
19
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle-css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,29 +12,29 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE3MDkwNzExNTY0MloXDTE4MDkwNzExNTY0MlowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAOjT3QkZTE6UsvfD+Iu8HCEBudNv+VyVxxrGJRdAnLJPPFhc8X6NEZlHyYBY
|
19
|
+
G0NBu/JOTi8Lm33ys1BPoYxZHEkMG/2FXBbiJweMI9b9AvPKBh5VmX7prNNZ5twB
|
20
|
+
nLwuqTeSEnXKCl058tZslaPAtlEYkTCNCK2DctLsIF0L334Mjf9MX1//R4iMhmvO
|
21
|
+
YFJ/LVgKuuKcPi1+s9p3Qz0AEw7VofdaccqZTDz9YQzIO4IUIjRm4hu+3qHLr+2Y
|
22
|
+
v+3YOY9OGwn18VqbSuvvid4HWvBx4Ay3fM5GAOmSMGT8GOHfdyZf4kUuwdRI+RxF
|
23
|
+
9mj1EHb9+7KRTRTFv1RcS/HHLk8CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU0SeTrsQ8sSb2C6rxb5Ug+Sw0X8YwJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
+
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAWfToHF2m
|
27
|
+
FkGrwYdmxGzYtF+R0INCDd8ZLjN5+Gp4vryUVhKINpOIn/EhksjfptZqfH4UEaUQ
|
28
|
+
FKKbOrcu8XORyAJj/NnUD1ZKCjWvAzSfIONf3P7BhcDQ7vfm2MYmh7R/fr5/GwQG
|
29
|
+
02F9HGfKp6V7x1su24aWc4xUA1y+TLwT+y55UqsqbC8Ew5Tx/sc+AW2ezqJgyUGd
|
30
|
+
yC2PCMqmuc9Z1igZL3Buk7/Iy3CsNogv4kVCBDYDcHDqHxpEbKrHpm4ZYmRVOXZY
|
31
|
+
J49iHr3X+M12xbIELbPqh9J7jZMOQJnU1zjzaHi2ZHGkQM27lekH5r0bktsPerIw
|
32
|
+
+JxohxbFN+ExDA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
|
-
email: james@
|
37
|
+
email: james@jamesrobertson.eu
|
38
38
|
executables: []
|
39
39
|
extensions: []
|
40
40
|
extra_rdoc_files: []
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.6.8
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Transforms a CSS selector to an XPath
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
�
|
2
|
-
V�u���`1P��×yH]��wP�Ie�8y��0,��;�w� &Q�zW���>������!F!��
|
1
|
+
��� D�@y{������VX��tLWm���7�lE��|_��I>O��dP�
|