Update rubocop dependency to >= 0.23

This commit is contained in:
Erik Michaels-Ober 2014-06-20 23:35:08 +02:00
parent 1cbc468575
commit 92f002d8f9
5 changed files with 5 additions and 8 deletions

1
.rspec
View File

@ -1,2 +1 @@
--color
--format=doc

View File

@ -1,5 +1,5 @@
AllCops:
Includes:
Include:
- 'Gemfile'
- 'Rakefile'
- 'mlb.gemspec'

View File

@ -18,7 +18,7 @@ group :test do
gem 'coveralls', :require => false
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rspec', '>= 2.14'
gem 'rubocop', '>= 0.19', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'simplecov', :require => false
gem 'webmock'
gem 'yardstick'

View File

@ -25,10 +25,10 @@ end
begin
require 'rubocop/rake_task'
Rubocop::RakeTask.new
RuboCop::RakeTask.new
rescue LoadError
task :rubocop do
$stderr.puts 'Rubocop is disabled'
$stderr.puts 'RuboCop is disabled'
end
end
@ -42,7 +42,7 @@ end
require 'yardstick/rake/verify'
Yardstick::Rake::Verify.new do |verify|
verify.threshold = 56.2
verify.threshold = 56.5
end
task :default => [:spec, :rubocop, :verify_measurements]

View File

@ -11,8 +11,6 @@ module MLB
end.body
end
private
def self.connection
Faraday.new(:url => 'https://www.googleapis.com', :ssl => {:verify => false}) do |builder|
builder.request :url_encoded