omniauth-tanita 0.4.0 → 1.0.0

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: 3ba22682ade5a3ac1076bfa1df775743a4dcd75c9a09b04e3c05a0e3a91d2329
4
- data.tar.gz: a66cf2bb9a329eb9f751340cbcaaca6eb49c4bb6402e46762c84854fb03b4639
3
+ metadata.gz: db70f98e46431bd7494ec233c158a598aea22feaf3a9122037fb19d38078d3a0
4
+ data.tar.gz: f9919f8977744d8db8ec7eeb5cdf4b4001ed1a56e45d7403b44a9f72558df1b4
5
5
  SHA512:
6
- metadata.gz: bdff4c2dff1f08df8e48d21d7746b44c5f7282a49e1d6e5d3e6174741beb8d363a35a3f780584740917580da757032dab460583d244fc201be6ff00f0d5e5f3f
7
- data.tar.gz: 995094eadfa8eb06e62d52e6531161863e89634aa7c6a3654160d8aed3c4746f09b72ccfbfa06616abf2b3260d801d3e518244a52e6b55ab60bf4b319e362e1a
6
+ metadata.gz: cd99a979100d83ee6bb6c021abf1353a28b491abf52c753865a27ec38b290ed6c216179e1b7b0b785e081025b27198daf6ba0f9ce764a2ac506b2415aa8aa370
7
+ data.tar.gz: cd0cf9ef171ef2e232008b3c2761b8d20399540a3d029607f946390d1c7607e69055e146f120df3a99f5466674f0f45f7504a486478687b0806b841b8c5d0add
data/.rubocop.yml CHANGED
@@ -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
data/CHANGELOG.md CHANGED
@@ -1,26 +1,40 @@
1
- # 0.4.0
1
+ # CHANGELOG
2
+
3
+ ## 1.0.0
4
+
5
+ - allowed for omniauth v2.0 series.
6
+
7
+ ## 0.5.2
8
+
9
+ - specified omniauth v1.9 dependency.
10
+
11
+ ## 0.4.1
12
+
13
+ - fix rubocop warnings.
14
+
15
+ ## 0.4.0
2
16
 
3
17
  - refs #7 fix dependencies.
4
18
 
5
- # 0.3.0
19
+ ## 0.3.0
6
20
 
7
21
  - remove 'tanita-api-client' dependency.
8
22
  - rename module 'Omniauth' to 'OmniAuth'.
9
23
  - update gem-push GitHub Actions settings in order to ignore error for same version.
10
24
 
11
- # 0.2.3
25
+ ## 0.2.3
12
26
 
13
27
  - refs #1 setup GitHub Actions for rspec and pushing to RubyGems.
14
28
  - measure code coverage
15
29
 
16
- # 0.2.0
30
+ ## 0.2.0
17
31
 
18
32
  - set default `provider_ignores_state` to true
19
33
 
20
- # 0.1.1
34
+ ## 0.1.1
21
35
 
22
36
  - Update dependent library 'tanita-api-client' to v0.2.3
23
37
 
24
- # 0.1.0
38
+ ## 0.1.0
25
39
 
26
40
  - 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 Tanita
5
- VERSION = '0.4.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
@@ -12,13 +12,13 @@ module OmniAuth
12
12
  option :provider_ignores_state, true
13
13
  option :scope, 'innerscan'
14
14
 
15
- option :client_options, :site => 'https://www.healthplanet.jp',
16
- :authorize_url => '/oauth/auth'
15
+ option :client_options, site: 'https://www.healthplanet.jp',
16
+ authorize_url: '/oauth/auth'
17
17
 
18
18
  private
19
19
 
20
20
  def callback_url
21
- full_host + script_name + callback_path
21
+ full_host + callback_path
22
22
  end
23
23
  end
24
24
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = spec.description
13
13
  spec.homepage = 'https://github.com/koshilife/omniauth-tanita'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.4')
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://github.com/koshilife/omniauth-tanita'
@@ -28,7 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.6.0'
31
+ spec.add_runtime_dependency 'omniauth', '~> 2.0'
32
+ spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.7.1'
32
33
 
33
34
  spec.add_development_dependency 'bundler'
34
35
  spec.add_development_dependency 'codecov'
metadata CHANGED
@@ -1,29 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-tanita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.0
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: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: omniauth-oauth2
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: 1.6.0
33
+ version: 1.7.1
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ">="
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: 1.6.0
40
+ version: 1.7.1
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +139,7 @@ metadata:
125
139
  homepage_uri: https://github.com/koshilife/omniauth-tanita
126
140
  source_code_uri: https://github.com/koshilife/omniauth-tanita
127
141
  changelog_uri: https://github.com/koshilife/omniauth-tanita/blob/master/CHANGELOG.md
128
- documentation_uri: https://www.rubydoc.info/gems/omniauth-tanita/0.4.0
142
+ documentation_uri: https://www.rubydoc.info/gems/omniauth-tanita/1.0.0
129
143
  post_install_message:
130
144
  rdoc_options: []
131
145
  require_paths:
@@ -134,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
148
  requirements:
135
149
  - - ">="
136
150
  - !ruby/object:Gem::Version
137
- version: 2.4.0
151
+ version: '2.4'
138
152
  required_rubygems_version: !ruby/object:Gem::Requirement
139
153
  requirements:
140
154
  - - ">="