rexle-css 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c39377fa93b082ffa407c7a88d2632d016e0a66e
4
+ data.tar.gz: c33cb744f5a0f674fadb5bd9990fc7cf88bd9199
5
+ SHA512:
6
+ metadata.gz: 4b00ae1499667fa950e6e1765bfc1f416c6a4672cb5ed4f078fee93f8cd1f02dab6c8429d190bf128e9e9b4b87b810b5b4bddc4fc04add612d1d5b3c65ed6cd5
7
+ data.tar.gz: 8d2c2e211693b38b4850f20a6f22f638f1d96cb5e5e4f0cbd29d53bf4b6e2ad6de7e9a5050e87aa38cccc44cade3303f751f7f1dd9433193ef44ba5fddd43269
@@ -0,0 +1,2 @@
1
+ (w��
2
+ ���p���&j����ƴP2 ��qK`?7yz�"�F,z���:l�ケ�OD�[�J��A�� ��{?u&W��4�߁��zu��5$s���PO:�m����IG ��>OF s�u��Ke��)#lޘ���_�ۿ+���oԉ�f�����9]ֆYZkL7Q��y�xl@�0)@A������?�|�q�T�����r!5��` �*��]�C(l#���g������H��{���7�΅Z�!�^�β���
Binary file
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: rexle-css.rb
4
+
5
+ class RexleCSS
6
+
7
+ attr_reader :to_xpath
8
+
9
+ def initialize(selector)
10
+ @to_xpath = selector.prepend('//')\
11
+ .gsub(/#(\w+)/,'div[@id="\1"]')\
12
+ .gsub(/ /,'//')
13
+ end
14
+
15
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rexle-css
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
+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qAlDL4XdTSyiSbi+T4HYp3rPfu+QI
30
+ Jyvcf+ASq28JYbAvbPmosznrbq18EOx1AqAT2agd8Qk/1F3yElzVAdzNBNvwZb1J
31
+ X/9OJBPQe0u8X7m0Ksi94gJLsvk6TFyV1rjbZL0kctRSMFkjPKSZsy6g3hCKIRhv
32
+ ARHSaq2N+uOJNQ==
33
+ -----END CERTIFICATE-----
34
+ date: 2014-10-12 00:00:00.000000000 Z
35
+ dependencies: []
36
+ description:
37
+ email: james@r0bertson.co.uk
38
+ executables: []
39
+ extensions: []
40
+ extra_rdoc_files: []
41
+ files:
42
+ - lib/rexle-css.rb
43
+ homepage: https://github.com/jrobertson/rexle-css
44
+ licenses:
45
+ - MIT
46
+ metadata: {}
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ requirements: []
62
+ rubyforge_project:
63
+ rubygems_version: 2.2.2
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Transforms a CSS selector to an XPath
67
+ test_files: []
Binary file