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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/d2ad +1 -1
  3. data/lib/d2ad.rb +3 -1
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db8005eae12d3a84a62eb14f9a01a2f51c4997f6
4
- data.tar.gz: 0cde04a123ef3342360b7a069211cc2ad64645e0
3
+ metadata.gz: ddb97ebc492cc7cbd3be8c49157bd6af7c1732d3
4
+ data.tar.gz: 25534d21bc128d2f611b20748c909647e5833371
5
5
  SHA512:
6
- metadata.gz: 9d0f5d0a1529b98a23ad69307bdb280bc85d58fe00bc85d23b867c23f212b9e934d75f86a02d68eb7604db6e1019ddc2b39a0ade75f15a6c81579793b0b21fd4
7
- data.tar.gz: 5925659f8a66444c47db883ef1695f71cbc9fe6892a85c13a2fa88b6ca8cca1ac36baf80c3118dd05902e61af013f334d8ff0b27813060ebd4ad88569b00e068
6
+ metadata.gz: 2a0cc456eeb84d3810a9e8e7005d3881bb74ecafa862ca63643d1a4bbd5cd3e1da81e8cca9408306128e8d7c2924e7e0c9c31252877a45ed066a17526e177dbe
7
+ data.tar.gz: 546163af8b97a3bce20e82c6f290eb6f86816f9a7602d1592368e5ca953a9c4657fc4fa561681e0f89aecf2e673e5a6d4331c71b34651cae0f89de8f131f25fa
data/bin/d2ad CHANGED
@@ -32,7 +32,7 @@ class D2ADOpts
32
32
  end
33
33
 
34
34
  def self.help
35
- "Dota Ability Draft Analyzer is here to help you.\n\n"\
35
+ "Dota 2 Ability Draft Analyzer is here to help you.\n\n"\
36
36
  " Usage:\n"\
37
37
  " d2ad command [arguments...] [options...]\n\n"\
38
38
  " Commands:\n"\
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
- abilities = JSON.parse(File.read('lib/d2ad/abilities.json'))
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.0
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.1
47
+ rubygems_version: 2.2.2
47
48
  signing_key:
48
49
  specification_version: 4
49
50
  summary: Dota 2 Ability Draft Analyzer