omniauth-wakatime 1.0
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 +7 -0
- data/lib/omniauth-wakatime.rb +1 -0
- data/lib/omniauth/strategies/wakatime.rb +22 -0
- metadata +59 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 5675688120496a7e281d1eedfaf839bab5e36d02
|
|
4
|
+
data.tar.gz: 763925188e955286bfb5a36e6d5f8bd5bf675597
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ef7a3a599ebd0f55d17331a82c8c1a6f1cd6f3c11967ece5410f7d1c263680d8b3534518e5a98bcac2d724e252260bb77994f61de037bd09c03e3ca78192c0db
|
|
7
|
+
data.tar.gz: 2ec0cebd61235bb93c53589489095226388e1ee3ed5a55087090feb4cc2d3a6437bce49a4b1c8d8dd666da67c34283bd54d7bb849cad33b7086ab3cc205eface
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'omniauth/strategies/wakatime'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'omniauth-oauth2'
|
|
2
|
+
|
|
3
|
+
module OmniAuth
|
|
4
|
+
module Strategies
|
|
5
|
+
class Wakatime < OmniAuth::Strategies::OAuth2
|
|
6
|
+
option :name, 'wakatime'
|
|
7
|
+
|
|
8
|
+
option :client_options, {
|
|
9
|
+
:site => 'https://www.wakatime.com',
|
|
10
|
+
:authorize_url => 'https://www.wakatime.com/oauth/authorize',
|
|
11
|
+
:response_type => 'code'
|
|
12
|
+
}
|
|
13
|
+
# Bugfix for regression introduced after omniauth-oauth2 v1.3.1
|
|
14
|
+
# details: https://github.com/intridea/omniauth-oauth2/issues/8
|
|
15
|
+
def callback_url
|
|
16
|
+
options[:callback_url] || (full_host + script_name + callback_path)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
OmniAuth.config.add_camelization 'wakatime', 'Wakatime'
|
metadata
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: omniauth-wakatime
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '1.0'
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andy Brett
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: omniauth-oauth2
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.1.1
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 1.1.1
|
|
27
|
+
description: OmniAuth strategy for WakaTime
|
|
28
|
+
email: andy@andybrett.com
|
|
29
|
+
executables: []
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- lib/omniauth-wakatime.rb
|
|
34
|
+
- lib/omniauth/strategies/wakatime.rb
|
|
35
|
+
homepage: https://github.com/beeminder/omniauth-wakatime
|
|
36
|
+
licenses:
|
|
37
|
+
- MIT
|
|
38
|
+
metadata: {}
|
|
39
|
+
post_install_message:
|
|
40
|
+
rdoc_options: []
|
|
41
|
+
require_paths:
|
|
42
|
+
- lib
|
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0'
|
|
53
|
+
requirements: []
|
|
54
|
+
rubyforge_project:
|
|
55
|
+
rubygems_version: 2.6.11
|
|
56
|
+
signing_key:
|
|
57
|
+
specification_version: 4
|
|
58
|
+
summary: OmniAuth strategy for WakaTime
|
|
59
|
+
test_files: []
|