Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 41fd624

Browse files
authored
Merge pull request #51 from olleolleolle/fix/travis-build-fix
Travis and Gemfile - Bundler version hinting
2 parents 2ab076d + 1f53455 commit 41fd624

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ language: ruby
33
cache: bundler
44
env:
55
- CI=true
6+
before_install:
7+
- gem install bundler
68
rvm:
79
- 2.0.0
810
- 2.1.6

gemfiles/Gemfile.base

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ source "http://rubygems.org"
22

33
gemspec path: File.expand_path('../..', __FILE__)
44

5+
ruby RUBY_VERSION
6+
57
gem 'rake'
68
gem 'rspec'
79
gem 'timecop'
@@ -15,12 +17,13 @@ gem 'simplecov'
1517

1618
gem 'redis'
1719
gem 'fakeredis'
18-
gem 'sqlite3'
20+
gem 'sqlite3', platform: :mri
1921
gem 'sequel'
2022

2123
gem 'delayed_job', require: false
2224
gem 'resque', require: false
2325

24-
unless RUBY_VERSION.to_i <= 1
25-
gem 'sidekiq', require: false
26+
# Freeze Sidekiq to < 5 in Ruby 2.2 Gemfiles
27+
if RUBY_VERSION >= '2'
28+
gem 'sidekiq', (RUBY_VERSION >= '2.2.2' ? '~> 5' : '~> 4'), require: false
2629
end

gemfiles/Gemfile.rails-5.0.x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
eval_gemfile File.expand_path('../Gemfile.base', __FILE__)
22

33
gem 'rails', '~> 5.0.0'
4-
gem 'sinatra', git: 'https://github.com/sinatra/sinatra.git'
4+
gem 'sinatra'

0 commit comments

Comments
 (0)