omniauth-savvycal 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/savvycal/version.rb +1 -1
- data/lib/omniauth/strategies/savvycal.rb +1 -1
- metadata +3 -4
- data/lib/omniauth/savvycal/strategy.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26e762dab663f7379affb753704e5643401cd7cb10e5ed43421b8edd7b03a428
|
4
|
+
data.tar.gz: dc85a507f77205fa75e95ed41cc72b6338111dc965ae9004e91ccca0f1adaf7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e4da5f21e8872dbe5b365a044ce239ee664e3d0e987045e87d8e60dbee845ddfc7be21d70d6ce7d0b5f69489f73746ea8c08dd016d628128ba73655f6576f96
|
7
|
+
data.tar.gz: b4cfbcc5af16aa3be41b7148a9f93c6dc408359c2697363947854e9426c7e40e2a034d53f9e222f53493df75e31edd3483af935ec1493f59da793978187cbb3a
|
@@ -3,7 +3,7 @@ require "omniauth-oauth2"
|
|
3
3
|
module OmniAuth
|
4
4
|
module Strategies
|
5
5
|
class SavvyCal < OmniAuth::Strategies::OAuth2
|
6
|
-
option :name, "
|
6
|
+
option :name, "savvy_cal"
|
7
7
|
option :client_options, {
|
8
8
|
site: "https://api.savvycal.com/v1",
|
9
9
|
authorize_url: "https://savvycal.com/oauth/authorize",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-savvycal
|
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
|
- Julian Rubisch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -66,7 +66,6 @@ files:
|
|
66
66
|
- README.md
|
67
67
|
- Rakefile
|
68
68
|
- lib/omniauth/savvycal.rb
|
69
|
-
- lib/omniauth/savvycal/strategy.rb
|
70
69
|
- lib/omniauth/savvycal/version.rb
|
71
70
|
- lib/omniauth/strategies/savvycal.rb
|
72
71
|
- omniauth-savvycal.gemspec
|
@@ -92,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
91
|
- !ruby/object:Gem::Version
|
93
92
|
version: '0'
|
94
93
|
requirements: []
|
95
|
-
rubygems_version: 3.3.
|
94
|
+
rubygems_version: 3.3.22
|
96
95
|
signing_key:
|
97
96
|
specification_version: 4
|
98
97
|
summary: OmniAuth Strategy for SavvyCal
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require "omniauth-oauth2"
|
2
|
-
|
3
|
-
module OmniAuth
|
4
|
-
module Strategies
|
5
|
-
class SavvyCal < OmniAuth::Strategies::OAuth2
|
6
|
-
option :client_options, {
|
7
|
-
site: "https://api.savvycal.com",
|
8
|
-
authorize_url: "https://savvycal.com/oauth/authorize",
|
9
|
-
token_url: "https://savvycal.com/oauth/token"
|
10
|
-
}
|
11
|
-
|
12
|
-
uid { raw_info["id"].to_s }
|
13
|
-
|
14
|
-
extra do
|
15
|
-
{raw_info: raw_info}
|
16
|
-
end
|
17
|
-
|
18
|
-
def raw_info
|
19
|
-
@raw_info ||= access_token.get("user").parsed
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
OmniAuth.config.add_camelization "savvycal", "SavvyCal"
|