omniauth-mapmyfitness-oauth2 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +16 -17
- data/lib/omniauth-mapmyfitness-oauth2/version.rb +1 -1
- data/lib/omniauth/strategies/mapmyfitness.rb +0 -1
- data/omniauth-mapmyfitness-oauth2.gemspec +0 -1
- metadata +3 -20
- data/.document +0 -5
- data/VERSION +0 -1
- data/lib/omniauth-mapmyfitness-oauth2/user.rb +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a28a148b82f6b5d3ec2dbfc8d90d7ba9b88379c1
|
4
|
+
data.tar.gz: 2c86b27ec11cf8db761db43cb53a8d4865535bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caee7c3b9756b7f6ca9f17a001427a4babf98cacc367a238aa325e618d6b91566c6fbe455d72684156b5302f4bd7461d2976fc6ba5938271d25905bdbe4f9b78
|
7
|
+
data.tar.gz: 02389a0f86a1a087eb85ce20a8e7dfdef27b86588999d8e19595047fab56f0a5bd629f26f8b3f354335cd5af5a58d9ce825732dc8af16df48fe87f0422f9fa03
|
data/LICENSE.txt
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2014 Jeff Casimir
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
the following conditions:
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
10
9
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
13
12
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
OF
|
20
|
-
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-mapmyfitness-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Casimir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '>='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: json
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,15 +74,12 @@ executables: []
|
|
88
74
|
extensions: []
|
89
75
|
extra_rdoc_files: []
|
90
76
|
files:
|
91
|
-
- .document
|
92
77
|
- .gitignore
|
93
78
|
- Gemfile
|
94
79
|
- LICENSE.txt
|
95
80
|
- README.md
|
96
81
|
- Rakefile
|
97
|
-
- VERSION
|
98
82
|
- lib/omniauth-mapmyfitness-oauth2.rb
|
99
|
-
- lib/omniauth-mapmyfitness-oauth2/user.rb
|
100
83
|
- lib/omniauth-mapmyfitness-oauth2/version.rb
|
101
84
|
- lib/omniauth/strategies/mapmyfitness.rb
|
102
85
|
- omniauth-mapmyfitness-oauth2.gemspec
|
@@ -120,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
103
|
version: '0'
|
121
104
|
requirements: []
|
122
105
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.1.11
|
124
107
|
signing_key:
|
125
108
|
specification_version: 4
|
126
109
|
summary: OmniAuth strategy for MapMyFitness OAuth2
|
data/.document
DELETED
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.0
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module OmniAuth
|
2
|
-
module MapMyFitness
|
3
|
-
class User
|
4
|
-
def self.data_attributes
|
5
|
-
["username", "first_name", "last_name", "display_name", "last_initial",
|
6
|
-
"weight", "communication", "display_measurement_system", "time_zone",
|
7
|
-
"birthdate", "height", "email", "sharing", "last_login", "location",
|
8
|
-
"gender", "_links", "id", "date_joined"]
|
9
|
-
end
|
10
|
-
|
11
|
-
attr_reader :data
|
12
|
-
attr_reader :token_expires_at, :token_refresh, :token, :provider
|
13
|
-
attr_reader *data_attributes
|
14
|
-
|
15
|
-
def initialize(auth_info)
|
16
|
-
@data = auth_info
|
17
|
-
parse_attributes
|
18
|
-
end
|
19
|
-
|
20
|
-
def parse_attributes
|
21
|
-
User.data_attributes.each do |attribute|
|
22
|
-
instance_variable_set("@#{attribute}", data["info"][attribute])
|
23
|
-
end
|
24
|
-
@token_expires = data["credentials"]["expires"]
|
25
|
-
@token_expires_at = data["credentials"]["expires_at"]
|
26
|
-
@token_refresh = data["credentials"]["refresh_token"]
|
27
|
-
@token = data["credentials"]["token"]
|
28
|
-
@provider = data["provider"]
|
29
|
-
end
|
30
|
-
|
31
|
-
def uid
|
32
|
-
id
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|