aasmith-yodlee 0.0.1.20090227002742 → 0.0.1.20090301132701
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.
- data/lib/yodlee/connection.rb +3 -1
- data/test/test_yodlee.rb +4 -1
- data/yodlee.gemspec +2 -2
- metadata +2 -2
data/lib/yodlee/connection.rb
CHANGED
@@ -290,7 +290,9 @@ module Yodlee
|
|
290
290
|
f = page.form_with(:name => 'updateForm')
|
291
291
|
page = @agent.submit(f)
|
292
292
|
|
293
|
-
|
293
|
+
link = page.links.detect { |lnk| lnk.attributes["id"] == "ACCOUNT_BALANCE" }
|
294
|
+
|
295
|
+
@uris[:accounts] = link.href.to_s << "&filter_id=-1"
|
294
296
|
end
|
295
297
|
end
|
296
298
|
end
|
data/test/test_yodlee.rb
CHANGED
@@ -95,10 +95,13 @@ class TestYodlee < Test::Unit::TestCase
|
|
95
95
|
def test_provide_password
|
96
96
|
inject_agent(agent = flexmock("mechanize"))
|
97
97
|
|
98
|
+
link = flexmock("link")
|
99
|
+
link.should_receive(:href).and_return("https://example.com/accounts.page?x=y")
|
100
|
+
|
98
101
|
page = flexmock("page")
|
99
102
|
page.should_receive(:form_with).with(:name => 'loginForm').once.and_return(Hash.new)
|
100
103
|
page.should_receive(:form_with).with(:name => 'updateForm').once.and_return(Hash.new)
|
101
|
-
page.should_receive(:
|
104
|
+
page.should_receive(:"links.detect").and_return(link)
|
102
105
|
|
103
106
|
agent.should_receive(:submit).with('password' => "foo").and_return(page)
|
104
107
|
agent.should_receive(:submit).with(Hash.new).and_return(page)
|
data/yodlee.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{yodlee}
|
5
|
-
s.version = "0.0.1.
|
5
|
+
s.version = "0.0.1.20090301132701"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Andrew A. Smith"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-03-01}
|
10
10
|
s.description = %q{Fetches accounts and their transaction details from the Yodlee MoneyCenter (https://moneycenter.yodlee.com).}
|
11
11
|
s.email = ["andy@tinnedfruit.org"]
|
12
12
|
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.rdoc"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aasmith-yodlee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.20090301132701
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew A. Smith
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-01 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|