d2ad 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/d2ad +1 -1
- data/lib/d2ad.rb +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddb97ebc492cc7cbd3be8c49157bd6af7c1732d3
|
4
|
+
data.tar.gz: 25534d21bc128d2f611b20748c909647e5833371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a0cc456eeb84d3810a9e8e7005d3881bb74ecafa862ca63643d1a4bbd5cd3e1da81e8cca9408306128e8d7c2924e7e0c9c31252877a45ed066a17526e177dbe
|
7
|
+
data.tar.gz: 546163af8b97a3bce20e82c6f290eb6f86816f9a7602d1592368e5ca953a9c4657fc4fa561681e0f89aecf2e673e5a6d4331c71b34651cae0f89de8f131f25fa
|
data/bin/d2ad
CHANGED
data/lib/d2ad.rb
CHANGED
@@ -10,7 +10,9 @@ module D2AD
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.abilities(api_key, match_id)
|
13
|
-
|
13
|
+
#this assumes we're being called from a script in the 'bin' directory of this gem
|
14
|
+
gem_dir = Dir.getwd.chomp('/bin')
|
15
|
+
abilities = JSON.parse(File.read(gem_dir + '/lib/d2ad/abilities.json'))
|
14
16
|
match_details = JSON.parse(DotaAPI.query(api_key, 'GetMatchDetails', { match_id: match_id }))
|
15
17
|
|
16
18
|
match_details['result']['players'].each do |p|
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: d2ad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Scheurich
|
8
|
+
- Joshua Wascom
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
@@ -43,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
44
|
version: '0'
|
44
45
|
requirements: []
|
45
46
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.2.
|
47
|
+
rubygems_version: 2.2.2
|
47
48
|
signing_key:
|
48
49
|
specification_version: 4
|
49
50
|
summary: Dota 2 Ability Draft Analyzer
|