fidor_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +8 -6
- data/CHANGELOG.md +5 -0
- data/README.md +4 -4
- data/fidor_api.gemspec +5 -5
- data/lib/fidor_api/auth.rb +6 -6
- data/lib/fidor_api/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88f1a281f0d36a0ff9a5690b030deecc3cf6d239
|
4
|
+
data.tar.gz: 2ffb3283f62afadf3847d1b0f2e432b9e184c119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a905a705a97cf7248e90965e5b6996b5139f9ca614c085295cccfd0c5e7da1bf4df99648d22c81eec4d97d4dd96777e7541a7576757eee9c72c0138b7089e73
|
7
|
+
data.tar.gz: b988a49f55e77c1cb431e33523036692f19aa63589c81c04c23caf56f8faa266698a5125a1050777c4e135f3e9c05a9a5bfa0f4c8bf2813e6787bd741b5261d4
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/.travis.yml
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- "2.2.
|
4
|
-
- "2.3.
|
5
|
-
- "2.4.
|
6
|
-
addons:
|
7
|
-
code_climate:
|
8
|
-
repo_token: 2ffd456a223e8c95dbd79a25a5ea3dca9899ece93fce3cfdfae3723a76f0028e
|
3
|
+
- "2.2.7"
|
4
|
+
- "2.3.4"
|
5
|
+
- "2.4.1"
|
9
6
|
before_install:
|
10
7
|
- gem install bundler
|
8
|
+
addons:
|
9
|
+
code_climate:
|
10
|
+
repo_token: 2b2b2a8c28682817f985f0afba1e5d643bcc801c6af1a1294869bc118742e95f
|
11
|
+
after_success:
|
12
|
+
- bundle exec codeclimate-test-reporter
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# FidorApi
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/fidor_api.svg)](https://badge.fury.io/rb/fidor_api)
|
4
|
-
[![Build Status](https://travis-ci.org/
|
5
|
-
[![Test Coverage](https://codeclimate.com/github/
|
6
|
-
[![Code Climate](https://codeclimate.com/github/
|
4
|
+
[![Build Status](https://travis-ci.org/fidor/fidor_api.svg?branch=master)](https://travis-ci.org/fidor/fidor_api)
|
5
|
+
[![Test Coverage](https://codeclimate.com/github/fidor/fidor_api/badges/coverage.svg)](https://codeclimate.com/github/fidor/fidor_api/coverage)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/fidor/fidor_api/badges/gpa.svg)](https://codeclimate.com/github/fidor/fidor_api)
|
7
7
|
|
8
8
|
Simple ruby client for the Fidor Bank REST-API: http://docs.fidor.de
|
9
9
|
|
@@ -109,7 +109,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
109
109
|
|
110
110
|
## Contributing
|
111
111
|
|
112
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
112
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fidor/fidor_api.
|
113
113
|
|
114
114
|
## Changelog
|
115
115
|
|
data/fidor_api.gemspec
CHANGED
@@ -6,19 +6,19 @@ require 'fidor_api/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "fidor_api"
|
8
8
|
spec.version = FidorApi::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = ["
|
9
|
+
spec.authors = ["Fidor"]
|
10
|
+
spec.email = ["connect@fidor.com"]
|
11
11
|
|
12
12
|
spec.summary = "Simple ruby client for the Fidor Bank API"
|
13
13
|
spec.description = "Connect to the Fidor Bank API"
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/fidor/fidor_api"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "faraday", "~> 0.8"
|
21
|
-
spec.add_dependency "activesupport", ">= 4.2", "< 5.
|
22
|
-
spec.add_dependency "activemodel", ">= 4.2", "< 5.
|
21
|
+
spec.add_dependency "activesupport", ">= 4.2", "< 5.2"
|
22
|
+
spec.add_dependency "activemodel", ">= 4.2", "< 5.2"
|
23
23
|
spec.add_dependency "model_attribute", "~> 2.1"
|
24
24
|
end
|
data/lib/fidor_api/auth.rb
CHANGED
@@ -3,14 +3,14 @@ module FidorApi
|
|
3
3
|
module Auth
|
4
4
|
extend self
|
5
5
|
|
6
|
-
def authorize_url
|
7
|
-
fidor_authorize_url
|
6
|
+
def authorize_url(callback_url: nil)
|
7
|
+
fidor_authorize_url(callback_url: callback_url)
|
8
8
|
end
|
9
9
|
|
10
|
-
def fetch_token(code)
|
10
|
+
def fetch_token(code, callback_url: nil)
|
11
11
|
response = connection.post "/oauth/token", {
|
12
12
|
client_id: FidorApi.configuration.client_id,
|
13
|
-
redirect_uri: FidorApi.configuration.callback_url,
|
13
|
+
redirect_uri: callback_url || FidorApi.configuration.callback_url,
|
14
14
|
code: code,
|
15
15
|
grant_type: "authorization_code"
|
16
16
|
}
|
@@ -37,8 +37,8 @@ module FidorApi
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def fidor_authorize_url(state
|
41
|
-
"#{FidorApi.configuration.oauth_url}/oauth/authorize?client_id=#{FidorApi.configuration.client_id}&redirect_uri=#{CGI::escape FidorApi.configuration.callback_url}&state=#{state}&response_type=code"
|
40
|
+
def fidor_authorize_url(state: "empty", callback_url:)
|
41
|
+
"#{FidorApi.configuration.oauth_url}/oauth/authorize?client_id=#{FidorApi.configuration.client_id}&redirect_uri=#{CGI::escape(callback_url || FidorApi.configuration.callback_url)}&state=#{state}&response_type=code"
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
data/lib/fidor_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fidor_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Fidor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '4.2'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '5.
|
36
|
+
version: '5.2'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '4.2'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '5.
|
46
|
+
version: '5.2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: activemodel
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '4.2'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '5.
|
56
|
+
version: '5.2'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '4.2'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '5.
|
66
|
+
version: '5.2'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: model_attribute
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
version: '2.1'
|
81
81
|
description: Connect to the Fidor Bank API
|
82
82
|
email:
|
83
|
-
-
|
83
|
+
- connect@fidor.com
|
84
84
|
executables: []
|
85
85
|
extensions: []
|
86
86
|
extra_rdoc_files: []
|
@@ -151,7 +151,7 @@ files:
|
|
151
151
|
- lib/fidor_api/transfer/utility.rb
|
152
152
|
- lib/fidor_api/user.rb
|
153
153
|
- lib/fidor_api/version.rb
|
154
|
-
homepage: https://github.com/
|
154
|
+
homepage: https://github.com/fidor/fidor_api
|
155
155
|
licenses:
|
156
156
|
- MIT
|
157
157
|
metadata: {}
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.6.
|
174
|
+
rubygems_version: 2.6.11
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Simple ruby client for the Fidor Bank API
|