sim_launcher 0.4.12 → 0.4.13
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.
- checksums.yaml +8 -8
- data/.gitignore +0 -1
- data/.gitmodules +3 -0
- data/Rakefile +10 -1
- data/bin/sim_launcher +0 -0
- data/lib/sim_launcher/simulator.rb +11 -3
- data/lib/sim_launcher/version.rb +1 -1
- data/native/ios-sim +0 -0
- data/native/ios-sim-old +0 -0
- data/native/iphonesim +0 -0
- data/sim_launcher.gemspec +0 -11
- metadata +6 -8
- data/README.md +0 -10
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmE1MmE4NDJiMDRhODVjMjU1OWJlMTYzODdjMGE5OWU3MmY3YTUxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2JkMWYxNzdjNGU0ZThmMWZhMWQzYjY0YmI4MjQzZWU3ZjBiZWQwZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmM1M2M3ZDg2ZTljYjQ4ZThiNjcwNjhjODdmMTcxODhjZTNmZWE4ZGI5MmM0
|
10
|
+
ZjJlODczMjMxMjgyYmQ5OTkzZWFkOTQ0ZjdkMjFjZGJlNjZkMzE5ZTI2ZDQx
|
11
|
+
Y2M2NDZjMjQzMTA0MWQwM2QwZTY1Y2RjYWYwYzFhMzFiZWNhZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODJlYzllZDQ5NzFkODg3N2ViYjg1MTE0ZDlkMDBjMzZlYWRhMTRjZTdmMDhh
|
14
|
+
NjBkZGZjYjJhYTQxZjVjNmJhY2I1M2ZmNzZhYmQ4YTc3NDRiM2RlMTkxNzI3
|
15
|
+
MzU5NmVmNjkyZmNlNjk2MWRhMmY1NDFkOGY4NzM5ZjUzMGY0NWE=
|
data/.gitignore
CHANGED
data/.gitmodules
ADDED
data/Rakefile
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
-
|
4
|
+
desc "compile ios-sim binary"
|
5
|
+
task "build_ios_sim" do
|
6
|
+
native_dir = File.expand_path( '../native',__FILE__)
|
7
|
+
Dir.mktmpdir do |tmp_dir|
|
8
|
+
sh %Q{xcodebuild -project vendor/iphonesim/iphonesim.xcodeproj -configuration Debug SYMROOT='#{tmp_dir}' clean build}
|
9
|
+
FileUtils.cp( File.join(tmp_dir,'Debug','iphonesim'), native_dir )
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
task :default => [:build_ios_sim, :build]
|
data/bin/sim_launcher
CHANGED
File without changes
|
@@ -99,13 +99,21 @@ class Simulator
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def iphonesim_path
|
102
|
-
|
102
|
+
binary_name = 'ios-sim'
|
103
|
+
|
104
|
+
framework_dir = `xcode-select --print-path`.chomp + 'Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/iPhoneSimulatorRemoteClient.framework'
|
105
|
+
|
106
|
+
if File.directory?(framework_dir)
|
107
|
+
binary_name = 'ios-sim-old'
|
108
|
+
end
|
109
|
+
|
110
|
+
installed = `which #{binary_name}`
|
103
111
|
if installed =~ /(.*ios-sim)/
|
104
|
-
puts "Using installed
|
112
|
+
puts "Using installed #{binary_name} at #{$1}" if $DEBUG
|
105
113
|
return $1
|
106
114
|
end
|
107
115
|
|
108
|
-
|
116
|
+
File.join( File.dirname(__FILE__), '..', '..', 'native', binary_name )
|
109
117
|
end
|
110
118
|
end
|
111
119
|
end
|
data/lib/sim_launcher/version.rb
CHANGED
data/native/ios-sim
ADDED
Binary file
|
data/native/ios-sim-old
ADDED
Binary file
|
data/native/iphonesim
ADDED
Binary file
|
data/sim_launcher.gemspec
CHANGED
@@ -16,16 +16,5 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.post_install_message = <<-EOS
|
20
|
-
|
21
|
-
****************************************************************************************
|
22
|
-
* sim_launcher expects the ios-sim binary in your $PATH. Install using e.g. Homebrew: *
|
23
|
-
* *
|
24
|
-
* brew install ios-sim *
|
25
|
-
* *
|
26
|
-
****************************************************************************************
|
27
|
-
|
28
|
-
EOS
|
29
|
-
|
30
19
|
s.add_dependency "sinatra"
|
31
20
|
end
|
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.
|
4
|
+
version: 0.4.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Hodgson
|
@@ -33,8 +33,8 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- .gitignore
|
36
|
+
- .gitmodules
|
36
37
|
- Gemfile
|
37
|
-
- README.md
|
38
38
|
- Rakefile
|
39
39
|
- bin/sim_launcher
|
40
40
|
- lib/sim_launcher.rb
|
@@ -43,6 +43,9 @@ files:
|
|
43
43
|
- lib/sim_launcher/sdk_detector.rb
|
44
44
|
- lib/sim_launcher/simulator.rb
|
45
45
|
- lib/sim_launcher/version.rb
|
46
|
+
- native/ios-sim
|
47
|
+
- native/ios-sim-old
|
48
|
+
- native/iphonesim
|
46
49
|
- scripts/reset_simulator.applescript
|
47
50
|
- scripts/rotate_simulator_left.applescript
|
48
51
|
- scripts/rotate_simulator_right.applescript
|
@@ -50,12 +53,7 @@ files:
|
|
50
53
|
homepage: http://rubygems.org/gems/sim_launcher
|
51
54
|
licenses: []
|
52
55
|
metadata: {}
|
53
|
-
post_install_message:
|
54
|
-
\ * sim_launcher expects the ios-sim binary in your $PATH. Install using e.g. Homebrew:
|
55
|
-
\ *\n * *\n
|
56
|
-
\ * brew install ios-sim *\n
|
57
|
-
\ * *\n
|
58
|
-
\ ****************************************************************************************\n\n"
|
56
|
+
post_install_message:
|
59
57
|
rdoc_options: []
|
60
58
|
require_paths:
|
61
59
|
- lib
|
data/README.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
Sim-Launcher
|
2
|
-
============
|
3
|
-
|
4
|
-
Tiny little sinatra app to allow launching an iOS app in the simulator via HTTP.
|
5
|
-
|
6
|
-
Dependencies
|
7
|
-
------------
|
8
|
-
|
9
|
-
- You need the `ios-sim` binary (https://github.com/phonegap/ios-sim) somewhere
|
10
|
-
in your `$PATH`. Get yours with e.g. `brew install ios-sim`.
|