Icarus-Mod-Tools 1.4.1 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89461794093b038743439ad84c47a59e8411680f347cabd5b8e664bbc30bdc9c
4
- data.tar.gz: aec9c6996f8c4d2fa6f5e310cfee1f210cc9a0b65a933a43c59ba4f792843853
3
+ metadata.gz: 8f68f524c29cc673a82735bffc97c0fb93fc4170466e774879f39935aa08729f
4
+ data.tar.gz: d4e336be0968b54baade6752f66b5e56ad0139fe371eec58dc72d74decd4e2ab
5
5
  SHA512:
6
- metadata.gz: d0eb9d8eaedc23e25e7c5327f640c5bb8f62c8afec90cdcf90c9458d0cce72c3b66535bbd3f592160d4f578a61364489e791bcbd7eb6d4908d71771c253148a4
7
- data.tar.gz: a9869c83680cd34d0ed8370d05d18b688de83013dc3646178d65a77db36f98d021f74d7317360a82926b0b8a92fb2b3af190cbbea80cced5f139e37ae01a4409
6
+ metadata.gz: 3cd31a2d76b7ab415242cf8755c59139c50bcd8e07d6ab011efb21a2f146147583c461ae19b7fa3378f919c7405bb55248be8c38c89a66708fd25614a8d1167a
7
+ data.tar.gz: 2121ab82950054dd62990c4d41f2d5c7c13bb62ea909d8e9959b2c44040de1dafa2d6878e38e28644caf390a8a6ec4b51b83a68dd4c420235a6606a5360115c1
data/CHANGES.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## History (reverse chronological order)
6
6
 
7
+ ### v1.5 - 2023-08
8
+
9
+ - Moved source into the DonovanMods Github organization
10
+ - Added `long_description` to `modinfo.json`
11
+ - Added `imageURL` to `modinfo.json`
12
+ - bugfixes
13
+
7
14
  ### v1.4 - 2023-03
8
15
 
9
16
  **BREAKING CHANGES!**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Icarus-Mod-Tools (1.4.1)
4
+ Icarus-Mod-Tools (1.5.1)
5
5
  google-cloud-firestore (~> 2.7)
6
6
  octokit (~> 6.0)
7
7
  thor (~> 1.2)
@@ -37,7 +37,7 @@ GEM
37
37
  google-cloud-env (1.6.0)
38
38
  faraday (>= 0.17.3, < 3.0)
39
39
  google-cloud-errors (1.3.0)
40
- google-cloud-firestore (2.7.2)
40
+ google-cloud-firestore (2.8.0)
41
41
  concurrent-ruby (~> 1.0)
42
42
  google-cloud-core (~> 1.5)
43
43
  google-cloud-firestore-v1 (~> 0.0)
@@ -54,7 +54,7 @@ GEM
54
54
  google-protobuf (~> 3.14)
55
55
  googleapis-common-protos-types (~> 1.2)
56
56
  grpc (~> 1.27)
57
- googleapis-common-protos-types (1.4.0)
57
+ googleapis-common-protos-types (1.5.0)
58
58
  google-protobuf (~> 3.14)
59
59
  googleauth (1.3.0)
60
60
  faraday (>= 0.17.3, < 3.a)
@@ -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,23 +118,23 @@ 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
140
  rubocop-rspec (2.16.0)
@@ -151,7 +151,7 @@ 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
157
  x86_64-linux
data/README.md CHANGED
@@ -105,4 +105,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
105
105
 
106
106
  ## Contributing
107
107
 
108
- Bug reports and pull requests are welcome on GitHub at https://github.com/donovan522/icarus-mod-tools.
108
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DonovanMods/icarus-mod-tools.
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "Various tools for Icarus Modding"
12
12
  spec.description = spec.summary
13
- spec.homepage = "https://github.com/Donovan522/icarus-mod-tools"
13
+ spec.homepage = "https://github.com/DonovanMods/icarus-mod-tools"
14
14
  spec.required_ruby_version = ">= 3.1"
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
@@ -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 fileType fileURL].freeze
10
+ HASHKEYS = %i[name author version compatibility description long_description fileType fileURL imageURL].freeze
11
11
 
12
12
  def initialize(data, id: nil, created: nil, updated: nil)
13
13
  @id = id
@@ -31,15 +31,25 @@ module Icarus
31
31
  end
32
32
 
33
33
  def to_h
34
- @data || {}
34
+ {
35
+ name:,
36
+ author:,
37
+ version:,
38
+ compatibility:,
39
+ description:,
40
+ long_description:,
41
+ fileType:,
42
+ fileURL:,
43
+ imageURL:
44
+ }
35
45
  end
36
46
 
37
47
  def method_missing(method_name, *_args, &)
38
- to_h[method_name.to_sym]&.strip
48
+ @data[method_name.to_sym]&.strip
39
49
  end
40
50
 
41
51
  def respond_to_missing?(method_name, include_private = false)
42
- @data&.key?(method_name.to_sym) || super
52
+ HASHKEYS.include?(method_name.to_sym) || super
43
53
  end
44
54
  end
45
55
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Icarus
4
4
  module Mod
5
- VERSION = "1.4.1"
5
+ VERSION = "1.5.1"
6
6
  end
7
7
  end
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.1
4
+ version: 1.5.1
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-08 00:00:00.000000000 Z
11
+ date: 2023-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-firestore
@@ -88,12 +88,12 @@ files:
88
88
  - lib/icarus/mod/tools/sync_helpers.rb
89
89
  - lib/icarus/mod/version.rb
90
90
  - sig/database/sync/sync.rbs
91
- homepage: https://github.com/Donovan522/icarus-mod-tools
91
+ homepage: https://github.com/DonovanMods/icarus-mod-tools
92
92
  licenses: []
93
93
  metadata:
94
- homepage_uri: https://github.com/Donovan522/icarus-mod-tools
95
- source_code_uri: https://github.com/Donovan522/icarus-mod-tools
96
- changelog_uri: https://github.com/Donovan522/icarus-mod-tools/blob/main/CHANGES.md
94
+ homepage_uri: https://github.com/DonovanMods/icarus-mod-tools
95
+ source_code_uri: https://github.com/DonovanMods/icarus-mod-tools
96
+ changelog_uri: https://github.com/DonovanMods/icarus-mod-tools/blob/main/CHANGES.md
97
97
  rubygems_mfa_required: 'true'
98
98
  post_install_message:
99
99
  rdoc_options: []
@@ -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