Icarus-Mod-Tools 2.0.1 → 2.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
- data/{CHANGES.md → CHANGELOG.md} +12 -0
- data/Gemfile.lock +2 -6
- data/{LICENSE.md → LICENSE} +0 -0
- data/README.md +4 -1
- data/icarus-mod-tools.gemspec +1 -1
- data/lib/icarus/mod/tools/modinfo.rb +12 -3
- data/lib/icarus/mod/tools/toolinfo.rb +4 -0
- data/lib/icarus/mod/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a8e4ec465207b44351871c47eb95040d4f2181c96795e1f7ad94d7fd6d44692
|
4
|
+
data.tar.gz: bf5a16e192381b5632e0dfeaaf0039ab6c79625a4f9c1a104300bdd68cd0d3c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5186b93fcc8952a5560920846a998707424411c0b4f48f83e22f6679a4d7d10a00d5725d63cf2a59e07b1eb6afdc938bb2beaca8efef6b31fff1387fd853cd7c
|
7
|
+
data.tar.gz: fb86287d5f526100d5e888471e006542808b84247c7c59dcbf578d79a6028a070af1fd4f4c119f2c068b12b6286d55d99195049e988c72e8b24005a60ad49e00
|
data/{CHANGES.md → CHANGELOG.md}
RENAMED
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## History (reverse chronological order)
|
6
6
|
|
7
|
+
## [2.0.2](https://github.com/DonovanMods/icarus-mod-tools/compare/v2.0.1...v2.0.2) (2023-02-04)
|
8
|
+
|
9
|
+
|
10
|
+
### Bug Fixes
|
11
|
+
|
12
|
+
* Create fileType and fileURL along with files ([a5294a4](https://github.com/DonovanMods/icarus-mod-tools/commit/a5294a479bcc68f6e4125f5062db9a0dbd48bdf8))
|
13
|
+
* Create fileType and fileURL along with files ([db5620f](https://github.com/DonovanMods/icarus-mod-tools/commit/db5620fafefd750196d6470f00e4000971adae1f))
|
14
|
+
|
15
|
+
### v2.0 - 2023-02-03
|
16
|
+
|
17
|
+
- Converts to new `files` object, replacing fileType and fileURL
|
18
|
+
|
7
19
|
### v1.9 - 2023-01-28
|
8
20
|
|
9
21
|
- Renamed `Progs` to `Tools`
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
Icarus-Mod-Tools (2.0.
|
4
|
+
Icarus-Mod-Tools (2.0.4)
|
5
5
|
google-cloud-firestore (~> 2.7)
|
6
6
|
octokit (~> 6.0)
|
7
7
|
paint (~> 2.3)
|
@@ -50,7 +50,6 @@ GEM
|
|
50
50
|
google-cloud-location (0.3.0)
|
51
51
|
gapic-common (>= 0.16.0, < 2.a)
|
52
52
|
google-cloud-errors (~> 1.0)
|
53
|
-
google-protobuf (3.21.12-x86_64-darwin)
|
54
53
|
google-protobuf (3.21.12-x86_64-linux)
|
55
54
|
googleapis-common-protos (1.4.0)
|
56
55
|
google-protobuf (~> 3.14)
|
@@ -65,9 +64,6 @@ GEM
|
|
65
64
|
multi_json (~> 1.11)
|
66
65
|
os (>= 0.9, < 2.0)
|
67
66
|
signet (>= 0.16, < 2.a)
|
68
|
-
grpc (1.51.0-x86_64-darwin)
|
69
|
-
google-protobuf (~> 3.21)
|
70
|
-
googleapis-common-protos-types (~> 1.0)
|
71
67
|
grpc (1.51.0-x86_64-linux)
|
72
68
|
google-protobuf (~> 3.21)
|
73
69
|
googleapis-common-protos-types (~> 1.0)
|
@@ -177,4 +173,4 @@ DEPENDENCIES
|
|
177
173
|
rubocop-rspec (~> 2.16)
|
178
174
|
|
179
175
|
BUNDLED WITH
|
180
|
-
2.3.
|
176
|
+
2.3.26
|
data/{LICENSE.md → LICENSE}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -33,8 +33,10 @@ Create a file called `.imtconfig.json` in your home directory with the following
|
|
33
33
|
},
|
34
34
|
"collections": {
|
35
35
|
"modinfo": "meta/modinfo",
|
36
|
+
"toolinfo": "meta/toolinfo",
|
36
37
|
"repositories": "meta/repos",
|
37
|
-
"mods": "mods"
|
38
|
+
"mods": "mods",
|
39
|
+
"tools": "tools"
|
38
40
|
}
|
39
41
|
},
|
40
42
|
"github": {
|
@@ -73,6 +75,7 @@ Commands:
|
|
73
75
|
imt add modinfo # Adds an entry to 'meta/modinfo/list'
|
74
76
|
imt add toolinfo # Adds an entry to 'meta/toolinfo/list'
|
75
77
|
imt add repos # Adds an entry to 'meta/repos/list'
|
78
|
+
imt add mod <filename> # Adds an entry to 'mods' when given a modinfo.json file
|
76
79
|
|
77
80
|
Options:
|
78
81
|
-C, [--config=CONFIG] # Path to the config file
|
data/icarus-mod-tools.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
17
|
spec.metadata["source_code_uri"] = spec.homepage
|
18
|
-
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/
|
18
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
|
19
19
|
spec.metadata["rubygems_mfa_required"] = "true"
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
@@ -9,15 +9,24 @@ module Icarus
|
|
9
9
|
class Modinfo < Baseinfo
|
10
10
|
HASHKEYS = %i[name author version compatibility description long_description files fileType fileURL imageURL readmeURL].freeze
|
11
11
|
|
12
|
+
# rubocop:disable Metrics/AbcSize
|
12
13
|
def to_h
|
13
|
-
HASHKEYS.each_with_object({}) do |key, hash|
|
14
|
-
next if
|
15
|
-
next if %i[fileType fileURL].include?(key.to_sym) && !@data[:files].nil?
|
14
|
+
db_hash = HASHKEYS.each_with_object({}) do |key, hash|
|
15
|
+
# next if %i[fileType fileURL].include?(key.to_sym)
|
16
16
|
next if key == :long_description && @data[:long_description].nil?
|
17
17
|
|
18
18
|
hash[key] = @data[key]
|
19
19
|
end
|
20
|
+
|
21
|
+
db_hash[:files] = { @data[:fileType].downcase.to_sym => @data[:fileURL] } if db_hash[:files].nil? && !@data[:fileType].nil?
|
22
|
+
|
23
|
+
# Remove this once all mods have been updated
|
24
|
+
db_hash[:fileType] = db_hash[:files].keys.first.to_s if db_hash[:fileType].nil? && !db_hash[:files].nil?
|
25
|
+
db_hash[:fileURL] = db_hash[:files].values.first if db_hash[:fileURL].nil? && !db_hash[:files].nil?
|
26
|
+
|
27
|
+
db_hash
|
20
28
|
end
|
29
|
+
# rubocop:enable Metrics/AbcSize
|
21
30
|
|
22
31
|
def file_types
|
23
32
|
files&.keys || [@data[:fileType] || "pak"]
|
data/lib/icarus/mod/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Icarus-Mod-Tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donovan Young
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-firestore
|
@@ -76,11 +76,11 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- ".rspec"
|
78
78
|
- ".rubocop.yml"
|
79
|
-
-
|
79
|
+
- CHANGELOG.md
|
80
80
|
- Gemfile
|
81
81
|
- Gemfile.lock
|
82
82
|
- Guardfile
|
83
|
-
- LICENSE
|
83
|
+
- LICENSE
|
84
84
|
- README.md
|
85
85
|
- Rakefile
|
86
86
|
- exe/imt
|
@@ -113,7 +113,7 @@ licenses: []
|
|
113
113
|
metadata:
|
114
114
|
homepage_uri: https://github.com/DonovanMods/icarus-mod-tools
|
115
115
|
source_code_uri: https://github.com/DonovanMods/icarus-mod-tools
|
116
|
-
changelog_uri: https://github.com/DonovanMods/icarus-mod-tools/blob/main/
|
116
|
+
changelog_uri: https://github.com/DonovanMods/icarus-mod-tools/blob/main/CHANGELOG.md
|
117
117
|
rubygems_mfa_required: 'true'
|
118
118
|
post_install_message:
|
119
119
|
rdoc_options: []
|