u3d 1.0.5 → 1.0.6
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 +4 -4
- data/.github_changelog_generator +1 -1
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +1 -1
- data/README.md +12 -0
- data/lib/u3d/commands.rb +1 -0
- data/lib/u3d/compatibility.rb +27 -0
- data/lib/u3d/installer.rb +1 -1
- data/lib/u3d/version.rb +1 -1
- data/lib/u3d_core/helper.rb +9 -0
- data/lib/u3d_core/version.rb +45 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4198b2e5fcd0eb3083772c2e93565083dc1a127
|
4
|
+
data.tar.gz: a2df16ce30dc7a837287b1ae226bdd78c0e93dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e99939849c0c6bae6c81c8f58c6b563b7a53c0fdcb260e8f641166cda95ffe13bdd6e6b8bc6b856b902278268f53e8eae0020a6e21b39b9d38027dd5470f46
|
7
|
+
data.tar.gz: 7d2ab92e679a09f8dd1626359aa86bfc9edaf6da8c45f278e62a7f5991f16a7097ed26a2563178c50692d2c072bc2f29f147a617f0269d8de6576c103b950c19
|
data/.github_changelog_generator
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v1.0.6](https://github.com/DragonBox/u3d/tree/v1.0.6) (2017-10-02)
|
4
|
+
[Full Changelog](https://github.com/DragonBox/u3d/compare/v1.0.5...v1.0.6)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- docs/Add how to install ruby to README [\#154](https://github.com/DragonBox/u3d/pull/154) ([niezbop](https://github.com/niezbop))
|
9
|
+
|
10
|
+
**Closed issues:**
|
11
|
+
|
12
|
+
- Make it obvious that ruby 2.0 is not properly supported [\#157](https://github.com/DragonBox/u3d/issues/157)
|
13
|
+
|
14
|
+
**Merged pull requests:**
|
15
|
+
|
16
|
+
- u3d/all: detect ruby 2.0 usage and move checks into compatibility file \(fixes \#157\) [\#158](https://github.com/DragonBox/u3d/pull/158) ([lacostej](https://github.com/lacostej))
|
17
|
+
- u3d/all feature/detect bash on ubuntu on windows \(fixed \#150\) [\#155](https://github.com/DragonBox/u3d/pull/155) ([niezbop](https://github.com/niezbop))
|
18
|
+
|
3
19
|
## [v1.0.5](https://github.com/DragonBox/u3d/tree/v1.0.5) (2017-09-28)
|
4
20
|
[Full Changelog](https://github.com/DragonBox/u3d/compare/v1.0.4...v1.0.5)
|
5
21
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -150,6 +150,18 @@ Here you have multiple options
|
|
150
150
|
|
151
151
|
* if on Mac, use the keychain option (you set it before hand on the machine, e.g. from the command line using `u3d credentials` add (use `u3d credentials check` to verify) and then use `u3d install -k` to activate the keychain while installing.
|
152
152
|
|
153
|
+
### Install ruby
|
154
|
+
|
155
|
+
* __On MacOS and Linux:__
|
156
|
+
|
157
|
+
Your usual package manager should be available to install it easily for you. On UNIX systems, we recommend you use [RVM (Ruby Version Manager)](https://rvm.io/rvm/install), which lets you manage several versions of Ruby.
|
158
|
+
|
159
|
+
* __On Windows:__
|
160
|
+
|
161
|
+
Installing Ruby on Windows is a bit more complicated than installing it on Linux or Mac. You have several options available: Bash on Ubuntu on Windows (see further note), Cygwin but we recommend you use the [Ruby Installer for Windows](https://rubyinstaller.org/).
|
162
|
+
|
163
|
+
_NOTE:_ We do not support Bash on Ubuntu on Windows. Most features of u3d will not work as intended on this platform and we therefore strongly advice you against using u3d on it.
|
164
|
+
|
153
165
|
### Troubleshoot
|
154
166
|
|
155
167
|
Use the global `--verbose` argument to enable debug logs.
|
data/lib/u3d/commands.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
## --- BEGIN LICENSE BLOCK ---
|
2
|
+
# Copyright (c) 2016-present WeWantToKnow AS
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
# of this software and associated documentation files (the "Software"), to deal
|
6
|
+
# in the Software without restriction, including without limitation the rights
|
7
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
# copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all
|
12
|
+
# copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
# SOFTWARE.
|
21
|
+
## --- END LICENSE BLOCK ---
|
22
|
+
|
23
|
+
require 'u3d_core/helper'
|
24
|
+
require 'u3d_core/ui/ui'
|
25
|
+
require 'u3d_core/version'
|
26
|
+
U3dCore::UI.important "Bash on Ubuntu on Windows is not supported by u3d. Unexpected behaviour may occur." if U3dCore::Helper.ubuntu_on_windows?
|
27
|
+
U3dCore::UI.important "Ruby 2.0 not properly supported (https://github.com/DragonBox/u3d/issues/157). Please use 2.1 or later." if U3dCore::Version.new(RUBY_VERSION) < U3dCore::Version.new('2.1.0')
|
data/lib/u3d/installer.rb
CHANGED
@@ -160,7 +160,7 @@ module U3d
|
|
160
160
|
|
161
161
|
def spotlight_installed_paths
|
162
162
|
unless (`mdutil -s /` =~ /disabled/).nil?
|
163
|
-
UI.
|
163
|
+
UI.important 'Please enable Spotlight indexing for /Applications.'
|
164
164
|
return []
|
165
165
|
end
|
166
166
|
|
data/lib/u3d/version.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
## --- END LICENSE BLOCK ---
|
22
22
|
|
23
23
|
module U3d
|
24
|
-
VERSION = '1.0.
|
24
|
+
VERSION = '1.0.6'.freeze
|
25
25
|
DESCRIPTION = 'Provides numerous tools for installing, managing and running the Unity3D game engine from command line.'.freeze
|
26
26
|
UNITY_VERSIONS_NOTE = "Unity3d uses the following version formatting: 0.0.0x0. The \'x\' can takes different values:\n"\
|
27
27
|
"\t. 'f' are the main release candidates for Unity3d\n"\
|
data/lib/u3d_core/helper.rb
CHANGED
@@ -72,6 +72,15 @@ module U3dCore
|
|
72
72
|
(/linux/ =~ RUBY_PLATFORM) != nil
|
73
73
|
end
|
74
74
|
|
75
|
+
def self.ubuntu_on_windows?
|
76
|
+
# taken from: https://github.com/Microsoft/BashOnWindows/issues/423#issuecomment-221627364
|
77
|
+
proc_version = '/proc/version'
|
78
|
+
return false unless File.exist? proc_version
|
79
|
+
File.open(proc_version, 'r') do |f|
|
80
|
+
return !(/Microsof|WSL/ =~ f.read).nil?
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
75
84
|
# Is the currently running computer a Mac?
|
76
85
|
def self.mac?
|
77
86
|
(/darwin/ =~ RUBY_PLATFORM) != nil
|
@@ -0,0 +1,45 @@
|
|
1
|
+
## --- BEGIN LICENSE BLOCK ---
|
2
|
+
# Copyright (c) 2016-present WeWantToKnow AS
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
# of this software and associated documentation files (the "Software"), to deal
|
6
|
+
# in the Software without restriction, including without limitation the rights
|
7
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
# copies of the Software, and to permit persons to whom the Software is
|
9
|
+
# furnished to do so, subject to the following conditions:
|
10
|
+
#
|
11
|
+
# The above copyright notice and this permission notice shall be included in all
|
12
|
+
# copies or substantial portions of the Software.
|
13
|
+
#
|
14
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
# SOFTWARE.
|
21
|
+
## --- END LICENSE BLOCK ---
|
22
|
+
module U3dCore
|
23
|
+
class Version
|
24
|
+
include Comparable
|
25
|
+
attr_reader :major, :minor, :patch
|
26
|
+
|
27
|
+
def initialize(version)
|
28
|
+
@major, @minor, @patch = version.split('.').map(&:to_i)
|
29
|
+
end
|
30
|
+
|
31
|
+
def to_a
|
32
|
+
[major, minor, patch].compact
|
33
|
+
end
|
34
|
+
|
35
|
+
def to_s
|
36
|
+
to_a.join('.')
|
37
|
+
end
|
38
|
+
|
39
|
+
def <=>(other)
|
40
|
+
(major <=> other.major).nonzero? ||
|
41
|
+
(minor <=> other.minor).nonzero? ||
|
42
|
+
patch <=> other.patch
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
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.0.
|
4
|
+
version: 1.0.6
|
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: 2017-
|
12
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: commander
|
@@ -365,6 +365,7 @@ files:
|
|
365
365
|
- lib/u3d/cache.rb
|
366
366
|
- lib/u3d/commands.rb
|
367
367
|
- lib/u3d/commands_generator.rb
|
368
|
+
- lib/u3d/compatibility.rb
|
368
369
|
- lib/u3d/download_validator.rb
|
369
370
|
- lib/u3d/downloader.rb
|
370
371
|
- lib/u3d/iniparser.rb
|
@@ -389,6 +390,7 @@ files:
|
|
389
390
|
- lib/u3d_core/ui/implementations/shell.rb
|
390
391
|
- lib/u3d_core/ui/interface.rb
|
391
392
|
- lib/u3d_core/ui/ui.rb
|
393
|
+
- lib/u3d_core/version.rb
|
392
394
|
- local_gem_install.sh
|
393
395
|
- scripts/be
|
394
396
|
- u3d.gemspec
|