mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
Test against multiple versions of Grape.
This commit is contained in:
parent
4d785b4754
commit
40e04ef23e
3 changed files with 23 additions and 1 deletions
15
.travis.yml
Normal file
15
.travis.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
language: ruby
|
||||
|
||||
sudo: false
|
||||
|
||||
rvm:
|
||||
- 2.1.1
|
||||
- 1.9.3
|
||||
- rbx-2.2.10
|
||||
- jruby-19mode
|
||||
|
||||
env:
|
||||
- GRAPE_VERSION=0.8.0
|
||||
- GRAPE_VERSION=0.9.0
|
||||
- GRAPE_VERSION=0.10.1
|
||||
- GRAPE_VERSION=HEAD
|
||||
7
Gemfile
7
Gemfile
|
|
@ -1,3 +1,10 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gemspec
|
||||
|
||||
case version = ENV['GRAPE_VERSION'] || '~> 0.10.0'
|
||||
when 'HEAD'
|
||||
gem 'grape', github: 'intridea/grape'
|
||||
else
|
||||
gem 'grape', version
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|||
gem.version = Grape::ActiveModelSerializers::VERSION
|
||||
gem.licenses = ['MIT']
|
||||
|
||||
gem.add_dependency "grape", "~> 0.3"
|
||||
gem.add_dependency "grape"
|
||||
gem.add_dependency "active_model_serializers", ">= 0.9.0"
|
||||
|
||||
gem.add_development_dependency "rspec"
|
||||
|
|
|
|||
Loading…
Reference in a new issue