syrup 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/syrup/institutions/institution_base.rb +3 -3
- data/lib/syrup/institutions/zions_bank.rb +4 -4
- data/lib/syrup/version.rb +1 -1
- data/syrup.gemspec +1 -0
- metadata +36 -9
@@ -101,12 +101,12 @@ module Syrup
|
|
101
101
|
all_accounts = populated_accounts || fetch_accounts
|
102
102
|
|
103
103
|
# Remove any accounts that were added, that don't actually exist
|
104
|
-
@accounts.
|
104
|
+
@accounts.delete_if do |a|
|
105
105
|
if all_accounts.include?(a)
|
106
|
-
|
106
|
+
false
|
107
107
|
else
|
108
108
|
a.valid = false
|
109
|
-
|
109
|
+
true
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -63,14 +63,14 @@ module Syrup
|
|
63
63
|
# Look for the account information first
|
64
64
|
account = find_account_by_id(account_id)
|
65
65
|
datapart = row_element.css('.acct')
|
66
|
-
if datapart
|
67
|
-
/Prior Day Balance:\s*([^<]+)/.match(datapart.inner_html)
|
66
|
+
if datapart && datapart.inner_html.size > 0
|
67
|
+
if match = /Prior Day Balance:\s*([^<]+)/.match(datapart.inner_html)
|
68
68
|
account.prior_day_balance = parse_currency(match[1])
|
69
69
|
end
|
70
|
-
/Current Balance:\s*([^<]+)/.match(datapart.inner_html)
|
70
|
+
if match = /Current Balance:\s*([^<]+)/.match(datapart.inner_html)
|
71
71
|
account.current_balance = parse_currency(match[1])
|
72
72
|
end
|
73
|
-
/Available Balance:\s*([^<]+)/.match(datapart.inner_html)
|
73
|
+
if match = /Available Balance:\s*([^<]+)/.match(datapart.inner_html)
|
74
74
|
account.available_balance = parse_currency(match[1])
|
75
75
|
end
|
76
76
|
end
|
data/lib/syrup/version.rb
CHANGED
data/syrup.gemspec
CHANGED
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syrup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
version: 0.0.7
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Don Wilson
|
@@ -10,17 +14,20 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-10-
|
17
|
+
date: 2011-10-16 00:00:00 -06:00
|
14
18
|
default_executable:
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
17
21
|
name: mechanize
|
18
22
|
prerelease: false
|
19
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
24
|
requirements:
|
22
25
|
- - ">="
|
23
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
30
|
+
- 0
|
24
31
|
version: 1.0.0
|
25
32
|
type: :runtime
|
26
33
|
version_requirements: *id001
|
@@ -28,10 +35,13 @@ dependencies:
|
|
28
35
|
name: multi_json
|
29
36
|
prerelease: false
|
30
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
38
|
requirements:
|
33
39
|
- - ">="
|
34
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 1
|
43
|
+
- 0
|
44
|
+
- 3
|
35
45
|
version: 1.0.3
|
36
46
|
type: :runtime
|
37
47
|
version_requirements: *id002
|
@@ -39,13 +49,28 @@ dependencies:
|
|
39
49
|
name: rspec
|
40
50
|
prerelease: false
|
41
51
|
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
52
|
requirements:
|
44
53
|
- - ">="
|
45
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 2
|
57
|
+
- 6
|
58
|
+
- 0
|
46
59
|
version: 2.6.0
|
47
60
|
type: :development
|
48
61
|
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: ruby-debug
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
72
|
+
type: :development
|
73
|
+
version_requirements: *id004
|
49
74
|
description: Simple account balance and transactions extractor by scraping bank websites.
|
50
75
|
email:
|
51
76
|
- dontangg@gmail.com
|
@@ -89,21 +114,23 @@ rdoc_options: []
|
|
89
114
|
require_paths:
|
90
115
|
- lib
|
91
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
117
|
requirements:
|
94
118
|
- - ">="
|
95
119
|
- !ruby/object:Gem::Version
|
120
|
+
segments:
|
121
|
+
- 0
|
96
122
|
version: "0"
|
97
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
124
|
requirements:
|
100
125
|
- - ">="
|
101
126
|
- !ruby/object:Gem::Version
|
127
|
+
segments:
|
128
|
+
- 0
|
102
129
|
version: "0"
|
103
130
|
requirements: []
|
104
131
|
|
105
132
|
rubyforge_project: syrup
|
106
|
-
rubygems_version: 1.
|
133
|
+
rubygems_version: 1.3.6
|
107
134
|
signing_key:
|
108
135
|
specification_version: 3
|
109
136
|
summary: Simple account balance and transactions extractor.
|