omniauth-timetree 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4517e83127b100f4e4f5402fac8994afbce2a692f14ffa5d60c9a270283e1ed
4
- data.tar.gz: 671fcfbf3cfb6109071cf5804d01f49b5a3b7db40d51eea0c92c9ddaa456d577
3
+ metadata.gz: 481fd82728f560b395770b74432f9ecf5da45f38d3b2b6c20dce43c2feef4961
4
+ data.tar.gz: bd27b6064f3a82965f297b84debb3b67a67e835a3e74597cf8ee627da8098ed0
5
5
  SHA512:
6
- metadata.gz: 0cf29555c2fed47a828754cd7b1d409bc829f3c7f6f0e644df6f1726438480b790a28004a077f839c1fb97433311d3c4998d7d320aa7938f5b5f25c3ae8c3cf8
7
- data.tar.gz: 5f2e36e476ff09f993211eee8dac0015db5a26af71dfcecd245f9641619ec29a48cdc190618188c9ab0c37fb253bc5142cfa720f4e9239b812c84b659dbfb4c8
6
+ metadata.gz: f3f3a0e9c3773f4eb7d21e997c86fc502cf3152279016a22a59e9e4438763a7cf0cbfbc49a0bc88600f5da4a8defd8427ab1d9de8f812e001b50f9a336fc0877
7
+ data.tar.gz: d7ce8cf4f7052e53be301fb7470bb43d2c6ca43dcfb8db8fb570aca1bb3fdf1990b58a613de497a875952c5a9f145f50ba529e5ad86829c46b3997aa694e0ec5
@@ -23,12 +23,11 @@ Metrics/BlockNesting:
23
23
  Max: 2
24
24
 
25
25
  Layout/LineLength:
26
- AllowURI: true
27
- Enabled: false
26
+ Max: 120
28
27
 
29
28
  Metrics/MethodLength:
30
29
  CountComments: false
31
- Max: 15
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: 'collect'
43
- reduce: 'inject'
44
- find: 'detect'
45
- find_all: 'select'
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: hash_rockets
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
@@ -1,31 +1,37 @@
1
- # 0.3.0
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
- # 0.2.1
11
+ ## 0.2.1
6
12
 
7
13
  - bug fix for 'TimeTree' camelization.
8
14
 
9
- # 0.2.0
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
- # 0.1.3
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
- # 0.1.2
27
+ ## 0.1.2
22
28
 
23
29
  - fixed a bug for empty uid
24
30
 
25
- # 0.1.1
31
+ ## 0.1.1
26
32
 
27
33
  - fixed a bug for mistakes of TimeTree API URL after exchanging token
28
34
 
29
- # 0.1.0
35
+ ## 0.1.0
30
36
 
31
37
  - Initial release
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
3
5
 
4
6
  RSpec::Core::RakeTask.new(:spec)
5
7
 
6
- task :default => :spec
8
+ task default: :spec
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module TimeTree
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
@@ -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, :site => 'https://timetreeapp.com'
9
+ option :client_options, site: 'https://timetreeapp.com'
10
10
 
11
11
  uid { raw_info['id'] }
12
12
 
13
13
  extra do
14
- {:raw_info => raw_info}
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 = {:headers => {'Accept' => 'application/vnd.timetree.v1+json'}}
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.0
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-08-19 00:00:00.000000000 Z
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.0
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: