figo 1.2.3 → 1.2.4

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzA4ZGJiMDI3M2FlMDk3MTY2Zjc0YTZlYzczZjM5NGZiZWRkNTRhZA==
4
+ Y2ExYzgxM2NiZDUxNGU3ZTc2MmViZTA0NzVkMDIzYmRiYzg3NDYxYg==
5
5
  data.tar.gz: !binary |-
6
- NzM2MTEyNmYzMDZhNzE1ZTExOTlmN2Q0NGFjN2YzN2JkMDVlZjFiYg==
6
+ NDQyMDNmNTFhNGVmOWIwMWMwYTkzODUzZmVmNjcwZjc2ZWYyMWI3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTBlOWVhODZmZDkzYzhiNDU1Y2I1MzMwZDM4NjVjOThkNzY3YTVjMDljMjVi
10
- YjQ2ODg3NGFlNjkwMjA2ZjlmNWM2YTc3Mjc0YzU4MmQxZTg3ZTA0ZmI5MWI4
11
- ODcwNTQ5OWY2NDRkOGI2NzY3OTA3NWFmYTE4NmJiNGNjOTI5YzU=
9
+ MjAyMjE0ZGUzNDhmOGU5YmQxYTA2MTFhMTA2NmIzZDA4M2E0Y2Q5MjNmZmFl
10
+ ZThmNzRhNWUyM2I1N2Q1ZTk0ZmQ2NGY3OTQyOWMxOTUzZGE1MmFhODZlMDQx
11
+ YTE4NTlhMmRjZDE4ZmI5MmRjMWJlMTQ2MjMwYjFhYjhkNDk4NWY=
12
12
  data.tar.gz: !binary |-
13
- MmM1YmI4OTdlMzgwMmFkYjAwNzAwNDNiMzI1Y2E1ZDEzMThjMjM5NzkwN2Q4
14
- MWJiMDQ5MjkwMDg1YWM0ZmYyNTYwY2M5YmQ3MzdmODQ3NzdkOTcyZWRjMzkz
15
- Mjg2N2NhMGUzNWQzNGJlNzE1Njk3ZGQyNDRkYzcxNzdiYWZhZjk=
13
+ MDZiZGViN2Y5OTc3NjdmMTc1MDJkY2EyZmFjNWY5MWMzYTg0NGM3NzI2MWJi
14
+ YzY5MWE3OGMzNzYzMzA4MGE0OWRhZTY3NzNmMGYxZDlmNjQ5ZDI4NTFmZmY5
15
+ OWM4ZTAyZjgxNDg5OTliNjBiYzdjYTUyNmIyZWQzMjE2NjYyZTQ=
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "figo"
3
- s.version = "1.2.3"
3
+ s.version = "1.2.4"
4
4
  s.authors = ["Stefan Richter"]
5
5
  s.email = ["stefan.richter@figo.me"]
6
6
  s.homepage = "https://github.com/figo-connect/ruby-figo"
@@ -271,6 +271,10 @@ module Figo
271
271
  class Bank < Base
272
272
  @dump_attributes = [:sepa_creditor_id]
273
273
 
274
+ # Internal figo Connect bank ID
275
+ # @return [String]
276
+ attr_accessor :bank_id
277
+
274
278
  # SEPA direct debit creditor ID
275
279
  # @return [String]
276
280
  attr_accessor :sepa_creditor_id
@@ -13,7 +13,6 @@ end
13
13
 
14
14
  get '/callback*' do
15
15
  if params['state'] != "qweqwe"
16
- logger.info "qwe"
17
16
  raise Exception.new("Bogus redirect, wrong state")
18
17
  end
19
18
 
@@ -29,7 +28,6 @@ get '/logout' do
29
28
  end
30
29
 
31
30
  before '/' do
32
- logger.info request.path_info
33
31
  unless session[:figo_token] or request.path_info == "/callback" then
34
32
  redirect to(connection.login_url("qweqwe", "accounts=ro transactions=ro balance=ro user=ro"))
35
33
  end
@@ -1,41 +1,37 @@
1
- <div class="container-fluid" role="main">
2
- <h1><%= @current_account.nil? ? "Unified Inbox" : @current_account.name %></h1>
1
+ <h1><%= @current_account.nil? ? "Unified Inbox" : @current_account.name %></h1>
3
2
 
