Icarus-Mod-Tools 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d6eb166c9060d92ba85aeac7876bc1160ed775f6ef1f0f3408ca5cd5faa36da
4
- data.tar.gz: 43849af1d46cc903e2beafee089dc64c24469c30a89033968285505a960d5ff1
3
+ metadata.gz: c0a960947869f1869c8fd0cfb500817169d4bdff4a725898d3d97459220e0843
4
+ data.tar.gz: 9bfa76062cdb5441198a176b273f49a915fa3c960f723268dc9395532b780ab5
5
5
  SHA512:
6
- metadata.gz: 86c344b70fcff28597a5b638d3898fd0ed52fd9894ef65ce304d37a459e94489412e37806de6415b61d501e647fc6b28ec12222a5cdb276078b95707b03cdb9a
7
- data.tar.gz: 7074fbe10cbcc7170305fe4f651ee06ec8c6f7a4799d7a2a2923beff53b69eae5ad1524afa6ac5be47c55ddc443152e7ef918dfb50b3437d0df0d923073ee858
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.5.0)
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-linux)
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-linux)
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.7.1)
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.1.3.0)
101
+ parser (3.2.0.0)
102
102
  ast (~> 2.4.1)
103
- pry (0.14.1)
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.1)
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.1)
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.42.0)
128
+ rubocop (1.43.0)
129
129
  json (~> 2.3)
130
130
  parallel (~> 1.10)
131
- parser (>= 3.1.2.1)
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 (>= 1.4.0, < 3.0)
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.16.0)
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.3.0)
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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"
File without changes
File without changes
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
File without changes
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Icarus
4
4
  module Mod
5
- VERSION = "1.5.0"
5
+ VERSION = "1.6.0"
6
6
  end
7
7
  end
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.5.0
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-09 00:00:00.000000000 Z
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.7
114
+ rubygems_version: 3.3.26
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Various tools for Icarus Modding