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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 016d0fe1666c30569830ddadce886bda414045ff
4
- data.tar.gz: ca9f8784b3455df4ac087833ced23bfb233cb807
2
+ SHA256:
3
+ metadata.gz: b0650341f51fe6fedf83c60cc436df196f30ae7c9b5319230816d1af0a9864e1
4
+ data.tar.gz: 46343b4535e6d106258a0e62e44a6a72a3862fc562d256838a17316f2318831b
5
5
  SHA512:
6
- metadata.gz: a4ce24b66a02be8d5496788adb236d98d7d5fa7f6f719b408ef9dfb61b351596e4f42227811ea6b4b88c7584cca098f1747f89ed9c762ab502b1b930736456bc
7
- data.tar.gz: aea30d136c8e634c55285057123cc025467aae29131485e827835dd7675c91b15813da84740c9ed8710395811ecb232cea0cb02b4f641f0cc63b6607961d8deb
6
+ metadata.gz: 1ff674fbfd0467e830411f0c4051f68c62f135cef89834f25b5d7b4a1588f72d093c502dfcd94613814470d02aa1c5597f63c0a9c1a64ce216f19144f1ed9188
7
+ data.tar.gz: ca542515d089111a3f03baca7abbc723670e3a2bc91d6fa24261f67234fa3fe976429c7a50acda94e82ce9fba388eb845cd3074368d5ca3035a2f604b3a26184
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -3,7 +3,7 @@
3
3
  # file: rexle-css.rb
4
4
 
5
5
  # view test data at
6
- # http://rorbuilder.info/r/gemtest/rexle-css/testdata_rexle-css.rdx
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.1.6
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE3MDkwNzExNTY0MloXDTE4MDkwNzExNTY0MlowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
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
- DwQEAwIEsDAdBgNVHQ4EFgQU0Se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YWnwtM1t297IAieU1xwkFbB
33
37
  -----END CERTIFICATE-----
34
- date: 2017-09-07 00:00:00.000000000 Z
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
- rubyforge_project:
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
- ��� D�@y{�����߼�VX��tLWm���7�lE��|_��I>O��dP�
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�'�Ȥ�`