dotka 1.0.3 → 1.0.4
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
- metadata +19 -9
- data/.gitignore +0 -1
- data/Gemfile +0 -5
- data/Gemfile.lock +0 -30
- data/LICENSE +0 -21
- data/README.md +0 -7
- data/Rakefile +0 -20
- data/docs/todo.md +0 -70
- data/dotka.gemspec +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff6460480b1f27c12279838a2d71cfae4d79b71b
|
|
4
|
+
data.tar.gz: 8eb9b5d23df0eac3792e1d4b6314f9d6de9e7ed3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 006262773f22e90b6e2f57009eaddc6eae4b44b5011f5f16c8cc2b73a9210abcf766771d0bc48a3a0d6f6578cf05b4216b0965a984038c589ca69fe02b3aedd2
|
|
7
|
+
data.tar.gz: c5ada66ab0f728077a8b609b36fdc2b1300390bc35354d5a9badd9d8f0b61ec5e1c38470973b1272d7088b399f58ae0cfcdb777a245d5850206186dc42087477
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dotka
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bound1ess
|
|
@@ -15,6 +15,9 @@ dependencies:
|
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.8'
|
|
20
|
+
- - ">="
|
|
18
21
|
- !ruby/object:Gem::Version
|
|
19
22
|
version: 1.8.1
|
|
20
23
|
type: :runtime
|
|
@@ -22,6 +25,9 @@ dependencies:
|
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
27
|
- - "~>"
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '1.8'
|
|
30
|
+
- - ">="
|
|
25
31
|
- !ruby/object:Gem::Version
|
|
26
32
|
version: 1.8.1
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
@@ -29,6 +35,9 @@ dependencies:
|
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
37
|
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '1.7'
|
|
40
|
+
- - ">="
|
|
32
41
|
- !ruby/object:Gem::Version
|
|
33
42
|
version: 1.7.2
|
|
34
43
|
type: :runtime
|
|
@@ -36,6 +45,9 @@ dependencies:
|
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
46
|
requirements:
|
|
38
47
|
- - "~>"
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '1.7'
|
|
50
|
+
- - ">="
|
|
39
51
|
- !ruby/object:Gem::Version
|
|
40
52
|
version: 1.7.2
|
|
41
53
|
- !ruby/object:Gem::Dependency
|
|
@@ -43,6 +55,9 @@ dependencies:
|
|
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
|
44
56
|
requirements:
|
|
45
57
|
- - "~>"
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '3.1'
|
|
60
|
+
- - ">="
|
|
46
61
|
- !ruby/object:Gem::Version
|
|
47
62
|
version: 3.1.0
|
|
48
63
|
type: :development
|
|
@@ -50,6 +65,9 @@ dependencies:
|
|
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
66
|
requirements:
|
|
52
67
|
- - "~>"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '3.1'
|
|
70
|
+
- - ">="
|
|
53
71
|
- !ruby/object:Gem::Version
|
|
54
72
|
version: 3.1.0
|
|
55
73
|
description: Makes interaction with Dota 2 WebAPI easy
|
|
@@ -58,19 +76,11 @@ executables: []
|
|
|
58
76
|
extensions: []
|
|
59
77
|
extra_rdoc_files: []
|
|
60
78
|
files:
|
|
61
|
-
- ".gitignore"
|
|
62
|
-
- Gemfile
|
|
63
|
-
- Gemfile.lock
|
|
64
|
-
- LICENSE
|
|
65
|
-
- README.md
|
|
66
|
-
- Rakefile
|
|
67
79
|
- data/game_modes.json
|
|
68
80
|
- data/heroes.json
|
|
69
81
|
- data/items.json
|
|
70
82
|
- data/lobbies.json
|
|
71
83
|
- data/regions.json
|
|
72
|
-
- docs/todo.md
|
|
73
|
-
- dotka.gemspec
|
|
74
84
|
- lib/dotka.rb
|
|
75
85
|
- lib/dotka/game_mode.rb
|
|
76
86
|
- lib/dotka/hero.rb
|
data/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/dotka-*.gem
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
GEM
|
|
2
|
-
remote: https://rubygems.org/
|
|
3
|
-
specs:
|
|
4
|
-
diff-lcs (1.2.5)
|
|
5
|
-
json (1.8.1)
|
|
6
|
-
mime-types (2.4.3)
|
|
7
|
-
netrc (0.9.0)
|
|
8
|
-
rest-client (1.7.2)
|
|
9
|
-
mime-types (>= 1.16, < 3.0)
|
|
10
|
-
netrc (~> 0.7)
|
|
11
|
-
rspec (3.1.0)
|
|
12
|
-
rspec-core (~> 3.1.0)
|
|
13
|
-
rspec-expectations (~> 3.1.0)
|
|
14
|
-
rspec-mocks (~> 3.1.0)
|
|
15
|
-
rspec-core (3.1.7)
|
|
16
|
-
rspec-support (~> 3.1.0)
|
|
17
|
-
rspec-expectations (3.1.2)
|
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.1.0)
|
|
20
|
-
rspec-mocks (3.1.3)
|
|
21
|
-
rspec-support (~> 3.1.0)
|
|
22
|
-
rspec-support (3.1.2)
|
|
23
|
-
|
|
24
|
-
PLATFORMS
|
|
25
|
-
ruby
|
|
26
|
-
|
|
27
|
-
DEPENDENCIES
|
|
28
|
-
json (~> 1.8.1)
|
|
29
|
-
rest-client (~> 1.7.2)
|
|
30
|
-
rspec (~> 3.1.0)
|
data/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014 bound1ess
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
data/Rakefile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
task :specs do
|
|
2
|
-
sh "rspec ./spec/ --color --format=documentation"
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
task :build do
|
|
6
|
-
sh "rm ./dotka-*.gem"
|
|
7
|
-
sh "gem build dotka.gemspec"
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
task :push do
|
|
11
|
-
sh "ls|grep dotka|xargs -n1 gem push"
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
task :deploy => [:build, :push] do
|
|
15
|
-
puts "Gem deployed!"
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
task :default => [:specs] do
|
|
19
|
-
puts "All done!"
|
|
20
|
-
end
|
data/docs/todo.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# TODO
|
|
2
|
-
|
|
3
|
-
- `match = Dotka.match(id)`:
|
|
4
|
-
- `match.id` returns an `integer`.
|
|
5
|
-
- `match.players` returns an `array` of `DotkaM::Player` instances.
|
|
6
|
-
- `match.winner` returns either `radiant` or `dire` (`string`).
|
|
7
|
-
- `match.duration` returns the match duration in seconds (`integer`).
|
|
8
|
-
- `match.start_time` returns the start time in seconds (`integer`, UTC).
|
|
9
|
-
- `match.lobby` returns an instance of `DotkaM::Lobby`.
|
|
10
|
-
- `match.game_mode` returns an instance of `DotkaM::GameMode`.
|
|
11
|
-
- `match.region` returns an instance of `DotkaM::Region`.
|
|
12
|
-
- *This method will return an instance of `DotkaM::Match`.*
|
|
13
|
-
|
|
14
|
-
- `matches = Dotka.matches(conditions)` where `conditions` is an `array` with these keys:
|
|
15
|
-
- `player_name` as a `string`.
|
|
16
|
-
- `hero_id` as an `integer`.
|
|
17
|
-
- `skill_type` as an `integer`: (0, 1, 2, 3) => (Any, Normal, High, Very High).
|
|
18
|
-
- `min_date` as an `integer` (UTC).
|
|
19
|
-
- `max_date` as an `integer` (UTC).
|
|
20
|
-
- `account_id` as an `integer` (for example, `70388657`).
|
|
21
|
-
- `start_at_match_id` as an `integer`.
|
|
22
|
-
- `amount_of_matches` as an `integer`.
|
|
23
|
-
- *This method will return an `array` of `DotkaM::Match` instances.*
|
|
24
|
-
|
|
25
|
-
- `player = Dotka.player(id)`:
|
|
26
|
-
- `player.account_id` returns an `integer`.
|
|
27
|
-
- `player.hero` returns an instance of `DotkaM::Hero`.
|
|
28
|
-
- `player.items` returns an `array` of `DotkaM::Item` instances.
|
|
29
|
-
- `player.kills` returns an `integer`.
|
|
30
|
-
- `player.deaths` returns an `integer`.
|
|
31
|
-
- `player.assists` returns an `integer`.
|
|
32
|
-
- `player.abandoned?` returns a `boolean`.
|
|
33
|
-
- `player.team` returns either `dire` or `radiant`.
|
|
34
|
-
- `player.gold` returns an `integer`.
|
|
35
|
-
- `player.last_hits` returns an `integer`.
|
|
36
|
-
- `player.denies` returns an `integer`.
|
|
37
|
-
- `player.gold_per_min` returns an `integer`.
|
|
38
|
-
- `player.xp_per_min` returns an `integer`.
|
|
39
|
-
- `player.hero_dmg` returns an `integer`.
|
|
40
|
-
- `player.tower_dmg` returns an `integer`.
|
|
41
|
-
- `player.hero_heal` returns an `integer`.
|
|
42
|
-
- `player.level` returns an `integer`.
|
|
43
|
-
- *This method will return an instance of `DotkaM::Player`.*
|
|
44
|
-
|
|
45
|
-
- `hero = Dotka.hero(id)`:
|
|
46
|
-
- `hero.id` returns an `integer`.
|
|
47
|
-
- `hero.name` returns a `string` (internal hero name).
|
|
48
|
-
- `hero.localized_name` returns a `string` (localized hero name in English).
|
|
49
|
-
- *This method will return an instance of `DotkaM::Hero`.*
|
|
50
|
-
|
|
51
|
-
- `item = Dotka.item(id)`:
|
|
52
|
-
- `item.id` returns an `integer`.
|
|
53
|
-
- `item.name` returns a `string` (internal item name).
|
|
54
|
-
- `item.localized_name` returns a `string` (localized item name in English).
|
|
55
|
-
- *This method will return an instance of `DotkaM::Item`.*
|
|
56
|
-
|
|
57
|
-
- `game_mode = Dotka.game_mode(id)`:
|
|
58
|
-
- `game_mode.id` returns an `integer`.
|
|
59
|
-
- `game_mode.localized_name` returns a `string` (localized game mode name in English).
|
|
60
|
-
- *This method will return an instance of `DotkaM::GameMode`.*
|
|
61
|
-
|
|
62
|
-
- `lobby = Dotka.lobby(id)`:
|
|
63
|
-
- `lobby.id` returns an `integer`.
|
|
64
|
-
- `lobby.localized_name` returns a `string` (localized lobby name in English).
|
|
65
|
-
- *This method will return an instance of `DotkaM::Lobby`.*
|
|
66
|
-
|
|
67
|
-
- `region = Dotka.region(id)`:
|
|
68
|
-
- `region.id` returns an `integer`.
|
|
69
|
-
- `region.localized_name` returns a `string` (localized region name in English).
|
|
70
|
-
- *This method will return an instance of `DotkaM::Region`.*
|
data/dotka.gemspec
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Gem::Specification.new do |spec|
|
|
2
|
-
spec.name = 'dotka'
|
|
3
|
-
spec.version = '1.0.3'
|
|
4
|
-
spec.date = '2014-12-11'
|
|
5
|
-
spec.summary = 'Dota 2 WebAPI Wrapper'
|
|
6
|
-
spec.description = 'Makes interaction with Dota 2 WebAPI easy'
|
|
7
|
-
spec.authors = ['bound1ess']
|
|
8
|
-
spec.email = 'bound1ess.dev@gmail.com'
|
|
9
|
-
spec.files = `git ls-files`.split($/)
|
|
10
|
-
spec.test_files = spec.files.grep(%r{^spec/})
|
|
11
|
-
spec.license = 'MIT'
|
|
12
|
-
spec.homepage = 'https://github.com/bound1ess/dotka'
|
|
13
|
-
spec.required_ruby_version = '>= 2.0.0'
|
|
14
|
-
|
|
15
|
-
spec.add_dependency 'json', '~> 1.8.1'
|
|
16
|
-
spec.add_dependency 'rest-client', '~> 1.7.2'
|
|
17
|
-
|
|
18
|
-
spec.add_development_dependency 'rspec', '~> 3.1.0'
|
|
19
|
-
end
|