u3d 1.2.2 → 1.3.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 +4 -4
- data/.circleci/config.yml +33 -10
- data/.github/workflows/ci.yml +35 -0
- data/.github_changelog_generator +3 -1
- data/.gitignore +1 -0
- data/.rubocop.yml +15 -3
- data/CHANGELOG.md +83 -11
- data/Gemfile.lock +147 -87
- data/Rakefile +20 -12
- data/appveyor.yml +25 -6
- data/examples/Example1/Gemfile +4 -2
- data/examples/Example1/Gemfile.lock +8 -6
- data/examples/Example1/Rakefile +2 -0
- data/examples/Example1/fastlane/Fastfile +2 -0
- data/examples/Example2/Gemfile +4 -2
- data/examples/Example2/Gemfile.lock +12 -7
- data/examples/Example2/fastlane/Fastfile +2 -0
- data/exe/u3d +3 -1
- data/lib/u3d/asset.rb +6 -2
- data/lib/u3d/cache.rb +14 -10
- data/lib/u3d/commands.rb +15 -11
- data/lib/u3d/commands_generator.rb +6 -4
- data/lib/u3d/compatibility.rb +2 -0
- data/lib/u3d/download_validator.rb +6 -3
- data/lib/u3d/downloader.rb +12 -8
- data/lib/u3d/failure_reporter.rb +4 -3
- data/lib/u3d/hub_modules_parser.rb +24 -7
- data/lib/u3d/ini_modules_parser.rb +10 -32
- data/lib/u3d/installation.rb +77 -66
- data/lib/u3d/installer.rb +46 -33
- data/lib/u3d/log_analyzer.rb +31 -27
- data/lib/u3d/unity_license.rb +2 -0
- data/lib/u3d/unity_module.rb +2 -0
- data/lib/u3d/unity_project.rb +4 -1
- data/lib/u3d/unity_runner.rb +12 -10
- data/lib/u3d/unity_version_definition.rb +3 -0
- data/lib/u3d/unity_version_number.rb +8 -2
- data/lib/u3d/unity_versions.rb +28 -23
- data/lib/u3d/utils.rb +86 -15
- data/lib/u3d/version.rb +8 -6
- data/lib/u3d.rb +13 -0
- data/lib/u3d_core/admin_tools.rb +2 -0
- data/lib/u3d_core/command_executor.rb +11 -7
- data/lib/u3d_core/command_runner.rb +17 -19
- data/lib/u3d_core/core_ext/hash.rb +2 -0
- data/lib/u3d_core/core_ext/operating_system_symbol.rb +3 -0
- data/lib/u3d_core/core_ext/string.rb +2 -0
- data/lib/u3d_core/credentials.rb +9 -7
- data/lib/u3d_core/env.rb +3 -0
- data/lib/u3d_core/globals.rb +7 -7
- data/lib/u3d_core/helper.rb +6 -4
- data/lib/u3d_core/ui/disable_colors.rb +2 -0
- data/lib/u3d_core/ui/implementations/shell.rb +8 -5
- data/lib/u3d_core/ui/interface.rb +3 -0
- data/lib/u3d_core/ui/ui.rb +5 -4
- data/lib/u3d_core/update_checker/changelog.rb +4 -0
- data/lib/u3d_core/update_checker/update_checker.rb +7 -8
- data/lib/u3d_core/version.rb +2 -0
- data/lib/u3d_core.rb +2 -0
- data/u3d.gemspec +19 -9
- metadata +101 -29
data/Gemfile.lock
CHANGED
@@ -1,139 +1,199 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
u3d (1.
|
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)
|
8
8
|
filesize (>= 0.1.1)
|
9
9
|
inifile (>= 3.0.0, < 4.0.0)
|
10
10
|
plist (>= 3.1.0, < 4.0.0)
|
11
|
+
rexml
|
11
12
|
rubyzip (>= 1.0.0)
|
12
13
|
security (= 0.1.3)
|
13
14
|
|
14
15
|
GEM
|
15
16
|
remote: https://rubygems.org/
|
16
17
|
specs:
|
17
|
-
activesupport (
|
18
|
+
activesupport (6.1.6)
|
18
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
i18n (
|
20
|
-
minitest (
|
21
|
-
tzinfo (~>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
i18n (>= 1.6, < 2)
|
21
|
+
minitest (>= 5.1)
|
22
|
+
tzinfo (~> 2.0)
|
23
|
+
zeitwerk (~> 2.3)
|
24
|
+
addressable (2.8.0)
|
25
|
+
public_suffix (>= 2.0.2, < 5.0)
|
26
|
+
ast (2.4.2)
|
27
|
+
async (1.30.2)
|
28
|
+
console (~> 1.10)
|
29
|
+
nio4r (~> 2.3)
|
30
|
+
timers (~> 4.1)
|
31
|
+
async-http (0.56.6)
|
32
|
+
async (>= 1.25)
|
33
|
+
async-io (>= 1.28)
|
34
|
+
async-pool (>= 0.2)
|
35
|
+
protocol-http (~> 0.22.0)
|
36
|
+
protocol-http1 (~> 0.14.0)
|
37
|
+
protocol-http2 (~> 0.14.0)
|
38
|
+
traces (~> 0.4.0)
|
39
|
+
async-http-faraday (0.11.0)
|
40
|
+
async-http (~> 0.42)
|
41
|
+
faraday
|
42
|
+
async-io (1.33.0)
|
43
|
+
async
|
44
|
+
async-pool (0.3.10)
|
45
|
+
async (>= 1.25)
|
28
46
|
colored (1.2)
|
29
|
-
commander (4.
|
47
|
+
commander (4.6.0)
|
30
48
|
highline (~> 2.0.0)
|
31
|
-
concurrent-ruby (1.
|
32
|
-
|
49
|
+
concurrent-ruby (1.1.10)
|
50
|
+
console (1.15.3)
|
51
|
+
fiber-local
|
52
|
+
coveralls (0.8.23)
|
33
53
|
json (>= 1.8, < 3)
|
34
|
-
simplecov (~> 0.
|
54
|
+
simplecov (~> 0.16.1)
|
35
55
|
term-ansicolor (~> 1.3)
|
36
|
-
thor (
|
56
|
+
thor (>= 0.19.4, < 2.0)
|
37
57
|
tins (~> 1.6)
|
38
|
-
diff-lcs (1.
|
39
|
-
docile (1.
|
40
|
-
|
58
|
+
diff-lcs (1.5.0)
|
59
|
+
docile (1.4.0)
|
60
|
+
excon (0.92.3)
|
61
|
+
faraday (1.10.0)
|
62
|
+
faraday-em_http (~> 1.0)
|
63
|
+
faraday-em_synchrony (~> 1.0)
|
64
|
+
faraday-excon (~> 1.1)
|
65
|
+
faraday-httpclient (~> 1.0)
|
66
|
+
faraday-multipart (~> 1.0)
|
67
|
+
faraday-net_http (~> 1.0)
|
68
|
+
faraday-net_http_persistent (~> 1.0)
|
69
|
+
faraday-patron (~> 1.0)
|
70
|
+
faraday-rack (~> 1.0)
|
71
|
+
faraday-retry (~> 1.0)
|
72
|
+
ruby2_keywords (>= 0.0.4)
|
73
|
+
faraday-em_http (1.0.0)
|
74
|
+
faraday-em_synchrony (1.0.0)
|
75
|
+
faraday-excon (1.1.0)
|
76
|
+
faraday-http-cache (2.2.0)
|
77
|
+
faraday (>= 0.8)
|
78
|
+
faraday-httpclient (1.0.1)
|
79
|
+
faraday-multipart (1.0.3)
|
41
80
|
multipart-post (>= 1.2, < 3)
|
42
|
-
faraday-
|
43
|
-
|
81
|
+
faraday-net_http (1.0.1)
|
82
|
+
faraday-net_http_persistent (1.2.0)
|
83
|
+
faraday-patron (1.0.0)
|
84
|
+
faraday-rack (1.0.0)
|
85
|
+
faraday-retry (1.0.3)
|
86
|
+
fiber-local (1.0.0)
|
44
87
|
file-tail (1.2.0)
|
45
88
|
tins (~> 1.0)
|
46
89
|
filesize (0.2.0)
|
47
|
-
github_changelog_generator (1.
|
90
|
+
github_changelog_generator (1.16.4)
|
48
91
|
activesupport
|
92
|
+
async (>= 1.25.0)
|
93
|
+
async-http-faraday
|
49
94
|
faraday-http-cache
|
50
95
|
multi_json
|
51
96
|
octokit (~> 4.6)
|
52
|
-
rainbow (>= 2.1)
|
97
|
+
rainbow (>= 2.2.1)
|
53
98
|
rake (>= 10.0)
|
54
|
-
retriable (~> 2.1)
|
55
99
|
highline (2.0.3)
|
56
|
-
i18n (
|
100
|
+
i18n (1.10.0)
|
101
|
+
concurrent-ruby (~> 1.0)
|
57
102
|
inifile (3.0.0)
|
58
|
-
json (2.
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
octokit (4.
|
103
|
+
json (2.6.2)
|
104
|
+
minitest (5.15.0)
|
105
|
+
multi_json (1.15.0)
|
106
|
+
multipart-post (2.1.1)
|
107
|
+
nio4r (2.5.8)
|
108
|
+
octokit (4.22.0)
|
109
|
+
faraday (>= 0.9)
|
64
110
|
sawyer (~> 0.8.0, >= 0.5.3)
|
65
|
-
parallel (1.
|
66
|
-
parser (2.
|
67
|
-
ast (~> 2.
|
68
|
-
plist (3.
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
public_suffix (
|
77
|
-
rainbow (3.
|
78
|
-
rake (
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
rspec-
|
83
|
-
rspec-
|
84
|
-
|
85
|
-
|
86
|
-
|
111
|
+
parallel (1.22.1)
|
112
|
+
parser (3.1.2.0)
|
113
|
+
ast (~> 2.4.1)
|
114
|
+
plist (3.6.0)
|
115
|
+
protocol-hpack (1.4.2)
|
116
|
+
protocol-http (0.22.6)
|
117
|
+
protocol-http1 (0.14.4)
|
118
|
+
protocol-http (~> 0.22)
|
119
|
+
protocol-http2 (0.14.2)
|
120
|
+
protocol-hpack (~> 1.4)
|
121
|
+
protocol-http (~> 0.18)
|
122
|
+
public_suffix (4.0.7)
|
123
|
+
rainbow (3.1.1)
|
124
|
+
rake (13.0.6)
|
125
|
+
regexp_parser (2.4.0)
|
126
|
+
rexml (3.2.5)
|
127
|
+
rspec (3.11.0)
|
128
|
+
rspec-core (~> 3.11.0)
|
129
|
+
rspec-expectations (~> 3.11.0)
|
130
|
+
rspec-mocks (~> 3.11.0)
|
131
|
+
rspec-core (3.11.0)
|
132
|
+
rspec-support (~> 3.11.0)
|
133
|
+
rspec-expectations (3.11.0)
|
87
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
-
rspec-support (~> 3.
|
89
|
-
rspec-mocks (3.1
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
135
|
+
rspec-support (~> 3.11.0)
|
136
|
+
rspec-mocks (3.11.1)
|
137
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
138
|
+
rspec-support (~> 3.11.0)
|
139
|
+
rspec-support (3.11.0)
|
140
|
+
rspec_junit_formatter (0.5.1)
|
94
141
|
rspec-core (>= 2, < 4, != 2.12.0)
|
95
|
-
rubocop (
|
142
|
+
rubocop (1.28.2)
|
96
143
|
parallel (~> 1.10)
|
97
|
-
parser (>=
|
98
|
-
powerpack (~> 0.1)
|
144
|
+
parser (>= 3.1.0.0)
|
99
145
|
rainbow (>= 2.2.2, < 4.0)
|
146
|
+
regexp_parser (>= 1.8, < 3.0)
|
147
|
+
rexml
|
148
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
100
149
|
ruby-progressbar (~> 1.7)
|
101
|
-
unicode-display_width (
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
150
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
151
|
+
rubocop-ast (1.17.0)
|
152
|
+
parser (>= 3.1.1.0)
|
153
|
+
rubocop-rake (0.6.0)
|
154
|
+
rubocop (~> 1.0)
|
155
|
+
ruby-progressbar (1.11.0)
|
156
|
+
ruby2_keywords (0.0.5)
|
157
|
+
rubyzip (2.3.2)
|
158
|
+
sawyer (0.8.2)
|
159
|
+
addressable (>= 2.3.5)
|
160
|
+
faraday (> 0.8, < 2.0)
|
107
161
|
security (0.1.3)
|
108
|
-
simplecov (0.
|
109
|
-
docile (~> 1.1
|
162
|
+
simplecov (0.16.1)
|
163
|
+
docile (~> 1.1)
|
110
164
|
json (>= 1.8, < 3)
|
111
165
|
simplecov-html (~> 0.10.0)
|
112
|
-
simplecov-html (0.10.
|
113
|
-
|
166
|
+
simplecov-html (0.10.2)
|
167
|
+
sync (0.5.0)
|
168
|
+
term-ansicolor (1.7.1)
|
114
169
|
tins (~> 1.0)
|
115
|
-
thor (
|
116
|
-
|
117
|
-
tins (1.
|
118
|
-
|
119
|
-
|
120
|
-
|
170
|
+
thor (1.2.1)
|
171
|
+
timers (4.3.3)
|
172
|
+
tins (1.31.1)
|
173
|
+
sync
|
174
|
+
traces (0.4.1)
|
175
|
+
tzinfo (2.0.4)
|
176
|
+
concurrent-ruby (~> 1.0)
|
177
|
+
unicode-display_width (2.1.0)
|
178
|
+
zeitwerk (2.5.4)
|
121
179
|
|
122
180
|
PLATFORMS
|
123
181
|
ruby
|
124
|
-
x64-mingw32
|
125
|
-
x86-mingw32
|
126
182
|
|
127
183
|
DEPENDENCIES
|
184
|
+
activesupport (>= 5.2.4.3)
|
185
|
+
addressable (>= 2.8.0)
|
128
186
|
bundler (~> 2.0)
|
129
187
|
coveralls
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
188
|
+
excon (>= 0.71.0)
|
189
|
+
github_changelog_generator (>= 1.16.4)
|
190
|
+
json (>= 2.3.0)
|
191
|
+
rake (>= 12.3.3)
|
192
|
+
rspec (~> 3.11.0)
|
193
|
+
rspec_junit_formatter (~> 0.5.1)
|
194
|
+
rubocop (~> 1.27)
|
195
|
+
rubocop-rake (~> 0.6.0)
|
136
196
|
u3d!
|
137
197
|
|
138
198
|
BUNDLED WITH
|
139
|
-
2.
|
199
|
+
2.3.13
|
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
## --- BEGIN LICENSE BLOCK ---
|
2
4
|
# Copyright (c) 2016-present WeWantToKnow AS
|
3
5
|
#
|
@@ -35,7 +37,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
35
37
|
RuboCop::RakeTask.new
|
36
38
|
|
37
39
|
class GithubChangelogGenerator
|
38
|
-
PATH = '.github_changelog_generator'
|
40
|
+
PATH = '.github_changelog_generator'
|
39
41
|
class << self
|
40
42
|
def future_release
|
41
43
|
s = File.read(PATH)
|
@@ -56,25 +58,25 @@ class GithubChangelogGenerator
|
|
56
58
|
line
|
57
59
|
end
|
58
60
|
end
|
59
|
-
File.write(PATH, lines.join("\n")
|
61
|
+
File.write(PATH, "#{lines.join("\n")}\n")
|
60
62
|
end
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
class U3dCode
|
65
|
-
PATH = 'lib/u3d/version.rb'
|
67
|
+
PATH = 'lib/u3d/version.rb'
|
66
68
|
class << self
|
67
69
|
def version=(version)
|
68
70
|
s = File.read(PATH)
|
69
71
|
lines = s.split("\n").map do |line|
|
70
|
-
m = line.match(/(.*VERSION = ').*('
|
72
|
+
m = line.match(/(.*VERSION = ').*(')/)
|
71
73
|
if m
|
72
74
|
"#{m[1]}#{version}#{m[2]}"
|
73
75
|
else
|
74
76
|
line
|
75
77
|
end
|
76
78
|
end
|
77
|
-
File.write(PATH, lines.join("\n")
|
79
|
+
File.write(PATH, "#{lines.join("\n")}\n")
|
78
80
|
end
|
79
81
|
end
|
80
82
|
end
|
@@ -126,6 +128,7 @@ def github_reviewers
|
|
126
128
|
end
|
127
129
|
###
|
128
130
|
|
131
|
+
desc 'Ensure the git repository is clean. Fails otherwise'
|
129
132
|
task :ensure_git_clean do
|
130
133
|
branch = run_command('git rev-parse --abbrev-ref HEAD', "Couldn't get current git branch").strip
|
131
134
|
UI.user_error!("You are not on 'master' but on '#{branch}'") unless branch == "master"
|
@@ -133,10 +136,11 @@ task :ensure_git_clean do
|
|
133
136
|
UI.user_error!("git status not clean:\n#{output}") unless output == ""
|
134
137
|
end
|
135
138
|
|
136
|
-
|
139
|
+
desc 'Ensure we are ready to prepare a PR'
|
137
140
|
task :prepare_git_pr, [:pr_branch] do |_t, args|
|
138
141
|
pr_branch = args['pr_branch']
|
139
142
|
raise "Missing pr_branch argument" unless pr_branch
|
143
|
+
|
140
144
|
UI.user_error! "Prepare git PR stopped by user" unless UI.confirm("Creating PR branch #{pr_branch}")
|
141
145
|
run_command("git checkout -b #{pr_branch}")
|
142
146
|
end
|
@@ -216,10 +220,11 @@ def parse_changelog
|
|
216
220
|
if (m = line.match(/^## \[(.*)\]/))
|
217
221
|
releases[version] = buffer if buffer
|
218
222
|
version = m[1]
|
219
|
-
buffer = version
|
223
|
+
buffer = "#{version}\n\n"
|
220
224
|
else
|
221
225
|
next unless version # skip first lines
|
222
|
-
|
226
|
+
|
227
|
+
buffer += line
|
223
228
|
end
|
224
229
|
end
|
225
230
|
releases[version] = buffer
|
@@ -227,22 +232,25 @@ def parse_changelog
|
|
227
232
|
end
|
228
233
|
|
229
234
|
desc 'Create missing Github releases from changelog'
|
230
|
-
task :create_missing_github_releases do
|
235
|
+
task :create_missing_github_releases, [:force] do |_t, args|
|
236
|
+
force = args[:force] || false
|
231
237
|
releases = parse_changelog
|
232
238
|
|
233
239
|
known_releases = `hub release`.split("\n")
|
234
240
|
|
235
241
|
releases.keys.reverse.each do |version|
|
236
|
-
|
242
|
+
exist = known_releases.include? version
|
243
|
+
if exist && !force
|
237
244
|
puts "Skipping existing version #{version}"
|
238
245
|
next
|
239
246
|
end
|
247
|
+
action = exist ? "edit" : "create"
|
240
248
|
changelog = releases[version]
|
241
|
-
puts "
|
249
|
+
puts "About to #{action} version #{version}"
|
242
250
|
require "tempfile"
|
243
251
|
Tempfile.create("githubchangelog") do |changelog_file|
|
244
252
|
File.write(changelog_file, changelog)
|
245
|
-
command = "hub release
|
253
|
+
command = "hub release #{action} #{version} --file #{changelog_file.path}"
|
246
254
|
`#{command}`
|
247
255
|
end
|
248
256
|
end
|
data/appveyor.yml
CHANGED
@@ -1,21 +1,40 @@
|
|
1
1
|
# https://www.appveyor.com/docs/appveyor-yml/
|
2
|
-
|
2
|
+
image: Visual Studio 2022
|
3
|
+
|
3
4
|
version: "{build}"
|
4
5
|
|
5
6
|
init:
|
6
7
|
- git config --global core.autocrlf false
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
install:
|
11
|
-
- set PATH=C:\Ruby24-x64\bin;%PATH%
|
12
|
-
- bundle install
|
9
|
+
cache:
|
10
|
+
- vendor/bundle
|
13
11
|
|
14
12
|
environment:
|
15
13
|
LC_ALL: en_US.UTF-8
|
16
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
|
17
31
|
|
18
32
|
build: off
|
19
33
|
|
34
|
+
before_test:
|
35
|
+
- ruby -v
|
36
|
+
- gem -v
|
37
|
+
- bundle -v
|
38
|
+
|
20
39
|
test_script:
|
21
40
|
- bundle exec rake
|
data/examples/Example1/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
gem 'fastlane'
|
@@ -5,6 +7,6 @@ REPO_ROOT = File.expand_path(File.join('..', '..'))
|
|
5
7
|
gem 'u3d', path: REPO_ROOT
|
6
8
|
|
7
9
|
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
|
8
|
-
# rubocop:disable Eval
|
10
|
+
# rubocop:disable Security/Eval
|
9
11
|
eval(File.read(plugins_path), binding) if File.exist?(plugins_path)
|
10
|
-
# rubocop:enable Eval
|
12
|
+
# rubocop:enable Security/Eval
|
@@ -1,19 +1,20 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /Users/lacostej/Code/OSS/
|
2
|
+
remote: /Users/lacostej/Code/OSS/u3d_releases/fastlane-plugin-u3d
|
3
3
|
specs:
|
4
4
|
fastlane-plugin-u3d (0.1.2)
|
5
5
|
u3d (>= 0.9, < 2.0)
|
6
6
|
|
7
7
|
PATH
|
8
|
-
remote: /Users/lacostej/Code/OSS/
|
8
|
+
remote: /Users/lacostej/Code/OSS/u3d_releases
|
9
9
|
specs:
|
10
|
-
u3d (1.2.
|
10
|
+
u3d (1.2.3)
|
11
11
|
colored (>= 1.2, < 2.0.0)
|
12
12
|
commander (>= 4.4.0, < 5.0.0)
|
13
13
|
file-tail (>= 1.2.0)
|
14
14
|
filesize (>= 0.1.1)
|
15
15
|
inifile (>= 3.0.0, < 4.0.0)
|
16
16
|
plist (>= 3.1.0, < 4.0.0)
|
17
|
+
rexml
|
17
18
|
rubyzip (>= 1.0.0)
|
18
19
|
security (= 0.1.3)
|
19
20
|
|
@@ -21,7 +22,7 @@ GEM
|
|
21
22
|
remote: https://rubygems.org/
|
22
23
|
specs:
|
23
24
|
CFPropertyList (3.0.1)
|
24
|
-
addressable (2.
|
25
|
+
addressable (2.8.0)
|
25
26
|
public_suffix (>= 2.0.2, < 5.0)
|
26
27
|
atomos (0.1.3)
|
27
28
|
babosa (1.0.3)
|
@@ -118,7 +119,7 @@ GEM
|
|
118
119
|
domain_name (~> 0.5)
|
119
120
|
httpclient (2.8.3)
|
120
121
|
inifile (3.0.0)
|
121
|
-
json (2.2
|
122
|
+
json (2.6.2)
|
122
123
|
jwt (2.1.0)
|
123
124
|
memoist (0.16.0)
|
124
125
|
mime-types (3.3)
|
@@ -138,6 +139,7 @@ GEM
|
|
138
139
|
declarative-option (< 0.2.0)
|
139
140
|
uber (< 0.2.0)
|
140
141
|
retriable (3.1.2)
|
142
|
+
rexml (3.2.5)
|
141
143
|
rouge (2.0.7)
|
142
144
|
rubyzip (1.3.0)
|
143
145
|
security (0.1.3)
|
@@ -154,7 +156,7 @@ GEM
|
|
154
156
|
terminal-notifier (2.0.0)
|
155
157
|
terminal-table (1.8.0)
|
156
158
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
157
|
-
tins (1.
|
159
|
+
tins (1.31.1)
|
158
160
|
sync
|
159
161
|
tty-cursor (0.7.0)
|
160
162
|
tty-screen (0.7.0)
|
data/examples/Example1/Rakefile
CHANGED
data/examples/Example2/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
5
|
gem 'fastlane'
|
@@ -5,6 +7,6 @@ REPO_ROOT = File.expand_path(File.join('..', '..'))
|
|
5
7
|
gem 'u3d', path: REPO_ROOT
|
6
8
|
|
7
9
|
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
|
8
|
-
# rubocop:disable Eval
|
10
|
+
# rubocop:disable Security/Eval
|
9
11
|
eval(File.read(plugins_path), binding) if File.exist?(plugins_path)
|
10
|
-
# rubocop:enable Eval
|
12
|
+
# rubocop:enable Security/Eval
|
@@ -1,26 +1,28 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /Users/lacostej/Code/OSS/
|
2
|
+
remote: /Users/lacostej/Code/OSS/u3d_releases/fastlane-plugin-u3d
|
3
3
|
specs:
|
4
4
|
fastlane-plugin-u3d (0.1.2)
|
5
5
|
u3d (>= 0.9, < 2.0)
|
6
6
|
|
7
7
|
PATH
|
8
|
-
remote: /Users/lacostej/Code/OSS/
|
8
|
+
remote: /Users/lacostej/Code/OSS/u3d_releases
|
9
9
|
specs:
|
10
|
-
u3d (1.
|
10
|
+
u3d (1.2.3)
|
11
11
|
colored (>= 1.2, < 2.0.0)
|
12
12
|
commander (>= 4.4.0, < 5.0.0)
|
13
13
|
file-tail (>= 1.2.0)
|
14
14
|
filesize (>= 0.1.1)
|
15
15
|
inifile (>= 3.0.0, < 4.0.0)
|
16
16
|
plist (>= 3.1.0, < 4.0.0)
|
17
|
+
rexml
|
18
|
+
rubyzip (>= 1.0.0)
|
17
19
|
security (= 0.1.3)
|
18
20
|
|
19
21
|
GEM
|
20
22
|
remote: https://rubygems.org/
|
21
23
|
specs:
|
22
24
|
CFPropertyList (3.0.1)
|
23
|
-
addressable (2.
|
25
|
+
addressable (2.8.0)
|
24
26
|
public_suffix (>= 2.0.2, < 5.0)
|
25
27
|
atomos (0.1.3)
|
26
28
|
babosa (1.0.3)
|
@@ -38,7 +40,7 @@ GEM
|
|
38
40
|
unf (>= 0.0.5, < 1.0.0)
|
39
41
|
dotenv (2.7.5)
|
40
42
|
emoji_regex (1.0.1)
|
41
|
-
excon (0.
|
43
|
+
excon (0.92.3)
|
42
44
|
faraday (0.17.0)
|
43
45
|
multipart-post (>= 1.2, < 3)
|
44
46
|
faraday-cookie_jar (0.0.6)
|
@@ -117,7 +119,7 @@ GEM
|
|
117
119
|
domain_name (~> 0.5)
|
118
120
|
httpclient (2.8.3)
|
119
121
|
inifile (3.0.0)
|
120
|
-
json (2.2
|
122
|
+
json (2.6.2)
|
121
123
|
jwt (2.1.0)
|
122
124
|
memoist (0.16.0)
|
123
125
|
mime-types (3.3)
|
@@ -137,6 +139,7 @@ GEM
|
|
137
139
|
declarative-option (< 0.2.0)
|
138
140
|
uber (< 0.2.0)
|
139
141
|
retriable (3.1.2)
|
142
|
+
rexml (3.2.5)
|
140
143
|
rouge (2.0.7)
|
141
144
|
rubyzip (1.3.0)
|
142
145
|
security (0.1.3)
|
@@ -149,10 +152,12 @@ GEM
|
|
149
152
|
CFPropertyList
|
150
153
|
naturally
|
151
154
|
slack-notifier (2.3.2)
|
155
|
+
sync (0.5.0)
|
152
156
|
terminal-notifier (2.0.0)
|
153
157
|
terminal-table (1.8.0)
|
154
158
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
155
|
-
tins (1.
|
159
|
+
tins (1.31.1)
|
160
|
+
sync
|
156
161
|
tty-cursor (0.7.0)
|
157
162
|
tty-screen (0.7.0)
|
158
163
|
tty-spinner (0.9.1)
|
data/exe/u3d
CHANGED
data/lib/u3d/asset.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
## --- BEGIN LICENSE BLOCK ---
|
2
4
|
# Copyright (c) 2016-present WeWantToKnow AS
|
3
5
|
#
|
@@ -36,8 +38,9 @@ module U3d
|
|
36
38
|
|
37
39
|
def initialize(path, unity_project = nil)
|
38
40
|
raise ArgumentError, "No file at #{path}" unless File.exist?(path)
|
41
|
+
|
39
42
|
@path = path
|
40
|
-
@meta_path = path
|
43
|
+
@meta_path = "#{path}.meta"
|
41
44
|
@meta = YAML.safe_load(File.read(@meta_path))
|
42
45
|
@guid = @meta['guid']
|
43
46
|
@unity_project = unity_project
|
@@ -63,6 +66,7 @@ module U3d
|
|
63
66
|
|
64
67
|
def eql?(other)
|
65
68
|
return false unless other.is_a? Asset
|
69
|
+
|
66
70
|
other.guid == @guid
|
67
71
|
end
|
68
72
|
|
@@ -81,7 +85,7 @@ module U3d
|
|
81
85
|
private
|
82
86
|
|
83
87
|
def grep_reference_root
|
84
|
-
@unity_project
|
88
|
+
@unity_project&.exist? ? 'Assets/' : '.'
|
85
89
|
end
|
86
90
|
end
|
87
91
|
end
|