starkit_banking 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 534bad6829c34e7250d6043aa0497970c0900f7d
4
- data.tar.gz: 6866598551d0d0ce29490188e8b734959c6b1977
3
+ metadata.gz: 10d99b617d98f34eedd889711faad26bc3dd7929
4
+ data.tar.gz: 1af9f6a75d5bbd89ff091ab397b28bf6b10439bd
5
5
  SHA512:
6
- metadata.gz: d938ee968ad0848c97b63fae120e2b9de2ba7c6ae8d13b1d5edf82174609d074245ca36ada5fa0cd3712714e2ada9f7c92ec5b2f9ee52bafe18de006993c6b50
7
- data.tar.gz: 46e41598b3a961444043e783f4c02106991f56d6c0a9bfc6ac10b32be2ae3d899e84a232e140dd793dee50e9b8ee3f7262bcb201de3b3783803d6f0bda1dc61c
6
+ metadata.gz: bd112344154513159680a80ef1fd8589ad5d8c3f7b858f4d31520c65d9bf8836bdb0b0ff27b5ee48d521580d3690f4e11aab6be41c06347e5844d88fb7162f5e
7
+ data.tar.gz: e48978bf6919be2e50db0958a09adb705b2b45cf992324e4d6a66aa12e529225e03abf9f569322be079e1228ce010f5e10fc878a30f764c987d4bde5a3bc1f32
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /vendor/
10
+ .DS_Store
data/Gemfile.lock CHANGED
@@ -1,15 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- starkit_banking (0.1.5)
4
+ starkit_banking (0.1.7)
5
5
  activerecord (~> 4.2.7)
6
6
  activesupport (~> 4.2.7)
7
7
  api_banking (= 0.1.17)
8
8
  money (= 6.7.1)
9
+ railties (~> 4.2.7)
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
12
13
  specs:
14
+ actionpack (4.2.7.1)
15
+ actionview (= 4.2.7.1)
16
+ activesupport (= 4.2.7.1)
17
+ rack (~> 1.6)
18
+ rack-test (~> 0.6.2)
19
+ rails-dom-testing (~> 1.0, >= 1.0.5)
20
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
+ actionview (4.2.7.1)
22
+ activesupport (= 4.2.7.1)
23
+ builder (~> 3.1)
24
+ erubis (~> 2.7.0)
25
+ rails-dom-testing (~> 1.0, >= 1.0.5)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
13
27
  activemodel (4.2.7.1)
14
28
  activesupport (= 4.2.7.1)
15
29
  builder (~> 3.1)
@@ -32,12 +46,15 @@ GEM
32
46
  builder (3.2.2)
33
47
  crack (0.4.3)
34
48
  safe_yaml (~> 1.0.0)
49
+ erubis (2.7.0)
35
50
  ethon (0.10.1)
36
51
  ffi (>= 1.3.0)
37
52
  ffi (1.9.14)
38
53
  hashdiff (0.3.1)
39
54
  i18n (0.7.0)
40
55
  json (1.8.3)
56
+ loofah (2.0.3)
57
+ nokogiri (>= 1.5.9)
41
58
  mini_portile2 (2.1.0)
42
59
  minitest (5.9.1)
43
60
  money (6.7.1)
@@ -46,9 +63,26 @@ GEM
46
63
  nokogiri (1.6.8.1)
47
64
  mini_portile2 (~> 2.1.0)
48
65
  public_suffix (2.0.4)
66
+ rack (1.6.5)
67
+ rack-test (0.6.3)
68
+ rack (>= 1.0)
69
+ rails-deprecated_sanitizer (1.0.3)
70
+ activesupport (>= 4.2.0.alpha)
71
+ rails-dom-testing (1.0.7)
72
+ activesupport (>= 4.2.0.beta, < 5.0)
73
+ nokogiri (~> 1.6.0)
74
+ rails-deprecated_sanitizer (>= 1.0.1)
75
+ rails-html-sanitizer (1.0.3)
76
+ loofah (~> 2.0)
77
+ railties (4.2.7.1)
78
+ actionpack (= 4.2.7.1)
79
+ activesupport (= 4.2.7.1)
80
+ rake (>= 0.8.7)
81
+ thor (>= 0.18.1, < 2.0)
49
82
  rake (10.5.0)
50
83
  safe_yaml (1.0.4)
51
84
  sixarm_ruby_unaccent (1.1.1)
85
+ thor (0.19.4)
52
86
  thread_safe (0.3.5)
