Skip to content

Commit

Permalink
Merge pull request #424 from oauth-xx/updates-from-1-4-stable
Browse files Browse the repository at this point in the history
Updates from 1-4-stable
  • Loading branch information
pboling committed Oct 14, 2018
2 parents 5ea909d + bfb6a3d commit 68206b6
Show file tree
Hide file tree
Showing 14 changed files with 83 additions and 35 deletions.
1 change: 1 addition & 0 deletions .jrubyrc
@@ -0,0 +1 @@
debug.fullTrace=true
23 changes: 11 additions & 12 deletions .travis.yml
Expand Up @@ -6,44 +6,43 @@ bundler_args: --no-deployment --jobs 3 --retry 3

cache: bundler

env:
global:
- JRUBY_OPTS="$JRUBY_OPTS -Xcli.debug=true --debug"

language: ruby

matrix:
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
- rvm: rbx-3
- rvm: jruby-1.7.27
fast_finish: true
include:
- rvm: jruby-1.7.27
- rvm: jruby-1.7.27 # targets MRI v1.9
gemfile: gemfiles/jruby_1.7.gemfile
- rvm: 1.9.3-p551
gemfile: gemfiles/ruby_1.9.gemfile
- rvm: 2.0.0-p648
gemfile: gemfiles/ruby_2.0.gemfile
- rvm: 2.1.10
gemfile: gemfiles/ruby_2.1.gemfile
- rvm: jruby-9.0.5.0
- rvm: jruby-9.0.5.0 # targets MRI v2.0
gemfile: gemfiles/jruby_9.0.gemfile
# DEPRECATION WARNING
# oauth2 1.x series releases are the last to support Ruby versions above
# oauth2 2.x series releases will support Ruby versions below, and not above
- rvm: jruby-9.1.15.0
- rvm: jruby-9.1.9.0 # targets MRI v2.3
gemfile: gemfiles/jruby_9.1.gemfile
- rvm: 2.2.9
- rvm: 2.2.10
gemfile: gemfiles/ruby_2.2.gemfile
- rvm: 2.3.6
- rvm: 2.3.7
gemfile: gemfiles/ruby_2.3.gemfile
- rvm: 2.4.3
- rvm: 2.4.4
gemfile: gemfiles/ruby_2.4.gemfile
- rvm: 2.5.0
- rvm: jruby-9.2.0.0 # targets MRI v2.5
gemfile: gemfiles/jruby_9.2.gemfile
- rvm: 2.5.1
gemfile: gemfiles/ruby_2.5.gemfile
- rvm: jruby-head
gemfile: gemfiles/jruby-head.gemfile
gemfile: gemfiles/jruby_head.gemfile
- rvm: ruby-head
gemfile: gemfiles/ruby_head.gemfile
- rvm: rbx-3
Expand Down
30 changes: 29 additions & 1 deletion CHANGELOG.md
Expand Up @@ -13,6 +13,33 @@ All notable changes to this project will be documented in this file.
- _Dependency_: Upgrade jwt to 2.x.x (@travisofthenorth)
- Fix logging to `$stdout` of request and response bodies via Faraday's logger and `ENV["OAUTH_DEBUG"] == 'true'`

## [1.4.1] - 2018-10-13

