rexle-css 0.1.1 → 0.1.3

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: 77970fc2482abea88a2815586dc4c5130c98bf34
4
- data.tar.gz: 9981f34636a3fe3867acdaccec354f124a5e4f79
3
+ metadata.gz: 5c39116a4a89f3f96b6c258879cd1861f87e1558
4
+ data.tar.gz: 8e90e7fa11a392881d30a762f931e9de02f8355d
5
5
  SHA512:
6
- metadata.gz: a84ed9401a5eeeb34ae1ab736631228698cbf0036440b8ddd83bd4502192f6171707672b5100de40f801e09408b0cc86522d5b7b277917fdb932812dba2175d9
7
- data.tar.gz: fdaf3fdbf4f09f11575c822ca3682c3943dcdf4b075cdaa574314031b9ae1f0b75684cee792b4f50dd277f32924e67552c8f339b286ff3f93ba62faee7cb846f
6
+ metadata.gz: 096f4d78a5e533d9ab8ad892e1f9020776d0ccd9584d89717f6bdcfcd8ce14b798874c1b63b41935592f1faabd932eb27c9cfd887cdc293b69044f89674c74bb
7
+ data.tar.gz: a737c247050745dfa46762017050acfb771827d617db10cb979ae64c89bb4b246932baae61e837a448b8f18b25d050d817f2c9d039281dd86f105843ba932e26
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle-css.rb CHANGED
@@ -8,7 +8,9 @@ class RexleCSS
8
8
 
9
9
  def initialize(selector)
10
10
  @to_xpath = selector.prepend('//')\
11
+ .gsub(/(\w+)#(\w+)/,'\1[@id="\2"]')\
11
12
  .gsub(/#(\w+)/,'div[@id="\1"]')\
13
+ .gsub(/\.(\w+)/,'[@class="\1"]')\
12
14
  .gsub(/ /,'//').gsub(/>/,'/')
13
15
  end
14
16
 
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  X/9OJBPQe0u8X7m0Ksi94gJLsvk6TFyV1rjbZL0kctRSMFkjPKSZsy6g3hCKIRhv
32
32
  ARHSaq2N+uOJNQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-10-12 00:00:00.000000000 Z
34
+ date: 2014-10-19 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
metadata.gz.sig CHANGED
Binary file