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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71187815eb116b425d36fbb19c393ae7cc920f73
4
- data.tar.gz: c59cfa0b6671b4f37ab98caf9ed4fb40ad50caa0
3
+ metadata.gz: 016d0fe1666c30569830ddadce886bda414045ff
4
+ data.tar.gz: ca9f8784b3455df4ac087833ced23bfb233cb807
5
5
  SHA512:
6
- metadata.gz: 6a953c9448edcd82d399fcb385448990f39e534ed79e412b8032b41c1914c33d7351df0caa34b311cb99ee8a5bdffcaa856d0777830cf191bdb5ce9533450336
7
- data.tar.gz: 0c986ba308aa6ded79b4373c47d738f3c6676e3721d37039fef7cae8976c5abf4e9abf1af28bf6ee72bd04233a791e399a8c04598f87b730bc16a45022756d6e
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
- "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��
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.5
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
- 8ixkARkWAmV1MB4XDTE1MTEwOTEwNDY1NloXDTE2MTEwODEwNDY1NlowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE3MDkwNzExNTY0MloXDTE4MDkwNzExNTY0MlowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAKoNUpiIO6u/3jjcOLzetr6zixyP1ntorY0t4ZgCegaHfzFOempfrbcR0y2J
19
- dkMWTlf/gg3w8NiXw/ji+7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nRmXYWNgpQOpYO/KFUYpp/zcQ/y2xFiDMgt3
28
- ue4+etNmlOUCLe9U/ANi9r3dMx76j4w0vJo7zPlIrnITHQjOk4BZHUx7GygtvAaC
29
- 5HmdHm0WshQp/8r5O4DONnLeHpzw0Kgcd/wgbXQO0eQ0sZA3xiAfLqdOh9gGpFGt
30
- 7gDQ7pY5D4sqFko4wbN9+PD44yT9CZ4EKxklTFOcNbPqpelfOQJYu5Tcz1YqlaUn
31
- yN4MXUX2zdaZkboeXfzIBjOAdrZpqVMCQIV0CYDEjpPesFeE9oP3PrX1EEwcr+et
32
- +cjku6sb+bV0/w==
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: 2015-11-25 00:00:00.000000000 Z
34
+ date: 2017-09-07 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
- email: james@r0bertson.co.uk
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.4.8
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
- z��z�ް��m�^CYG| ܫ�=Ų��������)R"�i���v���bo�C���� ���gk�W[����:
2
- V�u���`1P��×yH]��wP�Ie�8y� �0,��; �w� &Q�zW���>������!F!��
1
+ ��� D�@y{�����߼�VX��tLWm���7lE��|_��I>O��dP