fluent 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +5 -0
- data/lib/fluent/evaluators.rb +4 -0
- data/lib/fluent/platform_mechanize/platform_object.rb +12 -1
- data/lib/fluent/platform_watir/platform_object.rb +9 -1
- data/lib/fluent/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: efc9320b50a769998f510a4de15c2085c5b07749
|
4
|
+
data.tar.gz: 734f69efd530e24aab3655d31ce298fb18f7fec9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d144f54060f678b79b12cfcfb5060a8bda85bac9ab82ce0551ada1dcb5149e22f3c478f5a58ec9e6aaf6c4ce86d88f763ac0d29078cc7610e6a259fb7d1b4fbb
|
7
|
+
data.tar.gz: 38e00c369bdc2c9844c753e0d27addc90ed8cf220038e5d70d52577b7df709a3184c44b560fa05ab52536df331d79140deda35a02ea4510aebb0d7ff24e1f261
|
data/HISTORY.md
CHANGED
data/lib/fluent/evaluators.rb
CHANGED
@@ -14,7 +14,18 @@ module Fluent
|
|
14
14
|
def visit(url)
|
15
15
|
driver.get(url)
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
|
+
def markup
|
19
|
+
driver.current_page.body
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_cookie_value(name)
|
23
|
+
for cookie in driver.cookie_jar.cookies
|
24
|
+
if cookie.name == name
|
25
|
+
return cookie.value
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
18
29
|
end
|
19
30
|
end
|
20
31
|
end
|
@@ -12,7 +12,15 @@ module Fluent
|
|
12
12
|
## Browser-Level Actions ##
|
13
13
|
|
14
14
|
def visit(url)
|
15
|
-
driver.goto(url)
|
15
|
+
driver.goto(url.to_s)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_cookie_value(name)
|
19
|
+
for cookie in @driver.cookies.to_a
|
20
|
+
if cookie[:name] == name
|
21
|
+
return cookie[:value]
|
22
|
+
end
|
23
|
+
end
|
16
24
|
end
|
17
25
|
|
18
26
|
def url
|
data/lib/fluent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Nyman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|