omniauth-steam 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ And then integrate the strategy into your middleware:
14
14
 
15
15
  ```ruby
16
16
  use OmniAuth::Builder do
17
- provider :steam, ENV['STEAM_WEB_API_KEY']
17
+ provider :steam, "my-steam-web-api-key"
18
18
  end
19
19
  ```
20
20
 
@@ -22,7 +22,7 @@ If you are using Rails, you may want to add it to the middleware stack:
22
22
 
23
23
  ```ruby
24
24
  Rails.application.config.middleware.use OmniAuth::Builder do
25
- provider :steam, ENV['STEAM_WEB_API_KEY']
25
+ provider :steam, "my-steam-web-api-key"
26
26
  end
27
27
  ```
28
28
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Steam
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -19,7 +19,8 @@ module OmniAuth
19
19
  "location" => [player["loccityid"], player["locstatecode"], player["loccountrycode"]].compact.join(", "),
20
20
  "image" => player["avatarmedium"],
21
21
  "urls" => {
22
- "Profile" => player["profileurl"]
22
+ "Profile" => player["profileurl"],
23
+ "FriendList" => friend_list_url
23
24
  }
24
25
  }
25
26
  end
@@ -45,6 +46,10 @@ module OmniAuth
45
46
  def player_profile_uri
46
47
  URI.parse("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=#{options.api_key}&steamids=#{steam_id}")
47
48
  end
49
+
50
+ def friend_list_url
51
+ URI.parse("http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=#{options.api_key}&steamid=#{steam_id}&relationship=friend")
52
+ end
48
53
  end
49
54
  end
50
55
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.rubyforge_project = "omniauth-steam"
14
14
 
15
- s.files = `git ls-files`.split("\n")
15
+ s.files = `git ls-files`.split("\n") - `git ls-files examples`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,38 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-steam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
4
  prerelease:
5
+ version: 1.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rodrigo Navarro
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-openid
16
- requirement: &2157330620 !ruby/object:Gem::Requirement
16
+ type: :runtime
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
17
22
  none: false
23
+ version_requirements: !ruby/object:Gem::Requirement
18
24
  requirements:
19
25
  - - ! '>='
20
26
  - !ruby/object:Gem::Version
21
27
  version: '0'
22
- type: :runtime
28
+ none: false
23
29
  prerelease: false
24
- version_requirements: *2157330620
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: multi_json
27
- requirement: &2157379280 !ruby/object:Gem::Requirement
32
+ type: :runtime
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
28
38
  none: false
39
+ version_requirements: !ruby/object:Gem::Requirement
29
40
  requirements:
30
41
  - - ! '>='
31
42
  - !ruby/object:Gem::Version
32
43
  version: '0'
33
- type: :runtime
44
+ none: false
34
45
  prerelease: false
35
- version_requirements: *2157379280
36
46
  description:
37
47
  email:
38
48
  - rnavarro1@gmail.com
@@ -55,26 +65,26 @@ rdoc_options: []
55
65
  require_paths:
56
66
  - lib
57
67
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
68
  requirements:
60
69
  - - ! '>='
61
70
  - !ruby/object:Gem::Version
62
- version: '0'
63
71
  segments:
64
72
  - 0
65
- hash: 1028665889094254047
66
- required_rubygems_version: !ruby/object:Gem::Requirement
73
+ hash: -1266463752815544285
74
+ version: '0'
67
75
  none: false
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
77
  requirements:
69
78
  - - ! '>='
70
79
  - !ruby/object:Gem::Version
71
- version: '0'
72
80
  segments:
73
81
  - 0
74
- hash: 1028665889094254047
82
+ hash: -1266463752815544285
83
+ version: '0'
84
+ none: false
75
85
  requirements: []
76
86
  rubyforge_project: omniauth-steam
77
- rubygems_version: 1.8.11
87
+ rubygems_version: 1.8.23
78
88
  signing_key:
79
89
  specification_version: 3
80
90
  summary: Steam strategy for OmniAuth