Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Require Ruby 1.9.3 or higher
  • Loading branch information
sferik committed Jul 20, 2014
1 parent 8771f1a commit 90e43cf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 30 deletions.
18 changes: 6 additions & 12 deletions .travis.yml
@@ -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
Expand Down
12 changes: 3 additions & 9 deletions Gemfile
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/mlb/team.rb
@@ -1,5 +1,4 @@
require 'faraday'
require 'multi_json'

module MLB
class Team
Expand Down
2 changes: 1 addition & 1 deletion mlb.gemspec
Expand Up @@ -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.'
Expand All @@ -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")
Expand Down
7 changes: 2 additions & 5 deletions spec/helper.rb
@@ -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

Expand Down

0 comments on commit 90e43cf

Please sign in to comment.