killbill-avatax 2.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/Rakefile +3 -5
  4. data/app/assets/config/avatax_manifest.js +3 -0
  5. data/app/assets/javascripts/application.js +0 -1
  6. data/app/assets/stylesheets/application.css +0 -1
  7. data/app/assets/stylesheets/bootstrap_and_overrides.css +0 -4
  8. data/app/controllers/avatax/configuration_controller.rb +42 -34
  9. data/app/controllers/avatax/engine_controller.rb +2 -2
  10. data/app/helpers/avatax/application_helper.rb +2 -0
  11. data/app/views/avatax/configuration/_plugin_form.html.erb +2 -11
  12. data/config/routes.rb +3 -3
  13. data/lib/avatax/client.rb +14 -18
  14. data/lib/avatax/engine.rb +2 -2
  15. data/lib/avatax/version.rb +3 -1
  16. data/lib/avatax.rb +10 -10
  17. data/lib/tasks/avatax_tasks.rake +1 -0
  18. metadata +25 -147
  19. data/test/avatax_test.rb +0 -8
  20. data/test/dummy/README.rdoc +0 -28
  21. data/test/dummy/Rakefile +0 -6
  22. data/test/dummy/app/controllers/application_controller.rb +0 -5
  23. data/test/dummy/app/helpers/application_helper.rb +0 -2
  24. data/test/dummy/bin/bundle +0 -3
  25. data/test/dummy/bin/rails +0 -4
  26. data/test/dummy/bin/rake +0 -4
  27. data/test/dummy/bin/setup +0 -38
  28. data/test/dummy/bin/update +0 -29
  29. data/test/dummy/bin/yarn +0 -11
  30. data/test/dummy/config/application.rb +0 -26
  31. data/test/dummy/config/boot.rb +0 -3
  32. data/test/dummy/config/environment.rb +0 -5
  33. data/test/dummy/config/environments/development.rb +0 -54
  34. data/test/dummy/config/environments/production.rb +0 -91
  35. data/test/dummy/config/environments/test.rb +0 -42
  36. data/test/dummy/config/initializers/application_controller_renderer.rb +0 -6
  37. data/test/dummy/config/initializers/assets.rb +0 -14
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  39. data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  41. data/test/dummy/config/initializers/inflections.rb +0 -16
  42. data/test/dummy/config/initializers/killbill_client.rb +0 -3
  43. data/test/dummy/config/initializers/mime_types.rb +0 -4
  44. data/test/dummy/config/initializers/new_framework_defaults_5_1.rb +0 -14
  45. data/test/dummy/config/initializers/session_store.rb +0 -3
  46. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  47. data/test/dummy/config/locales/en.yml +0 -33
  48. data/test/dummy/config/routes.rb +0 -4
  49. data/test/dummy/config/secrets.yml +0 -32
  50. data/test/dummy/config.ru +0 -4
  51. data/test/integration/navigation_test.rb +0 -17
  52. data/test/test_helper.rb +0 -19
@@ -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,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Specify a serializer for the signed and encrypted cookie jars.
4
- # Valid options are :json, :marshal, and :hybrid.
5
- 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 = 'bob'
3
- KillBillClient.api_secret = 'lazar'
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 5.1 upgrade.
4
- #
5
- # Once upgraded flip defaults one by one to migrate to the new default.
6
- #
7
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
8
-
9
- # Make `form_with` generate non-remote forms.
10
- Rails.application.config.action_view.form_with_generates_remote_forms = false
11
-
12
- # Unknown asset fallback will return the path passed in when the given
13
- # asset is not present in the asset pipeline.
14
- # Rails.application.config.assets.unknown_asset_fallback = false
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,33 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # The following keys must be escaped otherwise they will not be retrieved by
20
- # the default I18n backend:
21
- #
22
- # true, false, on, off, yes, no
23
- #
24
- # Instead, surround them with single quotes.
25
- #
26
- # en:
27
- # 'true': 'foo'
28
- #
29
- # To learn more, please read the Rails Internationalization guide
30
- # available at http://guides.rubyonrails.org/i18n.html.
31
-
32
- en:
33
- hello: "Hello world"
@@ -1,4 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- mount Avatax::Engine => '/avatax'
4
- end
@@ -1,32 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rails secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- # Shared secrets are available across all environments.
14
-
15
- # shared:
16
- # api_key: a1B2c3D4e5F6
17
-
18
- # Environmental secrets are only available for that specific environment.
19
-
20
- development:
21
- secret_key_base: efd24106d6296f2ae8fb35e4a8652b560633e1e491cf7307eb0f6994956dc1fde08ef59f73fcfb73a9ec5504fe1ce521a320aa75b7c8d93e10532e0e5a44cd1d
22
-
23
- test:
24
- secret_key_base: 1b6e377331b277dcee3218dcc37913cc5c81193f285ef99f9f1bfc642471d5eb6aad4d792b6a2b5211c36fba55fd077cd1081d27ab32204f65b4172ba781afb8
25
-
26
- # Do not keep production secrets in the unencrypted secrets file.
27
- # Instead, either read values from the environment.
28
- # Or, use `bin/rails secrets:setup` to configure encrypted secrets
29
- # and move the `production:` environment over there.
30
-
31
- production:
32
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,17 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
-
5
- include Avatax::Engine.routes.url_helpers
6
-
7
- test 'can see the main configuration page' do
8
- get '/avatax'
9
- assert_response :success
10
- end
11
-
12
- test 'can see the plugin configuration page' do
13
- get '/avatax/configuration/plugin'
14
- assert_response :success
15
- end
16
- end
17
-
data/test/test_helper.rb DELETED
@@ -1,19 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- # Filter out Minitest backtrace while allowing backtrace from other libraries
8
- # to be shown.
9
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
10
-
11
- # Load support files
12
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13
-
14
- # Load fixtures from the engine
15
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
16
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
17
- ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
18
- ActiveSupport::TestCase.fixtures :all
19
- end