omniauth-tanita 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/lib/omniauth-tanita/version.rb +1 -1
- data/omniauth-tanita.gemspec +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 946c38c34d7ad92b20b4955782976a8ff32e8042099938d9298c0d8ecd90f906
|
4
|
+
data.tar.gz: 269cbb9f59b08b2268bc5fead4c3d7e12a6e9237d8e99ff3d0d2a77acf78e436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b6ae3d721ae1bf00bee8bceb776a217ccdde265a8a49f84d0c7429aa5e1dc38923abeb5c8125153116b967c487db34f80de2f215708a303f84d999c78fd5c2
|
7
|
+
data.tar.gz: 86b9329105f6dd7d863430c0cf88582b088907076c6608fa8f1730e17fcc9ababb6d78cf2dac7e367a256623916193315c2588bb9daac9e1862ec055e26966eb
|
data/README.md
CHANGED
@@ -58,6 +58,24 @@ Rails.application.config.middleware.use OmniAuth::Builder do
|
|
58
58
|
end
|
59
59
|
```
|
60
60
|
|
61
|
+
## Auth Hash Example
|
62
|
+
|
63
|
+
The auth hash `request.env['omniauth.auth']` would look like this:
|
64
|
+
|
65
|
+
```js
|
66
|
+
{
|
67
|
+
"provider": "tanita",
|
68
|
+
"uid": null, // uid will be empty, because there is no apis to get.
|
69
|
+
"credentials": {
|
70
|
+
"token": "ACCESS_TOKEN",
|
71
|
+
"refresh_token": "REFRESH_TOKEN",
|
72
|
+
"expires_at": 1581419031,
|
73
|
+
"expires": true
|
74
|
+
},
|
75
|
+
"extra": {}
|
76
|
+
}
|
77
|
+
```
|
78
|
+
|
61
79
|
## Contributing
|
62
80
|
|
63
81
|
Bug reports and pull requests are welcome on [GitHub](https://github.com/koshilife/omniauth-tanita). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/omniauth-tanita.gemspec
CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata['homepage_uri'] = spec.homepage
|
18
18
|
spec.metadata['source_code_uri'] = 'https://github.com/koshilife/omniauth-tanita'
|
19
19
|
spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/CHANGELOG.md"
|
20
|
+
spec.metadata['documentation_uri'] = 'https://www.rubydoc.info/gems/omniauth-tanita/'
|
20
21
|
|
21
22
|
# Specify which files should be added to the gem when it is released.
|
22
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tanita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tanita-api-client
|
@@ -110,6 +110,7 @@ metadata:
|
|
110
110
|
homepage_uri: https://github.com/koshilife/omniauth-tanita
|
111
111
|
source_code_uri: https://github.com/koshilife/omniauth-tanita
|
112
112
|
changelog_uri: https://github.com/koshilife/omniauth-tanita/blob/master/CHANGELOG.md
|
113
|
+
documentation_uri: https://www.rubydoc.info/gems/omniauth-tanita/
|
113
114
|
post_install_message:
|
114
115
|
rdoc_options: []
|
115
116
|
require_paths:
|