omniauth-paypal-oauth2 1.4.14 → 1.4.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12c2999b4af5ff0ac88422ec09126eccf6c8815f7524cb891f10ea9915d11c9e
4
- data.tar.gz: 2da82c21ffa65e20c8b18edb9decf7c69728f1ff9c83c8aeed416bf97bb74f8b
3
+ metadata.gz: 80958fffe707e75dfb5e29786365dcee33d9dd1f457c45ae2db036d2ffef6442
4
+ data.tar.gz: a701b23656f6e52ff593f0dfff415c3519a63a69ae88a338c648521ec48f460f
5
5
  SHA512:
6
- metadata.gz: 99700535c14d5efda09a5d1843464b145115d5392d10ec2d4df65ca473cf0006cb6421eda57e1eee2db3e8fd735176be396360eb73ae4f4dceda3bee48fd58ef
7
- data.tar.gz: 9438dc31f7abbb189a9586fd5251813dd399b1ff703ec8959da34a60fc9b6eea7f390f32d212fd6132820d463abc889b9a0086ba438a2286102d082b9e1da411
6
+ metadata.gz: 2474171bd53235015a43218caa9bb89cf0dbe24baf57cf6b0ee8e595a0630494fd455206e3ffddb11b3fb5682e73ef78dd4ae0e4873aedc07ad9ca0e7d7e6cf7
7
+ data.tar.gz: 2b4c4d05c78d31a5e4aeecade2dc83d331d85d4a31fb5224d29517b459e926230395190d6ad0f8e57f68c5561d1bfcfef53f12cdf777519ac1143de937ceb55b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OmniAuth PayPal OAuth2 Strategy
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/omniauth-paypal-oauth2.svg)](https://badge.fury.io/rb/omniauth-paypal-oauth2) <img src="https://travis-ci.org/jonhue/omniauth-paypal-oauth2.svg?branch=master" />
3
+ [![Gem Version](https://badge.fury.io/rb/omniauth-paypal-oauth2.svg)](https://badge.fury.io/rb/omniauth-paypal-oauth2) ![Travis](https://travis-ci.org/jonhue/omniauth-paypal-oauth2.svg?branch=master)
4
4
 
5
5
  Strategy to authenticate with PayPal via OmniAuth.
6
6
 
@@ -17,16 +17,15 @@ For more details, read the PayPal docs: https://developer.paypal.com/docs/integr
17
17
 
18
18
  * [Installation](#installation)
19
19
  * [Usage](#usage)
20
- * [PayPal API Setup](#paypal-api-setup)
21
- * [Rails middleware](#rails-middleware)
22
- * [Devise](#Devise)
23
- * [Configuration](#configuration)
24
- * [Auth hash](#auth-hash)
20
+ * [PayPal API Setup](#paypal-api-setup)
21
+ * [Rails middleware](#rails-middleware)
22
+ * [Devise](#Devise)
23
+ * [Configuration](#configuration)
24
+ * [Auth hash](#auth-hash)
25
+ * [Testing](#testing)
25
26
  * [To Do](#to-do)
26
27
  * [Contributing](#contributing)
27
- * [Contributors](#contributors)
28
- * [Semantic versioning](#semantic-versioning)
29
- * [License](#license)
28
+ * [Semantic versioning](#semantic-versioning)
30
29
 
31
30
  ---
32
31
 
@@ -35,7 +34,7 @@ For more details, read the PayPal docs: https://developer.paypal.com/docs/integr
35
34
  Add to your `Gemfile`:
36
35
 
37
36
  ```ruby
38
- gem "omniauth-paypal-oauth2"
37
+ gem 'omniauth-paypal-oauth2'
39
38
  ```
40
39
 
41
40
  And then execute:
@@ -46,6 +45,12 @@ Or install it yourself as:
46
45
 
47
46
  $ gem install omniauth-paypal-oauth2
48
47
 
48
+ If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
49
+
50
+ ```ruby
51
+ gem 'omniauth-paypal-oauth2', github: 'jonhue/omniauth-paypal-oauth2'
52
+ ```
53
+
49
54
  ---
50
55
 
51
56
  ## Usage
@@ -66,7 +71,7 @@ Here's an example for adding the middleware to a Rails app in `config/initialize
66
71
 
67
72
  ```ruby
68
73
  Rails.application.config.middleware.use OmniAuth::Builder do
69
- provider :paypal_oauth2, ENV["PAYPAL_CLIENT_ID"], ENV["PAYPAL_CLIENT_SECRET"]
74
+ provider :paypal_oauth2, ENV['PAYPAL_CLIENT_ID'], ENV['PAYPAL_CLIENT_SECRET']
70
75
  end
71
76
  ```
72
77
 
@@ -79,17 +84,17 @@ You can now access the OmniAuth PayPal OAuth2 URL: `/auth/paypal_oauth2`
79
84
  First define your application id and secret in `config/initializers/devise.rb`. Do not use the snippet mentioned in the [Usage](https://github.com/jonhue/omniauth-paypal-oauth2#usage) section.
80
85
 
81
86
  ```ruby
82
- require "omniauth-paypal-oauth2"
83
- config.omniauth :paypal_oauth2, "PAYPAL_CLIENT_ID", "PAYPAL_CLIENT_SECRET"
87
+ require 'omniauth-paypal-oauth2'
88
+ config.omniauth :paypal_oauth2, 'PAYPAL_CLIENT_ID', 'PAYPAL_CLIENT_SECRET'
84
89
  ```
85
90
 
86
91
  Then add the following to 'config/routes.rb' so the callback routes are defined.
87
92
 
88
93
  ```ruby
89
- devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
94
+ devise_for :users, :controllers => { :omniauth_callbacks => 'users/omniauth_callbacks' }
90
95
  ```
91
96
 
92
- Make sure your model is omniauthable. Generally this is "/app/models/user.rb"
97
+ Make sure your model is omniauthable. Generally this is `'/app/models/user.rb'`
93
98
 
94
99
  ```ruby
95
100
  devise :omniauthable, :omniauth_providers => [:paypal_oauth2]
@@ -100,16 +105,16 @@ Then make sure your callbacks controller is setup.
100
105
  ```ruby
101
106
  class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
102
107
  def paypal_oauth2
103
- # You need to implement the method below in your model (e.g. app/models/user.rb)
104
- @user = User.from_omniauth(request.env["omniauth.auth"])
105
-
106
- if @user.persisted?
107
- flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "PayPal"
108
- sign_in_and_redirect @user, :event => :authentication
109
- else
110
- session["devise.paypal_data"] = request.env["omniauth.auth"]
111
- redirect_to new_user_registration_url
112
- end
108
+ # You need to implement the method below in your model (e.g. app/models/user.rb)
109
+ @user = User.from_omniauth(request.env['omniauth.auth'])
110
+
111
+ if @user.persisted?
112
+ flash[:notice] = I18n.t 'devise.omniauth_callbacks.success', :kind => 'PayPal'
113
+ sign_in_and_redirect @user, :event => :authentication
114
+ else
115
+ session['devise.paypal_data'] = request.env['omniauth.auth']
116
+ redirect_to new_user_registration_url
117
+ end
113
118
  end
114
119
  end
115
120
  ```
@@ -118,27 +123,27 @@ and bind to or create the user
118
123
 
119
124
  ```ruby
120
125
  def self.from_omniauth(access_token)
121
- data = access_token.info
122
- user = User.where(:email => data["email"]).first
123
-
124
- # Uncomment the section below if you want users to be created if they don't exist
125
- # unless user
126
- # user = User.create(name: data["name"],
127
- # email: data["email"],
128
- # password: Devise.friendly_token[0,20]
129
- # )
130
- # end
131
- user
126
+ data = access_token.info
127
+ user = User.where(:email => data['email']).first
128
+
129
+ # Uncomment the section below if you want users to be created if they don't exist
130
+ # unless user
131
+ # user = User.create(name: data['name'],
132
+ # email: data['email'],
133
+ # password: Devise.friendly_token[0,20]
134
+ # )
135
+ # end
136
+ user
132
137
  end
133
138
  ```
134
139
 
135
140
  For your views you can login using:
136
141
 
137
142
  ```erb
138
- <%= link_to "Sign in with PayPal", user_paypal_oauth2_omniauth_authorize_path %>
143
+ <%= link_to 'Sign in with PayPal', user_paypal_oauth2_omniauth_authorize_path %>
139
144
 
140
145
  <%# Devise prior 4.1.0: %>
141
- <%= link_to "Sign in with PayPal", user_omniauth_authorize_path(:paypal_oauth2) %>
146
+ <%= link_to 'Sign in with PayPal', user_omniauth_authorize_path(:paypal_oauth2) %>
142
147
  ```
143
148
 
144
149
  An overview is available at https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
@@ -173,45 +178,45 @@ If you click from your [Applications Dashboard](https://developer.paypal.com/dev
173
178
 
174
179
  ### Auth Hash
175
180
 
176
- Here's an example of an authentication hash available in the callback by accessing `request.env["omniauth.auth"]`:
181
+ Here's an example of an authentication hash available in the callback by accessing `request.env['omniauth.auth']`:
177
182
 
178
183
  ```ruby
179
184
  {
180
- provider: "paypal",
181
- uid: "bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw",
185
+ provider: 'paypal',
186
+ uid: 'bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw',
182
187
  info: {
183
- name: "John Smith",
184
- email: "example@example.com",
185
- first_name: "John",
186
- last_name: "Smith",
187
- given_name: "John",
188
- family_name: "Smith",
189
- location: "Moscow",
190
- phone: "71234567890"
188
+ name: 'John Smith',
189
+ email: 'example@example.com',
190
+ first_name: 'John',
191
+ last_name: 'Smith',
192
+ given_name: 'John',
193
+ family_name: 'Smith',
194
+ location: 'Moscow',
195
+ phone: '71234567890'
191
196
  },
192
197
  credentials: {
193
- token: "token",
194
- refresh_token: "refresh_token",
198
+ token: 'token',
199
+ refresh_token: 'refresh_token',
195
200
  expires_at: 1355082790,
196
201
  expires: true
197
202
  },
198
203
  extra: {
199
- account_creation_date: "2008-04-21",
200
- account_type: "PERSONAL",
201
- user_id: "https://www.paypal.com/webapps/auth/identity/user/bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw",
204
+ account_creation_date: '2008-04-21',
205
+ account_type: 'PERSONAL',
206
+ user_id: 'https://www.paypal.com/webapps/auth/identity/user/bathjJwvdhKjgfgh8Jd745J7dh5Qkgflbnczd65dfnw',
202
207
  address: {
203
- country: "US",
204
- locality: "San Jose",
205
- postal_code: "95131",
206
- region: "CA",
207
- street_address: "1 Main St"
208
+ country: 'US',
209
+ locality: 'San Jose',
210
+ postal_code: '95131',
211
+ region: 'CA',
212
+ street_address: '1 Main St'
208
213
  },
209
- language: "en_US",
210
- locale: "en_US",
214
+ language: 'en_US',
215
+ locale: 'en_US',
211
216
  verified_account: true,
212
- zoneinfo: "America/Los_Angeles",
213
- age_range: "31-35",
214
- birthday: "1982-01-01"
217
+ zoneinfo: 'America/Los_Angeles',
218
+ age_range: '31-35',
219
+ birthday: '1982-01-01'
215
220
  }
216
221
  }
217
222
  ```
@@ -220,50 +225,38 @@ For more details see the PayPal [List Of Attributes](https://developer.paypal.co
220
225
 
221
226
  ---
222
227
 
223
- ## To Do
224
-
225
- [Here](https://github.com/jonhue/omniauth-paypal-oauth2/projects/1) is the full list of current projects.
228
+ ## Testing
226
229
 
227
- To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/omniauth-paypal-oauth2/issues/new).
230
+ 1. Fork this repository
231
+ 2. Clone your forked git locally
232
+ 3. Install dependencies
228
233
 
229
- ---
234
+ `$ bundle install`
230
235
 
231
- ## Contributing
236
+ 4. Run specs
232
237
 
233
- We hope that you will consider contributing to omniauth-paypal-oauth2. Please read this short overview for some information about how to get started:
238
+ `$ bundle exec rspec`
234
239
 
235
- [Learn more about contributing to this repository](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CODE_OF_CONDUCT.md)
240
+ 5. Run RuboCop
236
241
 
237
- ### Contributors
242
+ `$ bundle exec rubocop`
238
243
 
239
- Give the people some :heart: who are working on this project. See them all at:
244
+ ---
240
245
 
241
- https://github.com/jonhue/omniauth-paypal-oauth2/graphs/contributors
246
+ ## To Do
242
247
 
243
- ### Semantic Versioning
248
+ We use [GitHub projects](https://github.com/jonhue/omniauth-paypal-oauth2/projects/1) to coordinate the work on this project.
244
249
 
245
- omniauth-paypal-oauth2 follows Semantic Versioning 2.0 as defined at http://semver.org.
250
+ To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/omniauth-paypal-oauth2/issues/new).
246
251
 
247
- ## License
252
+ ---
248
253
 
249
- MIT License
254
+ ## Contributing
250
255
 
251
- Copyright (c) 2017 Jonas Hübotter
256
+ We hope that you will consider contributing to OmniAuth PayPal OAuth2 Strategy. Please read this short overview for some information about how to get started:
252
257
 
253
- Permission is hereby granted, free of charge, to any person obtaining a copy
254
- of this software and associated documentation files (the "Software"), to deal
255
- in the Software without restriction, including without limitation the rights
256
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
257
- copies of the Software, and to permit persons to whom the Software is
258
- furnished to do so, subject to the following conditions:
258
+ [Learn more about contributing to this repository](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/omniauth-paypal-oauth2/blob/master/CODE_OF_CONDUCT.md)
259
259
 
260
- The above copyright notice and this permission notice shall be included in all
261
- copies or substantial portions of the Software.
260
+ ### Semantic Versioning
262
261
 
263
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
264
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
265
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
266
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
267
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
268
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
269
- SOFTWARE.
262
+ omniauth-paypal-oauth2 follows Semantic Versioning 2.0 as defined at http://semver.org.
@@ -1 +1,3 @@
1
- require File.join('omniauth', 'paypal_oauth2')
1
+ # frozen_string_literal: true
2
+
3
+ require 'omniauth/paypal_oauth2'
@@ -1 +1,3 @@
1
- require File.join('omniauth', 'strategies', 'paypal_oauth2')
1
+ # frozen_string_literal: true
2
+
3
+ require 'omniauth/strategies/paypal_oauth2'
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module OmniAuth
2
- module PaypalOauth2
3
- VERSION = '1.4.14'
4
- end
4
+ module PaypalOauth2
5
+ VERSION = '1.4.15'
6
+ end
5
7
  end
@@ -1,94 +1,100 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'omniauth-oauth2'
2
4
 
3
5
  module OmniAuth
4
- module Strategies
5
- class PaypalOauth2 < OmniAuth::Strategies::OAuth2
6
- DEFAULT_SCOPE = 'email,profile'
7
- DEFAULT_RESPONSE_TYPE = 'code'
8
- SANDBOX_SITE = 'https://api.sandbox.paypal.com'
9
- SANDBOX_AUTHORIZE_URL = 'https://www.sandbox.paypal.com/signin/authorize'
6
+ module Strategies
7
+ class PaypalOauth2 < OmniAuth::Strategies::OAuth2
8
+ DEFAULT_SCOPE = 'email,profile'
9
+ DEFAULT_RESPONSE_TYPE = 'code'
10
+ SANDBOX_SITE = 'https://api.sandbox.paypal.com'
11
+ SANDBOX_AUTHORIZE_URL = 'https://www.sandbox.paypal.com/signin/authorize'
10
12
 
11
- option :name, 'paypal_oauth2'
13
+ option :name, 'paypal_oauth2'
12
14
 
13
- option :client_options, {
14
- site: 'https://api.paypal.com',
15
- authorize_url: 'https://www.paypal.com/signin/authorize',
16
- token_url: '/v1/identity/openidconnect/tokenservice',
17
- setup: true
18
- }
15
+ option :client_options,
16
+ site: 'https://api.paypal.com',
17
+ authorize_url: 'https://www.paypal.com/signin/authorize',
18
+ token_url: '/v1/identity/openidconnect/tokenservice',
19
+ setup: true
19
20
 
20
- option :authorize_options, [:scope, :response_type]
21
- option :provider_ignores_state, true
22
- option :sandbox, false
21
+ option :authorize_options, [:scope, :response_type]
22
+ option :provider_ignores_state, true
23
+ option :sandbox, false
23
24
 
24
- uid { @parsed_uid ||= (%r{\/([^\/]+)\z}.match raw_info['user_id'])[1] } # https://www.paypal.com/webapps/auth/identity/user/baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw => baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw
25
+ # https://www.paypal.com/webapps/auth/identity/user/
26
+ # baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw =>
27
+ # baCNqjGvIxzlbvDCSsfhN3IrQDtQtsVr79AwAjMxekw
28
+ uid { @parsed_uid ||= (%r{\/([^\/]+)\z}.match raw_info['user_id'])[1] }
25
29
 
26
- info do
27
- prune!({
28
- 'name' => raw_info['name'],
29
- 'email' => raw_info['email'],
30
- 'first_name' => raw_info['given_name'],
31
- 'last_name' => raw_info['family_name'],
32
- 'given_name' => raw_info['given_name'],
33
- 'family_name' => raw_info['family_name'],
34
- 'location' => (raw_info['address'] || {})['locality'],
35
- 'phone' => raw_info['phone_number']
36
- })
37
- end
30
+ info do
31
+ prune!(
32
+ 'name' => raw_info['name'],
33
+ 'email' => raw_info['email'],
34
+ 'first_name' => raw_info['given_name'],
35
+ 'last_name' => raw_info['family_name'],
36
+ 'given_name' => raw_info['given_name'],
37
+ 'family_name' => raw_info['family_name'],
38
+ 'location' => (raw_info['address'] || {})['locality'],
39
+ 'phone' => raw_info['phone_number']
40
+ )
41
+ end
38
42
 
39
- extra do
40
- prune!({
41
- 'account_type' => raw_info['account_type'],
42
- 'user_id' => raw_info['user_id'],
43
- 'address' => raw_info['address'],
44
- 'verified_account' => (raw_info['verified_account'] == 'true'),
45
- 'language' => raw_info['language'],
46
- 'zoneinfo' => raw_info['zoneinfo'],
47
- 'locale' => raw_info['locale'],
48
- 'account_creation_date' => raw_info['account_creation_date'],
49
- 'age_range' => raw_info['age_range'],
50
- 'birthday' => raw_info['birthday']
51
- })
52
- end
43
+ extra do
44
+ prune!(
45
+ 'account_type' => raw_info['account_type'],
46
+ 'user_id' => raw_info['user_id'],
47
+ 'address' => raw_info['address'],
48
+ 'verified_account' => (raw_info['verified_account'] == 'true'),
49
+ 'language' => raw_info['language'],
50
+ 'zoneinfo' => raw_info['zoneinfo'],
51
+ 'locale' => raw_info['locale'],
52
+ 'account_creation_date' => raw_info['account_creation_date'],
53
+ 'age_range' => raw_info['age_range'],
54
+ 'birthday' => raw_info['birthday']
55
+ )
56
+ end
53
57
 
54
- def callback_url
55
- full_host + script_name + callback_path
56
- end
58
+ def callback_url
59
+ full_host + script_name + callback_path
60
+ end
57
61
 
58
- def setup_phase
59
- if options.sandbox
60
- options.client_options[:site] = SANDBOX_SITE
61
- options.client_options[:authorize_url] = SANDBOX_AUTHORIZE_URL
62
- end
63
- super
64
- end
62
+ def setup_phase
63
+ if options.sandbox
64
+ options.client_options[:site] = SANDBOX_SITE
65
+ options.client_options[:authorize_url] = SANDBOX_AUTHORIZE_URL
66
+ end
67
+ super
68
+ end
65
69
 
66
- def raw_info
67
- @raw_info ||= load_identity
68
- end
70
+ def raw_info
71
+ @raw_info ||= load_identity
72
+ end
69
73
 
70
- def authorize_params
71
- super.tap do |params|
72
- params[:scope] ||= DEFAULT_SCOPE
73
- params[:response_type] ||= DEFAULT_RESPONSE_TYPE
74
- end
75
- end
74
+ def authorize_params
75
+ super.tap do |params|
76
+ params[:scope] ||= DEFAULT_SCOPE
77
+ params[:response_type] ||= DEFAULT_RESPONSE_TYPE
78
+ end
79
+ end
76
80
 
77
- private
81
+ private
78
82
 
79
- def load_identity
80
- access_token.options[:mode] = :query
81
- access_token.options[:param_name] = :access_token
82
- access_token.options[:grant_type] = :authorization_code
83
- access_token.get('/v1/identity/openidconnect/userinfo', { params: { schema: 'openid' } }).parsed || {}
84
- end
83
+ def load_identity
84
+ access_token.options[:mode] = :query
85
+ access_token.options[:param_name] = :access_token
86
+ access_token.options[:grant_type] = :authorization_code
87
+ access_token.get(
88
+ '/v1/identity/openidconnect/userinfo', params: { schema: 'openid' }
89
+ ).parsed || {}
90
+ end
85
91
 
86
- def prune!(hash)
87
- hash.delete_if do |_, value|
88
- prune!(value) if value.is_a?(Hash)
89
- value.nil? || (value.respond_to?(:empty?) && value.empty?)
90
- end
91
- end
92
+ def prune!(hash)
93
+ hash.delete_if do |_, value|
94
+ prune!(value) if value.is_a?(Hash)
95
+ value.nil? || (value.respond_to?(:empty?) && value.empty?)
92
96
  end
97
+ end
93
98
  end
99
+ end
94
100
  end
metadata CHANGED
@@ -1,93 +1,91 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-paypal-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.14
4
+ version: 1.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-06 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: omniauth-oauth2
14
+ name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '2.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: json
28
+ name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '12.3'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '12.3'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.7'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.7'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: rubocop-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '0.52'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '0.52'
82
+ version: '0'
83
83
  description: A PayPal OAuth2 strategy for OmniAuth
84
- email:
85
- - jonas.huebotter@gmail.com
84
+ email: me@jonhue.me
86
85
  executables: []
87
86
  extensions: []
88
87
  extra_rdoc_files: []
89
88
  files:
90
- - CHANGELOG.md
91
89
  - LICENSE
92
90
  - README.md
93
91
  - lib/omniauth-paypal-oauth2.rb
@@ -106,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
104
  requirements:
107
105
  - - ">="
108
106
  - !ruby/object:Gem::Version
109
- version: '2.0'
107
+ version: '2.3'
110
108
  required_rubygems_version: !ruby/object:Gem::Requirement
111
109
  requirements:
112
110
  - - ">="
@@ -114,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
112
  version: '0'
115
113
  requirements: []
116
114
  rubyforge_project:
117
- rubygems_version: 2.7.4
115
+ rubygems_version: 2.7.6
118
116
  signing_key:
119
117
  specification_version: 4
120
118
  summary: A PayPal OAuth2 strategy for OmniAuth
data/CHANGELOG.md DELETED
@@ -1,10 +0,0 @@
1
- # Changelog
2
-
3
- ### master
4
-
5
- * nothing yet
6
-
7
- ### 1.4.14 - 2018-01-06
8
-
9
- * enhancements
10
- * cleaning up gem files