-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from spree-contrib/solidus-support
Add Support for Solidus
- Loading branch information
Showing
7 changed files
with
61 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'spree_api', github: 'spree', branch: '3-0-stable' | ||
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable' | ||
if ENV['SOLIDUS_API'].nil? | ||
gem 'spree_api', github: 'spree', branch: '3-0-stable' | ||
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable' | ||
|
||
gemspec | ||
gemspec name: 'spree_api_v2' | ||
else | ||
gem 'solidus_api', github: 'solidusio/solidus' | ||
gem 'solidus_auth_devise', github: 'solidusio/solidus_auth_devise' | ||
|
||
gemspec name: 'solidus_api_v2' | ||
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
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,5 @@ | ||
require 'solidus_core' | ||
require 'active_model_serializers' | ||
|
||
ENV['SOLIDUS_API'] = 'true' | ||
require 'spree_api_v2/engine' |
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,36 @@ | ||
# encoding: UTF-8 | ||
Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.name = 'solidus_api_v2' | ||
s.version = '1.1.0' | ||
s.summary = 'The V2 API for Solidus.' | ||
s.description = 'Adds an assortment of new api endpoints that are JSON API compatible.' | ||
s.required_ruby_version = '>= 2.0.0' | ||
|
||
s.author = 'Ben A. Morgan' | ||
s.email = '[email protected]' | ||
s.homepage = 'http://spree-contrib.github.io/spree_api_v2' | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.require_path = 'lib' | ||
s.requirements << 'none' | ||
|
||
s.add_dependency 'solidus_api', '~> 1.0' | ||
s.add_dependency 'active_model_serializers', '= 0.10.0.rc2' | ||
|
||
s.add_development_dependency 'capybara', '~> 2.4' | ||
s.add_development_dependency 'coffee-rails' | ||
s.add_development_dependency 'database_cleaner' | ||
s.add_development_dependency 'factory_girl', '~> 4.5' | ||
s.add_development_dependency 'ffaker' | ||
s.add_development_dependency 'rspec-rails', '~> 3.3' | ||
s.add_development_dependency 'rspec-its' | ||
s.add_development_dependency 'sass-rails', '~> 5.0.0.beta1' | ||
s.add_development_dependency 'selenium-webdriver' | ||
s.add_development_dependency 'simplecov' | ||
s.add_development_dependency 'sqlite3' | ||
s.add_development_dependency 'pg' | ||
s.add_development_dependency 'json_spec', '~> 1.1.4' | ||
s.add_development_dependency 'shoulda-matchers', '~> 3.0.0' | ||
end |