Icarus-Mod-Tools 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/CHANGES.md +5 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +14 -13
- data/Guardfile +0 -0
- data/LICENSE.md +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/icarus-mod-tools.gemspec +0 -0
- data/imtconfig.sample.json +0 -0
- data/lib/icarus/mod/cli/add.rb +0 -0
- data/lib/icarus/mod/cli/base.rb +0 -0
- data/lib/icarus/mod/cli/command.rb +0 -0
- data/lib/icarus/mod/cli/list.rb +0 -0
- data/lib/icarus/mod/cli/subcommand_base.rb +0 -0
- data/lib/icarus/mod/cli/sync.rb +3 -0
- data/lib/icarus/mod/config.rb +0 -0
- data/lib/icarus/mod/firestore.rb +0 -0
- data/lib/icarus/mod/github.rb +0 -0
- data/lib/icarus/mod/tools/mod_sync.rb +1 -1
- data/lib/icarus/mod/tools/modinfo.rb +3 -2
- data/lib/icarus/mod/tools/modinfo_sync.rb +0 -0
- data/lib/icarus/mod/tools/sync_helpers.rb +0 -0
- data/lib/icarus/mod/tools.rb +0 -0
- data/lib/icarus/mod/version.rb +1 -1
- data/sig/database/sync/sync.rbs +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0a960947869f1869c8fd0cfb500817169d4bdff4a725898d3d97459220e0843
|
4
|
+
data.tar.gz: 9bfa76062cdb5441198a176b273f49a915fa3c960f723268dc9395532b780ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2266c6ffd007d98c9cd0269889634204f10e1a04bf217b68c915c194aec584851e84e11b0b2c8c55204420e302d92a6df638e24e9dc15aa64b3db3ebb1b21597
|
7
|
+
data.tar.gz: db7ee61fafa8279e1604de8fea770936548c6abeb4ade7d36a2b187c7514f2f1ef093238c8409aa3af1df477136bb2339c647982b1db64350a934cca19030a2d
|
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/CHANGES.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## History (reverse chronological order)
|
6
6
|
|
7
|
+
### v1.6 - 2023-15
|
8
|
+
|
9
|
+
- Added `--check` to `sync mods` to check for updates without downloading
|
10
|
+
- Added support for `readmeURL` in `modinfo.json`
|
11
|
+
|
7
12
|
### v1.5 - 2023-08
|
8
13
|
|
9
14
|
- Moved source into the DonovanMods Github organization
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
Icarus-Mod-Tools (1.
|
4
|
+
Icarus-Mod-Tools (1.6.0)
|
5
5
|
google-cloud-firestore (~> 2.7)
|
6
6
|
octokit (~> 6.0)
|
7
7
|
thor (~> 1.2)
|
@@ -49,7 +49,7 @@ GEM
|
|
49
49
|
google-cloud-location (0.2.0)
|
50
50
|
gapic-common (>= 0.10, < 2.a)
|
51
51
|
google-cloud-errors (~> 1.0)
|
52
|
-
google-protobuf (3.21.12-x86_64-
|
52
|
+
google-protobuf (3.21.12-x86_64-darwin)
|
53
53
|
googleapis-common-protos (1.4.0)
|
54
54
|
google-protobuf (~> 3.14)
|
55
55
|
googleapis-common-protos-types (~> 1.2)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
multi_json (~> 1.11)
|
64
64
|
os (>= 0.9, < 2.0)
|
65
65
|
signet (>= 0.16, < 2.a)
|
66
|
-
grpc (1.50.0-x86_64-
|
66
|
+
grpc (1.50.0-x86_64-darwin)
|
67
67
|
google-protobuf (~> 3.21)
|
68
68
|
googleapis-common-protos-types (~> 1.0)
|
69
69
|
guard (2.18.0)
|
@@ -82,7 +82,7 @@ GEM
|
|
82
82
|
rspec (>= 2.99.0, < 4.0)
|
83
83
|
json (2.6.3)
|
84
84
|
jwt (2.6.0)
|
85
|
-
listen (3.
|
85
|
+
listen (3.8.0)
|
86
86
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
87
87
|
rb-inotify (~> 0.9, >= 0.9.10)
|
88
88
|
lumberjack (1.2.8)
|
@@ -98,9 +98,9 @@ GEM
|
|
98
98
|
sawyer (~> 0.9)
|
99
99
|
os (1.1.4)
|
100
100
|
parallel (1.22.1)
|
101
|
-
parser (3.
|
101
|
+
parser (3.2.0.0)
|
102
102
|
ast (~> 2.4.1)
|
103
|
-
pry (0.14.
|
103
|
+
pry (0.14.2)
|
104
104
|
coderay (~> 1.1)
|
105
105
|
method_source (~> 1.0)
|
106
106
|
public_suffix (5.0.1)
|
@@ -118,26 +118,26 @@ GEM
|
|
118
118
|
rspec-mocks (~> 3.12.0)
|
119
119
|
rspec-core (3.12.0)
|
120
120
|
rspec-support (~> 3.12.0)
|
121
|
-
rspec-expectations (3.12.
|
121
|
+
rspec-expectations (3.12.2)
|
122
122
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
123
|
rspec-support (~> 3.12.0)
|
124
|
-
rspec-mocks (3.12.
|
124
|
+
rspec-mocks (3.12.2)
|
125
125
|
diff-lcs (>= 1.2.0, < 2.0)
|
126
126
|
rspec-support (~> 3.12.0)
|
127
127
|
rspec-support (3.12.0)
|
128
|
-
rubocop (1.
|
128
|
+
rubocop (1.43.0)
|
129
129
|
json (~> 2.3)
|
130
130
|
parallel (~> 1.10)
|
131
|
-
parser (>= 3.
|
131
|
+
parser (>= 3.2.0.0)
|
132
132
|
rainbow (>= 2.2.2, < 4.0)
|
133
133
|
regexp_parser (>= 1.8, < 3.0)
|
134
134
|
rexml (>= 3.2.5, < 4.0)
|
135
135
|
rubocop-ast (>= 1.24.1, < 2.0)
|
136
136
|
ruby-progressbar (~> 1.7)
|
137
|
-
unicode-display_width (>=
|
137
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
138
138
|
rubocop-ast (1.24.1)
|
139
139
|
parser (>= 3.1.1.0)
|
140
|
-
rubocop-rspec (2.
|
140
|
+
rubocop-rspec (2.17.0)
|
141
141
|
rubocop (~> 1.33)
|
142
142
|
ruby-progressbar (1.11.0)
|
143
143
|
ruby2_keywords (0.0.5)
|
@@ -151,9 +151,10 @@ GEM
|
|
151
151
|
jwt (>= 1.5, < 3.0)
|
152
152
|
multi_json (~> 1.10)
|
153
153
|
thor (1.2.1)
|
154
|
-
unicode-display_width (2.
|
154
|
+
unicode-display_width (2.4.2)
|
155
155
|
|
156
156
|
PLATFORMS
|
157
|
+
x86_64-darwin-22
|
157
158
|
x86_64-linux
|
158
159
|
|
159
160
|
DEPENDENCIES
|
data/Guardfile
CHANGED
File without changes
|
data/LICENSE.md
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/icarus-mod-tools.gemspec
CHANGED
File without changes
|
data/imtconfig.sample.json
CHANGED
File without changes
|
data/lib/icarus/mod/cli/add.rb
CHANGED
File without changes
|
data/lib/icarus/mod/cli/base.rb
CHANGED
File without changes
|
File without changes
|
data/lib/icarus/mod/cli/list.rb
CHANGED
File without changes
|
File without changes
|
data/lib/icarus/mod/cli/sync.rb
CHANGED
@@ -28,6 +28,7 @@ module Icarus
|
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "mods", "Reads from 'meta/modinfo/list' and updates the 'mods' database accordingly"
|
31
|
+
method_option :check, type: :boolean, default: false, desc: "Validate modinfo without applying changes"
|
31
32
|
def mods
|
32
33
|
modsync = Icarus::Mod::Tools::ModSync.new
|
33
34
|
|
@@ -37,6 +38,8 @@ module Icarus
|
|
37
38
|
puts "Retrieving mod Data..." if verbose?
|
38
39
|
mod_array = modsync.mods
|
39
40
|
|
41
|
+
return if options[:check]
|
42
|
+
|
40
43
|
puts "Updating mod Data..." if verbose?
|
41
44
|
modinfo_array.each do |mod|
|
42
45
|
verb = "Creating"
|
data/lib/icarus/mod/config.rb
CHANGED
File without changes
|
data/lib/icarus/mod/firestore.rb
CHANGED
File without changes
|
data/lib/icarus/mod/github.rb
CHANGED
File without changes
|
@@ -20,7 +20,7 @@ module Icarus
|
|
20
20
|
|
21
21
|
def modinfo_array
|
22
22
|
@modinfo_array ||= @firestore.modinfo_array.map do |url|
|
23
|
-
retrieve_from_url(url)[:mods].map { |mod| Modinfo.new(mod) }
|
23
|
+
retrieve_from_url(url)[:mods].map { |mod| Modinfo.new(mod) if mod[:name] =~ /[a-z0-9]+/i }
|
24
24
|
rescue Icarus::Mod::Tools::RequestFailed
|
25
25
|
warn "Skipped; Failed to retrieve #{url}"
|
26
26
|
next
|
@@ -7,7 +7,7 @@ module Icarus
|
|
7
7
|
class Modinfo
|
8
8
|
attr_reader :data, :id, :created_at, :updated_at
|
9
9
|
|
10
|
-
HASHKEYS = %i[name author version compatibility description long_description fileType fileURL imageURL].freeze
|
10
|
+
HASHKEYS = %i[name author version compatibility description long_description fileType fileURL imageURL readmeURL].freeze
|
11
11
|
|
12
12
|
def initialize(data, id: nil, created: nil, updated: nil)
|
13
13
|
@id = id
|
@@ -40,7 +40,8 @@ module Icarus
|
|
40
40
|
long_description:,
|
41
41
|
fileType:,
|
42
42
|
fileURL:,
|
43
|
-
imageURL
|
43
|
+
imageURL:,
|
44
|
+
readmeURL:
|
44
45
|
}
|
45
46
|
end
|
46
47
|
|
File without changes
|
File without changes
|
data/lib/icarus/mod/tools.rb
CHANGED
File without changes
|
data/lib/icarus/mod/version.rb
CHANGED
data/sig/database/sync/sync.rbs
CHANGED
File without changes
|
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: 1.
|
4
|
+
version: 1.6.0
|
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-01-
|
11
|
+
date: 2023-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-firestore
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
|
-
rubygems_version: 3.3.
|
114
|
+
rubygems_version: 3.3.26
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Various tools for Icarus Modding
|