sim_launcher 0.3.10 → 0.4.0
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.
- data/.gitmodules +3 -0
- data/Rakefile +11 -0
- data/lib/sim_launcher/simulator.rb +2 -6
- data/lib/sim_launcher/version.rb +1 -1
- data/native/ios-sim +0 -0
- metadata +3 -4
- data/native/iphonesim +0 -0
- data/native/iphonesim-legacy +0 -0
data/.gitmodules
CHANGED
data/Rakefile
CHANGED
@@ -6,3 +6,14 @@ task "build_iphonesim" do
|
|
6
6
|
sh 'xcodebuild -project vendor/iphonesim/iphonesim.xcodeproj/ clean build'
|
7
7
|
cp 'vendor/iphonesim/build/Release/iphonesim', 'native/iphonesim'
|
8
8
|
end
|
9
|
+
|
10
|
+
desc "compile ios-sim binary"
|
11
|
+
task "build_ios_sim" do
|
12
|
+
native_dir = File.expand_path( '../native',__FILE__)
|
13
|
+
Dir.mktmpdir do |tmp_dir|
|
14
|
+
sh %Q{xcodebuild -project vendor/ios-sim/ios-sim.xcodeproj -configuration Debug SYMROOT='#{tmp_dir}' clean build}
|
15
|
+
FileUtils.cp( File.join(tmp_dir,'Debug','ios-sim'), native_dir )
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
task :default => [:build_ios_sim, :build]
|
@@ -11,7 +11,7 @@ class Simulator
|
|
11
11
|
|
12
12
|
def launch_ios_app(app_path, sdk_version, device_family)
|
13
13
|
sdk_version ||= SdkDetector.new(self).latest_sdk_version
|
14
|
-
run_synchronous_command( :launch, app_path, sdk_version, device_family )
|
14
|
+
run_synchronous_command( :launch, app_path, '--sdk', sdk_version, '--family', device_family, '--exit' )
|
15
15
|
end
|
16
16
|
|
17
17
|
def launch_ipad_app( app_path, sdk )
|
@@ -44,11 +44,7 @@ class Simulator
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def iphonesim_path(version)
|
47
|
-
|
48
|
-
File.join( File.dirname(__FILE__), '..', '..', 'native', 'iphonesim-legacy' )
|
49
|
-
else
|
50
|
-
File.join( File.dirname(__FILE__), '..', '..', 'native', 'iphonesim' )
|
51
|
-
end
|
47
|
+
File.join( File.dirname(__FILE__), '..', '..', 'native', 'ios-sim' )
|
52
48
|
end
|
53
49
|
end
|
54
50
|
end
|
data/lib/sim_launcher/version.rb
CHANGED
data/native/ios-sim
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sim_launcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -46,8 +46,7 @@ files:
|
|
46
46
|
- lib/sim_launcher/sdk_detector.rb
|
47
47
|
- lib/sim_launcher/simulator.rb
|
48
48
|
- lib/sim_launcher/version.rb
|
49
|
-
- native/
|
50
|
-
- native/iphonesim-legacy
|
49
|
+
- native/ios-sim
|
51
50
|
- sim_launcher.gemspec
|
52
51
|
homepage: http://rubygems.org/gems/sim_launcher
|
53
52
|
licenses: []
|
data/native/iphonesim
DELETED
Binary file
|
data/native/iphonesim-legacy
DELETED
Binary file
|