u3d 1.2.3 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +33 -10
  3. data/.github/workflows/ci.yml +35 -0
  4. data/.github_changelog_generator +3 -1
  5. data/.gitignore +1 -0
  6. data/.rubocop.yml +15 -3
  7. data/CHANGELOG.md +86 -11
  8. data/Gemfile.lock +149 -87
  9. data/Rakefile +13 -8
  10. data/examples/Example1/Gemfile +4 -2
  11. data/examples/Example1/Gemfile.lock +8 -6
  12. data/examples/Example1/Rakefile +2 -0
  13. data/examples/Example1/fastlane/Fastfile +2 -0
  14. data/examples/Example2/Gemfile +4 -2
  15. data/examples/Example2/Gemfile.lock +12 -7
  16. data/examples/Example2/fastlane/Fastfile +2 -0
  17. data/exe/u3d +3 -1
  18. data/lib/u3d/asset.rb +6 -2
  19. data/lib/u3d/cache.rb +14 -10
  20. data/lib/u3d/commands.rb +14 -9
  21. data/lib/u3d/commands_generator.rb +6 -4
  22. data/lib/u3d/compatibility.rb +2 -0
  23. data/lib/u3d/download_validator.rb +6 -3
  24. data/lib/u3d/downloader.rb +12 -8
  25. data/lib/u3d/failure_reporter.rb +4 -3
  26. data/lib/u3d/hub_modules_parser.rb +24 -7
  27. data/lib/u3d/ini_modules_parser.rb +10 -8
  28. data/lib/u3d/installation.rb +31 -49
  29. data/lib/u3d/installer.rb +44 -33
  30. data/lib/u3d/log_analyzer.rb +31 -27
  31. data/lib/u3d/unity_license.rb +2 -0
  32. data/lib/u3d/unity_module.rb +2 -0
  33. data/lib/u3d/unity_project.rb +4 -1
  34. data/lib/u3d/unity_runner.rb +12 -10
  35. data/lib/u3d/unity_version_definition.rb +3 -0
  36. data/lib/u3d/unity_version_number.rb +8 -2
  37. data/lib/u3d/unity_versions.rb +28 -23
  38. data/lib/u3d/utils.rb +86 -15
  39. data/lib/u3d/version.rb +8 -6
  40. data/lib/u3d.rb +2 -0
  41. data/lib/u3d_core/admin_tools.rb +2 -0
  42. data/lib/u3d_core/command_executor.rb +11 -7
  43. data/lib/u3d_core/command_runner.rb +17 -19
  44. data/lib/u3d_core/core_ext/hash.rb +2 -0
  45. data/lib/u3d_core/core_ext/operating_system_symbol.rb +3 -0
  46. data/lib/u3d_core/core_ext/string.rb +2 -0
  47. data/lib/u3d_core/credentials.rb +9 -7
  48. data/lib/u3d_core/env.rb +3 -0
  49. data/lib/u3d_core/globals.rb +7 -7
  50. data/lib/u3d_core/helper.rb +6 -4
  51. data/lib/u3d_core/ui/disable_colors.rb +2 -0
  52. data/lib/u3d_core/ui/implementations/shell.rb +8 -5
  53. data/lib/u3d_core/ui/interface.rb +3 -0
  54. data/lib/u3d_core/ui/ui.rb +5 -4
  55. data/lib/u3d_core/update_checker/changelog.rb +4 -0
  56. data/lib/u3d_core/update_checker/update_checker.rb +8 -9
  57. data/lib/u3d_core/version.rb +2 -0
  58. data/lib/u3d_core.rb +2 -0
  59. data/u3d.gemspec +20 -9
  60. metadata +112 -28
  61. data/appveyor.yml +0 -21
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ## --- BEGIN LICENSE BLOCK ---
2
4
  # Original work Copyright (c) 2015-present the fastlane authors
3
5
  # Modified work Copyright 2019-present WeWantToKnow AS
@@ -31,12 +33,14 @@ module U3dCore
31
33
 
32
34
  releases(gem_name).each_with_index do |release, index|
33
35
  next unless Gem::Version.new(to_version(release['tag_name'])) > Gem::Version.new(current_version)
36
+
34
37
  puts("")
35
38
  puts(release['name'].green)
36
39
  puts(release['body'])
37
40
  did_show_changelog = true
38
41
 
39
42
  next unless index == 2
43
+
40
44
  puts("")
41
45
  puts("To see all new releases, open https://github.com/DragonBox/#{gem_name}/releases".green)
42
46
  break
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ## --- BEGIN LICENSE BLOCK ---
2
4
  # Original work Copyright (c) 2015-present the fastlane authors
3
5
  # Modified work Copyright 2019-present WeWantToKnow AS
@@ -35,18 +37,14 @@ module U3dCore
35
37
  @start_time = Time.now
36
38
 
