nordea-rb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/*
data/README.markdown CHANGED
@@ -132,7 +132,6 @@ Show the balances for the accounts named "Savings" and "Salary". Login from keyc
132
132
 
133
133
  ## TODO
134
134
 
135
- - Support for transfering money between your own accounts
136
135
  - Clean up the API and class architecture
137
136
  - Add support for paging in transactions list
138
137
  - Build an iPhone optimized web app which uses nordea-rb as backend so we finally can have a better mobile bank
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/bin/nordea CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'optparse'
4
- require File.join(File.dirname(__FILE__), *%w".. lib nordea")
4
+ require 'nordea'
5
5
 
6
6
  options, accounts, pnr, command = {}, []
7
7
 
@@ -2,8 +2,10 @@ module Nordea
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join(".")
8
8
  end
9
- end
9
+
10
+ VERSION = Nordea::Version::STRING
11
+ end
data/lib/nordea.rb CHANGED
@@ -1,21 +1,18 @@
1
- require 'rubygems'
2
1
  require 'open-uri'
3
2
  require 'net/https'
4
3
  begin
5
4
  require 'hpricot'
6
- rescue LoadError => e
7
- puts "Hpricot is missing. Run `sudo gem install hpricot` to install"
5
+ rescue LoadError
6
+ puts "Hpricot is missing. Run `gem install hpricot` to install"
8
7
  exit
9
8
  end
10
9
 
11
- $:.unshift File.dirname(__FILE__)
12
-
13
- require 'nordea/request'
14
- require 'nordea/resources'
15
- require 'nordea/session'
16
- require 'nordea/support'
17
- require 'nordea/transaction'
18
- require 'nordea/version'
10
+ require "nordea/request"
11
+ require "nordea/resources"
12
+ require "nordea/session"
13
+ require "nordea/support"
14
+ require "nordea/transaction"
15
+ require "nordea/version"
19
16
 
20
17
  module Nordea
21
18
  class InvalidLogin < StandardError; end
data/nordea-rb.gemspec ADDED
@@ -0,0 +1,88 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{nordea-rb}
8
+ s.version = "0.2.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Martin Str\303\266m"]
12
+ s.date = %q{2009-10-24}
13
+ s.default_executable = %q{nordea}
14
+ s.description = %q{Ruby library for accessing your Nordea Bank account and transferring money between your own accounts.}
15
+ s.email = %q{name@my-domain.se}
16
+ s.executables = ["nordea"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "README.markdown"
20
+ ]
21
+ s.files = [
22
+ ".gitignore",
23
+ "LICENSE",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "bin/nordea",
28
+ "lib/nordea.rb",
29
+ "lib/nordea/request.rb",
30
+ "lib/nordea/resources.rb",
31
+ "lib/nordea/resources/account.rb",
32
+ "lib/nordea/resources/card.rb",
33
+ "lib/nordea/resources/fund.rb",
34
+ "lib/nordea/resources/loan.rb",
35
+ "lib/nordea/resources/resource.rb",
36
+ "lib/nordea/session.rb",
37
+ "lib/nordea/support.rb",
38
+ "lib/nordea/transaction.rb",
39
+ "lib/nordea/version.rb",
40
+ "nordea-rb.gemspec",
41
+ "test/fixtures/account.wml",
42
+ "test/fixtures/account_10_transactions.wml",
43
+ "test/fixtures/account_15_transactions.wml",
44
+ "test/fixtures/account_5_transactions.wml",
45
+ "test/fixtures/accounts.wml",
46
+ "test/fixtures/accounts_overview.wml",
47
+ "test/fixtures/error.wml",
48
+ "test/fixtures/logged_in_main_menu.wml",
49
+ "test/fixtures/login.wml",
50
+ "test/fixtures/transfer_to_own_account.wml",
51
+ "test/fixtures/transfers.wml",
52
+ "test/fixtures/transfers_1.wml",
53
+ "test/fixtures/transfers_2.wml",
54
+ "test/fixtures/transfers_3.wml",
55
+ "test/test_account.rb",
56
+ "test/test_functional.rb",
57
+ "test/test_helper.rb",
58
+ "test/test_nordea.rb",
59
+ "test/test_request.rb",
60
+ "test/test_session.rb",
61
+ "test/test_transaction.rb"
62
+ ]
63
+ s.homepage = %q{http://github.com/haraldmartin/nordea-rb}
64
+ s.rdoc_options = ["--charset=UTF-8"]
65
+ s.require_paths = ["lib"]
66
+ s.rubygems_version = %q{1.3.5}
67
+ s.summary = %q{Ruby library for accessing your Nordea Bank account and transferring money between your own accounts.}
68
+ s.test_files = [
69
+ "test/test_account.rb",
70
+ "test/test_functional.rb",
71
+ "test/test_helper.rb",
72
+ "test/test_nordea.rb",
73
+ "test/test_request.rb",
74
+ "test/test_session.rb",
75
+ "test/test_transaction.rb"
76
+ ]
77
+
78
+ if s.respond_to? :specification_version then
79
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
80
+ s.specification_version = 3
81
+
82
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
83
+ else
84
+ end
85
+ else
86
+ end
87
+ end
88
+
data/test/test_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), *%w".. lib nordea")
1
+ require 'nordea'
2
2
  require 'shoulda'
3
3
  gem 'mocha', '=0.9.5'
4
4
  require 'mocha'
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Martin Str\xC3\xB6m"
@@ -23,6 +23,7 @@ extra_rdoc_files:
23
23
  - LICENSE
24
24
  - README.markdown
25
25
  files:
26
+ - .gitignore
26
27
  - LICENSE
27
28
  - README.markdown
28
29
  - Rakefile
@@ -40,6 +41,7 @@ files:
40
41
  - lib/nordea/support.rb
41
42
  - lib/nordea/transaction.rb
42
43
  - lib/nordea/version.rb
44
+ - nordea-rb.gemspec
43
45
  - test/fixtures/account.wml
44
46
  - test/fixtures/account_10_transactions.wml
45
47
  - test/fixtures/account_15_transactions.wml