sim_launcher 0.4.13 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/README.md +10 -0
- data/Rakefile +1 -10
- data/bin/sim_launcher +0 -0
- data/lib/sim_launcher/simulator.rb +3 -11
- data/lib/sim_launcher/version.rb +1 -1
- data/sim_launcher.gemspec +11 -0
- metadata +8 -6
- data/.gitmodules +0 -3
- data/native/ios-sim +0 -0
- data/native/ios-sim-old +0 -0
- data/native/iphonesim +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjA2Y2MxNGE3Mzk0NzIyNmM3MTVkYmEwYmU2OWE1M2JjOWU2MjU4Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzgxYjY2NDdkM2RkM2YyMTU5ZGRlOGIxNjIyMWU1NWViNDUzY2Y2Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTNjYzU1MDA2YjY4MGE5NGJhMjljOTFjYjgzOGM3ZDY5Nzc4ODk1M2M2MDc4
|
10
|
+
Y2Y2OWIxODEwYWYxMDg3ZWMxMjY0MDIwYTcxZTIwMzhhNWQ4Mjg2YWY1MmEz
|
11
|
+
MzY2NzJhZDRjZWYxYmRkMTc1OGIyYWNhYjQyZmUwYzRjNGE1NWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTgyOTA2ZjQzZDI4MWU3MjMyM2MyMzlhM2ZlNWFiYjQzOGFmMDIwYjBkYjdh
|
14
|
+
OTgxOTRkNGI1YmRmZWI1ZjY1YjVhNWQ1MDA0OTllYmJiOWI4MDhjYjM0ZTU0
|
15
|
+
ZTg1OTczZWVlNDU1ZWQ5MDIzMGY0ODVkNWQ4YWZmYzI2MTU1NGM=
|
data/.gitignore
CHANGED
data/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
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`.
|
data/Rakefile
CHANGED
@@ -1,13 +1,4 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
-
|
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]
|
4
|
+
task :default => :build
|
data/bin/sim_launcher
CHANGED
File without changes
|
@@ -99,21 +99,13 @@ class Simulator
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def iphonesim_path
|
102
|
-
|
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}`
|
102
|
+
installed = `which ios-sim`
|
111
103
|
if installed =~ /(.*ios-sim)/
|
112
|
-
puts "Using installed
|
104
|
+
puts "Using installed ios-sim at #{$1}" if $DEBUG
|
113
105
|
return $1
|
114
106
|
end
|
115
107
|
|
116
|
-
|
108
|
+
raise "Didn't find the ios-sim binary in your $PATH.\n\nPlease install, e.g. using Homebrew:\n\tbrew install ios-sim\n\n"
|
117
109
|
end
|
118
110
|
end
|
119
111
|
end
|
data/lib/sim_launcher/version.rb
CHANGED
data/sim_launcher.gemspec
CHANGED
@@ -16,5 +16,16 @@ 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
|
+
|
19
30
|
s.add_dependency "sinatra"
|
20
31
|
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
|
+
version: 0.5.0
|
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
|
37
36
|
- Gemfile
|
37
|
+
- README.md
|
38
38
|
- Rakefile
|
39
39
|
- bin/sim_launcher
|
40
40
|
- lib/sim_launcher.rb
|
@@ -43,9 +43,6 @@ 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
|
49
46
|
- scripts/reset_simulator.applescript
|
50
47
|
- scripts/rotate_simulator_left.applescript
|
51
48
|
- scripts/rotate_simulator_right.applescript
|
@@ -53,7 +50,12 @@ files:
|
|
53
50
|
homepage: http://rubygems.org/gems/sim_launcher
|
54
51
|
licenses: []
|
55
52
|
metadata: {}
|
56
|
-
post_install_message:
|
53
|
+
post_install_message: ! "\n ****************************************************************************************\n
|
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"
|
57
59
|
rdoc_options: []
|
58
60
|
require_paths:
|
59
61
|
- lib
|
data/.gitmodules
DELETED
data/native/ios-sim
DELETED
Binary file
|
data/native/ios-sim-old
DELETED
Binary file
|
data/native/iphonesim
DELETED
Binary file
|