53
87
  typhoeus (1.1.2)
54
88
  ethon (>= 0.9.0)
@@ -0,0 +1,14 @@
1
+ require 'rails/generators/active_record'
2
+
3
+ module StarkitBanking
4
+ # Migration generator that creates migration file from template
5
+ class MigrationsGenerator < ActiveRecord::Generators::Base
6
+ source_root File.expand_path("../templates", __FILE__)
7
+
8
+ argument :name, :type => :string, :default => 'create_api_steps'
9
+ # Create migration in project's folder
10
+ def generate_files
11
+ migration_template 'api_step.rb', "db/migrate/#{name}.rb"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,26 @@
1
+ class CreateApiSteps < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :api_steps, force: true do |table|
4
+ table.integer :star_id, null: false, comment: 'the id column in the organization table'
5
+ table.string :step_name, null: false, comment: 'the name of the api step'
6
+ table.string :auditable_type, null: false, comment: 'the type of the parent for which this api call has been made'
7
+ table.integer :auditable_id, null:false, comment: 'the id of the parent for which this api call has been made'
8
+ table.string :status_code, comment: 'the http status code for the api response'
9
+ table.string :req_reference, comment: 'the reference number for the api request'
10
+ table.datetime :req_timestamp, comment: 'the timestamp this api request was made'
11
+ table.text :req_bistream, comment: 'the xml request for the api call'
12
+ table.string :rep_reference, comment: 'the reference number in the api response'
13
+ table.datetime :rep_timestamp, comment: 'the timestamp this api response was received'
14
+ table.text :rep_bistream, comment: 'the xml of the api response'
15
+ table.string :fault_code, comment: 'the fault code for api in case of error'
16
+ table.string :fault_subcode, comment: 'the fault sub-code for api in case of error'
17
+ table.string :fault_reason, comment: 'the fault reason for api in case of error'
18
+ end
19
+
20
+ add_index :api_steps, [:star_id, :auditable_type, :auditable_id]
21
+ end
22
+
23
+ def self.down
24
+ drop_table :api_steps
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module StarkitBanking
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -27,5 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "money", "6.7.1"
28
28
  spec.add_dependency "activesupport", "~> 4.2.7"
29
29
  spec.add_dependency "activerecord", "~> 4.2.7"
30
+ spec.add_dependency "railties", "~> 4.2.7"
30
31
  spec.add_dependency "api_banking", "0.1.17"
31
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starkit_banking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - akil
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 4.2.7
125
+ - !ruby/object:Gem::Dependency
126
+ name: railties
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 4.2.7
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 4.2.7
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: api_banking
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -153,6 +167,8 @@ files:
153
167
  - Rakefile
154
168
  - bin/console
155
169
  - bin/setup
170
+ - lib/generators/starkit_banking/migrations_generator.rb
171
+ - lib/generators/starkit_banking/templates/api_step.rb
156
172
  - lib/starkit_banking.rb
157
173
  - lib/starkit_banking/api/client.rb
158
174
  - lib/starkit_banking/api/environment.rb
@@ -169,8 +185,6 @@ files:
169
185
  - lib/starkit_banking/api/ybl/payment/imt.rb
170
186
  - lib/starkit_banking/concerns/bank_account.rb
171
187
  - lib/starkit_banking/concerns/payment.rb
172
- - lib/starkit_banking/generators/active_record_generator.rb
173
- - lib/starkit_banking/generators/templates/migration.rb
174
188
  - lib/starkit_banking/models/api_step.rb
175
189
  - lib/starkit_banking/step_engine.rb
176
190
  - lib/starkit_banking/sync/action.rb
@@ -1,26 +0,0 @@
1
- class CreateApiSteps < ActiveRecord::Migration
2
- def self.up
3
- create_table :api_steps, force: true do |table|
4
- table.integer :star_id null: false,
5
- table.string :step_name null: false,
6
- table.string :auditable_type null: false,
7
- table.integer :auditable_id null:false,
8
- table.string :status_code,
9
- table.string :req_reference,
10
- table.datetime :req_timestamp
11
- table.text :req_bistream
12
- table.string :rep_reference,
13
- table.datetime :rep_timestamp
14
- table.text :rep_bistream
15
- table.string :fault_code,
16
- table.string :fault_subcode,
17
- table.string :fault_reason,
18
- end
19
-
20
- add_index :api_steps, [:star_id, :auditable_type, :auditable_id]
21
- end
22
-
23
- def self.down
24
- drop_table :api_steps
25
- end
26
- end