contact_congress_parser 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/contact_congress_parser/action.rb +3 -7
- data/lib/contact_congress_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f64aad618921e81979ab46c47a08913dd21d2a73
|
4
|
+
data.tar.gz: c09e8aaf5cef566d51e861523e47ad938a2ce63f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c143c920e44f420f9e59db09b2c66db97b52268080586ab28802c03b2da07c4da7e39efcd7a1381026a2ff81f8aae8b8c3e3813a8181ff409195ac0aa44760fd
|
7
|
+
data.tar.gz: e5b7d91fa861f9bc182b441d46cf9aab07071f35b30ac984d1a109381e5caed02490ae4e6272976c751e582e19cb69209e3d764c4cacafba544e8912837c5b04
|
@@ -32,7 +32,7 @@ module ContactCongressParser
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def fill_in_args
|
35
|
-
'"' +
|
35
|
+
'"' + escape_quotes(@data['selector']) + '"' +
|
36
36
|
', with: ' +
|
37
37
|
field(@data['value'], required: @data['required'])
|
38
38
|
end
|
@@ -46,7 +46,7 @@ module ContactCongressParser
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def check_args
|
49
|
-
'"' +
|
49
|
+
'"' + @data['selector'] + '"'
|
50
50
|
end
|
51
51
|
|
52
52
|
def uncheck_args
|
@@ -54,7 +54,7 @@ module ContactCongressParser
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def click_on_args
|
57
|
-
to_click_on =
|
57
|
+
to_click_on = data['value'] || data['selector']
|
58
58
|
'"' + to_click_on + '"'
|
59
59
|
end
|
60
60
|
|
@@ -70,9 +70,5 @@ module ContactCongressParser
|
|
70
70
|
def escape_quotes(str)
|
71
71
|
str.gsub('"', '\"')
|
72
72
|
end
|
73
|
-
|
74
|
-
def remove_css(str)
|
75
|
-
str[0] == "#" || str[0] == "." ? str[1..-1] : str
|
76
|
-
end
|
77
73
|
end
|
78
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact_congress_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikias Kalpaxis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|