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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be64beb8c8b9df2bd5ea075d08f49fde45da0b0c
4
- data.tar.gz: 681af0b407452b898247f719c97186852d38c790
3
+ metadata.gz: 1126b7e38270e0d7d1d08ddd49c7b2deb45f4c66
4
+ data.tar.gz: b0af48e7a041239ce202d1d596ce3dedf98df187
5
5
  SHA512:
6
- metadata.gz: 634d60b1a3da3759721044c34e416e6458fa3c5f54d1307ca1b364c4e6f696a506d5a1de3a62c53cbb7d240822a2949f27db6240ef56c71b1a705a008ccd000c
7
- data.tar.gz: 9e5d1297b15ca8db4e39da3cfddd501a7c849bc8c44c5f5a76151aa6989066bde3de2a330f5e4e0989699e2244774a15c899f63d7dc37a357fa470161bacea4a
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 = 11 - ((8 * winheight(0) + 14) / 28)
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
- 11
75
- normal! 027|
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 = 380 - ((15 * winheight(0) + 14) / 29)
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
- 380
93
- normal! 035|
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'
@@ -1,5 +1,5 @@
1
1
  module Platinum
2
2
  module Deployer
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platinum-deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith