fidor_starter_kits 0.6.0 → 0.7.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
- SHA1:
3
- metadata.gz: c40f1a70c94e4892f40607a57997d6d8f3a3f684
4
- data.tar.gz: 25a939d8c4eabb519dc5d27dccf031adfeef229f
2
+ SHA256:
3
+ metadata.gz: 0b5229fc633eccd785476aadfa4acecc37d84920e62d8c142c8ba6d1a2d44998
4
+ data.tar.gz: 6f80f4e61e06057a3821f49ab9bacda0cd153bb341b28cc1ce66a718a82b07ad
5
5
  SHA512:
6
- metadata.gz: 3c055c409b78ac09c41a3305f37f80678ced864462ab2e9e30dd8620e2e98ed4b38aac02d0c70e19ed1c1f515461f14e2ea4f7e9c50a06a481f8c556c8b52f9d
7
- data.tar.gz: f21988b94f1a1f24b905a07059febdebf3248efff20acb35bad57aec7c6dd3526d1e01c2b4413740475cafabc824457ad9fed02828b67949d889e7a3026dc5a9
6
+ metadata.gz: 25e9d52e9c00e21f65589f119229bb5c7432bfe2119dfcfe7556d2a1287afaf12f0d5be0ed8bf6d5c6bb7130feeed6936f380062b3bd91992aaf94b93b28921a
7
+ data.tar.gz: 396b877924a45c91a9a357756cb66bc9b8b6ae22691f771231558d2fc2d699814ab6d7060c9ea0b1a8d3fec5acf09c4bc98adad31fe20b40608f7fbe08518cff
data/CHANGELOG.md CHANGED
@@ -1,27 +1,31 @@
1
1
  # Changelog Fidor Admin API Schema
2
+
2
3
  See [commit messages](https://github.com/fidor/fidor_starter_kits/commits/) for details.
3
4
 
4
- ##2016-04
5
+ ## 2018-04
6
+
7
+ * add Ruby on Rails Fidor API Demo Application
8
+
9
+ ## 2016-04
5
10
 
6
11
  * add PHP advanced example
7
12
 
8
- ##2016-01
13
+ ## 2016-01
9
14
 
10
15
  * remove client_secret usage in params => moved to BasicAuth header
11
16
 
12
- ##2015-06
17
+ ## 2015-06
13
18
 
14
19
  * fix usage of access_token in api URLs, now set in Authorization Header
15
20
 
16
- ##2015-01
21
+ ## 2015-01
17
22
 
18
- *fix proper TLS handling for node example
23
+ * fix proper TLS handling for node example
19
24
 
20
- ##2014-12
25
+ ## 2014-12
21
26
 
22
27
  * make starter kits use all required oauth params: state, response_type, grant_type
23
28
 
24
-
25
- ##2014-11
29
+ ## 2014-11
26
30
 
27
31
  * init with plain oauth examples for php, ruby, nodejs, golang, java
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Georg Leciejewski
1
+ Copyright (c) 2018 Fidor Solutions AG
2
2
 
3
3
  MIT License
4
4
 
@@ -6,11 +6,11 @@ require 'fidor_starter_kits/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fidor_starter_kits"
8
8
  spec.version = FidorStarterKits::VERSION
9
- spec.authors = ["Georg Leciejewski"]
10
- spec.email = ["dev@fidor.de"]
9
+ spec.authors = ["Fidor Solutions AG"]
10
+ spec.email = ["connect@fidor.com"]
11
11
  spec.summary = %q{BETA - Starter Kits for building fidor apps.}
12
12
  spec.description = %q{Fidor application examples for different languages. They rely on the BETA Version of the API so things may change.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/fidor/fidor_starter_kits"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -18,8 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_runtime_dependency "rubyzip"
22
- spec.add_development_dependency "bundler", "~> 1.5"
23
- spec.add_development_dependency "rake"
24
- spec.add_development_dependency 'rspec'
21
+ spec.add_runtime_dependency 'rubyzip', '~> 1.2'
22
+ spec.add_development_dependency 'bundler', '~> 1.16'
23
+ spec.add_development_dependency 'rake', '~> 12.3'
24
+ spec.add_development_dependency 'rspec', '~> 3.7'
25
+ spec.add_development_dependency 'byebug', '~> 10.0'
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module FidorStarterKits
2
- VERSION = '0.6.0'
3
- end
2
+ VERSION = '0.7.0'
3
+ end
@@ -6,7 +6,7 @@ require 'json'
6
6
 
7
7
  module FidorStarterKits
8
8
 
9
- STARTER_KITS = %w{ node_tx golang_transactions php_oauth_plain ruby_oauth_plain java_servlet php_advanced }
9
+ STARTER_KITS = %w{ ruby_on_rails_api_demo ruby_oauth_plain php_oauth_plain php_advanced golang_transactions java_servlet node_tx }
10
10
 
11
11
  class << self
12
12
 
@@ -40,7 +40,7 @@ module FidorStarterKits
40
40
  FileUtils.copy_entry example_src_path, tmp_src_dir
41
41
 
42
42
  # read example files and replace placeholder with id/secret
43
- example_files = File.join(tmp_src_dir, "**", "[Ee]xample.*")
43
+ example_files = File.join(tmp_src_dir, "**", "{[Ee]xample.*,app.json,.env}")
44
44
 
45
45
  Dir.glob(example_files) do |example_file|
46
46
  content = File.read(example_file)
@@ -53,7 +53,7 @@ module FidorStarterKits
53
53
  # create zip file in tmp dir
54
54
  zip_file_path = File.join(tmp_src_dir, "#{app_name}.zip")
55
55
  Zip::File.open(zip_file_path, Zip::File::CREATE) do |zipfile|
56
- Dir.glob(File.join(tmp_src_dir, '**', '**'), File::FNM_DOTMATCH).each do |file|
56
+ Dir.glob(File.join(tmp_src_dir, '**', '**'), File::FNM_DOTMATCH).each do |file|
57
57
  zipfile.add(file.sub("#{tmp_src_dir}/", ''), file) unless file.end_with? '.'
58
58
  end
59
59
  end
@@ -56,6 +56,7 @@ describe FidorStarterKits do
56
56
 
57
57
  it 'loads the json meta data' do
58
58
  conf = FidorStarterKits.all
59
+ expect(conf["ruby_on_rails_api_demo"]["display_name"]).to eq("Ruby on Rails Fidor API Demo Application")
59
60
  expect(conf["golang_transactions"]["display_name"]).to eq("Go Transactions")
60
61
  expect(conf["node_tx"]["description"]).to eq("NodeJS app getting transactions and accounts. Handling oAuth login.")
61
62
  expect(conf["php_oauth_plain"]["app_name"]).to eq("php_oauth_plain")
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,5 @@ $:.unshift(File.dirname(__FILE__))
3
3
  $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
4
 
5
5
  require 'rspec'
6
+ require 'byebug'
6
7
  require 'fidor_starter_kits'
7
- RSpec.configure do |config|
8
- end
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "display_name" : "Go Transactions",
3
3
  "description" : "Golang app getting transactions & accounts and handling oAuth based logins.",
4
+ "description-de" : "Golang  App für Transaktionen und Abruf von Kontodaten, Handhabung mit dem OAuth-Token",
4
5
  "app_name":"golang_transactions",
5
6
  "app_url":"http://localhost:8080",
6
7
  "callback_urls":"http://localhost:8080",
@@ -1,3 +1,3 @@
1
- Manifest-Version: 1.0
2
- Class-Path:
3
-
1
+ Manifest-Version: 1.0
2
+ Class-Path:
3
+
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "display_name" : "NodeJS Transactions",
3
3
  "description" : "NodeJS app getting transactions and accounts. Handling oAuth login.",
4
+ "description-de" : "NodeJS App für Transaktionen und Abruf von Kontodaten, Handhabung mit dem OAuth-Token",
4
5
  "app_name":"node_tx",
5
6
  "app_url":"http://localhost:3141",
6
7
  "callback_urls":"http://localhost:3141",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "display_name" : "PHP Advanced",
3
3
  "description" : "PHP Website using multiple API objects and a tiny PHP SDK",
4
+ "description-de" : "PHP Website die viele API Funktionen nutzt und ein kleines SDK enthält",
4
5
  "app_name":"php_advanced",
5
6
  "app_url":"http://localhost:8000",
6
7
  "callback_urls":"http://localhost:8000",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "display_name" : "PHP oAuth Plain",
3
3
  "description" : "PHP script getting the access token",
4
+ "description-de" : "PHP Skript um ein OAuth Access-Token zu erhalten",
4
5
  "app_name":"php_oauth_plain",
5
6
  "app_url":"http://localhost:8000/example.php",
6
7
  "callback_urls":"http://localhost:8000/example.php",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "display_name" : "Ruby oAuth Plain",
3
3
  "description" : "Ruby app doing the oAuth login to get and use the access token. Uses Sinatra as server.",
4
+ "description-de" : "Ruby App um ein OAuth Access-Token zu erhalten.",
4
5
  "app_name":"ruby_oauth_plain",
5
6
  "app_url":"http://localhost:4567",
6
7
  "callback_urls":"http://localhost:4567",
@@ -0,0 +1,6 @@
1
+ FIDOR_API_CALLBACK=<APP_URL>/auth/callback
2
+ FIDOR_API_CLIENT_ID=<CLIENT_ID>
3
+ FIDOR_API_CLIENT_SECRET=<CLIENT_SECRET>
4
+ FIDOR_API_LOGGING=true
5
+ FIDOR_API_URL=<FIDOR_API_URL>
6
+ FIDOR_OAUTH_URL=<FIDOR_OAUTH_URL>
@@ -0,0 +1,9 @@
1
+ {
2
+ "display_name" : "Ruby on Rails Fidor API Demo Application",
3
+ "description" : "Demo Application for the `fidor_api` gem",
4
+ "description-de" : "Demo Application for the `fidor_api` gem",
5
+ "app_name": "ruby_on_rails_api_demo",
6
+ "app_url": "http://localhost:4000",
7
+ "callback_urls": "http://localhost:4000/auth/callback",
8
+ "language" : "ruby"
9
+ }
@@ -0,0 +1,11 @@
1
+ # Fidor API Demo
2
+
3
+ This [Rails](http://rubyonrails.org) application demonstrates the capabilities of Fidor Bank API powered by the [fidor_api](https://github.com/fidor/fidor_api) ruby library.
4
+
5
+ ## Production Setup & Deployment
6
+
7
+ Please read the detailed setup instructions on https://github.com/fidor/fidor_api_demo
8
+
9
+ ### Heroku deployment
10
+
11
+ Copy the generated `app.json` file to the fidor_api_demo directory, this will prefill all required environment variables.
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "Fidor API Demo",
3
+ "description": "This application demonstrates the capabilities of Fidor Bank API powered by the `fidor_api` ruby library.",
4
+ "repository": "https://github.com/fidor/fidor_api_demo",
5
+ "keywords": ["fidor", "api", "demo", "rails"],
6
+ "env": {
7
+ "FIDOR_API_CALLBACK": {
8
+ "description": "The customer is redirected back to this URL during the oAuth flow",
9
+ "value": "<APP_URL>/auth/callback"
10
+ },
11
+ "FIDOR_API_CLIENT_ID": {
12
+ "description": "The unique ID assigned to your application by fidor",
13
+ "value": "<CLIENT_ID>"
14
+ },
15
+ "FIDOR_API_CLIENT_SECRET": {
16
+ "description": "The secret assigned to your application by fidor",
17
+ "value": "<CLIENT_SECRET>"
18
+ },
19
+ "FIDOR_API_LOGGING": {
20
+ "description": "Whether the `fidor_api` gem should log all requests done against the Fidor API",
21
+ "value": "true"
22
+ },
23
+ "FIDOR_API_URL": {
24
+ "description": "The API endpoint which the `fidor_api` gem should use for regular requests",
25
+ "value": "<FIDOR_API_URL>"
26
+ },
27
+ "FIDOR_OAUTH_URL": {
28
+ "description": "The API endpoint which the `fidor_api` gem should use for oAuth requests",
29
+ "value": "<FIDOR_OAUTH_URL>"
30
+ },
31
+ "RAILS_ENV": {
32
+ "description": "Runs the rails application in production mode",
33
+ "value": "production"
34
+ },
35
+ "RAILS_LOG_TO_STDOUT": {
36
+ "description": "Tells rails to log to STDOUT instead of a local logfile",
37
+ "value": "true"
38
+ },
39
+ "RAILS_SERVE_STATIC_FILES": {
40
+ "description": "Tells rails to service static files by the application server",
41
+ "value": "true"
42
+ },
43
+ "SECRET_KEY_BASE": {
44
+ "description": "A secret key used for different encryptions and checksums in rails",
45
+ "generator": "secret"
46
+ }
47
+ }
48
+ }
metadata CHANGED
@@ -1,75 +1,89 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fidor_starter_kits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
- - Georg Leciejewski
7
+ - Fidor Solutions AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
33
+ version: '1.16'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.5'
40
+ version: '1.16'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '12.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '12.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '3.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: byebug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: '10.0'
69
83
  description: Fidor application examples for different languages. They rely on the
70
84
  BETA Version of the API so things may change.
71
85
  email:
72
- - dev@fidor.de
86
+ - connect@fidor.com
73
87
  executables: []
74
88
  extensions: []
75
89
  extra_rdoc_files: []
@@ -166,7 +180,11 @@ files:
166
180
  - starter_kits/ruby_oauth_plain/Gemfile
167
181
  - starter_kits/ruby_oauth_plain/README.md
168
182
  - starter_kits/ruby_oauth_plain/example.rb
169
- homepage: ''
183
+ - starter_kits/ruby_on_rails_api_demo/.env
184
+ - starter_kits/ruby_on_rails_api_demo/.fidor_meta.json
185
+ - starter_kits/ruby_on_rails_api_demo/README.md
186
+ - starter_kits/ruby_on_rails_api_demo/app.json
187
+ homepage: https://github.com/fidor/fidor_starter_kits
170
188
  licenses:
171
189
  - MIT
172
190
  metadata: {}
@@ -186,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
204
  version: '0'
187
205
  requirements: []
188
206
  rubyforge_project:
189
- rubygems_version: 2.2.2
207
+ rubygems_version: 2.7.6
190
208
  signing_key:
191
209
  specification_version: 4
192
210
  summary: BETA - Starter Kits for building fidor apps.