Require Ruby 1.9.3 or higher

This commit is contained in:
Erik Michaels-Ober 2014-07-20 21:17:13 +02:00
parent 8771f1aebe
commit 90e43cf888
6 changed files with 12 additions and 30 deletions

View File

@ -1,24 +1,18 @@
before_install:
- gem install bundler --pre
- bundle --version
bundler_args: --without development
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1
- jruby-19mode
- jruby-head
- rbx-2
- ruby-head
matrix:
include:
- rvm: jruby-18mode
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
- rvm: jruby-19mode
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
- rvm: jruby-head
env: JRUBY_OPTS="$JRUBY_OPTS --debug"
allow_failures:
- rvm: jruby-head
- rvm: ruby-head

12
Gemfile
View File

@ -7,20 +7,14 @@ gem 'yard'
group :development do
gem 'kramdown'
gem 'pry'
platforms :ruby_19, :ruby_20 do
gem 'pry-debugger'
gem 'pry-stack_explorer'
end
end
group :test do
gem 'backports'
gem 'coveralls', :require => false
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
gem 'rest-client', '~> 1.6.0', :platforms => [:jruby, :ruby_18]
gem 'coveralls'
gem 'rspec', '>= 2.14'
gem 'rubocop', '>= 0.23', :platforms => [:ruby_19, :ruby_20, :ruby_21]
gem 'simplecov', :require => false
gem 'rubocop', '>= 0.23'
gem 'simplecov'
gem 'webmock'
gem 'yardstick'
end

View File

@ -43,8 +43,6 @@ MLB.rb is a Ruby library for retrieving current Major League Baseball players, m
This library aims to support and is [tested against][travis] the following Ruby
implementations:
* Ruby 1.8.7
* Ruby 1.9.2
* Ruby 1.9.3
* Ruby 2.0.0
* Ruby 2.1.0

View File

@ -1,5 +1,4 @@
require 'faraday'
require 'multi_json'
module MLB
class Team

View File

@ -6,7 +6,6 @@ require 'mlb/version'
Gem::Specification.new do |spec|
spec.add_dependency 'faraday', ['~> 0.8', '< 0.10']
spec.add_dependency 'faraday_middleware', '~> 0.9'
spec.add_dependency 'json', '~> 1.8'
spec.add_development_dependency 'bundler', '~> 1.0'
spec.author = 'Erik Michaels-Ober'
spec.description = 'MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.'
@ -18,6 +17,7 @@ Gem::Specification.new do |spec|
spec.licenses = %w(MIT)
spec.name = 'mlb'
spec.require_paths = %w(lib)
spec.required_ruby_version = '>= 1.9.3'
spec.required_rubygems_version = '>= 1.3.5'
spec.summary = spec.description
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

View File

@ -1,13 +1,10 @@
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
SimpleCov.start do
add_filter '/spec/'
add_filter '/spec'
minimum_coverage(100)
end