sc2ai 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/data/stableid.json +424 -2562
  3. data/data/versions.json +8 -0
  4. data/lib/docker_build/Dockerfile.ruby +1 -1
  5. data/lib/sc2ai/api/ability_id.rb +12 -314
  6. data/lib/sc2ai/api/buff_id.rb +9 -16
  7. data/lib/sc2ai/api/data.rb +1 -4
  8. data/lib/sc2ai/api/tech_tree.rb +35 -0
  9. data/lib/sc2ai/api/tech_tree_data.rb +14 -9
  10. data/lib/sc2ai/api/unit_type_id.rb +6 -58
  11. data/lib/sc2ai/api/upgrade_id.rb +9 -9
  12. data/lib/sc2ai/connection/requests.rb +34 -16
  13. data/lib/sc2ai/data.rb +101 -0
  14. data/lib/sc2ai/local_play/match.rb +1 -3
  15. data/lib/sc2ai/player/actions.rb +8 -4
  16. data/lib/sc2ai/player/debug.rb +2 -3
  17. data/lib/sc2ai/player/game_state.rb +36 -5
  18. data/lib/sc2ai/player/geometry.rb +138 -55
  19. data/lib/sc2ai/player/previous_state.rb +2 -1
  20. data/lib/sc2ai/player/units.rb +66 -3
  21. data/lib/sc2ai/player.rb +5 -3
  22. data/lib/sc2ai/protocol/_meta_documentation.rb +18 -0
  23. data/lib/sc2ai/protocol/extensions/ability_remapable.rb +22 -0
  24. data/lib/sc2ai/protocol/extensions/point.rb +3 -1
  25. data/lib/sc2ai/protocol/extensions/point_2_d.rb +1 -1
  26. data/lib/sc2ai/protocol/extensions/point_distance.rb +11 -0
  27. data/lib/sc2ai/protocol/extensions/position.rb +48 -13
  28. data/lib/sc2ai/protocol/extensions/unit.rb +54 -3
  29. data/lib/sc2ai/protocol/extensions/unit_type.rb +9 -0
  30. data/lib/sc2ai/unit_group/action_ext.rb +3 -3
  31. data/lib/sc2ai/unit_group/filter_ext.rb +33 -7
  32. data/lib/sc2ai/unit_group/geo_ext.rb +28 -0
  33. data/lib/sc2ai/unit_group.rb +3 -0
  34. data/lib/sc2ai/version.rb +1 -1
  35. data/lib/templates/new/run_example_match.rb.tt +1 -1
  36. data/sig/sc2ai.rbs +653 -567
  37. metadata +22 -31
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sc2ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dyson Returns
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-09 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.9'
19
+ version: 2.14.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.9'
26
+ version: 2.14.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: async-websocket
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.26.0
33
+ version: 0.27.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.26.0
40
+ version: 0.27.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: google-protobuf
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.25.3
47
+ version: 4.27.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.25.3
54
+ version: 4.27.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: async-process
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.3.1
83
- - !ruby/object:Gem::Dependency
84
- name: perfect-shape
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.0.8
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 1.0.8
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: numo-narray
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +114,14 @@ dependencies:
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 0.28.1
117
+ version: 0.29.0
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: 0.28.1
124
+ version: 0.29.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: sc2ai-kdtree
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -156,28 +142,28 @@ dependencies:
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '13.1'
145
+ version: '13.2'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '13.1'
152
+ version: '13.2'
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: yard
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '0.9'
159
+ version: 0.9.36
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '0.9'
166
+ version: 0.9.36
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: webrick
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +198,14 @@ dependencies:
212
198
  requirements:
213
199
  - - "~>"
214
200
  - !ruby/object:Gem::Version
215
- version: '1.34'
201
+ version: '1.39'
216
202
  type: :development
217
203
  prerelease: false
218
204
  version_requirements: !ruby/object:Gem::Requirement
219
205
  requirements:
220
206
  - - "~>"
221
207
  - !ruby/object:Gem::Version
222
- version: '1.34'
208
+ version: '1.39'
223
209
  - !ruby/object:Gem::Dependency
224
210
  name: factory_bot
225
211
  requirement: !ruby/object:Gem::Requirement
@@ -321,6 +307,7 @@ files:
321
307
  - lib/sc2ai/connection/connection_listener.rb
322
308
  - lib/sc2ai/connection/requests.rb
323
309
  - lib/sc2ai/connection/status_listener.rb
310
+ - lib/sc2ai/data.rb
324
311
  - lib/sc2ai/local_play/client.rb
325
312
  - lib/sc2ai/local_play/client/configurable_options.rb
326
313
  - lib/sc2ai/local_play/client_manager.rb
@@ -343,12 +330,15 @@ files:
343
330
  - lib/sc2ai/protocol/data_pb.rb
344
331
  - lib/sc2ai/protocol/debug_pb.rb
345
332
  - lib/sc2ai/protocol/error_pb.rb
333
+ - lib/sc2ai/protocol/extensions/ability_remapable.rb
346
334
  - lib/sc2ai/protocol/extensions/color.rb
347
335
  - lib/sc2ai/protocol/extensions/point.rb
348
336
  - lib/sc2ai/protocol/extensions/point_2_d.rb
337
+ - lib/sc2ai/protocol/extensions/point_distance.rb
349
338
  - lib/sc2ai/protocol/extensions/position.rb
350
339
  - lib/sc2ai/protocol/extensions/power_source.rb
351
340
  - lib/sc2ai/protocol/extensions/unit.rb
341
+ - lib/sc2ai/protocol/extensions/unit_type.rb
352
342
  - lib/sc2ai/protocol/extensions/unit_type_data.rb
353
343
  - lib/sc2ai/protocol/query_pb.rb
354
344
  - lib/sc2ai/protocol/raw_pb.rb
@@ -359,6 +349,7 @@ files:
359
349
  - lib/sc2ai/unit_group.rb
360
350
  - lib/sc2ai/unit_group/action_ext.rb
361
351
  - lib/sc2ai/unit_group/filter_ext.rb
352
+ - lib/sc2ai/unit_group/geo_ext.rb
362
353
  - lib/sc2ai/version.rb
363
354
  - lib/templates/ladderzip/bin/ladder.tt
364
355
  - lib/templates/new/.ladderignore
@@ -399,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
390
  - !ruby/object:Gem::Version
400
391
  version: '0'
401
392
  requirements: []
402
- rubygems_version: 3.5.3
393
+ rubygems_version: 3.5.11
403
394
  signing_key:
404
395
  specification_version: 4
405
396
  summary: STARCRAFT® II AI API