platinum-deployer 0.2.3 → 0.2.4

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: edbba1825c522a6da9f7e0047f4c6720b0a45186
4
- data.tar.gz: 839f7d7e27f734163e409bda56364507441a50d7
3
+ metadata.gz: be64beb8c8b9df2bd5ea075d08f49fde45da0b0c
4
+ data.tar.gz: 681af0b407452b898247f719c97186852d38c790
5
5
  SHA512:
6
- metadata.gz: a865efe77a8aba27fd0d63631848db17a17a3b449710415c21cf9639723757060d9c7054085a7f1b85edc59528da9bbde0e4a1cd141b3fba8697fff4b0708e08
7
- data.tar.gz: 00570106a19d258088849fefb15dec45d504c867fe51f94c078a9b5e052d4805e99cdfb8637244c1f74b48e3e5cdfdcf2f0d4572008aa43c876ef46e2781a014
6
+ metadata.gz: 634d60b1a3da3759721044c34e416e6458fa3c5f54d1307ca1b364c4e6f696a506d5a1de3a62c53cbb7d240822a2949f27db6240ef56c71b1a705a008ccd000c
7
+ data.tar.gz: 9e5d1297b15ca8db4e39da3cfddd501a7c849bc8c44c5f5a76151aa6989066bde3de2a330f5e4e0989699e2244774a15c899f63d7dc37a357fa470161bacea4a
data/Session.vim CHANGED
@@ -49,12 +49,12 @@ setlocal fml=1
49
49
  setlocal fdn=20
50
50
  setlocal fen
51
51
  silent! normal! zE
52
- let s:l = 3 - ((2 * winheight(0) + 14) / 28)
52
+ let s:l = 5 - ((4 * winheight(0) + 14) / 28)
53
53
  if s:l < 1 | let s:l = 1 | endif
54
54
  exe s:l
55
55
  normal! zt
56
- 3
57
- normal! 020|
56
+ 5
57
+ normal! 03|
58
58
  wincmd w
59
59
  argglobal
60
60
  edit bin/setup
@@ -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 = 12 - ((9 * winheight(0) + 14) / 28)
70
+ let s:l = 11 - ((8 * 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
- 12
75
- normal! 03|
74
+ 11
75
+ normal! 027|
76
76
  wincmd w
77
77
  argglobal
78
78
  edit exe/platinum
@@ -85,13 +85,14 @@ setlocal fml=1
85
85
  setlocal fdn=20
86
86
  setlocal fen
87
87
  silent! normal! zE
88
- let s:l = 415 - ((15 * winheight(0) + 14) / 29)
88
+ let s:l = 380 - ((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
- 415
93
- normal! 049|
92
+ 380
93
+ normal! 035|
94
94
  wincmd w
95
+ 3wincmd w
95
96
  exe '1resize ' . ((&lines * 28 + 30) / 60)
96
97
  exe 'vert 1resize ' . ((&columns * 52 + 92) / 185)
97
98
  exe '2resize ' . ((&lines * 28 + 30) / 60)
data/exe/debugserver ADDED
Binary file
data/exe/platinum CHANGED
@@ -79,7 +79,7 @@ DEFAULT_OPTIONS = {
79
79
  }
80
80
  DEPLOYMENT_PLATFORMS = %w(ios android)
81
81
  DEPLOYMENT_TARGETS =
82
- %w( device emulator simulator dist-appstore dist-adhoc dist-playstore )
82
+ %w( xcode device emulator simulator dist-appstore dist-adhoc dist-playstore )
83
83
 
84
84
  #
85
85
  # Logging Methods
@@ -207,6 +207,10 @@ OptionParser.new do |opts|
207
207
  opts.on("-T", "--target=target", 'Titanium Deployment Target') do |v|
208
208
  if DEPLOYMENT_TARGETS.include? v
209
209
  platform = parsed_options[:titanium_command][:platform]
210
+ if v == 'xcode'
211
+ parsed_options[:titanium_command][:run_with_xcode] = true
212
+ v = 'simulator'
213
+ end
210
214
  if v == 'emulator' && platform == 'ios' then v = 'simulator'
211
215
  elsif v == 'simulator' && platform == 'android' then v = 'emulator' end
212
216
  parsed_options[:titanium_command][:target] = v
@@ -373,31 +377,40 @@ def deploy_to_emulator!
373
377
 
374
378
  case build_cmd_opts[:platform]
375
379
  when 'ios'
376
- if sim_opts[:devicetypeid].nil?
377
- devicetypes = `ios-sim showdevicetypes`.strip
378
- if devicetypes.length
379
- sim_choices = {}
380
- devicetypes.lines.each do |line|
381
- dtid, ios_version = line.strip.split ', '
382
- title = dtid.gsub '-', ' '
383
- sim_choices[dtid] = "#{title} running iOS #{ios_version} (#{dtid})"
384
- end
385
- choose do |menu|
386
- menu.header = 'Installed iOS Simulators'
387
- menu.prompt = 'Please choose a simulator to deploy to: '
388
-
389
- sim_choices.each {|dtid, name|
390
- menu.choice(name) {|choice| sim_opts[:devicetypeid] = dtid } }
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
388
+ else
389
+ if sim_opts[:devicetypeid].nil?
390
+ devicetypes = `ios-sim showdevicetypes`.strip
391
+ if devicetypes.length
392
+ sim_choices = {}
393
+ devicetypes.lines.each do |line|
394
+ dtid, ios_version = line.strip.split ', '
395
+ title = dtid.gsub '-', ' '
396
+ sim_choices[dtid] = "#{title} running iOS #{ios_version} (#{dtid})"
397
+ end
398
+ choose do |menu|
399
+ menu.header = 'Installed iOS Simulators'
400
+ menu.prompt = 'Please choose a simulator to deploy to: '
401
+
402
+ sim_choices.each {|dtid, name|
403
+ menu.choice(name) {|choice| sim_opts[:devicetypeid] = dtid } }
404
+ end
405
+ else
406
+ fatal 'You have no iOS simulators installed.'
391
407
  end
392
- else
393
- fatal 'You have no iOS simulators installed.'
394
408
  end
409
+ cmd = "ios-sim launch #{bundle_path} --exit"
410
+ cmd << " --devicetypeid #{sim_opts[:devicetypeid]}" if sim_opts[:devicetypeid]
411
+ system cmd
412
+ focus_simulator! if sim_opts[:autofocus]
395
413
  end
396
- cmd = "ios-sim launch #{bundle_path} --exit"
397
- cmd << " --devicetypeid #{sim_opts[:devicetypeid]}" if sim_opts[:devicetypeid]
398
- system cmd
399
- focus_simulator! if sim_opts[:autofocus]
400
- # TODO: hook up lldb somehow
401
414
  # TODO: Android support
402
415
  end
403
416
  true
@@ -1,5 +1,5 @@
1
1
  module Platinum
2
2
  module Deployer
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platinum-deployer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-12 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -182,6 +182,7 @@ description: Deploys Platinum projects to simulators, devices, and more.
182
182
  email:
183
183
  - smithmackinley@gmail.com
184
184
  executables:
185
+ - debugserver
185
186
  - platinum
186
187
  - platinum-appicon
187
188
  - platinum-ios-simulate.js
@@ -199,6 +200,7 @@ files:
199
200
  - Session.vim
200
201
  - bin/console
201
202
  - bin/setup
203
+ - exe/debugserver
202
204
  - exe/platinum
203
205
  - exe/platinum-appicon
204
206
  - exe/platinum-ios-simulate.js