platinum-deployer 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Session.vim +14 -13
- data/exe/platinum +9 -5
- data/exe/platinum-ios-simulate.js +2 -0
- data/lib/platinum/deployer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f493af74533210868dba8aa47f7c3d1d2a496720
|
4
|
+
data.tar.gz: 1af9b5f9eaf4575c7d7df8469eb9b46d6b25183f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b2fada827f69ebbdf08c25e07b2fe1c1739fb8d518f29ea811aceb64ec378d7e180b5929b3e50e8933e53bcaaa6c59f330eb4b628d60d77162f3ddc7ab2c8a
|
7
|
+
data.tar.gz: 29dbcc3e09f1703f1710e39d540edeef8544c2cbfbc339e7d5f11125922118d0b63741accb7360a599cd4b70bb4b3fc614a3183889bb94b37ed844bcffdfc26e
|
data/Session.vim
CHANGED
@@ -38,9 +38,9 @@ set nosplitright
|
|
38
38
|
wincmd t
|
39
39
|
set winheight=1 winwidth=1
|
40
40
|
exe '1resize ' . ((&lines * 19 + 30) / 60)
|
41
|
-
exe 'vert 1resize ' . ((&columns * 67 +
|
41
|
+
exe 'vert 1resize ' . ((&columns * 67 + 92) / 185)
|
42
42
|
exe '2resize ' . ((&lines * 19 + 30) / 60)
|
43
|
-
exe 'vert 2resize ' . ((&columns *
|
43
|
+
exe 'vert 2resize ' . ((&columns * 117 + 92) / 185)
|
44
44
|
exe '3resize ' . ((&lines * 18 + 30) / 60)
|
45
45
|
exe '4resize ' . ((&lines * 19 + 30) / 60)
|
46
46
|
argglobal
|
@@ -53,12 +53,12 @@ setlocal fml=1
|
|
53
53
|
setlocal fdn=20
|
54
54
|
setlocal fen
|
55
55
|
silent! normal! zE
|
56
|
-
let s:l =
|
56
|
+
let s:l = 3 - ((2 * winheight(0) + 9) / 19)
|
57
57
|
if s:l < 1 | let s:l = 1 | endif
|
58
58
|
exe s:l
|
59
59
|
normal! zt
|
60
|
-
|
61
|
-
normal!
|
60
|
+
3
|
61
|
+
normal! 020|
|
62
62
|
wincmd w
|
63
63
|
argglobal
|
64
64
|
edit bin/setup
|
@@ -89,12 +89,12 @@ setlocal fml=1
|
|
89
89
|
setlocal fdn=20
|
90
90
|
setlocal fen
|
91
91
|
silent! normal! zE
|
92
|
-
let s:l =
|
92
|
+
let s:l = 39 - ((11 * winheight(0) + 9) / 18)
|
93
93
|
if s:l < 1 | let s:l = 1 | endif
|
94
94
|
exe s:l
|
95
95
|
normal! zt
|
96
|
-
|
97
|
-
normal!
|
96
|
+
39
|
97
|
+
normal! 031|
|
98
98
|
wincmd w
|
99
99
|
argglobal
|
100
100
|
edit exe/platinum
|
@@ -107,17 +107,18 @@ setlocal fml=1
|
|
107
107
|
setlocal fdn=20
|
108
108
|
setlocal fen
|
109
109
|
silent! normal! zE
|
110
|
-
let s:l =
|
110
|
+
let s:l = 485 - ((7 * winheight(0) + 9) / 19)
|
111
111
|
if s:l < 1 | let s:l = 1 | endif
|
112
112
|
exe s:l
|
113
113
|
normal! zt
|
114
|
-
|
115
|
-
normal!
|
114
|
+
485
|
115
|
+
normal! 026|
|
116
116
|
wincmd w
|
117
|
+
4wincmd w
|
117
118
|
exe '1resize ' . ((&lines * 19 + 30) / 60)
|
118
|
-
exe 'vert 1resize ' . ((&columns * 67 +
|
119
|
+
exe 'vert 1resize ' . ((&columns * 67 + 92) / 185)
|
119
120
|
exe '2resize ' . ((&lines * 19 + 30) / 60)
|
120
|
-
exe 'vert 2resize ' . ((&columns *
|
121
|
+
exe 'vert 2resize ' . ((&columns * 117 + 92) / 185)
|
121
122
|
exe '3resize ' . ((&lines * 18 + 30) / 60)
|
122
123
|
exe '4resize ' . ((&lines * 19 + 30) / 60)
|
123
124
|
tabnext 1
|
data/exe/platinum
CHANGED
@@ -49,7 +49,8 @@ DEFAULT_OPTIONS = {
|
|
49
49
|
:titanium_command => {
|
50
50
|
:target => 'device',
|
51
51
|
:platform => 'android',
|
52
|
-
:output_dir => './dist'
|
52
|
+
:output_dir => './dist',
|
53
|
+
:log_level => 'warn'
|
53
54
|
},
|
54
55
|
:ios_credentials => {
|
55
56
|
:development => {
|
@@ -199,8 +200,7 @@ OptionParser.new do |opts|
|
|
199
200
|
end
|
200
201
|
|
201
202
|
# target_opts = DEPLOYMENT_TARGETS.join '|'
|
202
|
-
opts.on("-T", "--target=target",
|
203
|
-
'Deployment Target') do |v|
|
203
|
+
opts.on("-T", "--target=target", 'Titanium Deployment Target') do |v|
|
204
204
|
if DEPLOYMENT_TARGETS.include? v
|
205
205
|
platform = parsed_options[:titanium_command][:platform]
|
206
206
|
if v == 'emulator' && platform == 'ios' then v = 'simulator'
|
@@ -209,10 +209,14 @@ OptionParser.new do |opts|
|
|
209
209
|
else fatal "Target \"#{v}\" not recognized." end
|
210
210
|
end
|
211
211
|
|
212
|
-
opts.on('-O', '--output-dir=dir', 'Output Directory') do |v|
|
212
|
+
opts.on('-O', '--output-dir=dir', 'Titanium Output Directory') do |v|
|
213
213
|
parsed_options[:titanium_command][:output_dir] = v
|
214
214
|
end
|
215
215
|
|
216
|
+
opts.on('-L', '--log-level=level', 'Titanium Log Level') do |v|
|
217
|
+
parsed_options[:titanium_command][:log_level] = v
|
218
|
+
end
|
219
|
+
|
216
220
|
opts.on('-V', '--developer-certificate=certificate',
|
217
221
|
'iOS Developer Certificate') do |v|
|
218
222
|
parsed_options[:ios_credentials][:development][:developer_certificate] = v
|
@@ -337,7 +341,7 @@ def build_for_production!
|
|
337
341
|
end
|
338
342
|
def build_cmd_opts; @options[:titanium_command]; end
|
339
343
|
def base_build_cmd
|
340
|
-
|
344
|
+
"titanium build --build-only --log-level #{build_cmd_opts[:log_level]}" +
|
341
345
|
" --platform #{build_cmd_opts[:platform]}"
|
342
346
|
end
|
343
347
|
|
@@ -35,6 +35,8 @@ if (command == 'list') {
|
|
35
35
|
console.log('Simulator has launched');
|
36
36
|
}).on('appStarted', function (msg) {
|
37
37
|
console.log('App has started');
|
38
|
+
}).on('appQuit', function (msg) {
|
39
|
+
console.log('App has quit');
|
38
40
|
}).on('log', function (msg) {
|
39
41
|
console.log('[LOG] ' + msg);
|
40
42
|
}).on('error', function (err) {
|