sim_launcher 0.4.13 → 0.5.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmE1MmE4NDJiMDRhODVjMjU1OWJlMTYzODdjMGE5OWU3MmY3YTUxZQ==
4
+ NjA2Y2MxNGE3Mzk0NzIyNmM3MTVkYmEwYmU2OWE1M2JjOWU2MjU4Nw==
5
5
  data.tar.gz: !binary |-
6
- N2JkMWYxNzdjNGU0ZThmMWZhMWQzYjY0YmI4MjQzZWU3ZjBiZWQwZg==
6
+ YzgxYjY2NDdkM2RkM2YyMTU5ZGRlOGIxNjIyMWU1NWViNDUzY2Y2Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmM1M2M3ZDg2ZTljYjQ4ZThiNjcwNjhjODdmMTcxODhjZTNmZWE4ZGI5MmM0
10
- ZjJlODczMjMxMjgyYmQ5OTkzZWFkOTQ0ZjdkMjFjZGJlNjZkMzE5ZTI2ZDQx
11
- Y2M2NDZjMjQzMTA0MWQwM2QwZTY1Y2RjYWYwYzFhMzFiZWNhZTE=
9
+ ZTNjYzU1MDA2YjY4MGE5NGJhMjljOTFjYjgzOGM3ZDY5Nzc4ODk1M2M2MDc4
10
+ Y2Y2OWIxODEwYWYxMDg3ZWMxMjY0MDIwYTcxZTIwMzhhNWQ4Mjg2YWY1MmEz
11
+ MzY2NzJhZDRjZWYxYmRkMTc1OGIyYWNhYjQyZmUwYzRjNGE1NWI=
12
12
  data.tar.gz: !binary |-
13
- ODJlYzllZDQ5NzFkODg3N2ViYjg1MTE0ZDlkMDBjMzZlYWRhMTRjZTdmMDhh
14
- NjBkZGZjYjJhYTQxZjVjNmJhY2I1M2ZmNzZhYmQ4YTc3NDRiM2RlMTkxNzI3
15
- MzU5NmVmNjkyZmNlNjk2MWRhMmY1NDFkOGY4NzM5ZjUzMGY0NWE=
13
+ NTgyOTA2ZjQzZDI4MWU3MjMyM2MyMzlhM2ZlNWFiYjQzOGFmMDIwYjBkYjdh
14
+ OTgxOTRkNGI1YmRmZWI1ZjY1YjVhNWQ1MDA0OTllYmJiOWI4MDhjYjM0ZTU0
15
+ ZTg1OTczZWVlNDU1ZWQ5MDIzMGY0ODVkNWQ4YWZmYzI2MTU1NGM=
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
2
  pkg
3
+ sim_launcher*gem
@@ -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
- 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]
4
+ task :default => :build
File without changes
@@ -99,21 +99,13 @@ class Simulator
99
99
  end
100
100
 
101
101
  def iphonesim_path
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}`
102
+ installed = `which ios-sim`
111
103
  if installed =~ /(.*ios-sim)/
112
- puts "Using installed #{binary_name} at #{$1}" if $DEBUG
104
+ puts "Using installed ios-sim at #{$1}" if $DEBUG
113
105
  return $1
114
106
  end
115
107
 
116
- File.join( File.dirname(__FILE__), '..', '..', 'native', binary_name )
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
@@ -1,3 +1,3 @@
1
1
  module SimLauncher
2
- VERSION = "0.4.13"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -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.13
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
@@ -1,3 +0,0 @@
1
- [submodule "vendor/iphonesim"]
2
- path = vendor/iphonesim
3
- url = git://github.com/moredip/iphonesim.git
Binary file
Binary file
Binary file