hbci 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10048414b4db622a1759e8d9c0535e5d1d71d8f705ce7887c17dc1710a7123a6
4
- data.tar.gz: 6aa5448aa56599bc95f83c43b65693680c1432dd2603b7669b3d02fbac02ca45
3
+ metadata.gz: ce916948b36a1f61620a4b24e65427e49a03ba97e023564089b746d7bd401e4d
4
+ data.tar.gz: c37152dfaa3c4c780d15b4e26fa12823bea19ba62a54561fa0ee6121f079f6c2
5
5
  SHA512:
6
- metadata.gz: 8b968e2b272d8820dcd6ad9a9770a99fdc76b9d6e610919d61135ef8a54685fec03395283f207fa70a6f93967ed0ef1eccb0cdec9223313dc875628a021a09ad
7
- data.tar.gz: 6912d3aec1751fd9334a91b99de8d4b4ebe45059454efc8a95fd0fa23dd7a48ca2952c2bafaa16a40da1bb2559588750e4c5433a6354802dc010ffd7df2d2a27
6
+ metadata.gz: 7525c7cd7bbd0172a0ecf21c16833d92dbc16355eee232a1cde22eaa039578cd54a723046765dbf36ed68da97cb021ec91574ce09e742e19fd272095c204b890
7
+ data.tar.gz: 269ac9f6aed0b1238bc2eeb54ddd52d6501169cdc94f6f94215c9d1f260044dfd6091e822ad632c7ebdef20b403870718ddc0ebe391dc2d09d0c84772419334e
data/README.md CHANGED
@@ -37,6 +37,9 @@ credentials = BankCredentials::Hbci.new({
37
37
  user_id: 'user_id',
38
38
  pin: 'pin'
39
39
  })
40
+
41
+ connector = Hbci::Connector.instance
42
+ connector.credentials = credentials
40
43
  ```
41
44
 
42
45
  Now, you can receive your balances, accounts and transactions:
@@ -48,7 +51,7 @@ iban = 'DE05740900000011111111'
48
51
  start_date = 3.day.ago
49
52
  end_date = Time.now
50
53
 
51
- Hbci::Dialog.open(credentials) do |dialog|
54
+ Hbci::Dialog.open do |dialog|
52
55
  transactions = Hbci::Services::TransactionsReceiver.new(dialog, iban).perform(start_date, end_date)
53
56
  transactions.each do |transaction|
54
57
  puts transaction
@@ -61,7 +64,7 @@ end
61
64
  ```ruby
62
65
  iban = 'DE05740900000011111111'
63
66
 
64
- Hbci::Dialog.open(credentials) do |dialog|
67
+ Hbci::Dialog.open do |dialog|
65
68
  puts Hbci::Services::BalanceReceiver.new(dialog, iban).perform
66
69
  end
67
70
  ```
@@ -69,7 +72,7 @@ end
69
72
  ### Receiving the accounts
70
73
 
71
74
  ```ruby
72
- Hbci::Dialog.open(credentials) do |dialog|
75
+ Hbci::Dialog.open do |dialog|
73
76
  accounts = Hbci::Services::AccountsReceiver.new(dialog).perform
74
77
  accounts.each do |account|
75
78
  puts account
@@ -83,7 +86,7 @@ end
83
86
  | VR Bank | DONE | https://hbci11.fiducia.de/cgi-bin/hbciservlet |
84
87
  | Postbank | DONE | https://hbci.postbank.de/banking/hbci.do |
85
88
  | Consorsbank | DONE | https://brokerage-hbci.consorsbank.de/hbci |
86
- | Hypovereinsbank | OPEN | - |
89
+ | Hypovereinsbank | OPEN | https://hbci-01.hypovereinsbank.de/bank/hbci | |
87
90
 
88
91
  ## Development
89
92
 
@@ -16,10 +16,6 @@ require 'active_support/core_ext'
16
16
  OptionParser.new do |opts|
17
17
  opts.banner = 'Usage: example.rb iban [options]'
18
18
 
19
- opts.on '-url', '--url=URL', 'URL' do |arg|
20
- @options[:url] = arg
21
- end
22
-
23
19
  opts.on '-v', '--hbci_version=VERSION', 'Version' do |arg|
24
20
  @options[:hbci_version] = arg
25
21
  end
@@ -51,7 +47,6 @@ raise 'missing iban' unless @iban
51
47
 
52
48
  @hbci_version = @options[:hbci_version] ? @options[:hbci_version].to_i : nil
53
49
  @credentials = BankCredentials::Hbci.new(
54
- url: @options[:url],
55
50
  bank_code: @options[:bank_code],
56
51
  user_id: @options[:user_id],
57
52
  pin: @options[:pin]
data/hbci.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency 'bank_credentials', '~> 0.1'
21
+ spec.add_runtime_dependency 'bank_credentials'
22
22
  spec.add_runtime_dependency 'cmxl', '~> 1.1'
23
23
  spec.add_runtime_dependency 'httparty', '~> 0.16'
24
24
  spec.add_runtime_dependency 'ibanizator', '~> 0.3'
data/lib/hbci/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hbci
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hbci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Lehnert
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-25 00:00:00.000000000 Z
12
+ date: 2018-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bank_credentials
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0.1'
20
+ version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '0.1'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: cmxl
30
30
  requirement: !ruby/object:Gem::Requirement