Skip to content

Commit

Permalink
Merge pull request #36 from jhawthorn/solidus_2-0
Browse files Browse the repository at this point in the history
Add support for Solidus 2.0 and Rails 5
  • Loading branch information
jhawthorn authored Aug 22, 2016
2 parents 1147e34 + 463c7b6 commit d74c5f6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
25 changes: 15 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
sudo: false
cache: bundler
language: ruby
env:
- SOLIDUS_BRANCH=v1.1 DB=mysql
- SOLIDUS_BRANCH=v1.2 DB=mysql
- SOLIDUS_BRANCH=v1.3 DB=mysql
- SOLIDUS_BRANCH=master DB=mysql
- SOLIDUS_BRANCH=v1.1 DB=postgres
- SOLIDUS_BRANCH=v1.2 DB=postgres
- SOLIDUS_BRANCH=v1.3 DB=postgres
- SOLIDUS_BRANCH=master DB=postgres
rvm:
- 2.1.8
- 2.3.1
env:
matrix:
- SOLIDUS_BRANCH=v1.1 DB=postgres
- SOLIDUS_BRANCH=v1.2 DB=postgres
- SOLIDUS_BRANCH=v1.3 DB=postgres
- SOLIDUS_BRANCH=v1.4 DB=postgres
- SOLIDUS_BRANCH=v2.0 DB=postgres
- SOLIDUS_BRANCH=master DB=postgres
- SOLIDUS_BRANCH=v1.1 DB=mysql
- SOLIDUS_BRANCH=v1.2 DB=mysql
- SOLIDUS_BRANCH=v1.3 DB=mysql
- SOLIDUS_BRANCH=v1.4 DB=mysql
- SOLIDUS_BRANCH=v2.0 DB=mysql
- SOLIDUS_BRANCH=master DB=mysql
8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ source "https://rubygems.org"
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
gem "solidus", github: "solidusio/solidus", branch: branch

group :development, :test do
gem "pry-rails"
if branch == 'master' || branch >= "v2.0"
gem "rails-controller-testing", group: :test
end

gem 'pg'
gem 'mysql2'

group :development, :test do
gem "pry-rails"
end

gemspec
2 changes: 1 addition & 1 deletion solidus_gateway.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.require_path = "lib"
s.requirements << "none"

s.add_dependency "solidus_core", "~> 1.1"
s.add_dependency "solidus_core", [">= 1.1", "< 3"]

# ActiveMerchant v1.58 through v1.59 introduced a breaking change
# to the stripe gateway.
Expand Down

0 comments on commit d74c5f6

Please sign in to comment.