Skip to content

Commit 539133e

Browse files
committed
Run against Rbx 2.5.8 and ignore failures.
1 parent 6aa1204 commit 539133e

9 files changed

+44
-49
lines changed

.rubocop_todo.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2015-11-23 14:55:46 -0500 using RuboCop version 0.35.1.
3+
# on 2015-11-23 18:15:01 -0500 using RuboCop version 0.35.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -33,7 +33,7 @@ Metrics/ClassLength:
3333
Metrics/CyclomaticComplexity:
3434
Max: 14
3535

36-
# Offense count: 751
36+
# Offense count: 750
3737
# Configuration parameters: AllowURI, URISchemes.
3838
Metrics/LineLength:
3939
Max: 215

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rvm:
66
- 2.2
77
- 2.1
88
- 2.0.0
9-
- rbx-2.2.10
9+
- rbx-2.5.8
1010
- jruby-19mode
1111
- ruby-head
1212
- jruby-head
@@ -15,6 +15,7 @@ matrix:
1515
allow_failures:
1616
- rvm: ruby-head
1717
- rvm: jruby-head
18+
- rvm: rbx-2.5.8
1819

1920
gemfile:
2021
- Gemfile

Appraisals

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
appraise "rails-3" do
2-
gem "rails", "3.2.19"
3-
gem "rack-cache", "<= 1.2" # Pin as next rack-cache version (1.3) removes Ruby1.9 support
1+
appraise 'rails-3' do
2+
gem 'rails', '3.2.19'
3+
gem 'rack-cache', '<= 1.2' # Pin as next rack-cache version (1.3) removes Ruby1.9 support
44
end
55

6-
appraise "rails-4" do
7-
gem "rails", "4.1.6"
6+
appraise 'rails-4' do
7+
gem 'rails', '4.1.6'
88
end
99

10-
appraise "rack-1.5.2" do
11-
gem "rack", "1.5.2"
10+
appraise 'rack-1.5.2' do
11+
gem 'rack', '1.5.2'
1212
end

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6-
gem 'rubocop', '0.35.1'
76
gem 'guard'
87
gem 'guard-rspec'
98
gem 'guard-rubocop'

Rakefile

+31-34
Original file line numberDiff line numberDiff line change
@@ -17,52 +17,49 @@ end
1717
task :spec
1818

1919
require 'rainbow/ext/string' unless String.respond_to?(:color)
20+
2021
require 'rubocop/rake_task'
2122
RuboCop::RakeTask.new
2223

2324
task default: [:rubocop, :spec]
2425

25-
begin
26-
require 'yard'
27-
DOC_FILES = ['lib/**/*.rb', 'README.md']
26+
require 'yard'
27+
DOC_FILES = ['lib/**/*.rb', 'README.md']
2828

29-
YARD::Rake::YardocTask.new(:doc) do |t|
30-
t.files = DOC_FILES
31-
end
29+
YARD::Rake::YardocTask.new(:doc) do |t|
30+
t.files = DOC_FILES
31+
end
3232

33-
namespace :doc do
34-
YARD::Rake::YardocTask.new(:pages) do |t|
35-
t.files = DOC_FILES
36-
t.options = ['-o', '../grape.doc/docs']
37-
end
33+
namespace :doc do
34+
YARD::Rake::YardocTask.new(:pages) do |t|
35+
t.files = DOC_FILES
36+
t.options = ['-o', '../grape.doc/docs']
37+
end
3838

39-
namespace :pages do
40-
desc 'Check out gh-pages.'
41-
task :checkout do
42-
dir = File.dirname(__FILE__) + '/../grape.doc'
43-
unless Dir.exist?(dir)
44-
Dir.mkdir(dir)
45-
Dir.chdir(dir) do
46-
system('git init')
47-
system('git remote add origin git@github.com:ruby-grape/grape.git')
48-
system('git pull')
49-
system('git checkout gh-pages')
50-
end
39+
namespace :pages do
40+
desc 'Check out gh-pages.'
41+
task :checkout do
42+
dir = File.dirname(__FILE__) + '/../grape.doc'
43+
unless Dir.exist?(dir)
44+
Dir.mkdir(dir)
45+
Dir.chdir(dir) do
46+
system('git init')
47+
system('git remote add origin git@github.com:ruby-grape/grape.git')
48+
system('git pull')
49+
system('git checkout gh-pages')
5150
end
5251
end
52+
end
5353

54-
desc 'Generate and publish YARD docs to GitHub pages.'
55-
task publish: ['doc:pages:checkout', 'doc:pages'] do
56-
Dir.chdir(File.dirname(__FILE__) + '/../grape.doc') do
57-
system('git checkout gh-pages')
58-
system('git add .')
59-
system('git add -u')
60-
system("git commit -m 'Generating docs for version #{Grape::VERSION}.'")
61-
system('git push origin gh-pages')
62-
end
54+
desc 'Generate and publish YARD docs to GitHub pages.'
55+
task publish: ['doc:pages:checkout', 'doc:pages'] do
56+
Dir.chdir(File.dirname(__FILE__) + '/../grape.doc') do
57+
system('git checkout gh-pages')
58+
system('git add .')
59+
system('git add -u')
60+
system("git commit -m 'Generating docs for version #{Grape::VERSION}.'")
61+
system('git push origin gh-pages')
6362
end
6463
end
6564
end
66-
rescue LoadError
67-
puts 'You need to install YARD.'
6865
end

gemfiles/rack_1.5.2.gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ source 'https://rubygems.org'
55
gem 'rack', '1.5.2'
66

77
group :development, :test do
8-
gem 'rubocop', '0.35.1'
98
gem 'guard'
109
gem 'guard-rspec'
1110
gem 'guard-rubocop'

gemfiles/rails_3.gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ gem 'rails', '3.2.19'
66
gem 'rack-cache', '<= 1.2'
77

88
group :development, :test do
9-
gem 'rubocop', '0.35.1'
109
gem 'guard'
1110
gem 'guard-rspec'
1211
gem 'guard-rubocop'

gemfiles/rails_4.gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ source 'https://rubygems.org'
55
gem 'rails', '4.1.6'
66

77
group :development, :test do
8-
gem 'rubocop', '0.35.1'
98
gem 'guard'
109
gem 'guard-rspec'
1110
gem 'guard-rubocop'

grape.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ Gem::Specification.new do |s|
3131
s.add_development_dependency 'bundler'
3232
s.add_development_dependency 'cookiejar'
3333
s.add_development_dependency 'rack-contrib'
34-
s.add_development_dependency 'mime-types'
34+
s.add_development_dependency 'mime-types', '< 3.0'
3535
s.add_development_dependency 'appraisal'
3636
s.add_development_dependency 'benchmark-ips'
37+
s.add_development_dependency 'rubocop', '0.35.1'
3738

3839
s.files = `git ls-files`.split("\n")
3940
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 commit comments

Comments
 (0)