rexle-css 0.1.4 → 0.1.5
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 +1 -2
- data.tar.gz.sig +2 -1
- data/lib/rexle-css.rb +11 -7
- 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: 71187815eb116b425d36fbb19c393ae7cc920f73
|
4
|
+
data.tar.gz: c59cfa0b6671b4f37ab98caf9ed4fb40ad50caa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a953c9448edcd82d399fcb385448990f39e534ed79e412b8032b41c1914c33d7351df0caa34b311cb99ee8a5bdffcaa856d0777830cf191bdb5ce9533450336
|
7
|
+
data.tar.gz: 0c986ba308aa6ded79b4373c47d738f3c6676e3721d37039fef7cae8976c5abf4e9abf1af28bf6ee72bd04233a791e399a8c04598f87b730bc16a45022756d6e
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
6���xa!�u�n]����7V�l](Ĭ�,|E�bk�����I��W$#I�UבH��#q#nu3=m�@\w�7�
|
1
|
+
**%�0�*�:w:��[���� v�C8���3�'��+j�G}���W<:\�$�\;��/��uk��IzT�?�~(���i�Υ$���q�Ŀ'���Of?�Ѧ����A�`=�IH�Y��zj-������ǤSᗰ����GM*�,]:MY�M�"��r%��������%���<�Z�N�b��T����"~u�D�)X���"�Ʈn�]���H�w����
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
"eZ��G���Ll�gj9�* PMZ� �)u�e�l-������b6�82?��٧�WQxQ�\�J!�f"�^D�)��[@m�.E���hEN�S����S{p�K"=�F�R0�'o�k�`�L�}S�{����&x��e᪙x��K�m�@��9�������)�k��{4�S}��ͩ�&A�~�B����l ���p��6�O�o����z��7^�f���"��m��2�Q
|
2
|
+
�ROM^�xrxJk���\I��
|
data/lib/rexle-css.rb
CHANGED
@@ -6,12 +6,16 @@ class RexleCSS
|
|
6
6
|
|
7
7
|
attr_reader :to_xpath
|
8
8
|
|
9
|
-
def initialize(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
def initialize(raw_selector)
|
10
|
+
|
11
|
+
selector = raw_selector\
|
12
|
+
.gsub(/(\w+)#(\w+)/,'\1[@id="\2"]')\
|
13
|
+
.gsub(/#(\w+)/,'.[@id="\1"]')\
|
14
|
+
.gsub(/\.(\w+)/,'[@class="\1"]')\
|
15
|
+
.gsub(/ /,'//').gsub(/>/,'/')\
|
16
|
+
.gsub(/^\*$/,'.')
|
17
|
+
|
18
|
+
@to_xpath = '//' + selector
|
15
19
|
end
|
16
20
|
|
17
|
-
end
|
21
|
+
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
yN4MXUX2zdaZkboeXfzIBjOAdrZpqVMCQIV0CYDEjpPesFeE9oP3PrX1EEwcr+et
|
32
32
|
+cjku6sb+bV0/w==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-11-
|
34
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
35
35
|
dependencies: []
|
36
36
|
description:
|
37
37
|
email: james@r0bertson.co.uk
|
metadata.gz.sig
CHANGED
Binary file
|