forked from vinsol-spree-contrib/spree_taxjar
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Damian Kaczmarczyk
committed
Jun 1, 2021
1 parent
ffbe098
commit 61923d6
Showing
9 changed files
with
122 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
<%= render 'spree/admin/shared/sub_menu/configuration' %> | ||
|
||
<% content_for :page_title do %> | ||
<%= Spree.t(:taxjar_settings) %> | ||
<% end %> | ||
|
||
<%= form_tag admin_taxjar_settings_path, method: :put do %> | ||
<div id="preferences" data-hook> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<fieldset class="no-border-bottom"> | ||
<% @preferences_api.each do |key| %> | ||
<div class="form-group"> | ||
<div class="form-group"> | ||
<% if Spree::Config.preference_type(key) == :boolean %> | ||
<div class="checkbox"> | ||
<%= label_tag key do %> | ||
<%= hidden_field_tag(key, 0, id: "#{key}_hidden") %> | ||
<%= check_box_tag(key, 1, Spree::Config[key]) %> | ||
<%= Spree.t(key) %> | ||
<%end%> | ||
</div> | ||
<% else %> | ||
<%= label_tag key %> | ||
<%= preference_field_tag(key, Spree::Config[key], type: Spree::Config.preference_type(key)) %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</fieldset> | ||
</div> | ||
</div> | ||
|
||
<div class="form-buttons" data-hook="buttons"> | ||
<%= button Spree.t('actions.update'), 'refresh' %> | ||
<span class="or"><%= Spree.t(:or) %></span> | ||
<%= button_link_to Spree.t('actions.cancel'), admin_orders_url, icon: 'delete' %> | ||
</div> | ||
<%= render partial: 'spree/admin/shared/edit_resource_links', locals: {collection_url: admin_orders_url} %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "spree", "~> 3.7.0" | ||
|
||
group :test do | ||
gem "rails-controller-testing" | ||
gem "byebug" | ||
end | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "spree", "~> 4.2" | ||
gem "rails-controller-testing" | ||
|
||
group :test do | ||
gem "rails-controller-testing" | ||
gem "byebug" | ||
end | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
require 'spree_core' | ||
require 'spree_taxjar/engine' | ||
require 'deface' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
os: linux | ||
dist: bionic | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- google-chrome | ||
packages: | ||
- google-chrome-stable | ||
|
||
services: | ||
- mysql | ||
- postgresql | ||
|
||
language: ruby | ||
|
||
rvm: | ||
- 2.7 | ||
- 3.0 | ||
|
||
env: | ||
- DB=mysql | ||
- DB=postgres | ||
|
||
gemfile: | ||
- gemfiles/spree_3_2.gemfile | ||
- gemfiles/spree_3_3.gemfile | ||
- gemfiles/spree_3_4.gemfile | ||
- gemfiles/spree_3_7.gemfile | ||
- gemfiles/spree_4.gemfile | ||
- gemfiles/spree_master.gemfile | ||
|
||
jobs: | ||
allow_failures: | ||
- gemfile: gemfiles/spree_master.gemfile | ||
exclude: | ||
- rvm: 3.0 | ||
gemfile: gemfiles/spree_3_2.gemfile | ||
- rvm: 3.0 | ||
gemfile: gemfiles/spree_3_3.gemfile | ||
- rvm: 3.0 | ||
gemfile: gemfiles/spree_3_4.gemfile | ||
- rvm: 3.0 | ||
gemfile: gemfiles/spree_3_7.gemfile | ||
|
||
before_install: | ||
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';" | ||
|
||
before_script: | ||
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'` | ||
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"` | ||
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O | ||
- unzip chromedriver_linux64.zip -d ~/bin | ||
- nvm install 14 | ||
|
||
script: | ||
- bundle exec rake test_app | ||
- bundle exec rake spec |