u3d 1.3.1 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github_changelog_generator +1 -1
- data/CHANGELOG.md +12 -1
- data/Gemfile.lock +4 -2
- data/Rakefile +1 -1
- data/lib/u3d/hub_modules_parser.rb +1 -1
- data/lib/u3d/unity_versions.rb +1 -1
- data/lib/u3d/utils.rb +6 -0
- data/lib/u3d/version.rb +1 -1
- data/lib/u3d_core/update_checker/update_checker.rb +1 -1
- data/u3d.gemspec +1 -0
- metadata +17 -4
- data/appveyor.yml +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79f773ac16b5e24ec6a48498f0e62abbe4ae90c21e9a565afe7689375dba359e
|
4
|
+
data.tar.gz: 27aad3e6f30b0aee9b5e02fd121253f3c6170752bc023108ab39e60faf85ba37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4adcd91f22408edc31a15b57623160160fa34eb6493cc91c18881d43eb42b6b0d2a01e7f3ba387f99811c6c8bfdcdd1a9794a948965f0eaae1deda6cd44e68f1
|
7
|
+
data.tar.gz: cda628fa54363f7bebf1396ac0e0508f7a29625e8f99458d8ee0e5524e5da8139cb33571a5f4fa1ac59d3ff4d153fff33426faf027def254ef17e799977522e4
|
data/.github_changelog_generator
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.3.2](https://github.com/DragonBox/u3d/tree/v1.3.2) (2022-06-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/DragonBox/u3d/compare/v1.3.1...v1.3.2)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Add Fiddle to gemspec / dependencies [\#427](https://github.com/DragonBox/u3d/pull/427) ([lacostej](https://github.com/lacostej))
|
10
|
+
- Run rspec within bundle exec [\#426](https://github.com/DragonBox/u3d/pull/426) ([lacostej](https://github.com/lacostej))
|
11
|
+
- Remove appveyor [\#425](https://github.com/DragonBox/u3d/pull/425) ([lacostej](https://github.com/lacostej))
|
12
|
+
- Fix parameter to update\_checker [\#424](https://github.com/DragonBox/u3d/pull/424) ([lacostej](https://github.com/lacostej))
|
13
|
+
|
3
14
|
## [v1.3.1](https://github.com/DragonBox/u3d/tree/v1.3.1) (2022-05-18)
|
4
15
|
|
5
16
|
[Full Changelog](https://github.com/DragonBox/u3d/compare/v1.3.0...v1.3.1)
|
@@ -720,4 +731,4 @@
|
|
720
731
|
|
721
732
|
|
722
733
|
|
723
|
-
\* *This Changelog was automatically generated
|
734
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
u3d (1.3.
|
4
|
+
u3d (1.3.3)
|
5
5
|
colored (>= 1.2, < 2.0.0)
|
6
6
|
commander (>= 4.4.0, < 5.0.0)
|
7
|
+
fiddle
|
7
8
|
file-tail (>= 1.2.0)
|
8
9
|
filesize (>= 0.1.1)
|
9
10
|
inifile (>= 3.0.0, < 4.0.0)
|
@@ -84,6 +85,7 @@ GEM
|
|
84
85
|
faraday-rack (1.0.0)
|
85
86
|
faraday-retry (1.0.3)
|
86
87
|
fiber-local (1.0.0)
|
88
|
+
fiddle (1.1.0)
|
87
89
|
file-tail (1.2.0)
|
88
90
|
tins (~> 1.0)
|
89
91
|
filesize (0.2.0)
|
@@ -196,4 +198,4 @@ DEPENDENCIES
|
|
196
198
|
u3d!
|
197
199
|
|
198
200
|
BUNDLED WITH
|
199
|
-
2.3.
|
201
|
+
2.3.9
|
data/Rakefile
CHANGED
@@ -184,7 +184,7 @@ task bump: 'ensure_git_clean' do
|
|
184
184
|
UI.user_error! "Bump version stopped by user" unless UI.confirm("Next version will be #{nextversion}. Confirm?")
|
185
185
|
U3dCode.version = nextversion
|
186
186
|
GithubChangelogGenerator.future_release = nextversion
|
187
|
-
sh 'rspec'
|
187
|
+
sh 'bundle exec rspec'
|
188
188
|
sh 'git add .github_changelog_generator lib/u3d/version.rb Gemfile.lock'
|
189
189
|
sh "git commit -m 'Bump version to #{nextversion}'"
|
190
190
|
sh 'git push'
|
@@ -54,7 +54,7 @@ module U3d
|
|
54
54
|
versions_and_paths = versions_and_paths.select { |a| a[0].parts[0] == vn.parts[0] && a[0].parts[1] == vn.parts[1] && a[0].parts[2] >= vn.parts[2] }
|
55
55
|
|
56
56
|
if versions_and_paths.empty?
|
57
|
-
UI.
|
57
|
+
UI.message "No closest version from UnityHub found for version #{version}"
|
58
58
|
return []
|
59
59
|
end
|
60
60
|
path = versions_and_paths.first[1]
|
data/lib/u3d/unity_versions.rb
CHANGED
@@ -64,7 +64,7 @@ module U3d
|
|
64
64
|
when Net::HTTPRedirection
|
65
65
|
# A session must be opened with the server before accessing forum
|
66
66
|
res = nil
|
67
|
-
cookie_str = ''
|
67
|
+
cookie_str = +''
|
68
68
|
# Store the name and value of the cookies returned by the server
|
69
69
|
response['set-cookie'].gsub(/\s+/, '').split(',').each do |c|
|
70
70
|
cookie_str << ("#{c.split(';', 2)[0]}; ")
|
data/lib/u3d/utils.rb
CHANGED
@@ -34,6 +34,9 @@ module U3d
|
|
34
34
|
# Regex to capture each part of a version string (0.0.0x0)
|
35
35
|
CSIDL_LOCAL_APPDATA = 0x001c
|
36
36
|
UNITY_VERSION_REGEX = /(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:(\w)(?:(\d+))?)?/.freeze
|
37
|
+
MOZILLA_AGENT_HEADER = {
|
38
|
+
'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0'
|
39
|
+
}.freeze
|
37
40
|
|
38
41
|
class << self
|
39
42
|
def final_url(url, redirect_limit: 10)
|
@@ -56,6 +59,9 @@ module U3d
|
|
56
59
|
def follow_redirects(url, redirect_limit: 10, http_method: :get, request_headers: {}, &block)
|
57
60
|
raise 'Too many redirections' if redirect_limit.zero?
|
58
61
|
|
62
|
+
# Unity blocks the default Ruby agent, use another one
|
63
|
+
request_headers = MOZILLA_AGENT_HEADER.merge(request_headers)
|
64
|
+
|
59
65
|
response = nil
|
60
66
|
request = nil
|
61
67
|
uri = URI(url)
|
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.
|
26
|
+
VERSION = '1.3.3'
|
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"\
|
@@ -79,7 +79,7 @@ module U3dCore
|
|
79
79
|
puts("# An update for #{gem_name} is available. You are on #{current_version}.")
|
80
80
|
end
|
81
81
|
puts("# You should use the latest version.")
|
82
|
-
puts("# Please update using `#{update_command(gem_name
|
82
|
+
puts("# Please update using `#{update_command(gem_name)}`.")
|
83
83
|
|
84
84
|
# this could be fetched from the gem
|
85
85
|
puts("# To see what's new, open https://github.com/DragonBox/#{gem_name}/releases.") if U3dCore::Env.truthy?("U3D_HIDE_CHANGELOG")
|
data/u3d.gemspec
CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_dependency 'colored', '>= 1.2', '< 2.0.0' # terminal
|
29
29
|
spec.add_dependency 'commander', '>= 4.4.0', '< 5.0.0' # CLI parser
|
30
|
+
spec.add_dependency 'fiddle'
|
30
31
|
spec.add_dependency 'filesize', '>= 0.1.1' # File sizes prettifier
|
31
32
|
spec.add_dependency 'file-tail', '>= 1.2.0'
|
32
33
|
spec.add_dependency 'inifile', '>= 3.0.0', '< 4.0.0' # Parses INI files
|
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.
|
4
|
+
version: 1.3.3
|
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:
|
12
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colored
|
@@ -51,6 +51,20 @@ dependencies:
|
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 5.0.0
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: fiddle
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
54
68
|
- !ruby/object:Gem::Dependency
|
55
69
|
name: filesize
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -357,7 +371,6 @@ files:
|
|
357
371
|
- README.md
|
358
372
|
- Rakefile
|
359
373
|
- WIP
|
360
|
-
- appveyor.yml
|
361
374
|
- build.sh
|
362
375
|
- config/log_rules.json
|
363
376
|
- docs/assets/ci_jenkins_ansi.png
|
@@ -524,7 +537,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
524
537
|
- !ruby/object:Gem::Version
|
525
538
|
version: '0'
|
526
539
|
requirements: []
|
527
|
-
rubygems_version: 3.
|
540
|
+
rubygems_version: 3.0.9
|
528
541
|
signing_key:
|
529
542
|
specification_version: 4
|
530
543
|
summary: U3d
|
data/appveyor.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# https://www.appveyor.com/docs/appveyor-yml/
|
2
|
-
image: Visual Studio 2022
|
3
|
-
|
4
|
-
version: "{build}"
|
5
|
-
|
6
|
-
init:
|
7
|
-
- git config --global core.autocrlf false
|
8
|
-
|
9
|
-
cache:
|
10
|
-
- vendor/bundle
|
11
|
-
|
12
|
-
environment:
|
13
|
-
LC_ALL: en_US.UTF-8
|
14
|
-
LANG: en_US.UTF-8
|
15
|
-
matrix:
|
16
|
-
- RUBY_VERSION: 25
|
17
|
-
- RUBY_VERSION: 26
|
18
|
-
- RUBY_VERSION: 27
|
19
|
-
- RUBY_VERSION: 30
|
20
|
-
- RUBY_VERSION: 31
|
21
|
-
|
22
|
-
install:
|
23
|
-
- set PATH=C:\Ruby%RUBY_VERSION%-x64\bin;%PATH%
|
24
|
-
- set BUNDLER_VERSION=2.3.11
|
25
|
-
- ruby -v
|
26
|
-
- gem -v
|
27
|
-
- bundle -v
|
28
|
-
- gem install bundler -v %BUNDLER_VERSION%
|
29
|
-
- bundle config --local path vendor/bundle
|
30
|
-
- bundle install
|
31
|
-
|
32
|
-
build: off
|
33
|
-
|
34
|
-
before_test:
|
35
|
-
- ruby -v
|
36
|
-
- gem -v
|
37
|
-
- bundle -v
|
38
|
-
|
39
|
-
test_script:
|
40
|
-
- bundle exec rake
|