u3d 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ module U3dCore
36
36
  end
37
37
 
38
38
  # @return true if the currently running program is a unit test
39
- def self.is_test?
39
+ def self.test?
40
40
  defined? SpecHelper
41
41
  end
42
42
 
@@ -48,7 +48,7 @@ module U3dCore
48
48
  # @return [boolean] true if executing with bundler (like 'bundle exec fastlane [action]')
49
49
  def self.bundler?
50
50
  # Bundler environment variable
51
- %w(BUNDLE_BIN_PATH BUNDLE_GEMFILE).each do |current|
51
+ %w[BUNDLE_BIN_PATH BUNDLE_GEMFILE].each do |current|
52
52
  return true if ENV.key?(current)
53
53
  end
54
54
  return false
@@ -57,7 +57,7 @@ module U3dCore
57
57
  # @return [boolean] true if building in a known CI environment
58
58
  def self.ci?
59
59
  # Check for Jenkins, Travis CI, ... environment variables
60
- %w(JENKINS_HOME JENKINS_URL TRAVIS CIRCLECI CI TEAMCITY_VERSION GO_PIPELINE_NAME bamboo_buildKey GITLAB_CI XCS).each do |current|
60
+ %w[JENKINS_HOME JENKINS_URL TRAVIS CIRCLECI CI TEAMCITY_VERSION GO_PIPELINE_NAME bamboo_buildKey GITLAB_CI XCS].each do |current|
61
61
  return true if ENV.key?(current)
62
62
  end
63
63
  return false
@@ -79,11 +79,12 @@ module U3dCore
79
79
 
80
80
  # the valid operating systems
81
81
  def self.operating_systems
82
- [:linux, :mac, :win]
82
+ %i[linux mac win]
83
83
  end
84
84
 
85
85
  # the current operating system
86
86
  def self.operating_system
87
+ # rubocop:disable GuardClause
87
88
  if linux?
88
89
  return :linux
89
90
  elsif mac?
@@ -93,6 +94,7 @@ module U3dCore
93
94
  else
94
95
  raise 'Could not assume what OS you\'re running, please specify it as much as possible'
95
96
  end
97
+ # rubocop:enable GuardClause
96
98
  end
97
99
 
98
100
  def self.win_64?
@@ -110,12 +112,12 @@ module U3dCore
110
112
 
111
113
  # Does the user use the Mac stock terminal
112
114
  def self.mac_stock_terminal?
113
- !!ENV["TERM_PROGRAM_VERSION"]
115
+ !ENV["TERM_PROGRAM_VERSION"].nil?
114
116
  end
115
117
 
116
118
  # Does the user use iTerm?
117
119
  def self.iterm?
118
- !!ENV["ITERM_SESSION_ID"]
120
+ !ENV["ITERM_SESSION_ID"].nil?
119
121
  end
120
122
 
121
123
  # Logs base directory
@@ -30,7 +30,7 @@ module U3dCore
30
30
 
31
31
  $stdout.sync = true
32
32
 
33
- @log ||= if Helper.is_test?
33
+ @log ||= if Helper.test?
34
34
  Logger.new(nil) # don't show any logs when running tests
35
35
  else
36
36
  Logger.new($stdout)
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'u3d/version'
@@ -36,5 +37,6 @@ Gem::Specification.new do |spec|
36
37
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.3'
37
38
  spec.add_development_dependency "pry"
38
39
  spec.add_development_dependency "coveralls"
39
- spec.add_development_dependency 'rubocop', '~> 0.44.0'
40
+ spec.add_development_dependency "github_changelog_generator"
41
+ spec.add_development_dependency 'rubocop', '~> 0.49.1'
40
42
  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: 0.9.3
4
+ version: 0.9.4
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-08-07 00:00:00.000000000 Z
12
+ date: 2017-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: commander
@@ -217,20 +217,34 @@ dependencies:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
219
  version: '0'
220
+ - !ruby/object:Gem::Dependency
221
+ name: github_changelog_generator
222
+ requirement: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ version: '0'
227
+ type: :development
228
+ prerelease: false
229
+ version_requirements: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
220
234
  - !ruby/object:Gem::Dependency
221
235
  name: rubocop
222
236
  requirement: !ruby/object:Gem::Requirement
223
237
  requirements:
224
238
  - - "~>"
225
239
  - !ruby/object:Gem::Version
226
- version: 0.44.0
240
+ version: 0.49.1
227
241
  type: :development
228
242
  prerelease: false
229
243
  version_requirements: !ruby/object:Gem::Requirement
230
244
  requirements:
231
245
  - - "~>"
232
246
  - !ruby/object:Gem::Version
233
- version: 0.44.0
247
+ version: 0.49.1
234
248
  description: Provides numerous tools for installing, managing and running the Unity3D
235
249
  game engine from command line.
236
250
  email: jerome@wewanttoknow.com
@@ -239,11 +253,14 @@ executables:
239
253
  extensions: []
240
254
  extra_rdoc_files: []
241
255
  files:
256
+ - ".circleci/config.yml"
257
+ - ".github_changelog_generator"
242
258
  - ".gitignore"
243
259
  - ".licenses.json"
244
260
  - ".rspec"
245
261
  - ".rubocop.yml"
246
262
  - CHANGELOG.md
263
+ - CODE_OF_CONDUCT.md
247
264
  - Gemfile
248
265
  - Gemfile.lock
249
266
  - LICENSE
@@ -258,6 +275,8 @@ files:
258
275
  - docs/assets/u3d_install.png
259
276
  - docs/assets/u3d_list.png
260
277
  - docs/assets/u3d_run.png
278
+ - docs/assets/u3d_run_current.png
279
+ - docs/assets/u3d_sanitize.png
261
280
  - examples/Example1/.gitignore
262
281
  - examples/Example1/Assets/Editor.meta
263
282
  - examples/Example1/Assets/Editor/EditorRun.cs
@@ -345,11 +364,15 @@ files:
345
364
  - lib/u3d/cache.rb
346
365
  - lib/u3d/commands.rb
347
366
  - lib/u3d/commands_generator.rb
367
+ - lib/u3d/download_validator.rb
348
368
  - lib/u3d/downloader.rb
349
369
  - lib/u3d/iniparser.rb
370
+ - lib/u3d/installation.rb
350
371
  - lib/u3d/installer.rb
351
372
  - lib/u3d/log_analyzer.rb
373
+ - lib/u3d/unity_project.rb
352
374
  - lib/u3d/unity_runner.rb
375
+ - lib/u3d/unity_version_definition.rb
353
376
  - lib/u3d/unity_version_number.rb
354
377
  - lib/u3d/unity_versions.rb
355
378
  - lib/u3d/utils.rb
@@ -387,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
410
  version: '0'
388
411
  requirements: []
389
412
  rubyforge_project:
390
- rubygems_version: 2.2.2
413
+ rubygems_version: 2.6.12
391
414
  signing_key:
392
415
  specification_version: 4
393
416
  summary: U3d