Skip to content

Commit 8de9d44

Browse files
committed
Test against multiple grape-swagger versions.
1 parent 0ecf289 commit 8de9d44

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
sudo: false
2+
13
before_install:
24
- "export DISPLAY=:99.0"
35
- "sh -e /etc/init.d/xvfb start"
@@ -8,3 +10,12 @@ cache: bundler
810

911
rvm:
1012
- 2.1.2
13+
14+
env:
15+
- GRAPE_SWAGGER_VERSION=0.7.2
16+
- GRAPE_SWAGGER_VERSION=0.8.0
17+
- GRAPE_SWAGGER_VERSION=HEAD
18+
19+
matrix:
20+
allow_failures:
21+
- env: GRAPE_SWAGGER_VERSION=HEAD

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
source 'https://rubygems.org'
22

33
gemspec
4+
5+
case version = ENV['GRAPE_SWAGGER_VERSION'] || '~> 0.9.0'
6+
when 'HEAD'
7+
gem 'grape-swagger', github: 'tim-vandecasteele/grape-swagger'
8+
else
9+
gem 'grape-swagger', version
10+
end

grape-swagger-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.require_paths = %w(lib)
1818

1919
spec.add_dependency 'railties', '>= 3.2.12'
20-
spec.add_dependency 'grape-swagger', '~> 0.7.2'
20+
spec.add_dependency 'grape-swagger', '>= 0.7.2'
2121

2222
spec.add_development_dependency 'bundler', '~> 1.3'
2323
spec.add_development_dependency 'rake'

0 commit comments

Comments
 (0)