omniauth-ebay-oauth 0.1.1 → 0.2.0

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
- SHA1:
3
- metadata.gz: fd4bb7ec09bb4c7eeb9871a39199b250ab98baec
4
- data.tar.gz: ddbddbd7ca71e8c70f7a86e30c3ebaa190d57381
2
+ SHA256:
3
+ metadata.gz: 76629a38f44a3dca39c9b623f58fec1e984c3d92cf395cbfaa06f6f4a145789c
4
+ data.tar.gz: f013e52aa87b50efb83d4db7c4c5c896f230809f1482bf035fd32f0acc7a5beb
5
5
  SHA512:
6
- metadata.gz: e5a1c86bc38a7e483ca6548b3ee65a2c784e0fe36147a5a2f0a64677e81bfe1e9ffe3ddf902184fb39cb90d40b2bd7b45c6c75492bc2aff0e62d123209bb4149
7
- data.tar.gz: c7dd0de77707d2ad3f2c33879f3a2eeac8f29296a97bba6759f7e57ed0b30f00555dae441238ed6557765e89fdc9f0f4e85dac4365b62a51b49bd9e6482e15d8
6
+ metadata.gz: d2f3ca9e26bd5533b3f0abcb59a34b3a1ce7fdd2271c8cb911fd8fd491da19519d354dba3152cdc0fd9c752bba2fe592a6c6458cf21f8a81c153d9f385dcf534
7
+ data.tar.gz: af48978d15b1750b595da5c65d67e448ec1b96631efaab0711d3780445452c15f97c53bf2053dd66cc20657fe2ae458d8d6752b0bd28cbcba8021550c5039146
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.5
1
+ 2.4.3
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.5
5
- - 2.4.2
6
- before_install: gem install bundler -v 1.15.4
4
+ - 2.3.6
5
+ - 2.4.3
6
+ - 2.5.0
7
+ before_install: gem install bundler -v 1.16.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.2.0] - 2018-03-16
8
+
9
+ ### Changed
10
+
11
+ - Renamed strategy from `ebay` to `ebay_oauth`. @Envek
12
+
13
+ This allow to use this strategy simultaneously with old strategies (like [omniauth-ebay](https://github.com/TheGiftsProject/omniauth-ebay) and [ebay_request](https://github.com/gzigzigzeo/ebay_request#omniauth-strategy))
14
+
15
+ As eBay allows to have only one OAuth RUName per application keyset while allowing to have many Auth'n'auth RUNames, it may be desirable to use Auth'n'auth for auxilary signins, where obtaining of OAuth tokens is not required.
16
+
17
+ ## [0.1.1] - 2018-01-09
18
+
19
+ ### Fixed
20
+
21
+ - Add missing require to fix gem load errors when this gem is being required from another gem. @Envek
22
+
23
+
24
+ ## [0.1.0] - 2017-11-27
25
+
26
+ - Initial release: fully working strategy. @ignat-z
27
+
28
+
29
+ [0.2.0]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/v0.1.1...v0.2.0
30
+ [0.1.1]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/v0.1.0...v0.1.1
31
+ [0.1.0]: https://github.com/evilmartians/omniauth-ebay-oauth/compare/5213dada5fec8df5da551daf763b6acc84ec7330...v0.1.0
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ [![Gem Version](https://badge.fury.io/rb/omniauth-ebay-oauth.svg)](https://badge.fury.io/rb/omniauth-ebay-oauth)
2
+ [![Build Status](https://travis-ci.org/evilmartians/omniauth-ebay-oauth.svg?branch=master)](https://travis-ci.org/evilmartians/omniauth-ebay-oauth)
3
+ [![Cult of Martians](http://cultofmartians.com/assets/badges/badge.svg)](http://cultofmartians.com/tasks/ebay-oauth-signin.html)
4
+
1
5
  # omniauth-ebay-oauth
2
6
 
3
7
  OmniAuth Strategy for eBay Apps (for using with eBay REST APIs)
@@ -48,7 +52,7 @@ bundle install
48
52
 
49
53
  ```ruby
50
54
  use OmniAuth::Builder do
51
- provider :ebay, CLIENT_ID, CLIENT_SECRET, callback_url: RU_NAME,
55
+ provider :ebay_oauth, CLIENT_ID, CLIENT_SECRET, callback_url: RU_NAME,
52
56
  sandbox: false, scope: 'https://api.ebay.com/oauth/api_scope' # redefining additional default options
53
57
  end
54
58
  ```
@@ -74,8 +78,8 @@ require 'omniauth-ebay-oauth'
74
78
 
75
79
  use Rack::Session::Cookie
76
80
  use OmniAuth::Builder do
77
- provider :ebay, ENV['EBAY_CLIENT_ID'], ENV['EBAY_CLIENT_SECRET'],
78
- callback_url: ENV['EBAY_RU_NAME']
81
+ provider :ebay_oauth, ENV['EBAY_CLIENT_ID'], ENV['EBAY_CLIENT_SECRET'],
82
+ callback_url: ENV['EBAY_RU_NAME'], name: 'ebay'
79
83
  end
80
84
 
81
85
  get '/' do
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module EbayOauth
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -5,7 +5,7 @@ require 'omniauth-oauth2'
5
5
  module OmniAuth
6
6
  module Strategies
7
7
  # OmniAuth strategy for eBay
8
- class Ebay < OmniAuth::Strategies::OAuth2
8
+ class EbayOauth < OmniAuth::Strategies::OAuth2
9
9
  option :production_client_options,
10
10
  user_info_endpoint: 'https://api.ebay.com/ws/api.dll',
11
11
  token_url: 'https://api.ebay.com/identity/v1/oauth2/token',
@@ -7,4 +7,4 @@ require 'omniauth/ebay-oauth/version'
7
7
  require 'omniauth/ebay-oauth/errors'
8
8
  require 'omniauth/ebay-oauth/user_info'
9
9
  require 'omniauth/ebay-oauth/user_info_request'
10
- require 'omniauth/strategies/ebay'
10
+ require 'omniauth/strategies/ebay_oauth'
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- RSpec.describe OmniAuth::Strategies::Ebay do
5
+ RSpec.describe OmniAuth::Strategies::EbayOauth do
6
6
  subject { described_class.new(nil, options) }
7
7
 
8
8
  describe '#callback_url' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-ebay-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignat Zakrevsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2018-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -134,6 +134,7 @@ files:
134
134
  - ".rubocop.yml"
135
135
  - ".ruby-version"
136
136
  - ".travis.yml"
137
+ - CHANGELOG.md
137
138
  - Gemfile
138
139
  - LICENSE
139
140
  - README.md
@@ -144,14 +145,14 @@ files:
144
145
  - lib/omniauth/ebay-oauth/user_info.rb
145
146
  - lib/omniauth/ebay-oauth/user_info_request.rb
146
147
  - lib/omniauth/ebay-oauth/version.rb
147
- - lib/omniauth/strategies/ebay.rb
148
+ - lib/omniauth/strategies/ebay_oauth.rb
148
149
  - omniauth-ebay-oauth.gemspec
149
150
  - spec/fixtures/request_headers.yml
150
151
  - spec/fixtures/result_failure.xml
151
152
  - spec/fixtures/result_success.xml
152
153
  - spec/omniauth/ebay-oauth/user_info_request_spec.rb
153
154
  - spec/omniauth/ebay-oauth/user_info_spec.rb
154
- - spec/omniauth/strategies/ebay_spec.rb
155
+ - spec/omniauth/strategies/ebay_oauth_spec.rb
155
156
  - spec/spec_helper.rb
156
157
  homepage: https://github.com/evilmartians/omniauth-ebay-oauth
157
158
  licenses:
@@ -173,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
174
  version: '0'
174
175
  requirements: []
175
176
  rubyforge_project:
176
- rubygems_version: 2.5.2.1
177
+ rubygems_version: 2.7.6
177
178
  signing_key:
178
179
  specification_version: 4
179
180
  summary: OmniAuth strategy for new eBay OAuth API