omniauth-timetree 0.3.0 → 0.3.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 +4 -4
- data/.rubocop.yml +11 -9
- data/CHANGELOG.md +13 -7
- data/Rakefile +5 -3
- data/lib/omniauth-timetree/version.rb +1 -1
- data/lib/omniauth/strategies/timetree.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 481fd82728f560b395770b74432f9ecf5da45f38d3b2b6c20dce43c2feef4961
|
|
4
|
+
data.tar.gz: bd27b6064f3a82965f297b84debb3b67a67e835a3e74597cf8ee627da8098ed0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3f3a0e9c3773f4eb7d21e997c86fc502cf3152279016a22a59e9e4438763a7cf0cbfbc49a0bc88600f5da4a8defd8427ab1d9de8f812e001b50f9a336fc0877
|
|
7
|
+
data.tar.gz: d7ce8cf4f7052e53be301fb7470bb43d2c6ca43dcfb8db8fb570aca1bb3fdf1990b58a613de497a875952c5a9f145f50ba529e5ad86829c46b3997aa694e0ec5
|
data/.rubocop.yml
CHANGED
|
@@ -23,12 +23,11 @@ Metrics/BlockNesting:
|
|
|
23
23
|
Max: 2
|
|
24
24
|
|
|
25
25
|
Layout/LineLength:
|
|
26
|
-
|
|
27
|
-
Enabled: false
|
|
26
|
+
Max: 120
|
|
28
27
|
|
|
29
28
|
Metrics/MethodLength:
|
|
30
29
|
CountComments: false
|
|
31
|
-
Max:
|
|
30
|
+
Max: 20
|
|
32
31
|
|
|
33
32
|
Metrics/ParameterLists:
|
|
34
33
|
Max: 4
|
|
@@ -39,10 +38,10 @@ Metrics/AbcSize:
|
|
|
39
38
|
|
|
40
39
|
Style/CollectionMethods:
|
|
41
40
|
PreferredMethods:
|
|
42
|
-
map:
|
|
43
|
-
reduce:
|
|
44
|
-
find:
|
|
45
|
-
find_all:
|
|
41
|
+
map: "collect"
|
|
42
|
+
reduce: "inject"
|
|
43
|
+
find: "detect"
|
|
44
|
+
find_all: "select"
|
|
46
45
|
|
|
47
46
|
Style/Documentation:
|
|
48
47
|
Enabled: false
|
|
@@ -60,10 +59,13 @@ Style/ExpandPathArguments:
|
|
|
60
59
|
Enabled: false
|
|
61
60
|
|
|
62
61
|
Style/HashSyntax:
|
|
63
|
-
EnforcedStyle:
|
|
62
|
+
EnforcedStyle: ruby19
|
|
64
63
|
|
|
65
64
|
Style/Lambda:
|
|
66
65
|
Enabled: false
|
|
67
66
|
|
|
68
67
|
Style/RaiseArgs:
|
|
69
|
-
EnforcedStyle: compact
|
|
68
|
+
EnforcedStyle: compact
|
|
69
|
+
|
|
70
|
+
Style/AsciiComments:
|
|
71
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
- fix rubocop warnings.
|
|
6
|
+
|
|
7
|
+
## 0.3.0
|
|
2
8
|
|
|
3
9
|
- refs #9 fix dependencies.
|
|
4
10
|
|
|
5
|
-
|
|
11
|
+
## 0.2.1
|
|
6
12
|
|
|
7
13
|
- bug fix for 'TimeTree' camelization.
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
## 0.2.0
|
|
10
16
|
|
|
11
17
|
- do refactor.
|
|
12
18
|
- rename `OmniAuth::TimeTree` module from `Omniauth::Timetree`.
|
|
13
19
|
- improve tests with Rack::Test.
|
|
14
20
|
- update gem-push GitHub Actions settings in order to ignore error for same version.
|
|
15
21
|
|
|
16
|
-
|
|
22
|
+
## 0.1.3
|
|
17
23
|
|
|
18
24
|
- refs #1 setup GitHub Actions for rspec and pushing to RubyGems.
|
|
19
25
|
- measure code coverage
|
|
20
26
|
|
|
21
|
-
|
|
27
|
+
## 0.1.2
|
|
22
28
|
|
|
23
29
|
- fixed a bug for empty uid
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
## 0.1.1
|
|
26
32
|
|
|
27
33
|
- fixed a bug for mistakes of TimeTree API URL after exchanging token
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
## 0.1.0
|
|
30
36
|
|
|
31
37
|
- Initial release
|
data/Rakefile
CHANGED
|
@@ -6,12 +6,12 @@ module OmniAuth
|
|
|
6
6
|
module Strategies
|
|
7
7
|
class TimeTree < OmniAuth::Strategies::OAuth2
|
|
8
8
|
option :name, 'timetree'
|
|
9
|
-
option :client_options, :
|
|
9
|
+
option :client_options, site: 'https://timetreeapp.com'
|
|
10
10
|
|
|
11
11
|
uid { raw_info['id'] }
|
|
12
12
|
|
|
13
13
|
extra do
|
|
14
|
-
{:
|
|
14
|
+
{raw_info: raw_info}
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
private
|
|
@@ -20,7 +20,7 @@ module OmniAuth
|
|
|
20
20
|
return @raw_info if defined?(@raw_info)
|
|
21
21
|
|
|
22
22
|
endpoint = 'https://timetreeapis.com/user'
|
|
23
|
-
options = {:
|
|
23
|
+
options = {headers: {'Accept' => 'application/vnd.timetree.v1+json'}}
|
|
24
24
|
@raw_info = access_token.get(endpoint, options).parsed
|
|
25
25
|
end
|
|
26
26
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-timetree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kenji Koshikawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
@@ -167,7 +167,7 @@ metadata:
|
|
|
167
167
|
homepage_uri: https://github.com/koshilife/omniauth-timetree
|
|
168
168
|
source_code_uri: https://github.com/koshilife/omniauth-timetree
|
|
169
169
|
changelog_uri: https://github.com/koshilife/omniauth-timetree/blob/master/CHANGELOG.md
|
|
170
|
-
documentation_uri: https://www.rubydoc.info/gems/omniauth-timetree/0.3.
|
|
170
|
+
documentation_uri: https://www.rubydoc.info/gems/omniauth-timetree/0.3.1
|
|
171
171
|
post_install_message:
|
|
172
172
|
rdoc_options: []
|
|
173
173
|
require_paths:
|