37
39
  Thread.new do
38
- begin
39
- server_results[gem_name] = fetch_latest(gem_name)
40
- # rubocop:disable Lint/HandleExceptions
41
- rescue StandardError
42
- # rubocop:enable Lint/HandleExceptions
43
- # we don't want to show a stack trace if something goes wrong
44
- end
40
+ server_results[gem_name] = fetch_latest(gem_name)
41
+ rescue StandardError
42
+ # we don't want to show a stack trace if something goes wrong
45
43
  end
46
44
  end
47
45
 
48
46
  def self.server_results
49
- @results ||= {}
47
+ @server_results ||= {}
50
48
  end
51
49
 
52
50
  class << self
@@ -81,7 +79,7 @@ module U3dCore
81
79
  puts("# An update for #{gem_name} is available. You are on #{current_version}.")
82
80
  end
83
81
  puts("# You should use the latest version.")
84
- puts("# Please update using `#{update_command(gem_name: gem_name)}`.")
82
+ puts("# Please update using `#{update_command(gem_name)}`.")
85
83
 
86
84
  # this could be fetched from the gem
87
85
  puts("# To see what's new, open https://github.com/DragonBox/#{gem_name}/releases.") if U3dCore::Env.truthy?("U3D_HIDE_CHANGELOG")
@@ -112,6 +110,7 @@ module U3dCore
112
110
  # running the specified command
113
111
  def self.ensure_rubygems_source
114
112
  return if `gem sources`.include?("https://rubygems.org")
113
+
115
114
  puts("")
116
115
  UI.error("RubyGems is not listed as your Gem source")
117
116
  UI.error("You can run `gem sources` to see all your sources")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ## --- BEGIN LICENSE BLOCK ---
2
4
  # Copyright (c) 2016-present WeWantToKnow AS
3
5
  #
data/lib/u3d_core.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ## --- BEGIN LICENSE BLOCK ---
2
4
  # Copyright (c) 2016-present WeWantToKnow AS
3
5
  #
data/u3d.gemspec CHANGED
@@ -1,4 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'u3d/version'
4
6
 
@@ -8,7 +10,7 @@ Gem::Specification.new do |spec|
8
10
  spec.authors = ["Jerome Lacoste", "Paul Niezborala"]
9
11
  spec.email = 'jerome@wewanttoknow.com'
10
12
 
11
- spec.required_ruby_version = '>= 2.1.0'
13
+ spec.required_ruby_version = '>= 2.5.0'
12
14
 
13
15
  spec.summary = "U3d"
14
16
  spec.description = U3d::DESCRIPTION
@@ -25,19 +27,28 @@ Gem::Specification.new do |spec|
25
27
 
26
28
  spec.add_dependency 'colored', '>= 1.2', '< 2.0.0' # terminal
27
29
  spec.add_dependency 'commander', '>= 4.4.0', '< 5.0.0' # CLI parser
28
- spec.add_dependency 'file-tail', '>= 1.2.0'
30
+ spec.add_dependency 'fiddle'
29
31
  spec.add_dependency 'filesize', '>= 0.1.1' # File sizes prettifier
32
+ spec.add_dependency 'file-tail', '>= 1.2.0'
30
33
  spec.add_dependency 'inifile', '>= 3.0.0', '< 4.0.0' # Parses INI files
31
34
  spec.add_dependency 'plist', '>= 3.1.0', '< 4.0.0' # Generate the Xcode config plist file
35
+ spec.add_dependency "rexml" # rexml was unbundled from the stdlib in ruby 3
32
36
  spec.add_dependency 'rubyzip', '>= 1.0.0' # Installation of .zip files
33
37
  spec.add_dependency 'security', '= 0.1.3' # macOS Keychain manager, a dead project, no updates expected
34
38
  # Development only
39
+ spec.add_development_dependency "activesupport", ">= 5.2.4.3" # force secure transitive dep
40
+ spec.add_development_dependency "addressable", ">= 2.8.0" # force secure transitive dep
35
41
  spec.add_development_dependency "bundler", "~> 2.0"
36
42
  spec.add_development_dependency "coveralls"
