forked from varvet/pundit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis build change: Fix build, use latest JRuby
- Lint only 1 time, on modern Ruby
- Loading branch information
1 parent
0e3a11c
commit f60d059
Showing
8 changed files
with
67 additions
and
26 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2016-12-06 09:57:39 +0100 using RuboCop version 0.41.2. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Lint/UnneededDisable: | ||
Exclude: | ||
- 'lib/pundit/rspec.rb' |
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,12 +1,20 @@ | ||
language: ruby | ||
sudo: false | ||
rvm: | ||
- 2.0.0 | ||
- 2.1 | ||
- 2.2 | ||
- 2.3.0 | ||
- jruby-19mode | ||
- rbx-2 | ||
env: | ||
- RSPEC_VERSION="<2.99" | ||
- RSPEC_VERSION="~>3.0 | ||
before_install: | ||
- gem update --system | ||
- gem install bundler | ||
|
||
matrix: | ||
include: | ||
- rvm: 2.4.0 | ||
script: bundle exec rake rubocop # ONLY lint once, first | ||
- rvm: 2.1 | ||
- rvm: 2.2 | ||
- rvm: 2.3.3 | ||
- rvm: 2.4.0 | ||
- rvm: jruby-1.7.26 | ||
env: | ||
- JRUBY_OPTS="--debug" | ||
- rvm: jruby-9.1.8.0 | ||
env: | ||
- JRUBY_OPTS="--debug" |
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,4 +1,16 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "rspec", ENV["RSPEC_VERSION"] unless ENV["RSPEC_VERSION"].to_s.empty? | ||
ruby RUBY_VERSION | ||
|
||
gemspec | ||
|
||
group :development, :test do | ||
gem "actionpack" | ||
gem "activemodel" | ||
gem "bundler" | ||
gem "pry" | ||
gem "rake" | ||
gem "rspec" | ||
gem "rubocop" | ||
gem "yard" | ||
end |
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 |
---|---|---|
|
@@ -16,4 +16,3 @@ YARD::Rake::YardocTask.new do |t| | |
end | ||
|
||
task default: :spec | ||
task default: :rubocop unless RUBY_ENGINE == "rbx" |
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