Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove rbx (Rubinius) and 1.8.x pinned dependencies (#64)
* Remove rbx (Rubinius) and 1.8.x pinned dependencies * Update travis.yml branch to main
- Loading branch information
Showing
5 changed files
with
25 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ language: ruby | |
|
||
branches: | ||
only: | ||
- master | ||
- main | ||
|
||
rvm: | ||
# MRI | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
require File.expand_path("on_what", File.dirname(File.dirname(__FILE__))) | ||
|
||
# Code coverage (via SimpleCov) on Ruby 1.9+ | ||
unless on_1_8? | ||
begin | ||
require "simplecov" | ||
SimpleCov.start do | ||
add_filter "/spec/" # exclude test code | ||
add_filter "/vendor/" # exclude gems which are vendored on Travis CI | ||
add_filter "/on_what.rb" # exclude help used only in gemspec | ||
end | ||
|
||
# On CI we publish simplecov results to codecov.io | ||
if on_travis? | ||
require "codecov" | ||
SimpleCov.formatter = SimpleCov::Formatter::Codecov | ||
end | ||
# Code coverage (via SimpleCov) | ||
begin | ||
require "simplecov" | ||
SimpleCov.start do | ||
add_filter "/spec/" # exclude test code | ||
add_filter "/vendor/" # exclude gems which are vendored on Travis CI | ||
add_filter "/on_what.rb" # exclude help used only in gemspec | ||
end | ||
|
||
# Due to circular dependency (simplecov depends on docile), remove docile and require again below | ||
Object.send(:remove_const, :Docile) | ||
$LOADED_FEATURES.reject! { |f| f =~ /\/docile\// } | ||
rescue LoadError | ||
warn "warning: simplecov or codecov gems not found; skipping coverage" | ||
# On CI we publish simplecov results to codecov.io | ||
if on_travis? | ||
require "codecov" | ||
SimpleCov.formatter = SimpleCov::Formatter::Codecov | ||
end | ||
|
||
# Due to circular dependency (simplecov depends on docile), remove docile and require again below | ||
Object.send(:remove_const, :Docile) | ||
$LOADED_FEATURES.reject! { |f| f =~ /\/docile\// } | ||
rescue LoadError | ||
warn "warning: simplecov or codecov gems not found; skipping coverage" | ||
end | ||
|
||
lib_dir = File.join(File.dirname(File.dirname(__FILE__)), "lib") | ||
$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include? lib_dir | ||
|
||
# Require Docile again, now with coverage enabled on 1.9+ | ||
# Require Docile again, now with coverage enabled | ||
require "docile" |