omniauth-shutterstock-contributor 0.1.0 → 0.1.1
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 295a1be19a0db428bd7280f8cca94ab4d43183b2
|
|
4
|
+
data.tar.gz: 16ef7ad7c1f63fdb7d293883e8663fe6f42716ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66534f57a3c169b3c5cfb83c8fc23677e5c8dacc5b5ed6541c594d2f9da2f8dd83e8fac3ee7073f5287ad3db307a6598e04dd85bc97f10a128f08b23874e69be
|
|
7
|
+
data.tar.gz: cf109502bfcec6ae2c74dff83454fc513b89bc754c261f86334895b8143d93ddc72cb0221e99d606d0ee0ac391cad35401a8e07efdca3c03bd93ba26264e3bdc
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Omniauth::Shutterstock::Contributor
|
|
2
2
|
|
|
3
|
+
[](http://badge.fury.io/rb/omniauth-shutterstock-contributor)
|
|
4
|
+
|
|
3
5
|
Shutterstock Contributor OAuth2 Strategy for OmniAuth.
|
|
4
6
|
|
|
5
7
|
Supports the OAuth 2.0 server-side and client-side flows. Read the Shutterstock API docs for more details: https://developers.shutterstock.com/guides/authentication
|
|
@@ -22,7 +24,7 @@ Or install it yourself as:
|
|
|
22
24
|
|
|
23
25
|
## Usage
|
|
24
26
|
|
|
25
|
-
Register your application with Shutterstock to receive Client ID and Client Secret: https://developers.shutterstock.com/
|
|
27
|
+
Register your application with Shutterstock to receive Client ID and Client Secret: https://developers.shutterstock.com/applications
|
|
26
28
|
|
|
27
29
|
This is an example that you might put into a Rails initializer at `config/initializers/omniauth.rb`:
|
|
28
30
|
|
|
@@ -16,7 +16,7 @@ module OmniAuth
|
|
|
16
16
|
|
|
17
17
|
option :scope, 'user.view user.email user.edit collections.view collections.edit licenses.view licenses.create earnings.view purchases.view'
|
|
18
18
|
|
|
19
|
-
option :fields, ['id', 'username', 'full_name', 'email', '
|
|
19
|
+
option :fields, ['id', 'username', 'full_name', 'email', 'contributor_id']
|
|
20
20
|
|
|
21
21
|
# These are called after authentication has succeeded. If
|
|
22
22
|
# possible, you should try to set the UID without making
|
|
@@ -30,7 +30,7 @@ module OmniAuth
|
|
|
30
30
|
name: raw_info[:full_name],
|
|
31
31
|
email: raw_info[:email],
|
|
32
32
|
nickname: raw_info[:username],
|
|
33
|
-
|
|
33
|
+
contributor_id: raw_info[:contributor_id]
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
|
|
@@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.authors = ['Sergey Suprunenko']
|
|
12
12
|
spec.email = ['suprunenko.s@gmail.com']
|
|
13
13
|
|
|
14
|
-
spec.summary = %q{
|
|
15
|
-
spec.description = %q{
|
|
14
|
+
spec.summary = %q{Shutterstock-Contributor OAuth2 strategy for OmniAuth.}
|
|
15
|
+
spec.description = %q{Shutterstock-Contributor OAuth2 strategy for OmniAuth.}
|
|
16
16
|
spec.homepage = 'https://github.com/ssuprunenko/omniauth-shutterstock-contributor'
|
|
17
17
|
spec.license = 'MIT'
|
|
18
18
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-shutterstock-contributor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Suprunenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth
|
|
@@ -94,7 +94,7 @@ dependencies:
|
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '3.2'
|
|
97
|
-
description:
|
|
97
|
+
description: Shutterstock-Contributor OAuth2 strategy for OmniAuth.
|
|
98
98
|
email:
|
|
99
99
|
- suprunenko.s@gmail.com
|
|
100
100
|
executables: []
|
|
@@ -136,5 +136,5 @@ rubyforge_project:
|
|
|
136
136
|
rubygems_version: 2.4.6
|
|
137
137
|
signing_key:
|
|
138
138
|
specification_version: 4
|
|
139
|
-
summary:
|
|
139
|
+
summary: Shutterstock-Contributor OAuth2 strategy for OmniAuth.
|
|
140
140
|
test_files: []
|