37
- spec.add_development_dependency "github_changelog_generator"
38
- spec.add_development_dependency "pry-byebug"
39
- spec.add_development_dependency "rake", "~> 10.0"
40
- spec.add_development_dependency "rspec", "~> 3.1.0"
41
- spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.3'
42
- spec.add_development_dependency 'rubocop', '~> 0.52.1'
43
+ spec.add_development_dependency "excon", ">= 0.71.0" # force secure transitive dep
44
+ spec.add_development_dependency "github_changelog_generator", ">= 1.16.4"
45
+ spec.add_development_dependency "json", ">= 2.3.0" # force secure transitive dep
46
+ # spec.add_development_dependency "pry-byebug"
47
+ spec.add_development_dependency "rake", ">= 12.3.3"
48
+ spec.add_development_dependency "rspec", "~> 3.11.0"
49
+ spec.add_development_dependency 'rspec_junit_formatter', '~> 0.5.1'
50
+ spec.add_development_dependency 'rubocop', '~> 1.27'
51
+ spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
52
+ # spec.add_development_dependency 'rubocop-rspec', '~> 2.10.0'
53
+ spec.metadata['rubygems_mfa_required'] = 'true'
43
54
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerome Lacoste
8
8
  - Paul Niezborala
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-02-26 00:00:00.000000000 Z
12
+ date: 2022-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored
@@ -52,19 +52,19 @@ dependencies:
52
52
  - !ruby/object:Gem::Version
53
53
  version: 5.0.0
54
54
  - !ruby/object:Gem::Dependency
55
- name: file-tail
55
+ name: fiddle
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 1.2.0
60
+ version: '0'
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 1.2.0
67
+ version: '0'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: filesize
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +79,20 @@ dependencies:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: 0.1.1
82
+ - !ruby/object:Gem::Dependency
83
+ name: file-tail
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 1.2.0
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 1.2.0
82
96
  - !ruby/object:Gem::Dependency
83
97
  name: inifile
84
98
  requirement: !ruby/object:Gem::Requirement
@@ -119,6 +133,20 @@ dependencies:
119
133
  - - "<"
120
134
  - !ruby/object:Gem::Version
121
135
  version: 4.0.0
136
+ - !ruby/object:Gem::Dependency
137
+ name: rexml
138
+ requirement: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :runtime
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
122
150
  - !ruby/object:Gem::Dependency
123
151
  name: rubyzip
124
152
  requirement: !ruby/object:Gem::Requirement
@@ -147,6 +175,34 @@ dependencies:
147
175
  - - '='
148
176
  - !ruby/object:Gem::Version
149
177
  version: 0.1.3
178
+ - !ruby/object:Gem::Dependency
179
+ name: activesupport
180
+ requirement: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 5.2.4.3
185
+ type: :development
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: 5.2.4.3
192
+ - !ruby/object:Gem::Dependency
193
+ name: addressable
194
+ requirement: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: 2.8.0
199
+ type: :development
200
+ prerelease: false
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: 2.8.0
150
206
  - !ruby/object:Gem::Dependency
151
207
  name: bundler
152
208
  requirement: !ruby/object:Gem::Requirement
@@ -175,90 +231,118 @@ dependencies:
175
231
  - - ">="
176
232
  - !ruby/object:Gem::Version
177
233
  version: '0'
234
+ - !ruby/object:Gem::Dependency
235
+ name: excon
236
+ requirement: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: 0.71.0
241
+ type: :development
242
+ prerelease: false
243
+ version_requirements: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - ">="
246
+ - !ruby/object:Gem::Version
247
+ version: 0.71.0
178
248
  - !ruby/object:Gem::Dependency
179
249
  name: github_changelog_generator
180
250
  requirement: !ruby/object:Gem::Requirement
181
251
  requirements:
182
252
  - - ">="
183
253
  - !ruby/object:Gem::Version
184
- version: '0'
254
+ version: 1.16.4
185
255
  type: :development
186
256
  prerelease: false
187
257
  version_requirements: !ruby/object:Gem::Requirement
188
258
  requirements:
189
259
  - - ">="
190
260
  - !ruby/object:Gem::Version
191
- version: '0'
261
+ version: 1.16.4
192
262
  - !ruby/object:Gem::Dependency
193
- name: pry-byebug
263
+ name: json
194
264
  requirement: !ruby/object:Gem::Requirement
195
265
  requirements:
196
266
  - - ">="
197
267
  - !ruby/object:Gem::Version
198
- version: '0'
268
+ version: 2.3.0
199
269
  type: :development
200
270
  prerelease: false
201
271
  version_requirements: !ruby/object:Gem::Requirement
202
272
  requirements:
203
273
  - - ">="
204
274
  - !ruby/object:Gem::Version
205
- version: '0'
275
+ version: 2.3.0
206
276
  - !ruby/object:Gem::Dependency
207
277
  name: rake
208
278
  requirement: !ruby/object:Gem::Requirement
209
279
  requirements:
210
- - - "~>"
280
+ - - ">="
211
281
  - !ruby/object:Gem::Version
212
- version: '10.0'
282
+ version: 12.3.3
213
283
  type: :development
214
284
  prerelease: false
215
285
  version_requirements: !ruby/object:Gem::Requirement
216
286
  requirements:
217
- - - "~>"
287
+ - - ">="
218
288
  - !ruby/object:Gem::Version
219
- version: '10.0'
289
+ version: 12.3.3
220
290
  - !ruby/object:Gem::Dependency
221
291
  name: rspec
