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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e15bd65e0b28aa692b1e09c641a5bd013547a95
4
- data.tar.gz: 1ea307fbdf9468c1825963ad6e693db5e1415b1f
3
+ metadata.gz: a28a148b82f6b5d3ec2dbfc8d90d7ba9b88379c1
4
+ data.tar.gz: 2c86b27ec11cf8db761db43cb53a8d4865535bc5
5
5
  SHA512:
6
- metadata.gz: 82d3244950a9b644d61c5e583d9126d0f8efe6edf472c82f0f0bdc73862dad22f0951130dd11c46e89d76b989a39a7e026b853b2dfb2161954f2775de37b9d76
7
- data.tar.gz: 044ff896f14d111f0864c7e1382adf86d991dca4d10dc45a86de34d6849d3899b3c5ffeb2702324c7cabdf78fc186e58c7e96b2c9d3d64139ed91f17f72443b1
6
+ metadata.gz: caee7c3b9756b7f6ca9f17a001427a4babf98cacc367a238aa325e618d6b91566c6fbe455d72684156b5302f4bd7461d2976fc6ba5938271d25905bdbe4f9b78
7
+ data.tar.gz: 02389a0f86a1a087eb85ce20a8e7dfdef27b86588999d8e19595047fab56f0a5bd629f26f8b3f354335cd5af5a58d9ce825732dc8af16df48fe87f0422f9fa03
@@ -1,20 +1,19 @@
1
- Copyright (c) 2013 Jeff Casimir
1
+ Copyright (c) 2014 Jeff Casimir
2
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:
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
- included in all copies or substantial portions of the Software.
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
- 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.
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.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module MapMyFitness
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -1,5 +1,4 @@
1
1
  require 'omniauth-oauth2'
2
- require 'omniauth-mapmyfitness-oauth2/user'
3
2
 
4
3
  module OmniAuth
5
4
  module Strategies
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "rake"
24
- spec.add_development_dependency "pry"
25
24
 
26
25
  spec.add_runtime_dependency "json"
27
26
  spec.add_runtime_dependency "omniauth-oauth2"
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.2.1
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 00:00:00.000000000 Z
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.0.6
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
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
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