run_loop 0.2.0.pre1 → 0.2.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 +4 -4
- data/lib/run_loop/core.rb +2 -8
- data/lib/run_loop/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb37a422c7461ffb6910fd4538530fde53388d47
|
|
4
|
+
data.tar.gz: 795c40b759a26c48faa6cd4c241867b13f890278
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a7d4024e4e3bae9d2d947ba75193d0d691b6d20507f58f5dcb3971f7b5152a492d38b473392462cfbdf12c8c8d1877cbb582e9d8e9ae2b180bf4dec0881e769
|
|
7
|
+
data.tar.gz: 982441d43dae33182477f7421f70ee064702bf99b254d6bbf2327c490ab1557140c731170bce138c7d41fdca74fc75acfcf1f35dee73d057a773ef5890c6752c
|
data/lib/run_loop/core.rb
CHANGED
|
@@ -77,15 +77,9 @@ module RunLoop
|
|
|
77
77
|
File.open(script, 'w') { |file| file.puts code }
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
bundle_dir_or_bundle_id = options[:app] || ENV['BUNDLE_ID']|| ENV['APP_BUNDLE_PATH'] || ENV['APP']
|
|
81
|
-
|
|
82
|
-
unless bundle_dir_or_bundle_id
|
|
83
|
-
raise 'key :app or environment variable APP_BUNDLE_PATH, BUNDLE_ID or APP must be specified as path to app bundle (simulator) or bundle id (device)'
|
|
84
|
-
end
|
|
85
|
-
|
|
86
80
|
# Compute udid and bundle_dir / bundle_id from options and target depending on Xcode version
|
|
87
81
|
|
|
88
|
-
udid, bundle_dir_or_bundle_id =
|
|
82
|
+
udid, bundle_dir_or_bundle_id = udid_and_bundle_for_launcher(device_target, options)
|
|
89
83
|
|
|
90
84
|
args = options.fetch(:args, [])
|
|
91
85
|
|
|
@@ -169,7 +163,7 @@ module RunLoop
|
|
|
169
163
|
run_loop
|
|
170
164
|
end
|
|
171
165
|
|
|
172
|
-
def self.
|
|
166
|
+
def self.udid_and_bundle_for_launcher(device_target, options)
|
|
173
167
|
bundle_dir_or_bundle_id = options[:app] || ENV['BUNDLE_ID']|| ENV['APP_BUNDLE_PATH'] || ENV['APP']
|
|
174
168
|
|
|
175
169
|
unless bundle_dir_or_bundle_id
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: run_loop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.0
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Krukow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -85,9 +85,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
85
85
|
version: '0'
|
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
|
88
|
-
- - '
|
|
88
|
+
- - '>='
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version:
|
|
90
|
+
version: '0'
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
93
|
rubygems_version: 2.0.3
|