u3d 1.3.0 → 1.3.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: 7da585b57cca4cfab15b83a25ab8b2c6982c4c96ad6f8ce872668f75e994972e
4
- data.tar.gz: d28f5d885ee5fb6ce0429e024030dac0f471a1a183bd1da5f95bbd6984e4aaaa
3
+ metadata.gz: 2cf79a6e28cc0f34c0089479cc30fd56a41095a858af99718380c303dc272858
4
+ data.tar.gz: c07493cd5e872a9929b3da5292dfef80256928096251c8a131de69788c980fea
5
5
  SHA512:
6
- metadata.gz: bb8134d1d745861cf1847cbb88fc90b96fc00ac9544c9064890bfeda242b40ff8c791e2698078c7ceda3fa97c0de87a9007c9b6806b4d12dff4afe8cd6832242
7
- data.tar.gz: 5b4fa13c8904a851c4ecf1d5c7417a02d17756019567228ad0807d9d1b23524e90b4af8c4f8c20607814dcafc7e2baa88de8d5b5521ab918a9d73ccb3196bd94
6
+ metadata.gz: 3cdd4923d39924b863c44e4757a40c32a16134c3b8087d2761be13149d97508d6da0c9b5dd9d1dd8454c86b4013fe2bf2a0e8fc9e65f90ac0a379d883180824c
7
+ data.tar.gz: c5df159522cc12eb2b3bd1648317bfa9c79c7357328cbd08cf94a8a60525ad0b430d5303411544735e5a9eec0126aecd89838bd65661070743a160ca0ccc6037
@@ -1,4 +1,4 @@
1
- future-release=v1.3.0
1
+ future-release=v1.3.1
2
2
  since-tag=v0.9
3
3
  exclude_tags_regex=v0\.[0-8]\..*
4
4
  exclude-labels=nochangelog,question
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.3.1](https://github.com/DragonBox/u3d/tree/v1.3.1) (2022-05-18)
4
+
5
+ [Full Changelog](https://github.com/DragonBox/u3d/compare/v1.3.0...v1.3.1)
6
+
7
+ **Closed issues:**
8
+
9
+ - `u3d install 2019.4.35f1` fails at 1.3.0 [\#421](https://github.com/DragonBox/u3d/issues/421)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - \[Fix\] Broken install command, fixes \#421 [\#422](https://github.com/DragonBox/u3d/pull/422) ([lacostej](https://github.com/lacostej))
14
+ - Release 1.3.0 [\#420](https://github.com/DragonBox/u3d/pull/420) ([lacostej](https://github.com/lacostej))
15
+
3
16
  ## [v1.3.0](https://github.com/DragonBox/u3d/tree/v1.3.0) (2022-05-16)
4
17
 
5
18
  [Full Changelog](https://github.com/DragonBox/u3d/compare/v1.2.3...v1.3.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- u3d (1.3.0)
4
+ u3d (1.3.1)
5
5
  colored (>= 1.2, < 2.0.0)
6
6
  commander (>= 4.4.0, < 5.0.0)
7
7
  file-tail (>= 1.2.0)
@@ -36,9 +36,9 @@ module U3d
36
36
  path = modules_path(version, os)
37
37
 
38
38
  # force download if no hub file present
39
- download_modules(os: os) if !File.file?(path) && File.size(path).positive? && !offline
39
+ download_modules(os: os) if !Utils.file_exists_not_empty?(path) && !offline
40
40
 
41
- unless File.file?(path) && File.size(path).positive?
41
+ unless Utils.file_exists_not_empty?(path)
42
42
  UI.verbose "No modules registered for UnityHub for version #{version}"
43
43
  # cached_versions.keys.map{|s| UnityVersionNumber.new(s)}
44
44
  # searching for closest version
@@ -44,7 +44,7 @@ module U3d
44
44
  ini_name = format(INI_NAME, version: version, os: os)
45
45
  Utils.ensure_dir(default_ini_path)
46
46
  ini_path = File.expand_path(ini_name, default_ini_path)
47
- unless File.file?(ini_path) && File.size(ini_path).positive?
47
+ unless Utils.file_exists_not_empty?(ini_path)
48
48
  raise "INI file does not exist at #{ini_path}" if offline
49
49
 
50
50
  download_ini(version, cached_versions, os, ini_name, ini_path)
data/lib/u3d/utils.rb CHANGED
@@ -315,6 +315,10 @@ module U3d
315
315
  end
316
316
  end
317
317
 
318
+ def file_exists_not_empty?(path)
319
+ File.file?(path) && File.size(path).positive?
320
+ end
321
+
318
322
  private
319
323
 
320
324
  def http_max_retries
data/lib/u3d/version.rb CHANGED
@@ -23,7 +23,7 @@
23
23
  ## --- END LICENSE BLOCK ---
24
24
 
25
25
  module U3d
26
- VERSION = '1.3.0'
26
+ VERSION = '1.3.1'
27
27
  DESCRIPTION = 'Provides numerous tools for installing, managing and running the Unity game engine from command line.'
28
28
  UNITY_VERSIONS_NOTE = "Unity uses the following version formatting: 0.0.0x0. The \'x\' can takes different values:\n"\
29
29
  "\t. 'f' are the main release candidates for Unity\n"\
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerome Lacoste
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-05-16 00:00:00.000000000 Z
12
+ date: 2022-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored