From 4be2a36aabf575c7e02cf021eff8d67fc6d9eb66 Mon Sep 17 00:00:00 2001 From: Noah Silvera Date: Wed, 17 Feb 2021 10:20:52 -0800 Subject: Add Taxjar Rails engine Upcoming work to get this extension officially certified with Taxjar will require the addition of UI components into the solidus backend. Creating a rails engine for the new rails components of this extension is a prerequisite to any UI work. Co-authored-by: Nick Van Doorn Co-authored-by: Adam Mueller --- lib/super_good-solidus_taxjar.rb | 3 +++ lib/super_good/engine.rb | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 lib/super_good/engine.rb diff --git a/lib/super_good-solidus_taxjar.rb b/lib/super_good-solidus_taxjar.rb index f7f97c7..768d9f8 100644 --- a/lib/super_good-solidus_taxjar.rb +++ b/lib/super_good-solidus_taxjar.rb @@ -1 +1,4 @@ +# frozen_string_literal: true + require "super_good/solidus_taxjar" +require "super_good/engine" diff --git a/lib/super_good/engine.rb b/lib/super_good/engine.rb new file mode 100644 index 0000000..a73edd5 --- /dev/null +++ b/lib/super_good/engine.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module SuperGoodSolidusTaxjar + class Engine < Rails::Engine + isolate_namespace Spree + engine_name 'super_good-solidus_taxjar' + end +end -- cgit v1.2.3 From a6d72165bb3edfa95c2f681ff032619e293e4181 Mon Sep 17 00:00:00 2001 From: Noah Silvera Date: Wed, 17 Feb 2021 10:24:56 -0800 Subject: Update the changelog Add a note about the addition of the rails engine. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75cdefb..8e455dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - [#21](https://github.com/SuperGoodSoft/solidus_taxjar/pull/21) Migrated project to `solidus_dev_support` - [#22](https://github.com/SuperGoodSoft/solidus_taxjar/pull/22) Added support for TaxJar address validation API through `SuperGood::SolidusTaxJar::Addresses` class - [#34](https://github.com/SuperGoodSoft/solidus_taxjar/pull/34) Include API version in request headers +- [#38](https://github.com/SuperGoodSoft/solidus_taxjar/pull/38) Added a rails engine to support future solidus backend UI ## v0.17.1 -- cgit v1.2.3