summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml3
-rw-r--r--Gemfile12
-rw-r--r--super_good-solidus_taxjar.gemspec3
3 files changed, 16 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 4061288..e08f7f3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,5 +5,6 @@ cache: bundler
rvm:
- 2.3.7
env:
- - SOLIDUS_VERSION=2.4.1
+ matrix:
+ - SOLIDUS_BRANCH=v2.4 DB=postgres
before_install: gem install bundler -v 1.17.1
diff --git a/Gemfile b/Gemfile
index 462e67e..5021b1a 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,5 +2,15 @@ source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
-# Specify your gem's dependencies in super_good-solidus_taxjar.gemspec
+branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
+gem "solidus", github: "solidusio/solidus", branch: branch
+
+if ENV.fetch('DB') == 'postgres'
+ gem 'pg', '~> 0.21'
+end
+
+group :development, :test do
+ gem "pry"
+end
+
gemspec
diff --git a/super_good-solidus_taxjar.gemspec b/super_good-solidus_taxjar.gemspec
index 9cbd68e..4ea03d1 100644
--- a/super_good-solidus_taxjar.gemspec
+++ b/super_good-solidus_taxjar.gemspec
@@ -22,6 +22,9 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
+ spec.add_dependency "solidus_core", [">= 2.3.0", "< 3.0.0"]
+ spec.add_dependency "solidus_support"
+
spec.add_development_dependency "bundler", "~> 1.17"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"