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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0244ad5c205af2844ca783ff52121602e291b1c5
4
- data.tar.gz: e0749a92326575a29a735545a42cd2981d15c203
3
+ metadata.gz: efc9320b50a769998f510a4de15c2085c5b07749
4
+ data.tar.gz: 734f69efd530e24aab3655d31ce298fb18f7fec9
5
5
  SHA512:
6
- metadata.gz: 881b2fb1a326e174cf1bbc859e98c1a452c6d384b7a14d33e6df1df9023421588933b2df287aa81bc48e68e1023e17b939fb98738c0104ce6cec6a795b4d0676
7
- data.tar.gz: 5ad0a85dd11f3b5a97855f3201968339489ae5a137e07c6fd3a76891e3d579df52444fc303d51e0d85ee1be48addc5ea29e2248a8941d885656c7cc33a62a15a
6
+ metadata.gz: d144f54060f678b79b12cfcfb5060a8bda85bac9ab82ce0551ada1dcb5149e22f3c478f5a58ec9e6aaf6c4ce86d88f763ac0d29078cc7610e6a259fb7d1b4fbb
7
+ data.tar.gz: 38e00c369bdc2c9844c753e0d27addc90ed8cf220038e5d70d52577b7df709a3184c44b560fa05ab52536df331d79140deda35a02ea4510aebb0d7ff24e1f261
data/HISTORY.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Change Log and History
2
2
  ======================
3
3
 
4
+ Version 0.7.2 / 2013-12-12
5
+ --------------------------
6
+
7
+ A minor patch release that adds some platform methods for Mechanize.
8
+
4
9
  Version 0.7.1 / 2013-12-09
5
10
  --------------------------
6
11
 
@@ -6,6 +6,10 @@ module Fluent
6
6
  def visit(url)
7
7
  platform.visit(url)
8
8
  end
9
+
10
+ def get_cookie_value(name)
11
+ platform.get_cookie_value(name)
12
+ end
9
13
 
10
14
  alias_method :navigate_to, :visit
11
15
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Fluent
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler