u3d 1.1.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4be70d9ffab56f3537c7f5081359d2eaa2a46ad5
4
- data.tar.gz: cd8c671f66176935802e26be92d219aee76bd761
2
+ SHA256:
3
+ metadata.gz: 0e34b0f9202cf4e0351462879c8719ff898285538f1dc046c62e89bd96978c9b
4
+ data.tar.gz: 4a8413ab008d81a86cee87e02c28428b41e27c927b60826e80fb2b00cdff21fe
5
5
  SHA512:
6
- metadata.gz: 6dc822de300ad849dfe6a2a2fbb84f16e4180e5bb50b193ba177fb2578cd269192cf4d55ba46d720dffed209235d5ac3c58381f48408d168e62b7836a5e72715
7
- data.tar.gz: b2c7aa41b6f652047f19b2184ed505c9498f72c2a7d1922a5f24fce7e9b63663c3592c3a64f07b45da7e711b331e215da220d3594a722c3cde30806f82f850d6
6
+ metadata.gz: 5270c48e07ea3d371747ed6b8192345a543a6ed7be5b2102683d1fd585bf1facf998fcee407f339a2ba893e43b2f512cc709ec66dd76dab4e8bb1b4e3729c49a
7
+ data.tar.gz: 22391cbcbca376248c726cec2615adf91c7630bec60244616fe51fd3c11a88986676db54e5cac9d405e8dd91efcbeb2d08c0e843d935585f55657d421a9d642b
@@ -1,4 +1,4 @@
1
- future-release=v1.1.0
1
+ future-release=v1.1.1
2
2
  since-tag=v0.9
3
3
  exclude_tags_regex=v0\.[0-8]\..*
4
4
  exclude-labels=nochangelog,question
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.1.1](https://github.com/DragonBox/u3d/tree/v1.1.1) (2018-07-12)
4
+ [Full Changelog](https://github.com/DragonBox/u3d/compare/v1.1.0...v1.1.1)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Unity 2018.2.x is not listed as available [\#321](https://github.com/DragonBox/u3d/issues/321)
9
+ - u3d/versions: Accept new pattern for mac above 2018.2+ [\#322](https://github.com/DragonBox/u3d/pull/322) ([niezbop](https://github.com/niezbop))
10
+ - u3d/runner: Fix -projectPath argument [\#320](https://github.com/DragonBox/u3d/pull/320) ([niezbop](https://github.com/niezbop))
11
+
12
+ **Closed issues:**
13
+
14
+ - Inconsistency regarding -projectpath / -projectPath argument [\#319](https://github.com/DragonBox/u3d/issues/319)
15
+ - Betas not fetched anymore [\#314](https://github.com/DragonBox/u3d/issues/314)
16
+
3
17
  ## [v1.1.0](https://github.com/DragonBox/u3d/tree/v1.1.0) (2018-06-27)
4
18
  [Full Changelog](https://github.com/DragonBox/u3d/compare/v1.0.21...v1.1.0)
5
19
 
@@ -44,7 +58,6 @@
44
58
 
45
59
  **Merged pull requests:**
46
60
 
47
- - Preparing release for 1.0.21 [\#308](https://github.com/DragonBox/u3d/pull/308) ([lacostej](https://github.com/lacostej))
48
61
  - u3d/console: remove require on pry [\#307](https://github.com/DragonBox/u3d/pull/307) ([lacostej](https://github.com/lacostej))
49
62
  - Allow spaces in installation paths on Windows \#302 [\#306](https://github.com/DragonBox/u3d/pull/306) ([lacostej](https://github.com/lacostej))
50
63
  - u3d/install: support full pkg for Linux [\#305](https://github.com/DragonBox/u3d/pull/305) ([lacostej](https://github.com/lacostej))
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- u3d (1.1.0)
4
+ u3d (1.1.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)
@@ -25,7 +25,7 @@ GEM
25
25
  byebug (10.0.2)
26
26
  coderay (1.1.2)
27
27
  colored (1.2)
28
- commander (4.4.4)
28
+ commander (4.4.5)
29
29
  highline (~> 1.7.2)
30
30
  concurrent-ruby (1.0.5)
31
31
  coveralls (0.8.21)
@@ -204,7 +204,7 @@ module U3d
204
204
  end
205
205
 
206
206
  if up.exist? && args_pp.nil?
207
- extra_run_args = ['-projectpath', up.path]
207
+ extra_run_args = ['-projectPath', up.path]
208
208
  run_args = [extra_run_args, run_args].flatten
209
209
  end
210
210
 
@@ -91,7 +91,7 @@ E.g. U3D_RULES_PATH=my_rules.json u3d -- ...
91
91
 
92
92
  Fore more information about how the rules work, see https://github.com/DragonBox/u3d/blob/master/LOG_RULES.md
93
93
  )
94
- c.option '-u', '--unity_version STRING', String, 'Version of Unity to run with. If not specified, it runs with the version of the project (either specified as -projectpath or current)'
94
+ c.option '-u', '--unity_version STRING', String, 'Version of Unity to run with. If not specified, it runs with the version of the project (either specified as -projectPath or current)'
95
95
  c.option '-r', '--raw_logs', 'Raw Unity output, not filtered by u3d\'s log prettifier'
96
96
  c.action do |args, options|
97
97
  UI.user_error! "Run doesn't take arguments. Did you forget '--' or did you mistake your command? (#{args})" if args.count > 0
@@ -85,7 +85,7 @@ module U3d
85
85
  end
86
86
 
87
87
  def find_projectpath_in_args(args)
88
- find_arg_in_args('-projectpath', args)
88
+ find_arg_in_args('-projectPath', args)
89
89
  end
90
90
 
91
91
  def find_arg_in_args(arg_to_find, args)
@@ -121,6 +121,7 @@ module U3d
121
121
  # Captures a version and its base url
122
122
  LINUX_DOWNLOAD = %r{'(https?://[\w/\.-]+/[0-9a-f\+]{12,13}/)(./)?UnitySetup-(\d+\.\d+\.\d+\w\d+)'}
123
123
  MAC_DOWNLOAD = %r{"(https?://[\w/\.-]+/[0-9a-f\+]{12,13}/)MacEditorInstaller/[a-zA-Z0-9/\.\+]+-(\d+\.\d+\.\d+\w\d+)\.?\w+"}
124
+ MAC_DOWNLOAD_2018_2 = %r{"(https?://[\w/\.-]+/[0-9a-f\+]{12,13}/)UnityDownloadAssistant-[a-zA-Z0-9/\.\+]+-(\d+\.\d+\.\d+\w\d+)\.?\w+"}
124
125
  WIN_DOWNLOAD = %r{"(https?://[\w/\.-]+/[0-9a-f\+]{12,13}/)Windows..EditorInstaller/[a-zA-Z0-9/\.\+]+-(\d+\.\d+\.\d+\w\d+)\.?\w+"}
125
126
  LINUX_DOWNLOAD_DATED = %r{"(https?://[\w/\._-]+/unity\-editor\-installer\-(\d+\.\d+\.\d+\w\d+).*\.sh)"}
126
127
  LINUX_DOWNLOAD_RECENT_PAGE = %r{"(https?://beta\.unity3d\.com/download/[a-zA-Z0-9/\.\+]+/public_download\.html)"}
@@ -227,15 +228,19 @@ module U3d
227
228
 
228
229
  def initialize(pattern:)
229
230
  @versions = {}
230
- @pattern = pattern
231
+ @patterns = pattern.is_a?(Array) ? pattern : [pattern]
231
232
  end
232
233
 
233
234
  def fetch_some(type, url)
234
235
  UI.message "Loading Unity #{type} releases"
235
- current = UnityVersions.fetch_version_paged(url, @pattern)
236
- current = UnityVersions.fetch_version(url, @pattern) if current.empty?
237
- UI.success "Found #{current.count} #{type} releases."
238
- @versions.merge!(current)
236
+ total = {}
237
+ @patterns.each do |pattern|
238
+ current = UnityVersions.fetch_version_paged(url, pattern)
239
+ current = UnityVersions.fetch_version(url, pattern) if current.empty?
240
+ total.merge!(current)
241
+ end
242
+ UI.success "Found #{total.count} #{type} releases."
243
+ @versions.merge!(total)
239
244
  end
240
245
 
241
246
  def fetch_all_channels
@@ -250,7 +255,7 @@ module U3d
250
255
  class MacVersions
251
256
  class << self
252
257
  def list_available
253
- VersionsFetcher.new(pattern: MAC_DOWNLOAD).fetch_all_channels
258
+ VersionsFetcher.new(pattern: [MAC_DOWNLOAD, MAC_DOWNLOAD_2018_2]).fetch_all_channels
254
259
  end
255
260
  end
256
261
  end
@@ -21,7 +21,7 @@
21
21
  ## --- END LICENSE BLOCK ---
22
22
 
23
23
  module U3d
24
- VERSION = '1.1.0'.freeze
24
+ VERSION = '1.1.1'.freeze
25
25
  DESCRIPTION = 'Provides numerous tools for installing, managing and running the Unity game engine from command line.'.freeze
26
26
  UNITY_VERSIONS_NOTE = "Unity 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 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.1.0
4
+ version: 1.1.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: 2018-06-27 00:00:00.000000000 Z
12
+ date: 2018-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colored
@@ -433,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
433
433
  version: '0'
434
434
  requirements: []
435
435
  rubyforge_project:
436
- rubygems_version: 2.6.12
436
+ rubygems_version: 2.7.6
437
437
  signing_key:
438
438
  specification_version: 4
439
439
  summary: U3d