oauth2 1.4.1 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/style.yml +37 -0
- data/.github/workflows/test.yml +58 -0
- data/.gitignore +7 -0
- data/.rspec +2 -0
- data/.rubocop.yml +41 -9
- data/.rubocop_todo.yml +108 -10
- data/.ruby-version +1 -0
- data/.travis.yml +47 -21
- data/CHANGELOG.md +37 -10
- data/CODE_OF_CONDUCT.md +105 -46
- data/Gemfile +36 -16
- data/README.md +45 -14
- data/Rakefile +1 -1
- data/gemfiles/jruby_1.7.gemfile +6 -6
- data/gemfiles/jruby_9.0.gemfile +2 -8
- data/gemfiles/jruby_9.1.gemfile +0 -14
- data/gemfiles/jruby_9.2.gemfile +0 -14
- data/gemfiles/jruby_head.gemfile +0 -14
- data/gemfiles/ruby_1.9.gemfile +2 -7
- data/gemfiles/ruby_2.0.gemfile +1 -12
- data/gemfiles/ruby_head.gemfile +2 -10
- data/gemfiles/truffleruby.gemfile +3 -0
- data/lib/oauth2/access_token.rb +14 -4
- data/lib/oauth2/authenticator.rb +10 -0
- data/lib/oauth2/client.rb +63 -16
- data/lib/oauth2/mac_token.rb +10 -2
- data/lib/oauth2/response.rb +5 -3
- data/lib/oauth2/strategy/assertion.rb +3 -3
- data/lib/oauth2/strategy/password.rb +2 -2
- data/lib/oauth2/version.rb +8 -6
- data/maintenance-branch +1 -0
- data/oauth2.gemspec +15 -3
- metadata +78 -28
- data/gemfiles/jruby_1.7.gemfile.lock +0 -81
- data/gemfiles/jruby_9.1.gemfile.lock +0 -112
- data/gemfiles/jruby_9.2.gemfile.lock +0 -112
- data/gemfiles/ruby_1.9.gemfile.lock +0 -85
- data/gemfiles/ruby_2.0.gemfile.lock +0 -90
- data/gemfiles/ruby_2.1.gemfile +0 -19
- data/gemfiles/ruby_2.1.gemfile.lock +0 -109
- data/gemfiles/ruby_2.2.gemfile +0 -17
- data/gemfiles/ruby_2.2.gemfile.lock +0 -108
- data/gemfiles/ruby_2.3.gemfile +0 -17
- data/gemfiles/ruby_2.3.gemfile.lock +0 -108
- data/gemfiles/ruby_2.4.gemfile +0 -17
- data/gemfiles/ruby_2.4.gemfile.lock +0 -108
- data/gemfiles/ruby_2.5.gemfile +0 -17
- data/gemfiles/ruby_2.5.gemfile.lock +0 -108
- data/gemfiles/ruby_head.gemfile.lock +0 -108
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,74 +1,133 @@
|
|
1
|
+
|
1
2
|
# Contributor Covenant Code of Conduct
|
2
3
|
|
3
4
|
## Our Pledge
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity
|
10
|
-
orientation.
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our
|
7
|
+
community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
9
|
+
identity and expression, level of experience, education, socio-economic status,
|
10
|
+
nationality, personal appearance, race, religion, or sexual identity
|
11
|
+
and orientation.
|
12
|
+
|
13
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
14
|
+
diverse, inclusive, and healthy community.
|
11
15
|
|
12
16
|
## Our Standards
|
13
17
|
|
14
|
-
Examples of behavior that contributes to
|
15
|
-
include:
|
18
|
+
Examples of behavior that contributes to a positive environment for our
|
19
|
+
community include:
|
16
20
|
|
17
|
-
*
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
*
|
20
|
-
*
|
21
|
-
|
21
|
+
* Demonstrating empathy and kindness toward other people
|
22
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
23
|
+
* Giving and gracefully accepting constructive feedback
|
24
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
25
|
+
and learning from the experience
|
26
|
+
* Focusing on what is best not just for us as individuals, but for the
|
27
|
+
overall community
|
22
28
|
|
23
|
-
Examples of unacceptable behavior
|
29
|
+
Examples of unacceptable behavior include:
|
24
30
|
|
25
|
-
* The use of sexualized language or imagery and
|
26
|
-
advances
|
27
|
-
* Trolling, insulting
|
31
|
+
* The use of sexualized language or imagery, and sexual attention or
|
32
|
+
advances of any kind
|
33
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
28
34
|
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or
|
30
|
-
address, without explicit permission
|
35
|
+
* Publishing others' private information, such as a physical or email
|
36
|
+
address, without their explicit permission
|
31
37
|
* Other conduct which could reasonably be considered inappropriate in a
|
32
38
|
professional setting
|
33
39
|
|
34
|
-
##
|
40
|
+
## Enforcement Responsibilities
|
35
41
|
|
36
|
-
|
37
|
-
behavior and
|
38
|
-
response to any
|
42
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
43
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
44
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
45
|
+
or harmful.
|
39
46
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
threatening, offensive, or harmful.
|
47
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
48
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
49
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
50
|
+
decisions when appropriate.
|
45
51
|
|
46
52
|
## Scope
|
47
53
|
|
48
|
-
This Code of Conduct applies
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
representative at an online or offline event.
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
55
|
+
an individual is officially representing the community in public spaces.
|
56
|
+
Examples of representing our community include using an official e-mail address,
|
57
|
+
posting via an official social media account, or acting as an appointed
|
58
|
+
representative at an online or offline event.
|
54
59
|
|
55
60
|
## Enforcement
|
56
61
|
|
57
62
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
+
reported to the community leaders responsible for enforcement at
|
64
|
+
[INSERT CONTACT METHOD].
|
65
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
66
|
+
|
67
|
+
All community leaders are obligated to respect the privacy and security of the
|
68
|
+
reporter of any incident.
|
69
|
+
|
70
|
+
## Enforcement Guidelines
|
71
|
+
|
72
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
73
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
74
|
+
|
75
|
+
### 1. Correction
|
76
|
+
|
77
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
78
|
+
unprofessional or unwelcome in the community.
|
79
|
+
|
80
|
+
**Consequence**: A private, written warning from community leaders, providing
|
81
|
+
clarity around the nature of the violation and an explanation of why the
|
82
|
+
behavior was inappropriate. A public apology may be requested.
|
83
|
+
|
84
|
+
### 2. Warning
|
63
85
|
|
64
|
-
|
65
|
-
|
66
|
-
|
86
|
+
**Community Impact**: A violation through a single incident or series
|
87
|
+
of actions.
|
88
|
+
|
89
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
90
|
+
interaction with the people involved, including unsolicited interaction with
|
91
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
92
|
+
includes avoiding interactions in community spaces as well as external channels
|
93
|
+
like social media. Violating these terms may lead to a temporary or
|
94
|
+
permanent ban.
|
95
|
+
|
96
|
+
### 3. Temporary Ban
|
97
|
+
|
98
|
+
**Community Impact**: A serious violation of community standards, including
|
99
|
+
sustained inappropriate behavior.
|
100
|
+
|
101
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
102
|
+
communication with the community for a specified period of time. No public or
|
103
|
+
private interaction with the people involved, including unsolicited interaction
|
104
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
105
|
+
Violating these terms may lead to a permanent ban.
|
106
|
+
|
107
|
+
### 4. Permanent Ban
|
108
|
+
|
109
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
110
|
+
standards, including sustained inappropriate behavior, harassment of an
|
111
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
112
|
+
|
113
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
114
|
+
the community.
|
67
115
|
|
68
116
|
## Attribution
|
69
117
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
71
|
-
available at
|
118
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
119
|
+
version 2.0, available at
|
120
|
+
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
|
121
|
+
|
122
|
+
Community Impact Guidelines were inspired by
|
123
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
124
|
+
|
125
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
126
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
|
127
|
+
at [https://www.contributor-covenant.org/translations][translations].
|
72
128
|
|
73
|
-
[homepage]:
|
74
|
-
[
|
129
|
+
[homepage]: https://www.contributor-covenant.org
|
130
|
+
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
|
131
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
132
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
133
|
+
[translations]: https://www.contributor-covenant.org/translations
|
data/Gemfile
CHANGED
@@ -1,30 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
5
|
+
gemspec
|
6
|
+
|
3
7
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
8
|
|
5
|
-
gem 'faraday', '
|
9
|
+
gem 'faraday', ['>= 0.8', '< 2.0'], :platforms => [:jruby_18, :ruby_18]
|
6
10
|
gem 'jwt', '< 1.5.2', :platforms => [:jruby_18, :ruby_18]
|
7
11
|
gem 'rake', '< 11.0'
|
8
|
-
gem 'rdoc', '~> 4.2.2'
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
ruby_version = Gem::Version.new(RUBY_VERSION)
|
14
|
+
|
15
|
+
### deps for documentation and rdoc.info
|
16
|
+
group :documentation do
|
17
|
+
gem 'github-markup', :platform => :mri
|
18
|
+
gem 'rdoc'
|
19
|
+
gem 'redcarpet', :platform => :mri
|
20
|
+
gem 'yard', :require => false
|
21
|
+
end
|
22
|
+
|
23
|
+
group :development, :test do
|
24
|
+
if ruby_version >= Gem::Version.new('2.4')
|
25
|
+
# No need to run byebug / pry on earlier versions
|
26
|
+
gem 'byebug', :platform => :mri
|
27
|
+
gem 'pry', :platform => :mri
|
28
|
+
gem 'pry-byebug', :platform => :mri
|
18
29
|
end
|
19
|
-
gem 'pry', '~> 0.11' if ruby_version >= Gem::Version.new('2.0')
|
20
|
-
gem 'rspec-pending_for'
|
21
30
|
|
31
|
+
if ruby_version >= Gem::Version.new('2.7')
|
32
|
+
# No need to run rubocop or simplecov on earlier versions
|
33
|
+
gem 'rubocop', '~> 1.9', :platform => :mri
|
34
|
+
gem 'rubocop-md', :platform => :mri
|
35
|
+
gem 'rubocop-packaging', :platform => :mri
|
36
|
+
gem 'rubocop-performance', :platform => :mri
|
37
|
+
gem 'rubocop-rake', :platform => :mri
|
38
|
+
gem 'rubocop-rspec', :platform => :mri
|
39
|
+
|
40
|
+
gem 'coveralls'
|
41
|
+
gem 'simplecov', :platform => :mri
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
group :test do
|
22
46
|
gem 'addressable', '~> 2.3.8'
|
23
47
|
gem 'backports'
|
24
|
-
gem 'coveralls'
|
25
48
|
gem 'rack', '~> 1.2', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21]
|
26
49
|
gem 'rspec', '>= 3'
|
27
|
-
gem 'simplecov', '>= 0.9'
|
28
50
|
|
29
51
|
platforms :jruby_18, :ruby_18 do
|
30
52
|
gem 'mime-types', '~> 1.25'
|
@@ -37,5 +59,3 @@ group :test do
|
|
37
59
|
gem 'tins', '< 1.7'
|
38
60
|
end
|
39
61
|
end
|
40
|
-
|
41
|
-
gemspec
|
data/README.md
CHANGED
@@ -1,10 +1,29 @@
|
|
1
1
|
# OAuth2
|
2
2
|
|
3
|
+
If you need the readme for a released version of the gem please find it below:
|
4
|
+
|
5
|
+
| Version | Release Date | Readme |
|
6
|
+
|----------|--------------|----------------------------------------------------------|
|
7
|
+
| 1.4.6 | Mar 18, 2021 | https://github.com/oauth-xx/oauth2/blob/v1.4.6/README.md |
|
8
|
+
| 1.4.5 | Mar 18, 2021 | https://github.com/oauth-xx/oauth2/blob/v1.4.5/README.md |
|
9
|
+
| 1.4.4 | Feb 12, 2020 | https://github.com/oauth-xx/oauth2/blob/v1.4.4/README.md |
|
10
|
+
| 1.4.3 | Jan 29, 2020 | https://github.com/oauth-xx/oauth2/blob/v1.4.3/README.md |
|
11
|
+
| 1.4.2 | Oct 1, 2019 | https://github.com/oauth-xx/oauth2/blob/v1.4.2/README.md |
|
12
|
+
| 1.4.1 | Oct 13, 2018 | https://github.com/oauth-xx/oauth2/blob/v1.4.1/README.md |
|
13
|
+
| 1.4.0 | Jun 9, 2017 | https://github.com/oauth-xx/oauth2/blob/v1.4.0/README.md |
|
14
|
+
| 1.3.1 | Mar 3, 2017 | https://github.com/oauth-xx/oauth2/blob/v1.3.1/README.md |
|
15
|
+
| 1.3.0 | Dec 27, 2016 | https://github.com/oauth-xx/oauth2/blob/v1.3.0/README.md |
|
16
|
+
| 1.2.0 | Jun 30, 2016 | https://github.com/oauth-xx/oauth2/blob/v1.2.0/README.md |
|
17
|
+
| 1.1.0 | Jan 30, 2016 | https://github.com/oauth-xx/oauth2/blob/v1.1.0/README.md |
|
18
|
+
| 1.0.0 | May 23, 2014 | https://github.com/oauth-xx/oauth2/blob/v1.0.0/README.md |
|
19
|
+
| < 1.0.0 | Find here | https://github.com/oauth-xx/oauth2/tags |
|
20
|
+
|
3
21
|
[][gem]
|
4
22
|
[][gem]
|
5
23
|
[][gem]
|
6
|
-
[][travis]
|
25
|
+
[][github-actions]
|
26
|
+
[][codeclimate-coverage]
|
8
27
|
[][codeclimate-maintainability]
|
9
28
|
[][depfu]
|
10
29
|
[][code-triage]
|
@@ -14,12 +33,15 @@
|
|
14
33
|
|
15
34
|
[gem]: https://rubygems.org/gems/oauth2
|
16
35
|
[travis]: http://travis-ci.org/oauth-xx/oauth2
|
36
|
+
[github-actions]: https://actions-badge.atrox.dev/oauth-xx/oauth2/goto
|
17
37
|
[coveralls]: https://coveralls.io/r/oauth-xx/oauth2
|
18
38
|
[codeclimate-maintainability]: https://codeclimate.com/github/oauth-xx/oauth2/maintainability
|
39
|
+
[codeclimate-coverage]: https://codeclimate.com/github/oauth-xx/oauth2/test_coverage
|
19
40
|
[depfu]: https://depfu.com/github/oauth-xx/oauth2
|
20
41
|
[source-license]: https://opensource.org/licenses/MIT
|
21
42
|
[inch-ci]: http://inch-ci.org/github/oauth-xx/oauth2
|
22
43
|
[code-triage]: https://www.codetriage.com/oauth-xx/oauth2
|
44
|
+
[fossa1]: https://app.fossa.io/projects/git%2Bgithub.com%2Foauth-xx%2Foauth2?ref=badge_shield
|
23
45
|
|
24
46
|
A Ruby wrapper for the [OAuth 2.0 specification][oauth2-spec].
|
25
47
|
|
@@ -49,7 +71,7 @@ Or install it yourself as:
|
|
49
71
|
|
50
72
|
[code]: https://github.com/oauth-xx/oauth2
|
51
73
|
[issues]: https://github.com/oauth-xx/oauth2/issues
|
52
|
-
[wiki]: https://github.com/oauth-xx/oauth2
|
74
|
+
[wiki]: https://wiki.github.com/oauth-xx/oauth2
|
53
75
|
|
54
76
|
## Usage Examples
|
55
77
|
|
@@ -61,11 +83,12 @@ client.auth_code.authorize_url(:redirect_uri => 'http://localhost:8080/oauth2/ca
|
|
61
83
|
# => "https://example.org/oauth/authorization?response_type=code&client_id=client_id&redirect_uri=http://localhost:8080/oauth2/callback"
|
62
84
|
|
63
85
|
token = client.auth_code.get_token('authorization_code_value', :redirect_uri => 'http://localhost:8080/oauth2/callback', :headers => {'Authorization' => 'Basic some_password'})
|
64
|
-
response = token.get('/api/resource', :params => {
|
86
|
+
response = token.get('/api/resource', :params => {'query_foo' => 'bar'})
|
65
87
|
response.class.name
|
66
88
|
# => OAuth2::Response
|
67
89
|
```
|
68
90
|
## OAuth2::Response
|
91
|
+
|
69
92
|
The AccessToken methods #get, #post, #put and #delete and the generic #request
|
70
93
|
will return an instance of the #OAuth2::Response class.
|
71
94
|
|
@@ -78,12 +101,14 @@ The original response body, headers, and status can be accessed via their
|
|
78
101
|
respective methods.
|
79
102
|
|
80
103
|
## OAuth2::AccessToken
|
104
|
+
|
81
105
|
If you have an existing Access Token for a user, you can initialize an instance
|
82
106
|
using various class methods including the standard new, from_hash (if you have
|
83
107
|
a hash of the values), or from_kvform (if you have an
|
84
108
|
application/x-www-form-urlencoded encoded string of the values).
|
85
109
|
|
86
110
|
## OAuth2::Error
|
111
|
+
|
87
112
|
On 400+ status code responses, an OAuth2::Error will be raised. If it is a
|
88
113
|
standard OAuth2 error response, the body will be parsed and #code and #description will contain the values provided from the error and
|
89
114
|
error_description parameters. The #response property of OAuth2::Error will
|
@@ -95,6 +120,7 @@ instance will be returned as usual and on 400+ status code responses, the
|
|
95
120
|
Response instance will contain the OAuth2::Error instance.
|
96
121
|
|
97
122
|
## Authorization Grants
|
123
|
+
|
98
124
|
Currently the Authorization Code, Implicit, Resource Owner Password Credentials, Client Credentials, and Assertion
|
99
125
|
authentication grant types have helper strategy classes that simplify client
|
100
126
|
use. They are available via the #auth_code, #implicit, #password, #client_credentials, and #assertion methods respectively.
|
@@ -129,29 +155,34 @@ requests for tokens for any Authentication grant type.
|
|
129
155
|
This library aims to support and is [tested against][travis] the following Ruby
|
130
156
|
implementations:
|
131
157
|
|
132
|
-
### Rubies with support ending at Oauth2
|
158
|
+
### Rubies with support ending at Oauth2 1.x
|
133
159
|
|
134
160
|
* Ruby 1.9.3
|
161
|
+
- [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
|
162
|
+
|
135
163
|
* Ruby 2.0.0
|
164
|
+
- [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
|
136
165
|
* Ruby 2.1
|
137
|
-
* Ruby 2.2
|
138
|
-
* [JRuby 1.7][jruby-1.7] (targets MRI v1.9)
|
139
|
-
* [JRuby 9.0][jruby-9.0] (targets MRI v2.0)
|
140
166
|
|
141
167
|
---
|
142
168
|
|
143
169
|
### Rubies with continued support past Oauth2 2.x
|
144
170
|
|
145
|
-
* Ruby 2.
|
146
|
-
* Ruby 2.
|
147
|
-
|
148
|
-
*
|
149
|
-
*
|
171
|
+
* Ruby 2.2 - Support ends with version 2.x series
|
172
|
+
* Ruby 2.3 - Support ends with version 3.x series
|
173
|
+
- [JRuby 9.1][jruby-9.1] (targets MRI v2.3)
|
174
|
+
* Ruby 2.4 - Support ends with version 4.x series
|
175
|
+
* Ruby 2.5 - Support ends with version 5.x series
|
176
|
+
- [JRuby 9.2][jruby-9.2] (targets MRI v2.5)
|
177
|
+
- [truffleruby][truffleruby] (targets MRI 2.5)
|
178
|
+
* Ruby 2.6 - Support ends with version 6.x series
|
179
|
+
* Ruby 2.7 - Support ends with version 7.x series
|
150
180
|
|
151
181
|
[jruby-1.7]: https://www.jruby.org/2017/05/11/jruby-1-7-27.html
|
152
182
|
[jruby-9.0]: https://www.jruby.org/2016/01/26/jruby-9-0-5-0.html
|
153
183
|
[jruby-9.1]: https://www.jruby.org/2017/05/16/jruby-9-1-9-0.html
|
154
184
|
[jruby-9.2]: https://www.jruby.org/2018/05/24/jruby-9-2-0-0.html
|
185
|
+
[truffleruby]: https://github.com/oracle/truffleruby
|
155
186
|
|
156
187
|
If something doesn't work on one of these interpreters, it's a bug.
|
157
188
|
|
@@ -203,7 +234,7 @@ spec.add_dependency 'oauth2', '~> 1.4'
|
|
203
234
|
|
204
235
|
## Development
|
205
236
|
|
206
|
-
After checking out the repo, run `
|
237
|
+
After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests.
|
207
238
|
|
208
239
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
209
240
|
|
data/Rakefile
CHANGED
data/gemfiles/jruby_1.7.gemfile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'faraday', '0.
|
3
|
+
gem 'faraday', '~> 0.15.4'
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
gem 'json', '< 2.0'
|
6
|
+
gem 'rack', '~> 1.2'
|
7
|
+
gem 'rake', ['>= 10.0', '< 12']
|
8
|
+
gem 'term-ansicolor', '< 1.4.0'
|
9
|
+
gem 'tins', '< 1.7'
|
10
10
|
|
11
11
|
gemspec :path => '../'
|
data/gemfiles/jruby_9.0.gemfile
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'faraday', '0.
|
3
|
+
gem 'faraday', '~> 0.15.4'
|
4
4
|
|
5
|
-
|
6
|
-
gem 'rake'
|
7
|
-
gem 'rspec'
|
8
|
-
gem 'rspec-pending_for'
|
9
|
-
gem 'rubocop', '~> 0.53.0'
|
10
|
-
gem 'rubocop-rspec', '~> 1.24.0'
|
11
|
-
end
|
5
|
+
gem 'rake', ['>= 10.0', '< 12']
|
12
6
|
|
13
7
|
gemspec :path => '../'
|
data/gemfiles/jruby_9.1.gemfile
CHANGED
@@ -1,17 +1,3 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'faraday', '0.9.2'
|
4
|
-
|
5
|
-
group :development do
|
6
|
-
gem 'pry'
|
7
|
-
end
|
8
|
-
|
9
|
-
group :test do
|
10
|
-
gem 'rake'
|
11
|
-
gem 'rspec'
|
12
|
-
gem 'rspec-pending_for'
|
13
|
-
gem 'rubocop', '~> 0.53.0'
|
14
|
-
gem 'rubocop-rspec', '~> 1.24.0'
|
15
|
-
end
|
16
|
-
|
17
3
|
gemspec :path => '../'
|