reinforce 0.1.0
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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +56 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +12 -0
- data/generated/abilities.json +1 -0
- data/generated/ebps.json +1 -0
- data/generated/sbps.json +1 -0
- data/generated/upgrade.json +1 -0
- data/lib/reinforce/attributes/ability.rb +137 -0
- data/lib/reinforce/attributes/base.rb +63 -0
- data/lib/reinforce/attributes/collection.rb +155 -0
- data/lib/reinforce/attributes/entity.rb +85 -0
- data/lib/reinforce/attributes/squad.rb +52 -0
- data/lib/reinforce/attributes/upgrade.rb +41 -0
- data/lib/reinforce/command.rb +58 -0
- data/lib/reinforce/factory.rb +94 -0
- data/lib/reinforce/version.rb +5 -0
- data/lib/reinforce.rb +38 -0
- metadata +84 -0
data/lib/reinforce.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'reinforce/attributes/base'
|
4
|
+
|
5
|
+
require_relative 'reinforce/attributes/ability'
|
6
|
+
require_relative 'reinforce/attributes/entity'
|
7
|
+
require_relative 'reinforce/attributes/squad'
|
8
|
+
require_relative 'reinforce/attributes/upgrade'
|
9
|
+
|
10
|
+
require_relative 'reinforce/attributes/collection'
|
11
|
+
|
12
|
+
require_relative 'reinforce/command'
|
13
|
+
require_relative 'reinforce/factory'
|
14
|
+
|
15
|
+
require_relative 'reinforce/version'
|
16
|
+
|
17
|
+
module Reinforce
|
18
|
+
def self.root
|
19
|
+
File.expand_path('../', File.dirname(__FILE__))
|
20
|
+
end
|
21
|
+
|
22
|
+
# Takes a Vault Player and generates a build order
|
23
|
+
def self.build_for(player, build_number, with_cancellations: false)
|
24
|
+
Factory.new(player, build_number).build(with_cancellations:)
|
25
|
+
end
|
26
|
+
|
27
|
+
# Parses data into structures for build order generation
|
28
|
+
def self.generate(pretty: false)
|
29
|
+
[
|
30
|
+
Attributes::Ability,
|
31
|
+
Attributes::Entity,
|
32
|
+
Attributes::Squad,
|
33
|
+
Attributes::Upgrade
|
34
|
+
].each do |klass|
|
35
|
+
Attributes::Collection.generate_for(klass, pretty:)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: reinforce
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ryantaylor
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: vault_coh
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '6'
|
27
|
+
description: A tool for extracting accurate build orders from Company of Heroes 3
|
28
|
+
replay files.
|
29
|
+
email:
|
30
|
+
- 2320507+ryantaylor@users.noreply.github.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".rspec"
|
36
|
+
- ".rubocop.yml"
|
37
|
+
- ".ruby-version"
|
38
|
+
- CHANGELOG.md
|
39
|
+
- LICENSE.txt
|
40
|
+
- README.md
|
41
|
+
- Rakefile
|
42
|
+
- generated/abilities.json
|
43
|
+
- generated/ebps.json
|
44
|
+
- generated/sbps.json
|
45
|
+
- generated/upgrade.json
|
46
|
+
- lib/reinforce.rb
|
47
|
+
- lib/reinforce/attributes/ability.rb
|
48
|
+
- lib/reinforce/attributes/base.rb
|
49
|
+
- lib/reinforce/attributes/collection.rb
|
50
|
+
- lib/reinforce/attributes/entity.rb
|
51
|
+
- lib/reinforce/attributes/squad.rb
|
52
|
+
- lib/reinforce/attributes/upgrade.rb
|
53
|
+
- lib/reinforce/command.rb
|
54
|
+
- lib/reinforce/factory.rb
|
55
|
+
- lib/reinforce/version.rb
|
56
|
+
homepage: https://github.com/ryantaylor/reinforce
|
57
|
+
licenses:
|
58
|
+
- MIT
|
59
|
+
metadata:
|
60
|
+
allowed_push_host: https://rubygems.org
|
61
|
+
homepage_uri: https://github.com/ryantaylor/reinforce
|
62
|
+
source_code_uri: https://github.com/ryantaylor/reinforce
|
63
|
+
changelog_uri: https://github.com/ryantaylor/reinforce
|
64
|
+
rubygems_mfa_required: 'true'
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 3.1.0
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubygems_version: 3.5.11
|
81
|
+
signing_key:
|
82
|
+
specification_version: 4
|
83
|
+
summary: Extract build orders from CoH3 replay files.
|
84
|
+
test_files: []
|