222
292
  requirement: !ruby/object:Gem::Requirement
223
293
  requirements:
224
294
  - - "~>"
225
295
  - !ruby/object:Gem::Version
226
- version: 3.1.0
296
+ version: 3.11.0
227
297
  type: :development
228
298
  prerelease: false
229
299
  version_requirements: !ruby/object:Gem::Requirement
230
300
  requirements:
231
301
  - - "~>"
232
302
  - !ruby/object:Gem::Version
233
- version: 3.1.0
303
+ version: 3.11.0
234
304
  - !ruby/object:Gem::Dependency
235
305
  name: rspec_junit_formatter
236
306
  requirement: !ruby/object:Gem::Requirement
237
307
  requirements:
238
308
  - - "~>"
239
309
  - !ruby/object:Gem::Version
240
- version: 0.2.3
310
+ version: 0.5.1
241
311
  type: :development
242
312
  prerelease: false
243
313
  version_requirements: !ruby/object:Gem::Requirement
244
314
  requirements:
245
315
  - - "~>"
246
316
  - !ruby/object:Gem::Version
247
- version: 0.2.3
317
+ version: 0.5.1
248
318
  - !ruby/object:Gem::Dependency
249
319
  name: rubocop
250
320
  requirement: !ruby/object:Gem::Requirement
251
321
  requirements:
252
322
  - - "~>"
253
323
  - !ruby/object:Gem::Version
254
- version: 0.52.1
324
+ version: '1.27'
325
+ type: :development
326
+ prerelease: false
327
+ version_requirements: !ruby/object:Gem::Requirement
328
+ requirements:
329
+ - - "~>"
330
+ - !ruby/object:Gem::Version
331
+ version: '1.27'
332
+ - !ruby/object:Gem::Dependency
333
+ name: rubocop-rake
334
+ requirement: !ruby/object:Gem::Requirement
335
+ requirements:
336
+ - - "~>"
337
+ - !ruby/object:Gem::Version
338
+ version: 0.6.0
255
339
  type: :development
256
340
  prerelease: false
257
341
  version_requirements: !ruby/object:Gem::Requirement
258
342
  requirements:
259
343
  - - "~>"
260
344
  - !ruby/object:Gem::Version
261
- version: 0.52.1
345
+ version: 0.6.0
262
346
  description: Provides numerous tools for installing, managing and running the Unity
263
347
  game engine from command line.
264
348
  email: jerome@wewanttoknow.com
@@ -270,6 +354,7 @@ files:
270
354
  - ".circleci/config.yml"
271
355
  - ".github/ISSUE_TEMPLATE.md"
272
356
  - ".github/PULL_REQUEST_TEMPLATE.md"
357
+ - ".github/workflows/ci.yml"
273
358
  - ".github_changelog_generator"
274
359
  - ".gitignore"
275
360
  - ".licenses.json"
@@ -286,7 +371,6 @@ files:
286
371
  - README.md
287
372
  - Rakefile
288
373
  - WIP
289
- - appveyor.yml
290
374
  - build.sh
291
375
  - config/log_rules.json
292
376
  - docs/assets/ci_jenkins_ansi.png
@@ -436,8 +520,9 @@ files:
436
520
  homepage: https://github.com/DragonBox/u3d
437
521
  licenses:
438
522
  - MIT
439
- metadata: {}
440
- post_install_message:
523
+ metadata:
524
+ rubygems_mfa_required: 'true'
525
+ post_install_message:
441
526
  rdoc_options: []
442
527
  require_paths:
443
528
  - lib
@@ -445,16 +530,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
530
  requirements:
446
531
  - - ">="
447
532
  - !ruby/object:Gem::Version
448
- version: 2.1.0
533
+ version: 2.5.0
449
534
  required_rubygems_version: !ruby/object:Gem::Requirement
450
535
  requirements:
451
536
  - - ">="
452
537
  - !ruby/object:Gem::Version
453
538
  version: '0'
454
539
  requirements: []
455
- rubyforge_project:
456
- rubygems_version: 2.6.14
457
- signing_key:
540
+ rubygems_version: 3.1.6
541
+ signing_key:
458
542
  specification_version: 4
459
543
  summary: U3d
460
544
  test_files: []
data/appveyor.yml DELETED
@@ -1,21 +0,0 @@
1
- # https://www.appveyor.com/docs/appveyor-yml/
2
-
3
- version: "{build}"
4
-
5
- init:
6
- - git config --global core.autocrlf false
7
-
8
- # cloning the repository happens here
9
-
10
- install:
11
- - set PATH=C:\Ruby24-x64\bin;%PATH%
12
- - bundle install
13
-
14
- environment:
15
- LC_ALL: en_US.UTF-8
16
- LANG: en_US.UTF-8
17
-
18
- build: off
19
-
20
- test_script:
21
- - bundle exec rake