Skip to content

Commit

Permalink
Merge pull request octokit#616 from octokit/ruby-2-and-beyond
Browse files Browse the repository at this point in the history
Ruby 2 and beyond
  • Loading branch information
pengwynn committed Jun 25, 2015
2 parents ab7e0ec + c95a5ac commit 5dff4b0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 74 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ language: ruby

rvm:
- jruby
- rbx
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- rbx-2
- 2.0
- 2.1
- 2.2

bundler_args: --without development

Expand All @@ -26,5 +25,5 @@ before_script:

matrix:
allow_failures:
- rvm: rbx
- rvm: rbx-2
- rvm: jruby
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end

group :test do
gem 'coveralls', :require => false
gem 'json', '~> 1.7', :platforms => [:ruby_18, :jruby]
gem 'json', '~> 1.7', :platforms => [:jruby]
gem 'multi_json', '~> 1.11.0'
gem 'mime-types', '< 2.0.0'
gem 'netrc', '~> 0.7.7'
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,10 +595,9 @@ when writing new specs.
This library aims to support and is [tested against][travis] the following Ruby
implementations:

* Ruby 1.9.2
* Ruby 1.9.3
* Ruby 2.0.0
* Ruby 2.1.0
* Ruby 2.0
* Ruby 2.1
* Ruby 2.2

If something doesn't work on one of these Ruby versions, it's a bug.

Expand Down
56 changes: 0 additions & 56 deletions lib/octokit/backports/uri.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/octokit/client/pub_sub_hubbub.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
major, minor, patch = RUBY_VERSION.split('.').map(&:to_i)

if (major == 1 && minor < 9) || (major == 1 && minor == 9 && patch < 2)
# pull in backports
require 'octokit/backports/uri'
end

module Octokit
class Client

Expand Down

0 comments on commit 5dff4b0

Please sign in to comment.