omniauth-timetree 0.1.3 → 0.1.4

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: 8606f7b710b953f2b4d0aad55e525ad8a643be68dcf2944eb637620bfb6c8409
4
- data.tar.gz: f1ef42d52b597c49383dbdbf7376f48e3bf45d670fbaec0347b1b5bedf20be96
3
+ metadata.gz: c404006ef54a15ed8c2fab82e06b438f43df2fd25887537811fd31a664fd5c73
4
+ data.tar.gz: a34cda6f5b30df21a42c44cb152511b9cc4082c4f045214c86ae30b0eb1930db
5
5
  SHA512:
6
- metadata.gz: 83c50de83acbedb90f401caa7769e999a7e1f4e809a5871bd411ee9a1b5dd20dfcb7cb441f81141d896b1818a7cb8682eca7cdedc6c6b3f48aa755d6e04dbc0f
7
- data.tar.gz: d574d5edbe1f8a07ed59cc93aa2051bc835d2786f44387559a8120a864a6fd7e72604a6f234ee18dfcbc5ac4f71a81be4d4e6e2e634e74ae686c1f43b426ed34
6
+ metadata.gz: 2afc6cd07d67c9fedd01d439cc9333a131d240b7eba9bdfa5a6593a762fae687f0a02333121c0c77602601a4b5e03cdf0425bb5421d4afcad3b0295113485357
7
+ data.tar.gz: 65dd1f8eed1d7878968d8cd2b03ff934e56fe4a3b2be6d748aa4931f6b4c29383bd80a29b0e44648a1216c7ab18a3de97f278714e39afa0b4765e66e3ab2bb6b
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Omniauth::Timetree
1
+ # OmniAuth::Timetree
2
2
 
3
3
  [![Test](https://github.com/koshilife/omniauth-timetree/workflows/Test/badge.svg)](https://github.com/koshilife/omniauth-timetree/actions?query=workflow%3ATest)
4
4
  [![codecov](https://codecov.io/gh/koshilife/omniauth-timetree/branch/master/graph/badge.svg)](https://codecov.io/gh/koshilife/omniauth-timetree)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Omniauth
4
4
  module Timetree
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
@@ -6,22 +6,21 @@ module OmniAuth
6
6
  module Strategies
7
7
  class Timetree < OmniAuth::Strategies::OAuth2
8
8
  option :name, 'timetree'
9
- option :client_options, site: 'https://timetreeapp.com',
10
- authorize_url: '/oauth/authorize',
11
- token_url: '/oauth/token'
9
+ option :client_options, :site => 'https://timetreeapp.com'
12
10
 
13
11
  uid { raw_info[:id] }
14
12
 
15
13
  extra do
16
- { raw_info: raw_info }
14
+ {:raw_info => raw_info}
17
15
  end
18
16
 
19
17
  def raw_info
20
18
  return @raw_info unless @raw_info.nil?
19
+
21
20
  endpoint = 'https://timetreeapis.com/user'
22
- options = { headers: { 'Accept' => 'application/vnd.timetree.v1+json' } }
21
+ options = {:headers => {'Accept' => 'application/vnd.timetree.v1+json'}}
23
22
  res = access_token.get(endpoint, options)
24
- parsed_body = JSON.parse(res.body, symbolize_names: true)
23
+ parsed_body = JSON.parse(res.body, :symbolize_names => true)
25
24
  @raw_info = parsed_body[:data] || {}
26
25
  end
27
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.1.3
4
+ version: 0.1.4
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-07-03 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -125,7 +125,7 @@ metadata:
125
125
  homepage_uri: https://github.com/koshilife/omniauth-timetree
126
126
  source_code_uri: https://github.com/koshilife/omniauth-timetree
127
127
  changelog_uri: https://github.com/koshilife/omniauth-timetree/blob/master/CHANGELOG.md
128
- documentation_uri: https://www.rubydoc.info/gems/omniauth-timetree/0.1.3
128
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-timetree/0.1.4
129
129
  post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths: