veritrans 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.idea/.gitignore +8 -0
- data/.rubocop.yml +1 -1
- data/.travis.yml +2 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile +2 -11
- data/Gemfile.lock +116 -145
- data/Maintaining.MD +8 -0
- data/README.md +247 -278
- data/api_reference.md +482 -173
- data/example/coreapi/core_api_credit_card_example.rb +66 -0
- data/example/coreapi/readme.md +4 -0
- data/example/sinatra/Gemfile +7 -0
- data/example/sinatra/README.md +4 -6
- data/example/sinatra/index.erb +180 -192
- data/example/sinatra/response.erb +1 -40
- data/example/sinatra/snap.erb +33 -0
- data/example/sinatra/snap_redirect.erb +10 -0
- data/example/sinatra/webapp.rb +113 -0
- data/example/snap/readme.md +4 -0
- data/example/snap/snap_example.rb +39 -0
- data/lib/test/all.rb +1 -0
- data/lib/test/api_test.rb +319 -0
- data/lib/test/config_test.rb +26 -0
- data/lib/test/gopay_tokenization_test.rb +80 -0
- data/lib/test/snap_test.rb +79 -0
- data/lib/test/subscription_test.rb +116 -0
- data/lib/test/transaction_test.rb +160 -0
- data/lib/veritrans/api.rb +105 -8
- data/lib/veritrans/client.rb +40 -7
- data/lib/veritrans/config.rb +26 -3
- data/lib/veritrans/midtrans_error.rb +15 -0
- data/lib/veritrans/version.rb +1 -1
- data/lib/veritrans.rb +5 -6
- data/veritrans.gemspec +1 -2
- metadata +25 -248
- data/.rspec +0 -2
- data/Procfile +0 -1
- data/Rakefile +0 -16
- data/bin/midtrans +0 -3
- data/bin/veritrans +0 -68
- data/example/rails/cable/Gemfile +0 -48
- data/example/rails/cable/Gemfile.lock +0 -184
- data/example/rails/cable/README.md +0 -29
- data/example/rails/cable/Rakefile +0 -6
- data/example/rails/cable/app/assets/config/manifest.js +0 -3
- data/example/rails/cable/app/assets/images/.keep +0 -0
- data/example/rails/cable/app/assets/javascripts/application.js +0 -15
- data/example/rails/cable/app/assets/javascripts/cable.js +0 -13
- data/example/rails/cable/app/assets/javascripts/channels/.keep +0 -0
- data/example/rails/cable/app/assets/javascripts/chats.js +0 -39
- data/example/rails/cable/app/assets/javascripts/rooms.js +0 -55
- data/example/rails/cable/app/assets/stylesheets/application.css +0 -16
- data/example/rails/cable/app/assets/stylesheets/chatbox.scss +0 -31
- data/example/rails/cable/app/assets/stylesheets/peoplebox.scss +0 -6
- data/example/rails/cable/app/channels/application_cable/channel.rb +0 -4
- data/example/rails/cable/app/channels/application_cable/connection.rb +0 -4
- data/example/rails/cable/app/channels/rooms_texting_channel.rb +0 -13
- data/example/rails/cable/app/controllers/application_controller.rb +0 -3
- data/example/rails/cable/app/controllers/chats_controller.rb +0 -18
- data/example/rails/cable/app/controllers/concerns/.keep +0 -0
- data/example/rails/cable/app/controllers/pays_controller.rb +0 -28
- data/example/rails/cable/app/controllers/rooms_controller.rb +0 -4
- data/example/rails/cable/app/helpers/application_helper.rb +0 -2
- data/example/rails/cable/app/helpers/chats_helper.rb +0 -2
- data/example/rails/cable/app/helpers/rooms_helper.rb +0 -5
- data/example/rails/cable/app/jobs/application_job.rb +0 -2
- data/example/rails/cable/app/jobs/chat_broadcaster_job.rb +0 -15
- data/example/rails/cable/app/mailers/application_mailer.rb +0 -4
- data/example/rails/cable/app/models/application_record.rb +0 -3
- data/example/rails/cable/app/models/chat.rb +0 -41
- data/example/rails/cable/app/models/concerns/.keep +0 -0
- data/example/rails/cable/app/models/order.rb +0 -2
- data/example/rails/cable/app/models/user.rb +0 -2
- data/example/rails/cable/app/views/chats/_chat.html.erb +0 -18
- data/example/rails/cable/app/views/layouts/application.html.erb +0 -19
- data/example/rails/cable/app/views/layouts/mailer.html.erb +0 -13
- data/example/rails/cable/app/views/layouts/mailer.text.erb +0 -1
- data/example/rails/cable/app/views/rooms/_chatbox.html.erb +0 -13
- data/example/rails/cable/app/views/rooms/_online_people.html.erb +0 -53
- data/example/rails/cable/app/views/rooms/index.html.erb +0 -9
- data/example/rails/cable/bin/bundle +0 -3
- data/example/rails/cable/bin/rails +0 -9
- data/example/rails/cable/bin/rake +0 -9
- data/example/rails/cable/bin/setup +0 -34
- data/example/rails/cable/bin/spring +0 -16
- data/example/rails/cable/bin/update +0 -29
- data/example/rails/cable/config/application.rb +0 -16
- data/example/rails/cable/config/boot.rb +0 -3
- data/example/rails/cable/config/cable.yml +0 -9
- data/example/rails/cable/config/database.yml +0 -20
- data/example/rails/cable/config/environment.rb +0 -5
- data/example/rails/cable/config/environments/development.rb +0 -57
- data/example/rails/cable/config/environments/production.rb +0 -86
- data/example/rails/cable/config/environments/test.rb +0 -42
- data/example/rails/cable/config/initializers/application_controller_renderer.rb +0 -6
- data/example/rails/cable/config/initializers/assets.rb +0 -11
- data/example/rails/cable/config/initializers/backtrace_silencers.rb +0 -7
- data/example/rails/cable/config/initializers/cookies_serializer.rb +0 -5
- data/example/rails/cable/config/initializers/filter_parameter_logging.rb +0 -4
- data/example/rails/cable/config/initializers/inflections.rb +0 -16
- data/example/rails/cable/config/initializers/mime_types.rb +0 -4
- data/example/rails/cable/config/initializers/new_framework_defaults.rb +0 -24
- data/example/rails/cable/config/initializers/session_store.rb +0 -3
- data/example/rails/cable/config/initializers/sidekiq.rb +0 -2
- data/example/rails/cable/config/initializers/veritrans.rb +0 -46
- data/example/rails/cable/config/initializers/wrap_parameters.rb +0 -14
- data/example/rails/cable/config/locales/en.yml +0 -23
- data/example/rails/cable/config/puma.rb +0 -47
- data/example/rails/cable/config/routes.rb +0 -18
- data/example/rails/cable/config/secrets.yml +0 -22
- data/example/rails/cable/config/spring.rb +0 -6
- data/example/rails/cable/config/veritrans.yml +0 -13
- data/example/rails/cable/config.ru +0 -5
- data/example/rails/cable/db/development.sqlite3 +0 -0
- data/example/rails/cable/db/migrate/20161215070044_create_chats.rb +0 -10
- data/example/rails/cable/db/migrate/20161215072021_create_users.rb +0 -10
- data/example/rails/cable/db/migrate/20161219110219_create_orders.rb +0 -11
- data/example/rails/cable/db/schema.rb +0 -37
- data/example/rails/cable/db/seeds.rb +0 -41
- data/example/rails/cable/db/test.sqlite3 +0 -0
- data/example/rails/cable/lib/assets/.keep +0 -0
- data/example/rails/cable/lib/tasks/.keep +0 -0
- data/example/rails/cable/log/.keep +0 -0
- data/example/rails/cable/public/404.html +0 -67
- data/example/rails/cable/public/422.html +0 -67
- data/example/rails/cable/public/500.html +0 -66
- data/example/rails/cable/public/apple-touch-icon-precomposed.png +0 -0
- data/example/rails/cable/public/apple-touch-icon.png +0 -0
- data/example/rails/cable/public/favicon.ico +0 -0
- data/example/rails/cable/public/images/avatar1.jpg +0 -0
- data/example/rails/cable/public/images/avatar2.jpg +0 -0
- data/example/rails/cable/public/images/avatar3.jpg +0 -0
- data/example/rails/cable/public/images/avatar4.jpg +0 -0
- data/example/rails/cable/public/images/avatar5.jpg +0 -0
- data/example/rails/cable/public/images/avatar6.jpg +0 -0
- data/example/rails/cable/public/robots.txt +0 -5
- data/example/rails/cable/vendor/assets/javascripts/.keep +0 -0
- data/example/rails/cable/vendor/assets/stylesheets/.keep +0 -0
- data/example/rails/cable/vendor/assets/stylesheets/photon.css +0 -2333
- data/example/rails/simplepay/Gemfile +0 -54
- data/example/rails/simplepay/Gemfile.lock +0 -178
- data/example/rails/simplepay/README.md +0 -30
- data/example/rails/simplepay/Rakefile +0 -6
- data/example/rails/simplepay/app/assets/config/manifest.js +0 -3
- data/example/rails/simplepay/app/assets/images/.keep +0 -0
- data/example/rails/simplepay/app/assets/javascripts/application.js +0 -16
- data/example/rails/simplepay/app/assets/javascripts/cable.js +0 -13
- data/example/rails/simplepay/app/assets/javascripts/channels/.keep +0 -0
- data/example/rails/simplepay/app/assets/javascripts/pay.js +0 -18
- data/example/rails/simplepay/app/assets/stylesheets/application.css +0 -15
- data/example/rails/simplepay/app/assets/stylesheets/style.css +0 -254
- data/example/rails/simplepay/app/channels/application_cable/channel.rb +0 -4
- data/example/rails/simplepay/app/channels/application_cable/connection.rb +0 -4
- data/example/rails/simplepay/app/controllers/application_controller.rb +0 -3
- data/example/rails/simplepay/app/controllers/concerns/.keep +0 -0
- data/example/rails/simplepay/app/controllers/home_controller.rb +0 -16
- data/example/rails/simplepay/app/controllers/pay_controller.rb +0 -10
- data/example/rails/simplepay/app/helpers/application_helper.rb +0 -2
- data/example/rails/simplepay/app/helpers/pay_helper.rb +0 -2
- data/example/rails/simplepay/app/jobs/application_job.rb +0 -2
- data/example/rails/simplepay/app/mailers/application_mailer.rb +0 -4
- data/example/rails/simplepay/app/models/application_record.rb +0 -3
- data/example/rails/simplepay/app/models/concerns/.keep +0 -0
- data/example/rails/simplepay/app/models/order.rb +0 -2
- data/example/rails/simplepay/app/views/home/index.html.erb +0 -19
- data/example/rails/simplepay/app/views/layouts/application.html.erb +0 -15
- data/example/rails/simplepay/app/views/layouts/mailer.html.erb +0 -13
- data/example/rails/simplepay/app/views/layouts/mailer.text.erb +0 -1
- data/example/rails/simplepay/app/views/pay/notify.html.erb +0 -2
- data/example/rails/simplepay/bin/bundle +0 -3
- data/example/rails/simplepay/bin/rails +0 -9
- data/example/rails/simplepay/bin/rake +0 -9
- data/example/rails/simplepay/bin/setup +0 -34
- data/example/rails/simplepay/bin/spring +0 -16
- data/example/rails/simplepay/bin/update +0 -29
- data/example/rails/simplepay/config/application.rb +0 -15
- data/example/rails/simplepay/config/boot.rb +0 -3
- data/example/rails/simplepay/config/cable.yml +0 -9
- data/example/rails/simplepay/config/database.yml +0 -25
- data/example/rails/simplepay/config/environment.rb +0 -5
- data/example/rails/simplepay/config/environments/development.rb +0 -57
- data/example/rails/simplepay/config/environments/production.rb +0 -86
- data/example/rails/simplepay/config/environments/test.rb +0 -42
- data/example/rails/simplepay/config/initializers/application_controller_renderer.rb +0 -6
- data/example/rails/simplepay/config/initializers/assets.rb +0 -11
- data/example/rails/simplepay/config/initializers/backtrace_silencers.rb +0 -7
- data/example/rails/simplepay/config/initializers/cookies_serializer.rb +0 -5
- data/example/rails/simplepay/config/initializers/filter_parameter_logging.rb +0 -4
- data/example/rails/simplepay/config/initializers/inflections.rb +0 -16
- data/example/rails/simplepay/config/initializers/mime_types.rb +0 -4
- data/example/rails/simplepay/config/initializers/new_framework_defaults.rb +0 -24
- data/example/rails/simplepay/config/initializers/session_store.rb +0 -3
- data/example/rails/simplepay/config/initializers/veritrans.rb +0 -46
- data/example/rails/simplepay/config/initializers/wrap_parameters.rb +0 -14
- data/example/rails/simplepay/config/locales/en.yml +0 -23
- data/example/rails/simplepay/config/puma.rb +0 -47
- data/example/rails/simplepay/config/routes.rb +0 -5
- data/example/rails/simplepay/config/secrets.yml +0 -22
- data/example/rails/simplepay/config/spring.rb +0 -6
- data/example/rails/simplepay/config/veritrans.yml +0 -18
- data/example/rails/simplepay/config.ru +0 -5
- data/example/rails/simplepay/db/development.sqlite3 +0 -0
- data/example/rails/simplepay/db/migrate/20161221090855_create_orders.rb +0 -10
- data/example/rails/simplepay/db/schema.rb +0 -22
- data/example/rails/simplepay/db/seeds.rb +0 -7
- data/example/rails/simplepay/db/test.sqlite3 +0 -0
- data/example/rails/simplepay/lib/assets/.keep +0 -0
- data/example/rails/simplepay/lib/tasks/.keep +0 -0
- data/example/rails/simplepay/log/.keep +0 -0
- data/example/rails/simplepay/public/404.html +0 -67
- data/example/rails/simplepay/public/422.html +0 -67
- data/example/rails/simplepay/public/500.html +0 -66
- data/example/rails/simplepay/public/apple-touch-icon-precomposed.png +0 -0
- data/example/rails/simplepay/public/apple-touch-icon.png +0 -0
- data/example/rails/simplepay/public/favicon.ico +0 -0
- data/example/rails/simplepay/public/robots.txt +0 -5
- data/example/rails/simplepay/vendor/assets/javascripts/.keep +0 -0
- data/example/rails/simplepay/vendor/assets/stylesheets/.keep +0 -0
- data/example/sinatra/config.ru +0 -9
- data/example/sinatra/localization.erb +0 -249
- data/example/sinatra/points.erb +0 -188
- data/example/sinatra/recurring.erb +0 -201
- data/example/sinatra/sinatra.rb +0 -194
- data/example/sinatra/style.css +0 -137
- data/example/sinatra/veritrans.yml +0 -11
- data/example/sinatra/widget.erb +0 -63
- data/lib/generators/templates/assets/credit_card_form.js +0 -57
- data/lib/generators/templates/payments_controller.rb +0 -85
- data/lib/generators/templates/veritrans.rb +0 -46
- data/lib/generators/templates/veritrans.yml +0 -18
- data/lib/generators/templates/views/_credit_card_form.erb +0 -42
- data/lib/generators/templates/views/_veritrans_include.erb +0 -10
- data/lib/generators/templates/views/payments/create.erb +0 -15
- data/lib/generators/templates/views/payments/new.erb +0 -6
- data/lib/generators/veritrans/install_generator.rb +0 -32
- data/lib/generators/veritrans/payment_form_generator.rb +0 -45
- data/lib/veritrans/cli.rb +0 -161
- data/lib/veritrans/testing.rb +0 -156
- data/spec/cli_spec.rb +0 -83
- data/spec/configs/real_key.yml +0 -4
- data/spec/configs/veritrans.yml +0 -7
- data/spec/configs/veritrans_flat.yml +0 -2
- data/spec/configs/veritrans_with_erb.yml +0 -2
- data/spec/fixtures/approve_failed.yml +0 -48
- data/spec/fixtures/cancel_failed.yml +0 -48
- data/spec/fixtures/cancel_success.yml +0 -126
- data/spec/fixtures/capture_failed.yml +0 -48
- data/spec/fixtures/charge.yml +0 -50
- data/spec/fixtures/charge_direct.yml +0 -56
- data/spec/fixtures/charge_vtweb.yml +0 -50
- data/spec/fixtures/cli_test_1111-not-exists.yml +0 -45
- data/spec/fixtures/cli_test_not_exists.yml +0 -45
- data/spec/fixtures/cli_test_real_txn.yml +0 -55
- data/spec/fixtures/cli_test_unauthorized.yml +0 -47
- data/spec/fixtures/deny_failed.yml +0 -144
- data/spec/fixtures/events_test_real_txn.yml +0 -55
- data/spec/fixtures/expire_failed.yml +0 -50
- data/spec/fixtures/expire_success.yml +0 -56
- data/spec/fixtures/midtrans_status.yml +0 -117
- data/spec/fixtures/refund_failed.yml +0 -54
- data/spec/fixtures/status_fail.yml +0 -48
- data/spec/fixtures/status_success.yml +0 -128
- data/spec/fixtures/test_token.yml +0 -49
- data/spec/midtrans_rename_spec.rb +0 -27
- data/spec/rails_plugin_spec.rb +0 -317
- data/spec/spec_helper.rb +0 -71
- data/spec/veritrans_client_spec.rb +0 -235
- data/spec/veritrans_config_spec.rb +0 -70
- data/spec/veritrans_events_spec.rb +0 -72
- data/spec/veritrans_logger_spec.rb +0 -46
- data/spec/veritrans_snap_spec.rb +0 -54
- data/spec/veritrans_testing_spec.rb +0 -184
- data/testing_webhooks.md +0 -78
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veritrans
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Veritrans Dev Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -27,275 +27,53 @@ dependencies:
|
|
27
27
|
description: Veritrans ruby client
|
28
28
|
email:
|
29
29
|
- pavel.evstigneev@midtrans.com
|
30
|
-
executables:
|
31
|
-
- veritrans
|
32
|
-
- midtrans
|
30
|
+
executables: []
|
33
31
|
extensions: []
|
34
32
|
extra_rdoc_files: []
|
35
33
|
files:
|
36
34
|
- ".gitignore"
|
37
|
-
- ".
|
35
|
+
- ".idea/.gitignore"
|
38
36
|
- ".rubocop.yml"
|
39
37
|
- ".travis.yml"
|
40
38
|
- CHANGELOG.md
|
41
39
|
- Gemfile
|
42
40
|
- Gemfile.lock
|
43
|
-
-
|
41
|
+
- Maintaining.MD
|
44
42
|
- README.md
|
45
|
-
- Rakefile
|
46
43
|
- api_reference.md
|
47
|
-
-
|
48
|
-
-
|
49
|
-
- example/
|
50
|
-
- example/rails/cable/Gemfile.lock
|
51
|
-
- example/rails/cable/README.md
|
52
|
-
- example/rails/cable/Rakefile
|
53
|
-
- example/rails/cable/app/assets/config/manifest.js
|
54
|
-
- example/rails/cable/app/assets/images/.keep
|
55
|
-
- example/rails/cable/app/assets/javascripts/application.js
|
56
|
-
- example/rails/cable/app/assets/javascripts/cable.js
|
57
|
-
- example/rails/cable/app/assets/javascripts/channels/.keep
|
58
|
-
- example/rails/cable/app/assets/javascripts/chats.js
|
59
|
-
- example/rails/cable/app/assets/javascripts/rooms.js
|
60
|
-
- example/rails/cable/app/assets/stylesheets/application.css
|
61
|
-
- example/rails/cable/app/assets/stylesheets/chatbox.scss
|
62
|
-
- example/rails/cable/app/assets/stylesheets/peoplebox.scss
|
63
|
-
- example/rails/cable/app/channels/application_cable/channel.rb
|
64
|
-
- example/rails/cable/app/channels/application_cable/connection.rb
|
65
|
-
- example/rails/cable/app/channels/rooms_texting_channel.rb
|
66
|
-
- example/rails/cable/app/controllers/application_controller.rb
|
67
|
-
- example/rails/cable/app/controllers/chats_controller.rb
|
68
|
-
- example/rails/cable/app/controllers/concerns/.keep
|
69
|
-
- example/rails/cable/app/controllers/pays_controller.rb
|
70
|
-
- example/rails/cable/app/controllers/rooms_controller.rb
|
71
|
-
- example/rails/cable/app/helpers/application_helper.rb
|
72
|
-
- example/rails/cable/app/helpers/chats_helper.rb
|
73
|
-
- example/rails/cable/app/helpers/rooms_helper.rb
|
74
|
-
- example/rails/cable/app/jobs/application_job.rb
|
75
|
-
- example/rails/cable/app/jobs/chat_broadcaster_job.rb
|
76
|
-
- example/rails/cable/app/mailers/application_mailer.rb
|
77
|
-
- example/rails/cable/app/models/application_record.rb
|
78
|
-
- example/rails/cable/app/models/chat.rb
|
79
|
-
- example/rails/cable/app/models/concerns/.keep
|
80
|
-
- example/rails/cable/app/models/order.rb
|
81
|
-
- example/rails/cable/app/models/user.rb
|
82
|
-
- example/rails/cable/app/views/chats/_chat.html.erb
|
83
|
-
- example/rails/cable/app/views/layouts/application.html.erb
|
84
|
-
- example/rails/cable/app/views/layouts/mailer.html.erb
|
85
|
-
- example/rails/cable/app/views/layouts/mailer.text.erb
|
86
|
-
- example/rails/cable/app/views/rooms/_chatbox.html.erb
|
87
|
-
- example/rails/cable/app/views/rooms/_online_people.html.erb
|
88
|
-
- example/rails/cable/app/views/rooms/index.html.erb
|
89
|
-
- example/rails/cable/bin/bundle
|
90
|
-
- example/rails/cable/bin/rails
|
91
|
-
- example/rails/cable/bin/rake
|
92
|
-
- example/rails/cable/bin/setup
|
93
|
-
- example/rails/cable/bin/spring
|
94
|
-
- example/rails/cable/bin/update
|
95
|
-
- example/rails/cable/config.ru
|
96
|
-
- example/rails/cable/config/application.rb
|
97
|
-
- example/rails/cable/config/boot.rb
|
98
|
-
- example/rails/cable/config/cable.yml
|
99
|
-
- example/rails/cable/config/database.yml
|
100
|
-
- example/rails/cable/config/environment.rb
|
101
|
-
- example/rails/cable/config/environments/development.rb
|
102
|
-
- example/rails/cable/config/environments/production.rb
|
103
|
-
- example/rails/cable/config/environments/test.rb
|
104
|
-
- example/rails/cable/config/initializers/application_controller_renderer.rb
|
105
|
-
- example/rails/cable/config/initializers/assets.rb
|
106
|
-
- example/rails/cable/config/initializers/backtrace_silencers.rb
|
107
|
-
- example/rails/cable/config/initializers/cookies_serializer.rb
|
108
|
-
- example/rails/cable/config/initializers/filter_parameter_logging.rb
|
109
|
-
- example/rails/cable/config/initializers/inflections.rb
|
110
|
-
- example/rails/cable/config/initializers/mime_types.rb
|
111
|
-
- example/rails/cable/config/initializers/new_framework_defaults.rb
|
112
|
-
- example/rails/cable/config/initializers/session_store.rb
|
113
|
-
- example/rails/cable/config/initializers/sidekiq.rb
|
114
|
-
- example/rails/cable/config/initializers/veritrans.rb
|
115
|
-
- example/rails/cable/config/initializers/wrap_parameters.rb
|
116
|
-
- example/rails/cable/config/locales/en.yml
|
117
|
-
- example/rails/cable/config/puma.rb
|
118
|
-
- example/rails/cable/config/routes.rb
|
119
|
-
- example/rails/cable/config/secrets.yml
|
120
|
-
- example/rails/cable/config/spring.rb
|
121
|
-
- example/rails/cable/config/veritrans.yml
|
122
|
-
- example/rails/cable/db/development.sqlite3
|
123
|
-
- example/rails/cable/db/migrate/20161215070044_create_chats.rb
|
124
|
-
- example/rails/cable/db/migrate/20161215072021_create_users.rb
|
125
|
-
- example/rails/cable/db/migrate/20161219110219_create_orders.rb
|
126
|
-
- example/rails/cable/db/schema.rb
|
127
|
-
- example/rails/cable/db/seeds.rb
|
128
|
-
- example/rails/cable/db/test.sqlite3
|
129
|
-
- example/rails/cable/lib/assets/.keep
|
130
|
-
- example/rails/cable/lib/tasks/.keep
|
131
|
-
- example/rails/cable/log/.keep
|
132
|
-
- example/rails/cable/public/404.html
|
133
|
-
- example/rails/cable/public/422.html
|
134
|
-
- example/rails/cable/public/500.html
|
135
|
-
- example/rails/cable/public/apple-touch-icon-precomposed.png
|
136
|
-
- example/rails/cable/public/apple-touch-icon.png
|
137
|
-
- example/rails/cable/public/favicon.ico
|
138
|
-
- example/rails/cable/public/images/avatar1.jpg
|
139
|
-
- example/rails/cable/public/images/avatar2.jpg
|
140
|
-
- example/rails/cable/public/images/avatar3.jpg
|
141
|
-
- example/rails/cable/public/images/avatar4.jpg
|
142
|
-
- example/rails/cable/public/images/avatar5.jpg
|
143
|
-
- example/rails/cable/public/images/avatar6.jpg
|
144
|
-
- example/rails/cable/public/robots.txt
|
145
|
-
- example/rails/cable/vendor/assets/javascripts/.keep
|
146
|
-
- example/rails/cable/vendor/assets/stylesheets/.keep
|
147
|
-
- example/rails/cable/vendor/assets/stylesheets/photon.css
|
148
|
-
- example/rails/simplepay/Gemfile
|
149
|
-
- example/rails/simplepay/Gemfile.lock
|
150
|
-
- example/rails/simplepay/README.md
|
151
|
-
- example/rails/simplepay/Rakefile
|
152
|
-
- example/rails/simplepay/app/assets/config/manifest.js
|
153
|
-
- example/rails/simplepay/app/assets/images/.keep
|
154
|
-
- example/rails/simplepay/app/assets/javascripts/application.js
|
155
|
-
- example/rails/simplepay/app/assets/javascripts/cable.js
|
156
|
-
- example/rails/simplepay/app/assets/javascripts/channels/.keep
|
157
|
-
- example/rails/simplepay/app/assets/javascripts/pay.js
|
158
|
-
- example/rails/simplepay/app/assets/stylesheets/application.css
|
159
|
-
- example/rails/simplepay/app/assets/stylesheets/style.css
|
160
|
-
- example/rails/simplepay/app/channels/application_cable/channel.rb
|
161
|
-
- example/rails/simplepay/app/channels/application_cable/connection.rb
|
162
|
-
- example/rails/simplepay/app/controllers/application_controller.rb
|
163
|
-
- example/rails/simplepay/app/controllers/concerns/.keep
|
164
|
-
- example/rails/simplepay/app/controllers/home_controller.rb
|
165
|
-
- example/rails/simplepay/app/controllers/pay_controller.rb
|
166
|
-
- example/rails/simplepay/app/helpers/application_helper.rb
|
167
|
-
- example/rails/simplepay/app/helpers/pay_helper.rb
|
168
|
-
- example/rails/simplepay/app/jobs/application_job.rb
|
169
|
-
- example/rails/simplepay/app/mailers/application_mailer.rb
|
170
|
-
- example/rails/simplepay/app/models/application_record.rb
|
171
|
-
- example/rails/simplepay/app/models/concerns/.keep
|
172
|
-
- example/rails/simplepay/app/models/order.rb
|
173
|
-
- example/rails/simplepay/app/views/home/index.html.erb
|
174
|
-
- example/rails/simplepay/app/views/layouts/application.html.erb
|
175
|
-
- example/rails/simplepay/app/views/layouts/mailer.html.erb
|
176
|
-
- example/rails/simplepay/app/views/layouts/mailer.text.erb
|
177
|
-
- example/rails/simplepay/app/views/pay/notify.html.erb
|
178
|
-
- example/rails/simplepay/bin/bundle
|
179
|
-
- example/rails/simplepay/bin/rails
|
180
|
-
- example/rails/simplepay/bin/rake
|
181
|
-
- example/rails/simplepay/bin/setup
|
182
|
-
- example/rails/simplepay/bin/spring
|
183
|
-
- example/rails/simplepay/bin/update
|
184
|
-
- example/rails/simplepay/config.ru
|
185
|
-
- example/rails/simplepay/config/application.rb
|
186
|
-
- example/rails/simplepay/config/boot.rb
|
187
|
-
- example/rails/simplepay/config/cable.yml
|
188
|
-
- example/rails/simplepay/config/database.yml
|
189
|
-
- example/rails/simplepay/config/environment.rb
|
190
|
-
- example/rails/simplepay/config/environments/development.rb
|
191
|
-
- example/rails/simplepay/config/environments/production.rb
|
192
|
-
- example/rails/simplepay/config/environments/test.rb
|
193
|
-
- example/rails/simplepay/config/initializers/application_controller_renderer.rb
|
194
|
-
- example/rails/simplepay/config/initializers/assets.rb
|
195
|
-
- example/rails/simplepay/config/initializers/backtrace_silencers.rb
|
196
|
-
- example/rails/simplepay/config/initializers/cookies_serializer.rb
|
197
|
-
- example/rails/simplepay/config/initializers/filter_parameter_logging.rb
|
198
|
-
- example/rails/simplepay/config/initializers/inflections.rb
|
199
|
-
- example/rails/simplepay/config/initializers/mime_types.rb
|
200
|
-
- example/rails/simplepay/config/initializers/new_framework_defaults.rb
|
201
|
-
- example/rails/simplepay/config/initializers/session_store.rb
|
202
|
-
- example/rails/simplepay/config/initializers/veritrans.rb
|
203
|
-
- example/rails/simplepay/config/initializers/wrap_parameters.rb
|
204
|
-
- example/rails/simplepay/config/locales/en.yml
|
205
|
-
- example/rails/simplepay/config/puma.rb
|
206
|
-
- example/rails/simplepay/config/routes.rb
|
207
|
-
- example/rails/simplepay/config/secrets.yml
|
208
|
-
- example/rails/simplepay/config/spring.rb
|
209
|
-
- example/rails/simplepay/config/veritrans.yml
|
210
|
-
- example/rails/simplepay/db/development.sqlite3
|
211
|
-
- example/rails/simplepay/db/migrate/20161221090855_create_orders.rb
|
212
|
-
- example/rails/simplepay/db/schema.rb
|
213
|
-
- example/rails/simplepay/db/seeds.rb
|
214
|
-
- example/rails/simplepay/db/test.sqlite3
|
215
|
-
- example/rails/simplepay/lib/assets/.keep
|
216
|
-
- example/rails/simplepay/lib/tasks/.keep
|
217
|
-
- example/rails/simplepay/log/.keep
|
218
|
-
- example/rails/simplepay/public/404.html
|
219
|
-
- example/rails/simplepay/public/422.html
|
220
|
-
- example/rails/simplepay/public/500.html
|
221
|
-
- example/rails/simplepay/public/apple-touch-icon-precomposed.png
|
222
|
-
- example/rails/simplepay/public/apple-touch-icon.png
|
223
|
-
- example/rails/simplepay/public/favicon.ico
|
224
|
-
- example/rails/simplepay/public/robots.txt
|
225
|
-
- example/rails/simplepay/vendor/assets/javascripts/.keep
|
226
|
-
- example/rails/simplepay/vendor/assets/stylesheets/.keep
|
44
|
+
- example/coreapi/core_api_credit_card_example.rb
|
45
|
+
- example/coreapi/readme.md
|
46
|
+
- example/sinatra/Gemfile
|
227
47
|
- example/sinatra/README.md
|
228
|
-
- example/sinatra/config.ru
|
229
48
|
- example/sinatra/index.erb
|
230
|
-
- example/sinatra/localization.erb
|
231
|
-
- example/sinatra/points.erb
|
232
|
-
- example/sinatra/recurring.erb
|
233
49
|
- example/sinatra/response.erb
|
234
|
-
- example/sinatra/
|
235
|
-
- example/sinatra/
|
236
|
-
- example/sinatra/
|
237
|
-
- example/
|
238
|
-
-
|
239
|
-
- lib/
|
240
|
-
- lib/
|
241
|
-
- lib/
|
242
|
-
- lib/
|
243
|
-
- lib/
|
244
|
-
- lib/
|
245
|
-
- lib/
|
246
|
-
- lib/generators/veritrans/install_generator.rb
|
247
|
-
- lib/generators/veritrans/payment_form_generator.rb
|
50
|
+
- example/sinatra/snap.erb
|
51
|
+
- example/sinatra/snap_redirect.erb
|
52
|
+
- example/sinatra/webapp.rb
|
53
|
+
- example/snap/readme.md
|
54
|
+
- example/snap/snap_example.rb
|
55
|
+
- lib/test/all.rb
|
56
|
+
- lib/test/api_test.rb
|
57
|
+
- lib/test/config_test.rb
|
58
|
+
- lib/test/gopay_tokenization_test.rb
|
59
|
+
- lib/test/snap_test.rb
|
60
|
+
- lib/test/subscription_test.rb
|
61
|
+
- lib/test/transaction_test.rb
|
248
62
|
- lib/veritrans.rb
|
249
63
|
- lib/veritrans/api.rb
|
250
|
-
- lib/veritrans/cli.rb
|
251
64
|
- lib/veritrans/client.rb
|
252
65
|
- lib/veritrans/config.rb
|
253
66
|
- lib/veritrans/events.rb
|
67
|
+
- lib/veritrans/midtrans_error.rb
|
254
68
|
- lib/veritrans/result.rb
|
255
|
-
- lib/veritrans/testing.rb
|
256
69
|
- lib/veritrans/version.rb
|
257
70
|
- license.txt
|
258
|
-
- spec/cli_spec.rb
|
259
|
-
- spec/configs/real_key.yml
|
260
|
-
- spec/configs/veritrans.yml
|
261
|
-
- spec/configs/veritrans_flat.yml
|
262
|
-
- spec/configs/veritrans_with_erb.yml
|
263
|
-
- spec/fixtures/approve_failed.yml
|
264
|
-
- spec/fixtures/cancel_failed.yml
|
265
|
-
- spec/fixtures/cancel_success.yml
|
266
|
-
- spec/fixtures/capture_failed.yml
|
267
|
-
- spec/fixtures/charge.yml
|
268
|
-
- spec/fixtures/charge_direct.yml
|
269
|
-
- spec/fixtures/charge_vtweb.yml
|
270
|
-
- spec/fixtures/cli_test_1111-not-exists.yml
|
271
|
-
- spec/fixtures/cli_test_not_exists.yml
|
272
|
-
- spec/fixtures/cli_test_real_txn.yml
|
273
|
-
- spec/fixtures/cli_test_unauthorized.yml
|
274
|
-
- spec/fixtures/deny_failed.yml
|
275
|
-
- spec/fixtures/events_test_real_txn.yml
|
276
|
-
- spec/fixtures/expire_failed.yml
|
277
|
-
- spec/fixtures/expire_success.yml
|
278
|
-
- spec/fixtures/midtrans_status.yml
|
279
|
-
- spec/fixtures/refund_failed.yml
|
280
|
-
- spec/fixtures/status_fail.yml
|
281
|
-
- spec/fixtures/status_success.yml
|
282
|
-
- spec/fixtures/test_token.yml
|
283
|
-
- spec/midtrans_rename_spec.rb
|
284
|
-
- spec/rails_plugin_spec.rb
|
285
|
-
- spec/spec_helper.rb
|
286
|
-
- spec/veritrans_client_spec.rb
|
287
|
-
- spec/veritrans_config_spec.rb
|
288
|
-
- spec/veritrans_events_spec.rb
|
289
|
-
- spec/veritrans_logger_spec.rb
|
290
|
-
- spec/veritrans_snap_spec.rb
|
291
|
-
- spec/veritrans_testing_spec.rb
|
292
|
-
- testing_webhooks.md
|
293
71
|
- veritrans.gemspec
|
294
72
|
homepage: https://github.com/veritrans/veritrans-ruby
|
295
73
|
licenses:
|
296
74
|
- MIT
|
297
75
|
metadata: {}
|
298
|
-
post_install_message:
|
76
|
+
post_install_message:
|
299
77
|
rdoc_options: []
|
300
78
|
require_paths:
|
301
79
|
- lib
|
@@ -310,9 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
88
|
- !ruby/object:Gem::Version
|
311
89
|
version: '0'
|
312
90
|
requirements: []
|
313
|
-
|
314
|
-
|
315
|
-
signing_key:
|
91
|
+
rubygems_version: 3.2.26
|
92
|
+
signing_key:
|
316
93
|
specification_version: 4
|
317
94
|
summary: Veritrans ruby library
|
318
95
|
test_files: []
|
data/.rspec
DELETED
data/Procfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
web: bundle exec puma -p $PORT --dir example/sinatra config.ru
|
data/Rakefile
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
begin
|
4
|
-
desc "Run Specs"
|
5
|
-
require 'rspec/core/rake_task'
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
rescue LoadError
|
8
|
-
puts "no rspec available"
|
9
|
-
end
|
10
|
-
|
11
|
-
desc "Generate documentation with sdoc"
|
12
|
-
task :doc do
|
13
|
-
Bundler.with_clean_env do
|
14
|
-
exec %{sdoc -i ./*.md ./lib/*.rb ./lib/veritrans/*.rb -m "Veritrans Ruby Library"}
|
15
|
-
end
|
16
|
-
end
|
data/bin/midtrans
DELETED
data/bin/veritrans
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
$:.push(File.expand_path("../../lib", __FILE__))
|
4
|
-
|
5
|
-
require 'optparse'
|
6
|
-
require "veritrans/version"
|
7
|
-
|
8
|
-
OPERATIONS = %w(testhook)
|
9
|
-
|
10
|
-
CONFIG = {}
|
11
|
-
option_parser = OptionParser.new do |opts|
|
12
|
-
opts.banner = "Veritrans #{Veritrans::VERSION}"
|
13
|
-
"Usage: veritrans testhook [options] {url}\n" +
|
14
|
-
" -o specify order id"
|
15
|
-
|
16
|
-
opts.on("-h", "--help", "Show help") do
|
17
|
-
puts option_parser.help
|
18
|
-
exit
|
19
|
-
end
|
20
|
-
|
21
|
-
opts.on("-o [ORDER_ID]", "--order [ORDER_ID]", "Select order") do |order|
|
22
|
-
CONFIG[:order] = order
|
23
|
-
end
|
24
|
-
|
25
|
-
opts.on("-c [PATH]", "--config [PATH]", "Path to config (defualt .)") do |config|
|
26
|
-
CONFIG[:config_path] = config
|
27
|
-
end
|
28
|
-
|
29
|
-
opts.separator <<-EOS
|
30
|
-
|
31
|
-
Supported commands:
|
32
|
-
|
33
|
-
testhook [url] Send testing webhook to specified url
|
34
|
-
|
35
|
-
Example:
|
36
|
-
veritrans testhook http://localhost:3000/vt_events
|
37
|
-
veritrans testhook -o my-order-1 -c ~/path/to/veritrans.yml http://localhost:3000/vt_events
|
38
|
-
|
39
|
-
EOS
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
option_parser.parse!
|
44
|
-
|
45
|
-
op = ARGV.shift
|
46
|
-
|
47
|
-
if OPERATIONS.include?(op)
|
48
|
-
require 'veritrans'
|
49
|
-
require 'veritrans/cli'
|
50
|
-
|
51
|
-
begin
|
52
|
-
case op
|
53
|
-
when "testhook" then
|
54
|
-
Veritrans::CLI.test_webhook(ARGV)
|
55
|
-
end
|
56
|
-
|
57
|
-
rescue Veritrans::CLI::OrderNotFound, Veritrans::CLI::AuthenticationError => ex
|
58
|
-
puts ex.message
|
59
|
-
rescue ArgumentError => ex
|
60
|
-
puts ex.message
|
61
|
-
rescue Exception => e
|
62
|
-
puts "Uh oh, I didn't expect this:"
|
63
|
-
puts e.message
|
64
|
-
puts e.backtrace.join("\n")
|
65
|
-
end
|
66
|
-
else
|
67
|
-
puts option_parser.help
|
68
|
-
end
|
data/example/rails/cable/Gemfile
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
|
4
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
-
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
|
6
|
-
# Use sqlite3 as the database for Active Record
|
7
|
-
gem 'mysql2'
|
8
|
-
# Use Puma as the app server
|
9
|
-
gem 'puma', '~> 3.0'
|
10
|
-
# Use SCSS for stylesheets
|
11
|
-
gem 'sass-rails', '~> 5.0'
|
12
|
-
# Use Uglifier as compressor for JavaScript assets
|
13
|
-
gem 'uglifier', '>= 1.3.0'
|
14
|
-
# Use CoffeeScript for .coffee assets and views
|
15
|
-
gem 'coffee-rails', '~> 4.2'
|
16
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
17
|
-
# gem 'therubyracer', platforms: :ruby
|
18
|
-
gem 'sidekiq'
|
19
|
-
gem 'veritrans', '~> 2'
|
20
|
-
|
21
|
-
# Use jquery as the JavaScript library
|
22
|
-
gem 'jquery-rails'
|
23
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
24
|
-
gem 'jbuilder', '~> 2.5'
|
25
|
-
# Use Redis adapter to run Action Cable in production
|
26
|
-
# gem 'redis', '~> 3.0'
|
27
|
-
# Use ActiveModel has_secure_password
|
28
|
-
# gem 'bcrypt', '~> 3.1.7'
|
29
|
-
|
30
|
-
# Use Capistrano for deployment
|
31
|
-
# gem 'capistrano-rails', group: :development
|
32
|
-
|
33
|
-
group :development, :test do
|
34
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
35
|
-
gem 'byebug', platform: :mri
|
36
|
-
end
|
37
|
-
|
38
|
-
group :development do
|
39
|
-
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
40
|
-
gem 'web-console'
|
41
|
-
gem 'listen', '~> 3.0.5'
|
42
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
43
|
-
gem 'spring'
|
44
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
45
|
-
end
|
46
|
-
|
47
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
48
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
@@ -1,184 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
actioncable (5.0.0.1)
|
5
|
-
actionpack (= 5.0.0.1)
|
6
|
-
nio4r (~> 1.2)
|
7
|
-
websocket-driver (~> 0.6.1)
|
8
|
-
actionmailer (5.0.0.1)
|
9
|
-
actionpack (= 5.0.0.1)
|
10
|
-
actionview (= 5.0.0.1)
|
11
|
-
activejob (= 5.0.0.1)
|
12
|
-
mail (~> 2.5, >= 2.5.4)
|
13
|
-
rails-dom-testing (~> 2.0)
|
14
|
-
actionpack (5.0.0.1)
|
15
|
-
actionview (= 5.0.0.1)
|
16
|
-
activesupport (= 5.0.0.1)
|
17
|
-
rack (~> 2.0)
|
18
|
-
rack-test (~> 0.6.3)
|
19
|
-
rails-dom-testing (~> 2.0)
|
20
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
-
actionview (5.0.0.1)
|
22
|
-
activesupport (= 5.0.0.1)
|
23
|
-
builder (~> 3.1)
|
24
|
-
erubis (~> 2.7.0)
|
25
|
-
rails-dom-testing (~> 2.0)
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
activejob (5.0.0.1)
|
28
|
-
activesupport (= 5.0.0.1)
|
29
|
-
globalid (>= 0.3.6)
|
30
|
-
activemodel (5.0.0.1)
|
31
|
-
activesupport (= 5.0.0.1)
|
32
|
-
activerecord (5.0.0.1)
|
33
|
-
activemodel (= 5.0.0.1)
|
34
|
-
activesupport (= 5.0.0.1)
|
35
|
-
arel (~> 7.0)
|
36
|
-
activesupport (5.0.0.1)
|
37
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
38
|
-
i18n (~> 0.7)
|
39
|
-
minitest (~> 5.1)
|
40
|
-
tzinfo (~> 1.1)
|
41
|
-
arel (7.1.4)
|
42
|
-
builder (3.2.2)
|
43
|
-
byebug (9.0.6)
|
44
|
-
coffee-rails (4.2.1)
|
45
|
-
coffee-script (>= 2.2.0)
|
46
|
-
railties (>= 4.0.0, < 5.2.x)
|
47
|
-
coffee-script (2.4.1)
|
48
|
-
coffee-script-source
|
49
|
-
execjs
|
50
|
-
coffee-script-source (1.11.1)
|
51
|
-
concurrent-ruby (1.0.2)
|
52
|
-
connection_pool (2.2.1)
|
53
|
-
debug_inspector (0.0.2)
|
54
|
-
erubis (2.7.0)
|
55
|
-
excon (0.54.0)
|
56
|
-
execjs (2.7.0)
|
57
|
-
ffi (1.9.14)
|
58
|
-
globalid (0.3.7)
|
59
|
-
activesupport (>= 4.1.0)
|
60
|
-
i18n (0.7.0)
|
61
|
-
jbuilder (2.6.1)
|
62
|
-
activesupport (>= 3.0.0, < 5.1)
|
63
|
-
multi_json (~> 1.2)
|
64
|
-
jquery-rails (4.2.1)
|
65
|
-
rails-dom-testing (>= 1, < 3)
|
66
|
-
railties (>= 4.2.0)
|
67
|
-
thor (>= 0.14, < 2.0)
|
68
|
-
listen (3.0.8)
|
69
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
70
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
71
|
-
loofah (2.0.3)
|
72
|
-
nokogiri (>= 1.5.9)
|
73
|
-
mail (2.6.4)
|
74
|
-
mime-types (>= 1.16, < 4)
|
75
|
-
method_source (0.8.2)
|
76
|
-
mime-types (3.1)
|
77
|
-
mime-types-data (~> 3.2015)
|
78
|
-
mime-types-data (3.2016.0521)
|
79
|
-
mini_portile2 (2.1.0)
|
80
|
-
minitest (5.10.1)
|
81
|
-
multi_json (1.12.1)
|
82
|
-
mysql2 (0.4.4)
|
83
|
-
nio4r (1.2.1)
|
84
|
-
nokogiri (1.6.8.1)
|
85
|
-
mini_portile2 (~> 2.1.0)
|
86
|
-
puma (3.6.2)
|
87
|
-
rack (2.0.1)
|
88
|
-
rack-protection (1.5.3)
|
89
|
-
rack
|
90
|
-
rack-test (0.6.3)
|
91
|
-
rack (>= 1.0)
|
92
|
-
rails (5.0.0.1)
|
93
|
-
actioncable (= 5.0.0.1)
|
94
|
-
actionmailer (= 5.0.0.1)
|
95
|
-
actionpack (= 5.0.0.1)
|
96
|
-
actionview (= 5.0.0.1)
|
97
|
-
activejob (= 5.0.0.1)
|
98
|
-
activemodel (= 5.0.0.1)
|
99
|
-
activerecord (= 5.0.0.1)
|
100
|
-
activesupport (= 5.0.0.1)
|
101
|
-
bundler (>= 1.3.0, < 2.0)
|
102
|
-
railties (= 5.0.0.1)
|
103
|
-
sprockets-rails (>= 2.0.0)
|
104
|
-
rails-dom-testing (2.0.1)
|
105
|
-
activesupport (>= 4.2.0, < 6.0)
|
106
|
-
nokogiri (~> 1.6.0)
|
107
|
-
rails-html-sanitizer (1.0.3)
|
108
|
-
loofah (~> 2.0)
|
109
|
-
railties (5.0.0.1)
|
110
|
-
actionpack (= 5.0.0.1)
|
111
|
-
activesupport (= 5.0.0.1)
|
112
|
-
method_source
|
113
|
-
rake (>= 0.8.7)
|
114
|
-
thor (>= 0.18.1, < 2.0)
|
115
|
-
rake (12.0.0)
|
116
|
-
rb-fsevent (0.9.8)
|
117
|
-
rb-inotify (0.9.7)
|
118
|
-
ffi (>= 0.5.0)
|
119
|
-
redis (3.3.2)
|
120
|
-
sass (3.4.22)
|
121
|
-
sass-rails (5.0.6)
|
122
|
-
railties (>= 4.0.0, < 6)
|
123
|
-
sass (~> 3.1)
|
124
|
-
sprockets (>= 2.8, < 4.0)
|
125
|
-
sprockets-rails (>= 2.0, < 4.0)
|
126
|
-
tilt (>= 1.1, < 3)
|
127
|
-
sidekiq (4.2.7)
|
128
|
-
concurrent-ruby (~> 1.0)
|
129
|
-
connection_pool (~> 2.2, >= 2.2.0)
|
130
|
-
rack-protection (>= 1.5.0)
|
131
|
-
redis (~> 3.2, >= 3.2.1)
|
132
|
-
spring (2.0.0)
|
133
|
-
activesupport (>= 4.2)
|
134
|
-
spring-watcher-listen (2.0.1)
|
135
|
-
listen (>= 2.7, < 4.0)
|
136
|
-
spring (>= 1.2, < 3.0)
|
137
|
-
sprockets (3.7.0)
|
138
|
-
concurrent-ruby (~> 1.0)
|
139
|
-
rack (> 1, < 3)
|
140
|
-
sprockets-rails (3.2.0)
|
141
|
-
actionpack (>= 4.0)
|
142
|
-
activesupport (>= 4.0)
|
143
|
-
sprockets (>= 3.0.0)
|
144
|
-
thor (0.19.4)
|
145
|
-
thread_safe (0.3.5)
|
146
|
-
tilt (2.0.5)
|
147
|
-
tzinfo (1.2.2)
|
148
|
-
thread_safe (~> 0.1)
|
149
|
-
uglifier (3.0.4)
|
150
|
-
execjs (>= 0.3.0, < 3)
|
151
|
-
veritrans (2.1.3)
|
152
|
-
excon (~> 0.20)
|
153
|
-
web-console (3.4.0)
|
154
|
-
actionview (>= 5.0)
|
155
|
-
activemodel (>= 5.0)
|
156
|
-
debug_inspector
|
157
|
-
railties (>= 5.0)
|
158
|
-
websocket-driver (0.6.4)
|
159
|
-
websocket-extensions (>= 0.1.0)
|
160
|
-
websocket-extensions (0.1.2)
|
161
|
-
|
162
|
-
PLATFORMS
|
163
|
-
ruby
|
164
|
-
|
165
|
-
DEPENDENCIES
|
166
|
-
byebug
|
167
|
-
coffee-rails (~> 4.2)
|
168
|
-
jbuilder (~> 2.5)
|
169
|
-
jquery-rails
|
170
|
-
listen (~> 3.0.5)
|
171
|
-
mysql2
|
172
|
-
puma (~> 3.0)
|
173
|
-
rails (~> 5.0.0, >= 5.0.0.1)
|
174
|
-
sass-rails (~> 5.0)
|
175
|
-
sidekiq
|
176
|
-
spring
|
177
|
-
spring-watcher-listen (~> 2.0.0)
|
178
|
-
tzinfo-data
|
179
|
-
uglifier (>= 1.3.0)
|
180
|
-
veritrans (~> 2)
|
181
|
-
web-console
|
182
|
-
|
183
|
-
BUNDLED WITH
|
184
|
-
1.13.6
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Cable: Slack on Rails
|
2
|
-
|
3
|
-
1. To demonstrate Ruby language
|
4
|
-
2. To demonstrate the use of Midtrans library's SNAP in handling payment
|
5
|
-
3. To demonstrate ActionCable, ActiveRecords and Rails in general
|
6
|
-
|
7
|
-
Feel free to fork, copy, modify, etc.
|
8
|
-
|
9
|
-
## Setting up procedures
|
10
|
-
|
11
|
-
1. Install Ruby, Bundler, Ruby on Rails, Redis, and MySQL database.
|
12
|
-
2. Clone the repository
|
13
|
-
3. Run `bundle install` on the root folder of the cloned project
|
14
|
-
4. If your MySQL configuration is standard, you can directly run `rake db:create db:migrate`. Otherwise edit `config/database.yml` and then run the same command.
|
15
|
-
5. Run `rake db:seed` to initialise the database state with some data.
|
16
|
-
6. Run `rails s` to start the web server. By default the system is served at `http://localhost:3000`
|
17
|
-
7. Run `bundle exec sidekiq` to run the sidekiq background job processor that process incoming chat message and properly broadcast them.
|
18
|
-
|
19
|
-
## How to make payment
|
20
|
-
|
21
|
-
Each payment link ("Beli") appear on a message that contains a pattern in the form of:
|
22
|
-
|
23
|
-
> (some text if any) jual (item name) (comma) (item price)
|
24
|
-
|
25
|
-
Example of texts that will create the "Beli" link:
|
26
|
-
|
27
|
-
1. Jual buku, 50.000
|
28
|
-
2. Nih gue jual stick PS, 50.000
|
29
|
-
3. Gue jual stick PS, 50.000; memory card, 200.000
|