dota 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=2FBBA83745F494FAE688AFB8463CD4FC&match_id=789645621
5
+ uri: https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/?key=<STEAM_API_KEY>&match_id=789645621
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=2FBBA83745F494FAE688AFB8463CD4FC
5
+ uri: https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/?key=<STEAM_API_KEY>
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.steampowered.com/IEconDOTA2_570/GetRarities/V001/?key=2FBBA83745F494FAE688AFB8463CD4FC&language=en
5
+ uri: https://api.steampowered.com/IEconDOTA2_570/GetRarities/V001/?key=<STEAM_API_KEY>&language=en
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/V001/?key=2FBBA83745F494FAE688AFB8463CD4FC&start_at_team_id=1375614&teams_requested=1
5
+ uri: https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/V001/?key=<STEAM_API_KEY>&start_at_team_id=1375614&teams_requested=1
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/V001/?key=2FBBA83745F494FAE688AFB8463CD4FC
5
+ uri: https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/V001/?key=<STEAM_API_KEY>
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -1,3 +1,6 @@
1
+ require 'dotenv'
2
+ Dotenv.load
3
+
1
4
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
2
5
 
3
6
  require 'dota'
@@ -8,7 +11,7 @@ module SpecHelper
8
11
 
9
12
  @client = Dota::API::Client.new
10
13
  @client.configure do |config|
11
- config.api_key = "2FBBA83745F494FAE688AFB8463CD4FC"
14
+ config.api_key = ENV.fetch("STEAM_API_KEY")
12
15
  end
13
16
  @client
14
17
  end
@@ -5,6 +5,7 @@ VCR.configure do |c|
5
5
  c.hook_into :webmock
6
6
  c.cassette_library_dir = File.join(File.dirname(__FILE__), "..", "fixtures", "vcr_cassettes")
7
7
  c.configure_rspec_metadata!
8
+ c.filter_sensitive_data("<STEAM_API_KEY>") { ENV.fetch("STEAM_API_KEY") }
8
9
 
9
10
  c.before_record do |i|
10
11
  i.response.body.force_encoding("UTF-8")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dota
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinni Carlo Caños
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: dotenv
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: vcr
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -129,6 +143,7 @@ executables: []
129
143
  extensions: []
130
144
  extra_rdoc_files: []
131
145
  files:
146
+ - ".env.sample"
132
147
  - ".gitignore"
133
148
  - ".rspec"
134
149
  - ".travis.yml"
@@ -145,6 +160,10 @@ files:
145
160
  - lib/dota/api/hero.rb
146
161
  - lib/dota/api/item.rb
147
162
  - lib/dota/api/league.rb
163
+ - lib/dota/api/live_match.rb
164
+ - lib/dota/api/live_match/player.rb
165
+ - lib/dota/api/live_match/scoreboard.rb
166
+ - lib/dota/api/live_match/side.rb
148
167
  - lib/dota/api/match.rb
149
168
  - lib/dota/api/match/draft.rb
150
169
  - lib/dota/api/match/player.rb
@@ -157,6 +176,10 @@ files:
157
176
  - spec/dota/api/hero_spec.rb
158
177
  - spec/dota/api/item_spec.rb
159
178
  - spec/dota/api/league_spec.rb
179
+ - spec/dota/api/live_match/player_spec.rb
180
+ - spec/dota/api/live_match/scoreboard_spec.rb
181
+ - spec/dota/api/live_match/side_spec.rb
182
+ - spec/dota/api/live_match_spec.rb
160
183
  - spec/dota/api/match/draft_spec.rb
161
184
  - spec/dota/api/match/player_spec.rb
162
185
  - spec/dota/api/match_spec.rb
@@ -164,6 +187,7 @@ files:
164
187
  - spec/dota_spec.rb
165
188
  - spec/fixtures/vcr_cassettes/GetFriendList.yml
166
189
  - spec/fixtures/vcr_cassettes/GetLeagueListing.yml
190
+ - spec/fixtures/vcr_cassettes/GetLiveLeagueGames.yml
167
191
  - spec/fixtures/vcr_cassettes/GetMatchDetails.yml
168
192
  - spec/fixtures/vcr_cassettes/GetMatchHistory.yml
169
193
  - spec/fixtures/vcr_cassettes/GetRarities.yml
@@ -191,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
215
  version: '0'
192
216
  requirements: []
193
217
  rubyforge_project:
194
- rubygems_version: 2.4.4
218
+ rubygems_version: 2.2.2
195
219
  signing_key:
196
220
  specification_version: 4
197
221
  summary: Ruby client for the Dota 2 WebAPI
@@ -201,6 +225,10 @@ test_files:
201
225
  - spec/dota/api/hero_spec.rb
202
226
  - spec/dota/api/item_spec.rb
203
227
  - spec/dota/api/league_spec.rb
228
+ - spec/dota/api/live_match/player_spec.rb
229
+ - spec/dota/api/live_match/scoreboard_spec.rb
230
+ - spec/dota/api/live_match/side_spec.rb
231
+ - spec/dota/api/live_match_spec.rb
204
232
  - spec/dota/api/match/draft_spec.rb
205
233
  - spec/dota/api/match/player_spec.rb
206
234
  - spec/dota/api/match_spec.rb
@@ -208,6 +236,7 @@ test_files:
208
236
  - spec/dota_spec.rb
209
237
  - spec/fixtures/vcr_cassettes/GetFriendList.yml
210
238
  - spec/fixtures/vcr_cassettes/GetLeagueListing.yml
239
+ - spec/fixtures/vcr_cassettes/GetLiveLeagueGames.yml
211
240
  - spec/fixtures/vcr_cassettes/GetMatchDetails.yml
212
241
  - spec/fixtures/vcr_cassettes/GetMatchHistory.yml
213
242
  - spec/fixtures/vcr_cassettes/GetRarities.yml