rexle-css 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rexle-css.rb +4 -2
- metadata +27 -24
- metadata.gz.sig +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b0650341f51fe6fedf83c60cc436df196f30ae7c9b5319230816d1af0a9864e1
|
4
|
+
data.tar.gz: 46343b4535e6d106258a0e62e44a6a72a3862fc562d256838a17316f2318831b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff674fbfd0467e830411f0c4051f68c62f135cef89834f25b5d7b4a1588f72d093c502dfcd94613814470d02aa1c5597f63c0a9c1a64ce216f19144f1ed9188
|
7
|
+
data.tar.gz: ca542515d089111a3f03baca7abbc723670e3a2bc91d6fa24261f67234fa3fe976429c7a50acda94e82ce9fba388eb845cd3074368d5ca3035a2f604b3a26184
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle-css.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# file: rexle-css.rb
|
4
4
|
|
5
5
|
# view test data at
|
6
|
-
# http://
|
6
|
+
# http://a0.jamesrobertson.eu/rorb/r/gemtest/rexle-css/testdata_rexle-css.rdx
|
7
7
|
|
8
8
|
class RexleCSS
|
9
9
|
|
@@ -17,7 +17,9 @@ class RexleCSS
|
|
17
17
|
.gsub(/\.(\w+)/,'[@class="\1"]')\
|
18
18
|
.gsub(/ /,'//').gsub(/>/,'/')\
|
19
19
|
.gsub(/^\*$/,'.')\
|
20
|
-
.gsub(/(\w+):first-child/,'\1[1]')
|
20
|
+
.gsub(/(\w+):first-child/,'\1[1]')\
|
21
|
+
.gsub(/\[(?<=)(\w+=)(\w+)/,'[@\1"\2"')
|
22
|
+
|
21
23
|
|
22
24
|
@to_xpath = '//' + selector
|
23
25
|
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.
|
4
|
+
version: 0.2.0
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwODA5MTYwMjE4WhcN
|
15
|
+
MjAwODA4MTYwMjE4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC55X6j
|
17
|
+
Sp/BtTVAW1+CcCMy3NIp2qffvtr9V65lGPIfkcp2h3Ny6p9iZS4VrhTMG1RuwXMq
|
18
|
+
dHXKk5hL619T5xSKNIwIq8htWrtVxrEg9lvMayAw6zJ5eiN8DAc53CLinkh1P7JO
|
19
|
+
MpGkrFz9gyQKlv2DhtJCvhf88XaBNsUKRDHyFZ6RuB65/P+P4hs0BbBCbnVUp+m3
|
20
|
+
rr3JW7xQ/7co+l76oevzkfJK2FYGLCbwJ9181/0L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+U6zNfoFBFzNxlMLTgve/mSNNaaZFzvwzLUBZ4XfcN845NuYUGK
|
36
|
+
lYWnwtM1t297IAieU1xwkFbB
|
33
37
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
38
|
+
date: 2019-08-09 00:00:00.000000000 Z
|
35
39
|
dependencies: []
|
36
40
|
description:
|
37
41
|
email: james@jamesrobertson.eu
|
@@ -59,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
63
|
- !ruby/object:Gem::Version
|
60
64
|
version: '0'
|
61
65
|
requirements: []
|
62
|
-
|
63
|
-
rubygems_version: 2.6.8
|
66
|
+
rubygems_version: 3.0.1
|
64
67
|
signing_key:
|
65
68
|
specification_version: 4
|
66
69
|
summary: Transforms a CSS selector to an XPath
|
metadata.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
H������7yK
|
2
|
+
E�꼲od�v�S�l+jv��Rk�M�3pfp�]C&@�i�
|
3
|
+
=�����.�wT�<3�|�+�ڢR+YcݗO�����>��l!��U�V�f\j�\
|
4
|
+
L���`Bwr�4��i�����y0(����^\�|��VX&�#���in��Yo�}�dq��$� �����%S���P�JL��:��a�b�"���]wލ�D�����p�@��J��6�N��"��b��K�)�p:$<x-X ������ &70��i�u�<�j�'�Ȥ�`
|