d2ad 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/d2ad +74 -0
- data/lib/d2ad.rb +27 -0
- data/lib/d2ad/abilities.json +2192 -0
- data/lib/d2ad/dota-api.rb +17 -0
- metadata +50 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
module DotaAPI
|
2
|
+
require 'net/http'
|
3
|
+
|
4
|
+
VERSION = '001'
|
5
|
+
|
6
|
+
def self.query(api_key, resource, params={})
|
7
|
+
uri = URI("https://api.steampowered.com/IDOTA2Match_570/#{resource}/V#{VERSION}/")
|
8
|
+
|
9
|
+
par = {}
|
10
|
+
par[:key] = api_key
|
11
|
+
par.merge!(params)
|
12
|
+
uri.query = URI.encode_www_form(par)
|
13
|
+
|
14
|
+
res = Net::HTTP.get_response(uri)
|
15
|
+
res.body if res.is_a?(Net::HTTPSuccess)
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: d2ad
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicholas Scheurich
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Shows information about what abilities were upgraded at what levels for
|
14
|
+
each player in a Dota 2 match. It can also return recent match IDs for a player.
|
15
|
+
Handy for analyzing Ability Draft matches!
|
16
|
+
email: nick@scheurich.me
|
17
|
+
executables:
|
18
|
+
- d2ad
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- bin/d2ad
|
23
|
+
- lib/d2ad.rb
|
24
|
+
- lib/d2ad/abilities.json
|
25
|
+
- lib/d2ad/dota-api.rb
|
26
|
+
homepage: http://gitub.com/ngscheurich/d2ad
|
27
|
+
licenses:
|
28
|
+
- MIT
|
29
|
+
metadata: {}
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubyforge_project:
|
46
|
+
rubygems_version: 2.2.1
|
47
|
+
signing_key:
|
48
|
+
specification_version: 4
|
49
|
+
summary: Dota 2 Ability Draft Analyzer
|
50
|
+
test_files: []
|