nordea-rb 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/examples/atom_feed/nordea.cgi +1 -2
- data/lib/nordea/transaction.rb +4 -0
- data/lib/nordea/version.rb +1 -1
- data/nordea-rb.gemspec +2 -2
- data/test/test_transaction.rb +4 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -50,10 +50,9 @@ protected
|
|
50
50
|
|
51
51
|
feed.entry do |entry|
|
52
52
|
entry.id "tag:nordea,#{SCHEMA_DATE}:#{@pnr}/#{item.account.index};" +
|
53
|
-
"#{item_time.strftime('%Y-%m-%d')};#{item.
|
53
|
+
"#{item_time.strftime('%Y-%m-%d')};#{item.final_text.gsub(/\W/, '')};"
|
54
54
|
amount = %Q{%.2f SEK} % item.amount
|
55
55
|
entry.title "#{item.text} #{amount}"
|
56
|
-
"#{item.amount};#{}".gsub(/\s+/, '')
|
57
56
|
entry.content %{<table>
|
58
57
|
<tr><th>Konto:</th> <td>#{item.account.name}</td></tr>
|
59
58
|
<tr><th>Datum:</th> <td>#{item_date}</td></tr>
|
data/lib/nordea/transaction.rb
CHANGED
data/lib/nordea/version.rb
CHANGED
data/nordea-rb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{nordea-rb}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Str\303\266m"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-12-27}
|
13
13
|
s.default_executable = %q{nordea}
|
14
14
|
s.description = %q{Ruby library for accessing your Nordea Bank account and transferring money between your own accounts.}
|
15
15
|
s.email = %q{name@my-domain.se}
|
data/test/test_transaction.rb
CHANGED
@@ -32,6 +32,10 @@ class TestTransaction < Test::Unit::TestCase
|
|
32
32
|
assert_equal "Res. köp", @transaction.text
|
33
33
|
end
|
34
34
|
|
35
|
+
should 'have a text with the "reserved" part stripped' do
|
36
|
+
assert_equal "Kortköp", @transaction.final_text
|
37
|
+
end
|
38
|
+
|
35
39
|
# should "allow to create a Transaction using a hash for params" do
|
36
40
|
# transaction = Nordea::Transaction.new(:date => '2009-10-11', :text => "foo", :amount => -13.37)
|
37
41
|
# assert_equal '2009-10-11', transaction.date.to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nordea-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Martin Str\xC3\xB6m"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-27 00:00:00 +01:00
|
13
13
|
default_executable: nordea
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|