sim_launcher 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODE5ODBiZDFlZTViMTI5MWIxYTNjNzg3YzExZjU0ZWU0N2IyZThlMg==
5
+ data.tar.gz: !binary |-
6
+ NTQ5YTk4NmM5ZDc2OTZiNTQ1ZDJlNTA4NjRmMDZhZjI4ZWY1YTczZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTQ1NmJhMmFlMzFkMGY5MzRlNmU2YzE5ZDRiZWQxNDJlOWEzYmNhMWQ4OTVk
10
+ NWMyNTlmMjJmMTcwZjJiNmQ5OTE2OTM3ODNkZjI4OGUwYjBkNzA4NWYxMGJl
11
+ ODgzNTU1N2FmYjQ0OWI5MjU2YWNiNjQwM2Q4Mzc3MzhjNTkyMmE=
12
+ data.tar.gz: !binary |-
13
+ NTgxZjA4OGJkZjZlZWM5NDFhYjYyMzgzZmVhOTRlN2E4ZWRmZGIyYzM0OTVk
14
+ NDM1Y2UxZTI5ZmVkMzhmNDIxN2RiYzVjYWRjOTc0Y2FmM2NlZjUzYmYyMmIx
15
+ ZDFiMWFjYjY4YmVjZWQ1NWE4MmJkMGJmMjMzMGQwZDgyN2ZlYTI=
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
2
  pkg
3
+ sim_launcher*gem
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
- 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
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
- 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.11"
2
+ VERSION = "0.4.12"
3
3
  end
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,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sim_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.11
5
- prerelease:
4
+ version: 0.4.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Pete Hodgson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-05-24 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sinatra
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -36,8 +33,8 @@ extensions: []
36
33
  extra_rdoc_files: []
37
34
  files:
38
35
  - .gitignore
39
- - .gitmodules
40
36
  - Gemfile
37
+ - README.md
41
38
  - Rakefile
42
39
  - bin/sim_launcher
43
40
  - lib/sim_launcher.rb
@@ -46,35 +43,36 @@ files:
46
43
  - lib/sim_launcher/sdk_detector.rb
47
44
  - lib/sim_launcher/simulator.rb
48
45
  - lib/sim_launcher/version.rb
49
- - native/ios-sim
50
- - native/ios-sim-old
51
- - native/iphonesim
52
46
  - scripts/reset_simulator.applescript
53
47
  - scripts/rotate_simulator_left.applescript
54
48
  - scripts/rotate_simulator_right.applescript
55
49
  - sim_launcher.gemspec
56
50
  homepage: http://rubygems.org/gems/sim_launcher
57
51
  licenses: []
58
- post_install_message:
52
+ metadata: {}
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"
59
59
  rdoc_options: []
60
60
  require_paths:
61
61
  - lib
62
62
  required_ruby_version: !ruby/object:Gem::Requirement
63
- none: false
64
63
  requirements:
65
64
  - - ! '>='
66
65
  - !ruby/object:Gem::Version
67
66
  version: '0'
68
67
  required_rubygems_version: !ruby/object:Gem::Requirement
69
- none: false
70
68
  requirements:
71
69
  - - ! '>='
72
70
  - !ruby/object:Gem::Version
73
71
  version: '0'
74
72
  requirements: []
75
73
  rubyforge_project:
76
- rubygems_version: 1.8.25
74
+ rubygems_version: 2.4.1
77
75
  signing_key:
78
- specification_version: 3
76
+ specification_version: 4
79
77
  summary: tiny HTTP server to launch an app in the iOS simulator
80
78
  test_files: []
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "vendor/iphonesim"]
2
- path = vendor/iphonesim
3
- url = git://github.com/moredip/iphonesim.git
data/native/ios-sim DELETED
Binary file
data/native/ios-sim-old DELETED
Binary file
data/native/iphonesim DELETED
Binary file