Skip to content

Commit

Permalink
Add .ruby-version to match travis version (2factorauth#3656)
Browse files Browse the repository at this point in the history
* Add .ruby-version to match travis version

Add a .ruby-version to set local ruby version for rvm and rbenv users.

* Rubocop fixes.

* Update travis rvm ruby version to match github version

* Update .travis.yml to use ruby version from .ruby-version fallback.

Co-Authored-By: Firefishy <[email protected]>
  • Loading branch information
Firefishy authored and Carlgo11 committed Jan 29, 2019
1 parent 5a4050c commit 107c7fa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.3
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
sudo: false
rvm: 2.4.0
os: linux
cache:
bundler: true
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

# Dependencies are bundled with the github-pages gem
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'html-proofer'
require 'rubocop/rake_task'
require 'jekyll'
Expand Down
4 changes: 3 additions & 1 deletion verify.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'yaml'
require 'fastimage'
require 'kwalify'
Expand Down Expand Up @@ -115,7 +117,7 @@ def test_img_file(img)
imgs.each { |img| next unless img.nil? error("#{img} is not used") }
end

exit 1 if @output > 0
exit 1 if @output.positive?
rescue Psych::SyntaxError => e
puts "<------------ ERROR in a YAML file ------------>\n"
puts e
Expand Down

0 comments on commit 107c7fa

Please sign in to comment.