- [#417](https://github.com/oauth-xx/oauth2/pull/417) - update jwt dependency (@thewoolleyman)
- [#418](https://github.com/oauth-xx/oauth2/pull/418) - remove rubocop dependency (temporary, added back in [#423](https://github.com/oauth-xx/oauth2/pull/423)) (@pboling)
- [#419](https://github.com/oauth-xx/oauth2/pull/419) - update faraday dependency (@pboling)
- [#420](https://github.com/oauth-xx/oauth2/pull/420) - update [oauth2.gemspec](https://github.com/oauth-xx/oauth2/blob/1-4-stable/oauth2.gemspec) (@pboling)
- [#421](https://github.com/oauth-xx/oauth2/pull/421) - fix [CHANGELOG.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/CHANGELOG.md) for previous releases (@pboling)
- [#422](https://github.com/oauth-xx/oauth2/pull/422) - update [LICENSE](https://github.com/oauth-xx/oauth2/blob/1-4-stable/LICENSE) and [README.md](https://github.com/oauth-xx/oauth2/blob/1-4-stable/README.md) (@pboling)
- [#423](https://github.com/oauth-xx/oauth2/pull/423) - update [builds](https://travis-ci.org/oauth-xx/oauth2/builds), [Rakefile](https://github.com/oauth-xx/oauth2/blob/1-4-stable/Rakefile) (@pboling)
- officially document supported Rubies
* Ruby 1.9.3
* Ruby 2.0.0
* Ruby 2.1
* Ruby 2.2
* [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
* [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
* Ruby 2.3
* Ruby 2.4
* Ruby 2.5
* [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
* [JRuby 9.2][jruby-9.2] (targets MRI v2.5)

[jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
[jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
[jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html

## [1.4.0] - 2017-06-09

- Drop Ruby 1.8.7 support (@sferik)
Expand Down Expand Up @@ -116,4 +143,5 @@ All notable changes to this project will be documented in this file.
[1.3.0]: https://github.com/oauth-xx/oauth2/compare/v1.2.0...v1.3.0
[1.3.1]: https://github.com/oauth-xx/oauth2/compare/v1.3.0...v1.3.1
[1.4.0]: https://github.com/oauth-xx/oauth2/compare/v1.3.1...v1.4.0
[unreleased]: https://github.com/oauth-xx/oauth2/compare/v1.4.0...HEAD
[1.4.1]: https://github.com/oauth-xx/oauth2/compare/v1.4.0...v1.4.1
[unreleased]: https://github.com/oauth-xx/oauth2/compare/v1.4.1...HEAD
9 changes: 7 additions & 2 deletions Gemfile
Expand Up @@ -2,17 +2,22 @@ source 'https://rubygems.org'

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

gem 'faraday', '~> 0.15.2', :platforms => [:jruby_18, :ruby_18]
gem 'jwt', '< 1.5.2', :platforms => [:jruby_18, :ruby_18]

group :test do
ruby_version = Gem::Version.new(RUBY_VERSION)
if ruby_version >= Gem::Version.new('2.1')
# TODO: Upgrade to >= 0.59 when we drop Rubies below 2.2
# Error: Unsupported Ruby version 2.1 found in `TargetRubyVersion` parameter (in .rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
# Supported versions: 2.2, 2.3, 2.4, 2.5
gem 'rubocop', '~> 0.58.0'
gem 'rubocop-rspec', '~> 1.30.0'
gem 'rubocop', '~> 0.57.0'
gem 'rubocop-rspec', '~> 1.27.0' # last version that can use rubocop < 0.58
end
gem 'coveralls'
gem 'pry', '~> 0.11' if ruby_version >= Gem::Version.new('2.0')
gem 'rspec-pending_for'
gem 'simplecov', '>= 0.9'
end

# Specify non-special dependencies in oauth2.gemspec
Expand Down
19 changes: 11 additions & 8 deletions README.md
Expand Up @@ -9,6 +9,7 @@ If you need the readme for a released version of the gem please find it below:

| Version | Release Date | Readme |
|----------|--------------|----------------------------------------------------------|
| 1.4.1 | Oct 13, 2018 | https://github.com/oauth-xx/oauth2/blob/v1.4.1/README.md |
| 1.4.0 | Jun 9, 2017 | https://github.com/oauth-xx/oauth2/blob/v1.4.0/README.md |
| 1.3.1 | Mar 3, 2017 | https://github.com/oauth-xx/oauth2/blob/v1.3.1/README.md |
| 1.3.0 | Dec 27, 2016 | https://github.com/oauth-xx/oauth2/blob/v1.3.0/README.md |
Expand All @@ -21,7 +22,7 @@ If you need the readme for a released version of the gem please find it below:
[![Total Downloads](https://img.shields.io/gem/dt/oauth2.svg)][gem]
[![Downloads Today](https://img.shields.io/gem/rt/oauth2.svg)](https://rubygems.org/gems/oauth2)
[![Build Status](http://img.shields.io/travis/oauth-xx/oauth2.svg)][travis]
[![Coverage Status](http://img.shields.io/coveralls/intridea/oauth2.svg)][coveralls]
[![Coverage Status](http://img.shields.io/coveralls/oauth-xx/oauth2.svg)][coveralls]
[![Maintainability](https://api.codeclimate.com/v1/badges/688c612528ff90a46955/maintainability)][codeclimate]
[![Depfu](https://badges.depfu.com/badges/6d34dc1ba682bbdf9ae2a97848241743/count.svg)][depfu]
[![Open Source Helpers](https://www.codetriage.com/oauth-xx/oauth2/badges/users.svg)][code-triage]
Expand Down Expand Up @@ -169,8 +170,8 @@ implementations:
* Ruby 2.0.0
* Ruby 2.1
* Ruby 2.2
* [JRuby 1.7][jruby-1.7]
* [JRuby 9.0][jruby-9.0]
* [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
* [JRuby 9.0][jruby-9.0] (targets MRI v2.0)

---

Expand All @@ -179,11 +180,13 @@ implementations:
* Ruby 2.3 - Support through version 3.x series
* Ruby 2.4
* Ruby 2.5
* [JRuby 9.1][jruby-9.1]
* [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
* [JRuby 9.2][jruby-9.2] (targets MRI v2.5)

[jruby-1.7]: http://jruby.org/2017/05/11/jruby-1-7-27.html
[jruby-9.0]: http://jruby.org/2016/01/26/jruby-9-0-5-0.html
[jruby-9.1]: http://jruby.org/2018/02/21/jruby-9-1-16-0
[jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
[jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
[jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html

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

Expand Down Expand Up @@ -221,7 +224,7 @@ spec.add_dependency 'oauth2', '~> 1.4'

## License

[MIT][license]
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][source-license]

- Copyright (c) 2011-2013 Michael Bleigh and Intridea, Inc.
- Copyright (c) 2017-2018 [oauth-xx organization][oauth-xx]
Expand Down
4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -22,7 +22,9 @@ task :test => :spec

begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
RuboCop::RakeTask.new do |task|
task.options = ['-D'] # Display the name of the failing cops
end
rescue LoadError
task :rubocop do
warn 'RuboCop is disabled'
Expand Down
4 changes: 1 addition & 3 deletions gemfiles/jruby_1.7.gemfile
@@ -1,9 +1,7 @@
source 'https://rubygems.org'

group :test do
# Some changes to defaults make older version config incompatible with newer version config
# gem "rubocop", "~> 0.41.2"
gem 'rake'
gem 'rake', '~> 11.0'
gem 'rspec'
gem 'rspec-pending_for'
end
Expand Down
15 changes: 15 additions & 0 deletions gemfiles/jruby_9.2.gemfile
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

group :development do
gem 'pry'
end

group :test do
gem 'rake'
gem 'rspec'
gem 'rspec-pending_for'
gem 'rubocop', '~> 0.53.0'
gem 'rubocop-rspec', '~> 1.24.0'
end

gemspec :path => '../'
4 changes: 0 additions & 4 deletions gemfiles/jruby_head.gemfile
@@ -1,7 +1,5 @@
source 'https://rubygems.org'

gem 'rubocop', '~> 0.52.1'

group :development do
gem 'pry'
end
Expand All @@ -10,10 +8,8 @@ group :test do
gem 'rake'
gem 'rspec'
gem 'rspec-pending_for'
# rubocop:disable Bundler/DuplicatedGem
gem 'rubocop', '~> 0.53.0'
gem 'rubocop-rspec', '~> 1.24.0'
# rubocop:enable Bundler/DuplicatedGem
end

gemspec :path => '../'
2 changes: 1 addition & 1 deletion gemfiles/ruby_1.9.gemfile
Expand Up @@ -6,7 +6,7 @@ gem 'term-ansicolor', '< 1.4.0'
gem 'tins', '< 1.7'

group :test do
gem 'rake'
gem 'rake', '~> 11.0'
gem 'rspec'
gem 'rspec-pending_for'
end
Expand Down
1 change: 1 addition & 0 deletions lib/oauth2.rb
@@ -1,5 +1,6 @@
# includes modules from stdlib
require 'cgi'
require 'time'

# includes gem files
require 'oauth2/error'
Expand Down
2 changes: 1 addition & 1 deletion lib/oauth2/version.rb
Expand Up @@ -20,7 +20,7 @@ def minor
#
# @return [Integer]
def patch
0
1
end

# The pre-release version, if any
Expand Down
2 changes: 1 addition & 1 deletion oauth2.gemspec
Expand Up @@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'backports', '~> 3.11'
spec.add_development_dependency 'bundler', '~> 1.16'
spec.add_development_dependency 'coveralls', '~> 0.8'
spec.add_development_dependency 'rake', '~> 12.3'
spec.add_development_dependency 'rake', '>= 11.0'
spec.add_development_dependency 'rdoc', ['>= 5.0', '< 7']
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'wwtd'
Expand Down
2 changes: 1 addition & 1 deletion spec/helper.rb
Expand Up @@ -9,7 +9,7 @@

SimpleCov.start do
add_filter '/spec'
minimum_coverage(95.33)
minimum_coverage(95)
end

require 'addressable/uri'
Expand Down

0 comments on commit 68206b6

Please sign in to comment.