syrup 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ module Syrup
38
38
  end
39
39
  json['accountBalance']['creditAccountList'].each do |account|
40
40
  new_account = Account.new(:id => account['accountId'], :institution => self)
41
- new_account.name = decode_html_entities(account['name'])
41
+ new_account.name = unescape_html(account['name'])
42
42
  new_account.account_number = account['number']
43
43
  new_account.current_balance = parse_currency(account['balanceDueAmt'])
44
44
  new_account.type = :credit
@@ -96,7 +96,7 @@ module Syrup
96
96
  transaction = Transaction.new
97
97
 
98
98
  transaction.posted_at = Date.strptime(data[0], '%m/%d/%Y')
99
- transaction.payee = decode_html_entities(data[2])
99
+ transaction.payee = unescape_html(data[2])
100
100
  transaction.status = data[3].include?("Posted") ? :posted : :pending
101
101
  unless data[4].empty?
102
102
  transaction.amount = -parse_currency(data[4])
data/lib/syrup/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Syrup
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: syrup
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Don Wilson