open_dota_api 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b3fb07b5b8dff4bb3ad89a8d3f7564aa9af5e66
4
- data.tar.gz: 5aaafc7b6a1d5aa5ffa39d01aa4a510b53a52b2b
3
+ metadata.gz: 26b5314aeee9b4bb08ed2c8b16729d9d9257cd11
4
+ data.tar.gz: 37724f8357207da15240781468a9fa54fc303b92
5
5
  SHA512:
6
- metadata.gz: 4b77d3d1701b986a56004a2204e6bba657cae959aa82dbb303935cf195bcdf595056205689278d5644728b17af9eafad107c770e499109518ae4bb47368d3f1e
7
- data.tar.gz: 58b5cf4b4a761c6f2dbb026a77b7c67e82ffe1fbacd9efb3475d61196fec146c08488c0b6b1ba3dc4be9e5fcfb882f024c2b6ef170e9275ee4b1e3c31120588e
6
+ metadata.gz: 9c8f25ea65b0cf61b8312e935ce3a5f93fc8263ffbd6662eb9e55da987c1a75aac078bb058a43d8b701bf0ee6e971fcbc380dbac47cd862670cef13de1c90aad
7
+ data.tar.gz: 18d14e7aceb9ef766a731e4b364b46e8eb14e84e406493226eb5143e45495452fce99bc09353f35c93f49cad476663310b5eaba03bd50367be9067801824d63d
@@ -86,6 +86,22 @@ module OpenDotaApi
86
86
  def hero_healing
87
87
  data['hero_healing']
88
88
  end
89
+
90
+ def last_hits
91
+ data['last_hits']
92
+ end
93
+
94
+ def firstblood_claimed
95
+ data['firstblood_claimed']
96
+ end
97
+
98
+ def hero_damage
99
+ data['hero_damage']
100
+ end
101
+
102
+ def teamfight_participation
103
+ data['teamfight_participation']
104
+ end
89
105
  end
90
106
  end
91
107
  end
@@ -1,3 +1,3 @@
1
1
  module OpenDotaApi
2
- VERSION = '0.3.1'.freeze
2
+ VERSION = '0.3.2'.freeze
3
3
  end
@@ -22,6 +22,10 @@ describe OpenDotaApi::Matches::Player do
22
22
  let(:tower_kills) { 0 }
23
23
  let(:roshan_kills) { 0 }
24
24
  let(:hero_healing) { 606 }
25
+ let(:last_hits) { 73 }
26
+ let(:firstblood_claimed) { nil }
27
+ let(:hero_damage) { 13_406 }
28
+ let(:teamfight_participation) { nil }
25
29
 
26
30
  let(:match_file) { File.read('spec/data/match.json') }
27
31
  let(:response_json) { JSON.parse(match_file) }
@@ -121,5 +125,21 @@ describe OpenDotaApi::Matches::Player do
121
125
  it 'returns hero healing' do
122
126
  expect(player.hero_healing).to eq hero_healing
123
127
  end
128
+
129
+ it 'returns last hits' do
130
+ expect(player.last_hits).to eq last_hits
131
+ end
132
+
133
+ it 'returns firstblood claimed' do
134
+ expect(player.firstblood_claimed).to eq firstblood_claimed
135
+ end
136
+
137
+ it 'returns hero damage' do
138
+ expect(player.hero_damage).to eq hero_damage
139
+ end
140
+
141
+ it 'returns teamfight participation' do
142
+ expect(player.teamfight_participation).to eq teamfight_participation
143
+ end
124
144
  end
125
145
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_dota_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Oslavskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-27 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty