platinum-deployer 0.2.4 → 0.2.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 +6 -7
- data/exe/platinum +12 -8
- 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: 1126b7e38270e0d7d1d08ddd49c7b2deb45f4c66
|
4
|
+
data.tar.gz: b0af48e7a041239ce202d1d596ce3dedf98df187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 687f484ea342a29e20ac17822bf5a88cb2cabbfbcdd097a5275a506064a914744419eec8252de99151d45fdaa2d9c0c71799aba3df17fbbbefdbca91acae0613
|
7
|
+
data.tar.gz: 21ff25dea3fafd152d32aef703b15c86348e97abb0a0b56b1af6155370896429446e7f247ce53dd24e873caac0f14589c8d61049f106d60c5053b70f4160f8da
|
data/Session.vim
CHANGED
@@ -67,12 +67,12 @@ setlocal fml=1
|
|
67
67
|
setlocal fdn=20
|
68
68
|
setlocal fen
|
69
69
|
silent! normal! zE
|
70
|
-
let s:l =
|
70
|
+
let s:l = 9 - ((6 * winheight(0) + 14) / 28)
|
71
71
|
if s:l < 1 | let s:l = 1 | endif
|
72
72
|
exe s:l
|
73
73
|
normal! zt
|
74
|
-
|
75
|
-
normal!
|
74
|
+
9
|
75
|
+
normal! 022|
|
76
76
|
wincmd w
|
77
77
|
argglobal
|
78
78
|
edit exe/platinum
|
@@ -85,14 +85,13 @@ setlocal fml=1
|
|
85
85
|
setlocal fdn=20
|
86
86
|
setlocal fen
|
87
87
|
silent! normal! zE
|
88
|
-
let s:l =
|
88
|
+
let s:l = 294 - ((15 * winheight(0) + 14) / 29)
|
89
89
|
if s:l < 1 | let s:l = 1 | endif
|
90
90
|
exe s:l
|
91
91
|
normal! zt
|
92
|
-
|
93
|
-
normal!
|
92
|
+
294
|
93
|
+
normal! 03|
|
94
94
|
wincmd w
|
95
|
-
3wincmd w
|
96
95
|
exe '1resize ' . ((&lines * 28 + 30) / 60)
|
97
96
|
exe 'vert 1resize ' . ((&columns * 52 + 92) / 185)
|
98
97
|
exe '2resize ' . ((&lines * 28 + 30) / 60)
|
data/exe/platinum
CHANGED
@@ -311,6 +311,7 @@ end
|
|
311
311
|
|
312
312
|
def build!
|
313
313
|
if @options[:skip_build]; log_info 'Skipping build.'; return true end
|
314
|
+
return build_with_xcode! if build_cmd_opts[:run_with_xcode]
|
314
315
|
log_info 'Building Titanium project...'; puts
|
315
316
|
build_success = case build_cmd_opts[:target]
|
316
317
|
when 'device' then build_for_device!
|
@@ -377,14 +378,7 @@ def deploy_to_emulator!
|
|
377
378
|
|
378
379
|
case build_cmd_opts[:platform]
|
379
380
|
when 'ios'
|
380
|
-
if build_cmd_opts[:run_with_xcode]
|
381
|
-
cmd = 'osascript '
|
382
|
-
cmd << %[-e 'tell application "Xcode"' ]
|
383
|
-
cmd << %[-e 'activate' ]
|
384
|
-
cmd << %[-e 'delay 1' -e 'tell application "System Events"' ]
|
385
|
-
cmd << %[-e 'keystroke "r" using {control down, command down}' ]
|
386
|
-
cmd << %[-e 'end tell' -e 'end tell']
|
387
|
-
system cmd
|
381
|
+
if build_cmd_opts[:run_with_xcode] then run_with_xcode!
|
388
382
|
else
|
389
383
|
if sim_opts[:devicetypeid].nil?
|
390
384
|
devicetypes = `ios-sim showdevicetypes`.strip
|
@@ -437,6 +431,15 @@ def get_simjs_sims
|
|
437
431
|
begin return JSON.parse json_sim_list
|
438
432
|
rescue => e; fatal e.message; end
|
439
433
|
end
|
434
|
+
def build_with_xcode!
|
435
|
+
cmd = 'osascript '
|
436
|
+
cmd << %[-e 'tell application "Xcode"' ]
|
437
|
+
cmd << %[-e 'activate' ]
|
438
|
+
cmd << %[-e 'delay 1' -e 'tell application "System Events"' ]
|
439
|
+
cmd << %[-e 'keystroke "r" using {control down, command down}' ]
|
440
|
+
cmd << %[-e 'end tell' -e 'end tell']
|
441
|
+
system cmd
|
442
|
+
end
|
440
443
|
|
441
444
|
def deploy_to_device!
|
442
445
|
cmd = "ios-deploy --debug --bundle #{bundle_path}"
|
@@ -558,6 +561,7 @@ if @command
|
|
558
561
|
focus_terminal!
|
559
562
|
# Force a git commit upfront.
|
560
563
|
force_git_commit! if build_cmd_opts[:target] =~ /^dist/
|
564
|
+
return (compile_source! && build_with_xcode!) if build_cmd_opts[:run_with_xcode]
|
561
565
|
deploy! if compile_source! && build! # Compile, build and deploy.
|
562
566
|
when 'list' then list_things!
|
563
567
|
when 'satellite'
|