4
- <% if @current_account %>
5
- <div class="panel panel-default">
6
- <div class="panel-heading">Account Details</div>
7
- <div class="panel-body">
8
- <ul class="list-group">
9
- <li class="list-group-item">Owner: <%= @current_account.owner %></li>
10
- <li class="list-group-item">Account Number: <%= @current_account.account_number %></li>
11
- <li class="list-group-item">Bank Code: <%= @current_account.bank_code %></li>
12
- <li class="list-group-item">IBAN: <%= @current_account.iban %></li>
13
- <li class="list-group-item">Balance: <%= @current_account.balance.balance %> <%= @current_account.currency %></li>
14
- </ul>
15
- </div>
16
- </div>
17
- <% end %>
3
+ <% if @current_account %>
4
+ <div class="panel panel-default">
5
+ <div class="panel-heading">Account Details</div>
6
+ <div class="panel-body">
7
+ <ul class="list-group">
8
+ <li class="list-group-item">Owner: <%= @current_account.owner %></li>
9
+ <li class="list-group-item">Account Number: <%= @current_account.account_number %></li>
10
+ <li class="list-group-item">Bank Code: <%= @current_account.bank_code %></li>
11
+ <li class="list-group-item">IBAN: <%= @current_account.iban %></li>
12
+ <li class="list-group-item">Balance: <%= @current_account.balance.balance %> <%= @current_account.currency %></li>
13
+ </ul>
14
+ </div>
15
+ </div>
16
+ <% end %>
18
17
 
19
- <table class="table table-hover table-condensed">
20
- <thead><tr>
21
- <th>Date</th>
22
- <th>Name</th>
23
- <th>Account Number</th>
24
- <th>Purpose</th>
25
- <th style="text-align: right;">Amount</th>
26
- </tr></thead>
27
- <tbody>
28
- <% if @transactions %>
29
- <% @transactions.each do |transaction| %>
30
- <tr>
31
- <td><%= transaction.value_date %></td>
32
- <td><%= transaction.name %></td>
33
- <td><%= transaction.account_number %></td>
34
- <td><%= transaction.purpose %></td>
35
- <td style="text-align: right; <% if transaction.amount < 0 %>color: red;<% end %>"><%= transaction.amount %></td>
36
- </tr>
37
- <% end %>
38
- <% end %>
39
- </tbody>
40
- </table>
41
- </div>
18
+ <table class="table table-hover table-condensed">
19
+ <thead><tr>
20
+ <th>Date</th>
21
+ <th>Name</th>
22
+ <th>Account Number</th>
23
+ <th>Purpose</th>
24
+ <th style="text-align: right;">Amount</th>
25
+ </tr></thead>
26
+ <tbody>
27
+ <% @transactions.each do |transaction| %>
28
+ <tr>
29
+ <td><%= transaction.value_date %></td>
30
+ <td><%= transaction.name %></td>
31
+ <td><%= transaction.account_number %></td>
32
+ <td><%= transaction.purpose %></td>
33
+ <td style="text-align: right; <% if transaction.amount < 0 %>color: red;<% end %>"><%= transaction.amount %></td>
34
+ </tr>
35
+ <% end %>
36
+ </tbody>
37
+ </table>
@@ -19,8 +19,8 @@
19
19
 
20
20
  </head>
21
21
  <body>
22
- <div class="container">
23
- <div class="navbar navbar-default" role="navigation">
22
+ <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
23
+ <div class="container-fluid">
24
24
  <div class="navbar-header">
25
25
  <a class="navbar-brand" href="/">figo web banking</a>
26
26
  </div>
@@ -34,16 +34,14 @@
34
34
  <p class="navbar-text navbar-right">Signed in as <a href="/logout" class="navbar-link"><%= @user.email %></a></p>
35
35
  </div><!--/.nav-collapse -->
36
36
  </div>
37
-
38
- <div>
39
- <%if @error then %>
40
- <div class="alert alert-error"><%=@error%></div>
41
- <% end %>
42
- <%= yield %>
43
- </div>
44
-
45
- </div>
46
-
37
+ </div>
38
+
39
+ <div class="container-fluid" role="main">
40
+ <%if @error then %>
41
+ <div class="alert alert-error"><%=@error%></div>
42
+ <% end %>
43
+ <%= yield %>
44
+ </div>
47
45
 
48
46
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
49
47
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-11 00:00:00.000000000 Z
11
+ date: 2014-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flt