Icarus-Mod-Tools 2.0.1 → 2.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bc9f1796a92ebce3c0cdac2b87012e3c411f2f04e2308dc725872daf08846416
4
- data.tar.gz: 707de57a940c21f20f2c47853f8083a121fceed70b6a5d8bbc358038c608a805
3
+ metadata.gz: 9c66a2adaabe6da3d7ef43db063f7d2924e182e574b4d9d77c1786a15aea1c8b
4
+ data.tar.gz: d28b3240fbfc0670ab652ac131bfad396f1e6e09e30fbd7c5c3dace8c51e1784
5
5
  SHA512:
6
- metadata.gz: 11179ce087f3c5b1d6dc8d6a76758410513bba8d53a1a02a2b0fd44e3b3ab58c5a0f14c81667edfaffbdf129ea917bcb256b71a75a0b8bc2220ef3863ecfcb98
7
- data.tar.gz: 45d746e5bd59b6342ec9cec813d72e520fbbc8d1cc55d41e8c725b745c377f3aaba135b56b746281a80f5a1588e66a9426a80026cf423c49a80c85f029f1d586
6
+ metadata.gz: 35b823d39db613491f965a185a43bcf848629e84ca88fca358e2bc9412bbc42802c92a6fc6fe72870907e6d970415fe4d037035057a946bd19495b7bf9650a9c
7
+ data.tar.gz: 7e625e03b7d027a0d52f28d955b80abf3cab001f879a0169a7e500d0123775801580e9c7b8ef85438ba7eb7813b7ac02f37114ea37496e7b1beeec1e73bdd1d1
@@ -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.1)
4
+ Icarus-Mod-Tools (2.0.3)
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.14
176
+ 2.3.26
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
@@ -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/CHANGES.md"
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 key == :files && @data[:files].nil?
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"]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Icarus
4
4
  module Mod
5
- VERSION = "2.0.1"
5
+ VERSION = "2.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Icarus-Mod-Tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donovan Young
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2023-02-04 00:00:00.000000000 Z
@@ -76,11 +76,11 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - ".rspec"
78
78
  - ".rubocop.yml"
79
- - CHANGES.md
79
+ - CHANGELOG.md
80
80
  - Gemfile
81
81
  - Gemfile.lock
82
82
  - Guardfile
83
- - LICENSE.md
83
+ - LICENSE
84
84
  - README.md
85
85
  - Rakefile
86
86
  - exe/imt
@@ -113,9 +113,9 @@ 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/CHANGES.md
116
+ changelog_uri: https://github.com/DonovanMods/icarus-mod-tools/blob/main/CHANGELOG.md
117
117
  rubygems_mfa_required: 'true'
118
- post_install_message:
118
+ post_install_message:
119
119
  rdoc_options: []
120
120
  require_paths:
121
121
  - lib
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubygems_version: 3.3.26
135
- signing_key:
135
+ signing_key:
136
136
  specification_version: 4
137
137
  summary: Various tools for Icarus Modding
138
138
  test_files: []