omniauth-garmin 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bcca33b2d63d8386fb98f88fc30e20968ff8d4a570a3d091e0eb3c5f54d463c4
4
+ data.tar.gz: 5f07e90c70b07cfece40e519c4935cb9aa68b1226b5c2a6eb839a0f190a2e3f8
5
+ SHA512:
6
+ metadata.gz: 0340a55c421ac1383f28bac74a4f2619e9b0ed4afcb169bfc9ddc3fa443b1e40463420c1989eeb3bdd22a3b8c4dbcb429d5054d85cd298929eee026023cc431b
7
+ data.tar.gz: 479379334b14e3ac929674ad3faae86b540cbbfaf80ffef4abcc5f79458cf118f5fc13b02fc0295d966a723556c1f0f1baccf76267667bae8215805fd7b4b84b
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "https://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ source 'https://rubygems.org'
7
+ gem 'omniauth-oauth', '~> 1.1.0'
8
+
9
+ # Add dependencies to develop your gem here.
10
+ # Include everything needed to run rake, tests, features, etc.
11
+ group :development do
12
+ gem "rdoc", "~> 3.12"
13
+ gem "bundler", "~> 2.0.2"
14
+ gem "juwelier", "~> 2.4.9"
15
+ gem "simplecov", ">= 0"
16
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,81 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ addressable (2.6.0)
5
+ public_suffix (>= 2.0.2, < 4.0)
6
+ builder (3.2.3)
7
+ descendants_tracker (0.0.4)
8
+ thread_safe (~> 0.3, >= 0.3.1)
9
+ docile (1.3.2)
10
+ faraday (0.15.4)
11
+ multipart-post (>= 1.2, < 3)
12
+ git (1.5.0)
13
+ github_api (0.18.2)
14
+ addressable (~> 2.4)
15
+ descendants_tracker (~> 0.0.4)
16
+ faraday (~> 0.8)
17
+ hashie (~> 3.5, >= 3.5.2)
18
+ oauth2 (~> 1.0)
19
+ hashie (3.6.0)
20
+ highline (2.0.2)
21
+ json (1.8.6)
22
+ juwelier (2.4.9)
23
+ builder
24
+ bundler
25
+ git
26
+ github_api
27
+ highline
28
+ kamelcase (~> 0)
29
+ nokogiri
30
+ psych
31
+ rake
32
+ rdoc
33
+ semver2
34
+ jwt (2.2.1)
35
+ kamelcase (0.0.2)
36
+ semver2 (~> 3)
37
+ mini_portile2 (2.4.0)
38
+ multi_json (1.13.1)
39
+ multi_xml (0.6.0)
40
+ multipart-post (2.1.1)
41
+ nokogiri (1.10.3)
42
+ mini_portile2 (~> 2.4.0)
43
+ oauth (0.5.4)
44
+ oauth2 (1.4.1)
45
+ faraday (>= 0.8, < 0.16.0)
46
+ jwt (>= 1.0, < 3.0)
47
+ multi_json (~> 1.3)
48
+ multi_xml (~> 0.5)
49
+ rack (>= 1.2, < 3)
50
+ omniauth (1.9.0)
51
+ hashie (>= 3.4.6, < 3.7.0)
52
+ rack (>= 1.6.2, < 3)
53
+ omniauth-oauth (1.1.0)
54
+ oauth
55
+ omniauth (~> 1.0)
56
+ psych (3.1.0)
57
+ public_suffix (3.1.1)
58
+ rack (2.0.7)
59
+ rake (12.3.3)
60
+ rdoc (3.12.2)
61
+ json (~> 1.4)
62
+ semver2 (3.4.2)
63
+ simplecov (0.17.0)
64
+ docile (~> 1.1)
65
+ json (>= 1.8, < 3)
66
+ simplecov-html (~> 0.10.0)
67
+ simplecov-html (0.10.2)
68
+ thread_safe (0.3.6)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ bundler (~> 2.0.2)
75
+ juwelier (~> 2.4.9)
76
+ omniauth-oauth (~> 1.1.0)
77
+ rdoc (~> 3.12)
78
+ simplecov
79
+
80
+ BUNDLED WITH
81
+ 2.0.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Naveed Ahmad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2017 Naveed Ahmad
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ [![Gem Version](https://badge.fury.io/rb/omniauth-garmin.svg)](https://badge.fury.io/rb/omniauth-smashrun)
2
+
3
+ # Omniauth::Strategies::Garmin
4
+ Omniauth strategy for Garmin Connect.
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'omniauth-garmin'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install omniauth-garmin
18
+
19
+ ## Usage
20
+
21
+ Register **Garmin Strategy** in omniauth configuration file(config/initializers/omniauth.rb)
22
+
23
+ ```ruby
24
+ Rails.application.config.middleware.use OmniAuth::Builder do
25
+ provider :garmin, 'client id', 'client secret', oauth_callback: 'optional callback url'
26
+ end
27
+ ```
28
+
29
+ ## License
30
+
31
+ [MIT License](http://www.opensource.org/licenses/mit-license.php)
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+ require 'juwelier'
14
+ Juwelier::Tasks.new do |gem|
15
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
16
+ gem.name = "omniauth-garmin"
17
+ gem.homepage = "http://github.com/naveed-ahmad/omniauth-garmin"
18
+ gem.license = "MIT"
19
+ gem.summary = "OmniAuth strategy for Garmin"
20
+ gem.description = gem.summary
21
+ gem.email = "naveedahmada036@gmail.com"
22
+ gem.authors = ["Naveed Ahmad"]
23
+
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Juwelier::RubygemsDotOrgTasks.new
27
+ require 'rake/testtask'
28
+ Rake::TestTask.new(:test) do |test|
29
+ test.libs << 'lib' << 'test'
30
+ test.pattern = 'test/**/test_*.rb'
31
+ test.verbose = true
32
+ end
33
+
34
+ desc "Code coverage detail"
35
+ task :simplecov do
36
+ ENV['COVERAGE'] = "true"
37
+ Rake::Task['test'].execute
38
+ end
39
+
40
+ task :default => :test
41
+
42
+ require 'rdoc/task'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "omniauth-garmin #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -0,0 +1,2 @@
1
+ require 'omniauth-garmin/version'
2
+ require 'omniauth/strategies/garmin'
@@ -0,0 +1,5 @@
1
+ module OmniAuth
2
+ module Garmin
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,24 @@
1
+ require 'omniauth-oauth'
2
+
3
+ module OmniAuth
4
+ module Strategies
5
+ class Garmin < OmniAuth::Strategies::OAuth
6
+ option :name, 'garmin'
7
+
8
+ option :client_options, {
9
+ scheme: :body,
10
+ site: 'https://connect.garmin.com',
11
+ request_token_path: 'https://connectapi.garmin.com/oauth-service/oauth/request_token',
12
+ access_token_path: 'https://connectapi.garmin.com/oauth-service/oauth/access_token',
13
+ authorize_url: 'http://connect.garmin.com/oauthConfirm'
14
+ }
15
+
16
+ uid do
17
+ access_token.token
18
+ end
19
+
20
+ info do {} end
21
+ extra do {} end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,65 @@
1
+ # Generated by juwelier
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: omniauth-garmin 0.0.2 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "omniauth-garmin".freeze
9
+ s.version = "0.0.2"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Naveed Ahmad".freeze]
14
+ s.date = "2019-08-09"
15
+ s.description = "OmniAuth strategy for Garmin".freeze
16
+ s.email = "naveedahmada036@gmail.com".freeze
17
+ s.extra_rdoc_files = [
18
+ "LICENSE",
19
+ "LICENSE.txt",
20
+ "README.md"
21
+ ]
22
+ s.files = [
23
+ ".document",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE",
27
+ "LICENSE.txt",
28
+ "README.md",
29
+ "Rakefile",
30
+ "VERSION",
31
+ "lib/omniauth-garmin.rb",
32
+ "lib/omniauth-garmin/version.rb",
33
+ "lib/omniauth/strategies/garmin.rb",
34
+ "omniauth-garmin.gemspec"
35
+ ]
36
+ s.homepage = "http://github.com/naveed-ahmad/omniauth-garmin".freeze
37
+ s.licenses = ["MIT".freeze]
38
+ s.rubygems_version = "2.7.8".freeze
39
+ s.summary = "OmniAuth strategy for Garmin".freeze
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 4
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<omniauth-oauth>.freeze, ["~> 1.1.0"])
46
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
47
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 2.0.2"])
48
+ s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
49
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
50
+ else
51
+ s.add_dependency(%q<omniauth-oauth>.freeze, ["~> 1.1.0"])
52
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
53
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.0.2"])
54
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
55
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<omniauth-oauth>.freeze, ["~> 1.1.0"])
59
+ s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
60
+ s.add_dependency(%q<bundler>.freeze, ["~> 2.0.2"])
61
+ s.add_dependency(%q<juwelier>.freeze, ["~> 2.4.9"])
62
+ s.add_dependency(%q<simplecov>.freeze, [">= 0"])
63
+ end
64
+ end
65
+
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-garmin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Naveed Ahmad
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth-oauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.0
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.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rdoc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: juwelier
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.4.9
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.4.9
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: OmniAuth strategy for Garmin
84
+ email: naveedahmada036@gmail.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files:
88
+ - LICENSE
89
+ - LICENSE.txt
90
+ - README.md
91
+ files:
92
+ - ".document"
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - VERSION
100
+ - lib/omniauth-garmin.rb
101
+ - lib/omniauth-garmin/version.rb
102
+ - lib/omniauth/strategies/garmin.rb
103
+ - omniauth-garmin.gemspec
104
+ homepage: http://github.com/naveed-ahmad/omniauth-garmin
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.7.8
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: OmniAuth strategy for Garmin
128
+ test_files: []