omniauth-square-oauth2 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3547cd31d5d00b67487cf0ffbbd481494f3b6fa8574f075d0456738c437b1c2c
4
- data.tar.gz: 1ee437d58498c8e704c7706fc4140623cafb1a9381cfb22cb0dc642de8c366e1
3
+ metadata.gz: b0e081d6663cb435b61e57f93417049a37914dc5936e07aaec7d9f95333361d2
4
+ data.tar.gz: 9e76d9ed588620f437499b29c2918c26a048a62e206db0db8cc5359b7d584b11
5
5
  SHA512:
6
- metadata.gz: a663c24f39f31c52457f357e314f769a9693d5a6557f6fac9cc0f1258ccbf49ee53b46fe5b4f005aeb3548dfb0d3a496373a8fbade8cffa45d87f23181e40157
7
- data.tar.gz: f79fbf06666ea57691829a7a79dd38e9f286e37a3c557bffedc7ca7d139164e62f52912fc2b9e97408856021740916ab9278b23afa926b6a2024b1f4a1857ab5
6
+ metadata.gz: 7274361873c49e29f358e9e48ef65fb6b5d2e6cd496e05ec539514da68721acf1b9a0497df63b4181d2dd91dc252f8c187f44e6a0cee977e9884f35cac63f1ae
7
+ data.tar.gz: a90cc7a83c2c6a2d82502aa78a7caa3937e7c84ff7729e786e9e8f3787e1ae7a01ed3d5dcdde5c076054d2d51e39a8ef92bbb5dc8f7a5a2a99a78cdee3392b8c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-square-oauth2 (0.0.1)
4
+ omniauth-square-oauth2 (0.0.2)
5
5
  omniauth-oauth2 (>= 1.1.1, < 1.3.0)
6
6
 
7
7
  GEM
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2013 by Daniel Archer, Jen Aprahamian, Adam Bouck, Ray Zane
3
+ Copyright (c) 2020 by Nick Robinson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
data/README.md CHANGED
@@ -16,11 +16,11 @@ You can pull it in directly from github (if you really want to) e.g.:
16
16
 
17
17
  Once these are in, you need to add the following to your `config/initializers/devise.rb` (NOTE: A full enumeration of Square Permissions can be found [here](https://developer.squareup.com/docs/oauth-api/square-permissions).):
18
18
 
19
- config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE"}
19
+ config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE,MERCHANT_PROFILE_READ"}
20
20
 
21
21
  Sandbox Example:
22
22
 
23
- config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE", :client_options => {:connect_site => 'https://connect.squareupsandbox.com', :site => 'https://squareupsandbox.com'}}
23
+ config.omniauth :square, "your_app_id", "your_app_oauth_secret", {:scope => "ITEMS_READ,ITEMS_WRITE,MERCHANT_PROFILE_READ", :client_options => {:connect_site => 'https://connect.squareupsandbox.com', :site => 'https://squareupsandbox.com'}}
24
24
 
25
25
  You will obviously have to put in your key and secret, which you get when you register your app with Square (they call them Application Key and Secret Key).
26
26
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Square
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
7
7
  end
@@ -6,7 +6,7 @@ require 'rspec'
6
6
  require 'rack/test'
7
7
  require 'webmock/rspec'
8
8
  require 'omniauth'
9
- require 'omniauth-square'
9
+ require 'omniauth-square-oauth2'
10
10
 
11
11
  RSpec.configure do |config|
12
12
  config.include WebMock::API
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-square-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-10 00:00:00.000000000 Z
11
+ date: 2020-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2