omniauth-fitbit 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,7 @@ module OmniAuth
20
20
 
21
21
  info do
22
22
  {
23
+ :name => raw_info['user']['displayName'],
23
24
  :full_name => raw_info['user']['fullName'],
24
25
  :display_name => raw_info['user']['displayName'],
25
26
  :nickname => raw_info['user']['nickname'],
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Fitbit
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -57,6 +57,10 @@ describe "OmniAuth::Strategies::Fitbit" do
57
57
  }
58
58
  }
59
59
  end
60
+
61
+ it 'returns the correct name from raw_info' do
62
+ subject.info[:name].should eq("JD")
63
+ end
60
64
 
61
65
  it 'returns the correct full name from raw_info' do
62
66
  subject.info[:full_name].should eq("John Doe")
metadata CHANGED
@@ -1,57 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fitbit
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 1
9
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - TK Gospodinov
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2013-06-18 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-10-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: omniauth-oauth
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- version: "1.0"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
31
22
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: multi_xml
35
23
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- version: "0"
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: multi_xml
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
43
38
  type: :runtime
44
- version_requirements: *id002
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
45
46
  description: OmniAuth strategy for Fitbit
46
- email:
47
+ email:
47
48
  - tk@gospodinov.net
48
49
  executables: []
49
-
50
50
  extensions: []
51
-
52
51
  extra_rdoc_files: []
53
-
54
- files:
52
+ files:
55
53
  - .gitignore
56
54
  - Gemfile
57
55
  - LICENSE.md
@@ -65,36 +63,30 @@ files:
65
63
  - omniauth-fitbit.gemspec
66
64
  - spec/omniauth/strategies/fitbit_spec.rb
67
65
  - spec/spec_helper.rb
68
- has_rdoc: true
69
66
  homepage: http://github.com/tkgospodinov/omniauth-fitbit
70
67
  licenses: []
71
-
72
68
  post_install_message:
73
69
  rdoc_options: []
74
-
75
- require_paths:
70
+ require_paths:
76
71
  - lib
77
- required_ruby_version: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- version: "0"
84
- required_rubygems_version: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- version: "0"
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
91
84
  requirements: []
92
-
93
85
  rubyforge_project:
94
- rubygems_version: 1.3.6
86
+ rubygems_version: 1.8.23
95
87
  signing_key:
96
88
  specification_version: 3
97
89
  summary: OmniAuth strategy for Fitbit
98
- test_files:
90
+ test_files:
99
91
  - spec/omniauth/strategies/fitbit_spec.rb
100
92
  - spec/spec_helper.rb