Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
Fix CI build and add Ruby 2.6 to CI (#159)
Browse files Browse the repository at this point in the history
* Add workarounds for ruby < 2.3.
* Add Ruby 2.6 to CI
  • Loading branch information
blowmage authored Apr 10, 2019
1 parent 64340b0 commit 4031be3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: ruby
rvm:
- 2.6
- 2.5
- 2.4
- 2.3
Expand Down
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@
source 'https://rubygems.org/'

gemspec

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3')
# WORKAROUND: googleauth 0.8.0 and newer are using ruby 2.3 syntax
# but the gem isn't specifying a minimum ruby.
# Downgrade the gem when running on 2.2.
gem 'googleauth', '~> 0.7.0'
# WORKAROUND: google-protobuf 3.7.0 and newer dropped ruby 2.2 and older,
# but the gem isn't specifying a minimum ruby for the pre-compiled versions.
# Downgrade the gem when running on 2.2.
gem 'google-protobuf', '~> 3.6.0'
end

0 comments on commit 4031be3

Please sign in to comment.