killbill-payment-test 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.gitignore +23 -0
  2. data/Gemfile +5 -0
  3. data/Jarfile +3 -0
  4. data/README.md +5 -0
  5. data/Rakefile +12 -32
  6. data/VERSION +1 -0
  7. data/killbill-payment-test.gemspec +32 -0
  8. data/killbill.properties +3 -0
  9. data/lib/payment_test/api.rb +92 -0
  10. data/lib/payment_test.rb +1 -23
  11. data/spec/payment_test/base_plugin_spec.rb +30 -0
  12. data/spec/spec_helper.rb +15 -0
  13. metadata +78 -350
  14. checksums.yaml +0 -7
  15. data/MIT-LICENSE +0 -20
  16. data/app/assets/javascripts/application.js +0 -24
  17. data/app/assets/javascripts/payment_test/payment_test.js +0 -7
  18. data/app/assets/stylesheets/application.css +0 -20
  19. data/app/assets/stylesheets/bootstrap_and_overrides.css +0 -17
  20. data/app/assets/stylesheets/payment_test/payment_test.css +0 -6
  21. data/app/controllers/payment_test/engine_controller.rb +0 -29
  22. data/app/controllers/payment_test/payments_controller.rb +0 -66
  23. data/app/helpers/payment_test/application_helper.rb +0 -4
  24. data/app/views/payment_test/layouts/payment_test_application.html.erb +0 -31
  25. data/app/views/payment_test/payments/index.html.erb +0 -45
  26. data/config/routes.rb +0 -12
  27. data/lib/payment_test/client.rb +0 -74
  28. data/lib/payment_test/engine.rb +0 -24
  29. data/lib/payment_test/version.rb +0 -3
  30. data/lib/tasks/payment_test_tasks.rake +0 -4
  31. data/test/dummy/README.rdoc +0 -28
  32. data/test/dummy/Rakefile +0 -6
  33. data/test/dummy/app/controllers/application_controller.rb +0 -5
  34. data/test/dummy/app/helpers/application_helper.rb +0 -2
  35. data/test/dummy/bin/bundle +0 -3
  36. data/test/dummy/bin/rails +0 -4
  37. data/test/dummy/bin/rake +0 -4
  38. data/test/dummy/bin/setup +0 -29
  39. data/test/dummy/config/application.rb +0 -32
  40. data/test/dummy/config/boot.rb +0 -5
  41. data/test/dummy/config/database.yml +0 -23
  42. data/test/dummy/config/environment.rb +0 -5
  43. data/test/dummy/config/environments/development.rb +0 -41
  44. data/test/dummy/config/environments/production.rb +0 -79
  45. data/test/dummy/config/environments/test.rb +0 -42
  46. data/test/dummy/config/initializers/assets.rb +0 -11
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  48. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  50. data/test/dummy/config/initializers/inflections.rb +0 -16
  51. data/test/dummy/config/initializers/killbill_client.rb +0 -3
  52. data/test/dummy/config/initializers/mime_types.rb +0 -4
  53. data/test/dummy/config/initializers/session_store.rb +0 -3
  54. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  55. data/test/dummy/config/locales/en.yml +0 -23
  56. data/test/dummy/config/routes.rb +0 -4
  57. data/test/dummy/config/secrets.yml +0 -22
  58. data/test/dummy/config.ru +0 -4
  59. data/test/integration/navigation_test.rb +0 -8
  60. data/test/payment_test_test.rb +0 -7
  61. data/test/test_helper.rb +0 -21
@@ -1,66 +0,0 @@
1
- require 'payment_test/client'
2
-
3
- module PaymentTest
4
- class PaymentsController < EngineController
5
-
6
- def index
7
- begin
8
- raw_status = ::Killbill::PaymentTest::PaymentTestClient.status(options_for_klient)
9
- rescue => e
10
- Rails.logger.warn("Failed to retrieve payment status : #{e}")
11
- end
12
-
13
- if raw_status.nil?
14
- @status = "UNKNOWN"
15
- elsif raw_status.key? :always_return_plugin_status_error.to_s
16
- @status = "RETURN ERROR"
17
- elsif raw_status.key? :always_return_plugin_status_pending.to_s
18
- @status = "RETURN PENDING"
19
- elsif raw_status.key? :always_return_plugin_status_canceled.to_s
20
- @status = "RETURN CANCELED"
21
- elsif raw_status.key? :always_throw.to_s
22
- @status = "RETURN THROW"
23
- elsif raw_status.key? :always_return_nil.to_s
24
- @status = "RETURN NULL "
25
- elsif raw_status.key? :sleep_time_sec.to_s
26
- @status = "SLEEP #{sleep_time_sec}"
27
- else
28
- @status = "CLEAR"
29
- end
30
-
31
- if raw_status.nil?
32
- @methods = ['*']
33
- elsif !raw_status.key?("methods") || raw_status["methods"].empty?
34
- @methods = ['*']
35
- else
36
- @methods = raw_status["methods"]
37
- end
38
- end
39
-
40
- def set_failed_state
41
-
42
- new_state = params.require(:state)
43
- target_method = "set_status_#{new_state.to_s.downcase}".to_sym
44
-
45
- begin
46
- ::Killbill::PaymentTest::PaymentTestClient.send(target_method, nil, options_for_klient)
47
- rescue => e
48
- flash[:error] = "Failed to set state: #{e}"
49
- end
50
-
51
-
52
- redirect_to root_path and return
53
- end
54
-
55
- def reset
56
-
57
- begin
58
- ::Killbill::PaymentTest::PaymentTestClient.reset(nil, options_for_klient)
59
- rescue => e
60
- flash[:error] = "Failed to reset state: #{e}"
61
- end
62
- redirect_to root_path and return
63
- end
64
-
65
- end
66
- end
@@ -1,4 +0,0 @@
1
- module PaymentTest
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,31 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>PaymentTest</title>
5
- <%= yield :scripts %>
6
- <%= stylesheet_link_tag 'application', :media => 'all' %>
7
- <%= javascript_include_tag 'application' %>
8
- <%= csrf_meta_tags %>
9
- </head>
10
- <div class="container-fluid">
11
- <%- # :alert used by devise -%>
12
- <% [:error, :alert].each do |key| %>
13
- <% if flash[key] %>
14
- <div class="row">
15
- <div class="col-md-10 col-md-offset-2">
16
- <div class="alert alert-error"><%= flash[key] %></div>
17
- </div>
18
- </div>
19
- <% end %>
20
- <% end %>
21
- <% if flash[:notice] %>
22
- <div class="row">
23
- <div class="col-md-10 col-md-offset-2">
24
- <div class="alert alert-info"><%= flash[:notice] %></div>
25
- </div>
26
- </div>
27
- <% end %>
28
- <%= yield %>
29
- </div>
30
- </body>
31
- </html>
@@ -1,45 +0,0 @@
1
- <div class="search">
2
-
3
- <div class="column-block">
4
-
5
- <h1>Payment Test Status</h1>
6
-
7
- <div id="payment-status-table-wrapper">
8
- <table id="payment-status-table" class="table table-condensed table-striped mobile-data">
9
- <thead>
10
- <tr>
11
- <th>Method</th>
12
- <th>
13
- <span>Status</span>
14
-
15
- <div class="btn-group">
16
- <a class="btn btn-xs dropdown-toggle" data-toggle="dropdown" href="#">
17
- Set status
18
- <span class="caret"></span>
19
- </a>
20
- <ul class="dropdown-menu">
21
- <li><%= link_to 'Clear all status', reset_path, :method => :post %></li>
22
- <li><%= link_to 'Configure ERROR', set_failed_state_path(:state => :ERROR), :method => :post %></li>
23
- <li><%= link_to 'Configure PENDING', set_failed_state_path(:state => :PENDING), :method => :post %></li>
24
- <li><%= link_to 'Configure CANCELED', set_failed_state_path(:state => :CANCELED), :method => :post %></li>
25
- <li><%= link_to 'Configure THROW', set_failed_state_path(:state => :THROW), :method => :post %></li>
26
- </ul>
27
- </div>
28
- </th>
29
- </tr>
30
- </thead>
31
- <tbody>
32
- <% @methods.each do |m| %>
33
- <tr>
34
- <td><%= m %></td>
35
- <td>
36
- <span class="label label-<%= @status == 'CLEAR' ? 'success' : (@status.starts_with?('SLEEP') ? 'warning' : 'danger') %>"><%= @status %></span>
37
- </td>
38
- </tr>
39
- <% end %>
40
- </tbody>
41
- </table>
42
- </div>
43
-
44
- </div>
45
- </div>
data/config/routes.rb DELETED
@@ -1,12 +0,0 @@
1
- PaymentTest::Engine.routes.draw do
2
-
3
- root to: 'payments#index'
4
-
5
- resources :payments, :only => [:index]
6
-
7
- scope '/payments' do
8
- match '/set_failed_state' => 'payments#set_failed_state', :via => :post, :as => 'set_failed_state'
9
- match '/reset' => 'payments#reset', :via => :post, :as => 'reset'
10
- end
11
-
12
- end
@@ -1,74 +0,0 @@
1
- require 'json'
2
-
3
- module Killbill
4
- module PaymentTest
5
-
6
- class PaymentTestClient < KillBillClient::Model::Resource
7
-
8
- KILLBILL_PAYMENT_TEST_PREFIX = '/plugins/killbill-payment-test'
9
- class << self
10
-
11
- def status(options = {})
12
- response = KillBillClient::API.get "#{KILLBILL_PAYMENT_TEST_PREFIX}/status",
13
- {},
14
- options
15
- JSON.parse(response.body)
16
- end
17
-
18
- def set_status_pending(methods, options = {})
19
- configure("ACTION_RETURN_PLUGIN_STATUS_PENDING", nil, methods, options)
20
- end
21
-
22
- def set_status_error(methods, options = {})
23
- configure("ACTION_RETURN_PLUGIN_STATUS_ERROR", nil, methods, options)
24
- end
25
-
26
- def set_status_canceled(methods, options = {})
27
- configure("ACTION_RETURN_PLUGIN_STATUS_CANCELED", nil, methods, options)
28
- end
29
-
30
-
31
- def set_sleep_time(sleep_time_sec, methods, options = {})
32
- configure("ACTION_SLEEP", sleep_time_sec, methods, options)
33
- end
34
-
35
- def set_status_throw(methods, options = {})
36
- configure("ACTION_THROW_EXCEPTION", nil, methods, options)
37
- end
38
-
39
- def set_status_null(methods, options = {})
40
- configure("ACTION_RETURN_NIL", nil, methods, options)
41
- end
42
-
43
- def reset(methods, options = {})
44
- configure("ACTION_RESET", nil, methods, options)
45
- end
46
-
47
- private
48
-
49
- def configure(action, arg, methods, options = {})
50
-
51
- body = {
52
- "CONFIGURE_ACTION" => action
53
- }
54
-
55
- if action == "ACTION_RESET"
56
- body["SLEEP_TIME_SEC"] = arg
57
- end
58
-
59
- body["METHODS"] = methods.nil? ? nil : methods.join(",")
60
-
61
- KillBillClient::API.post "#{KILLBILL_PAYMENT_TEST_PREFIX}/configure",
62
- body.to_json,
63
- {},
64
- {
65
- :user => 'anonymous',
66
- :reason => "TEST",
67
- :comment => "TEST",
68
- }.merge(options)
69
- end
70
-
71
- end
72
- end
73
- end
74
- end
@@ -1,24 +0,0 @@
1
- # Dependencies
2
- #
3
- # Sigh. Rails autoloads the gems specified in the Gemfile and nothing else.
4
- # We need to explicitly require all of our dependencies listed in payment_test.gemspec
5
- #
6
- # See also https://github.com/carlhuda/bundler/issues/49
7
- require 'jquery-rails'
8
- require 'jquery-datatables-rails'
9
- require 'bootstrap-datepicker-rails'
10
- require 'd3_rails'
11
- require 'momentjs-rails'
12
- require 'spinjs-rails'
13
- require 'killbill_client'
14
-
15
- module PaymentTest
16
- class Engine < ::Rails::Engine
17
- isolate_namespace PaymentTest
18
-
19
-
20
- #ActiveSupport::Inflector.inflections do |inflect|
21
- # inflect.acronym 'PaymentTest'
22
- #end
23
- end
24
- end
@@ -1,3 +0,0 @@
1
- module PaymentTest
2
- VERSION = "0.0.1"
3
- end
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :payment_test do
3
- # # Task goes here
4
- # end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
data/test/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
data/test/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/test/dummy/bin/setup DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
@@ -1,32 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "payment_test"
7
-
8
- require "jquery-rails"
9
- require "twitter-bootstrap-rails"
10
- require "d3_rails"
11
-
12
- require "js-routes"
13
-
14
- module Dummy
15
- class Application < Rails::Application
16
- # Settings in config/environments/* take precedence over those specified here.
17
- # Application configuration should go into files in config/initializers
18
- # -- all .rb files in that directory are automatically loaded.
19
-
20
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
21
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
22
- # config.time_zone = 'Central Time (US & Canada)'
23
-
24
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
25
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
26
- # config.i18n.default_locale = :de
27
-
28
- # Do not swallow errors in after_commit/after_rollback callbacks.
29
- config.active_record.raise_in_transactional_callbacks = true
30
- end
31
- end
32
-
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,23 +0,0 @@
1
- # SQLite version 3.x
2
- # gem 'activerecord-jdbcsqlite3-adapter'
3
- #
4
- # Configure Using Gemfile
5
- # gem 'activerecord-jdbcsqlite3-adapter'
6
- #
7
- default: &default
8
- adapter: sqlite3
9
-
10
- development:
11
- <<: *default
12
- database: db/development.sqlite3
13
-
14
- # Warning: The database defined as "test" will be erased and
15
- # re-generated from your development database when you run "rake".
16
- # Do not set this db to the same as development or production.
17
- test:
18
- <<: *default
19
- database: db/test.sqlite3
20
-
21
- production:
22
- <<: *default
23
- database: db/production.sqlite3
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,41 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
-
30
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
38
-
39
- # Raises error for missing translations
40
- # config.action_view.raise_on_missing_translations = true
41
- end
@@ -1,79 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like
20
- # NGINX, varnish or squid.
21
- # config.action_dispatch.rack_cache = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Compress JavaScripts and CSS.
28
- config.assets.js_compressor = :uglifier
29
- # config.assets.css_compressor = :sass
30
-
31
- # Do not fallback to assets pipeline if a precompiled asset is missed.
32
- config.assets.compile = false
33
-
34
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
- # yet still be able to expire them through the digest params.
36
- config.assets.digest = true
37
-
38
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
-
40
- # Specifies the header that your server uses for sending files.
41
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
-
44
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
- # config.force_ssl = true
46
-
47
- # Use the lowest log level to ensure availability of diagnostic information
48
- # when problems arise.
49
- config.log_level = :debug
50
-
51
- # Prepend all log lines with the following tags.
52
- # config.log_tags = [ :subdomain, :uuid ]
53
-
54
- # Use a different logger for distributed setups.
55
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
-
57
- # Use a different cache store in production.
58
- # config.cache_store = :mem_cache_store
59
-
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
62
-
63
- # Ignore bad email addresses and do not raise email delivery errors.
64
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
- # config.action_mailer.raise_delivery_errors = false
66
-
67
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
- # the I18n.default_locale when a translation cannot be found).
69
- config.i18n.fallbacks = true
70
-
71
- # Send deprecation notices to registered listeners.
72
- config.active_support.deprecation = :notify
73
-
74
- # Use default logging formatter so that PID and timestamp are not suppressed.
75
- config.log_formatter = ::Logger::Formatter.new
76
-
77
- # Do not dump schema after migrations.
78
- config.active_record.dump_schema_after_migration = false
79
- end
@@ -1,42 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
- # Print deprecation notices to the stderr.
38
- config.active_support.deprecation = :stderr
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
@@ -1,11 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,3 +0,0 @@
1
- KillBillClient.url = 'http://127.0.0.1:8080/'
2
- KillBillClient.api_key = 'T_0_18'
3
- KillBillClient.api_secret = 'T_0_18'