run_loop 2.3.1 → 2.3.2
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 +5 -5
- data/lib/run_loop/cli/idm.rb +71 -0
- data/lib/run_loop/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6cabacbd18475bdda9b3860c4b3ff55e96ac397b707de1468fb58463b210f055
|
4
|
+
data.tar.gz: b459ec722d9af192d1bfbc22bdf419529a010d75d8fe750bb7a8cf28acc3ebb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 541d35b01160d1de78d863ef0658b3a65bff23405bfada0b41cf9a5a0f3460d112ba1bb65f721df5949613f0d7c358bd5434afd2b0c882b5792de95bebd398e7
|
7
|
+
data.tar.gz: 58529ba9de24b781ac1f1d476111cc6a23250169b37ce39c678b3b28af2064742c995d62ef1ba9de8ea270959ec6d3087ef09dc0f71de7ff337953756f57444f
|
@@ -0,0 +1,71 @@
|
|
1
|
+
|
2
|
+
module RunLoop
|
3
|
+
module CLI
|
4
|
+
|
5
|
+
require 'thor'
|
6
|
+
class IDM < Thor
|
7
|
+
|
8
|
+
require "run_loop"
|
9
|
+
require "run_loop/cli/errors"
|
10
|
+
require "run_loop/shell"
|
11
|
+
include RunLoop::Shell
|
12
|
+
|
13
|
+
require "run_loop/regex"
|
14
|
+
|
15
|
+
desc "install app [OPTIONS]", "Installs an app on a device."
|
16
|
+
|
17
|
+
method_option "device",
|
18
|
+
:desc => 'The simulator UDID or name.',
|
19
|
+
:aliases => "-d",
|
20
|
+
:required => false,
|
21
|
+
:type => :string
|
22
|
+
|
23
|
+
method_option "debug",
|
24
|
+
:desc => "Enable debug logging.",
|
25
|
+
:aliases => "-v",
|
26
|
+
:required => false,
|
27
|
+
:default => false,
|
28
|
+
:type => :boolean
|
29
|
+
|
30
|
+
method_option "force",
|
31
|
+
:desc => "Force a re-install the existing app",
|
32
|
+
:aliases => "-f",
|
33
|
+
:required => false,
|
34
|
+
:default => false,
|
35
|
+
:type => :boolean
|
36
|
+
|
37
|
+
def install(app)
|
38
|
+
extension = File.extname(app)
|
39
|
+
if extension == ".app"
|
40
|
+
app_instance = RunLoop::App.new(app)
|
41
|
+
else
|
42
|
+
app_instance = RunLoop::Ipa.new(app)
|
43
|
+
end
|
44
|
+
|
45
|
+
xcode = RunLoop::Xcode.new
|
46
|
+
simctl = RunLoop::Simctl.new
|
47
|
+
instruments = RunLoop::Instruments.new
|
48
|
+
|
49
|
+
detect_options = {}
|
50
|
+
|
51
|
+
device = options[:device]
|
52
|
+
if !device
|
53
|
+
detect_options[:device] = "device"
|
54
|
+
else
|
55
|
+
detect_options[:device] = device
|
56
|
+
end
|
57
|
+
|
58
|
+
device = RunLoop::Device.detect_device(detect_options, xcode,
|
59
|
+
simctl, instruments)
|
60
|
+
|
61
|
+
idm = RunLoop::PhysicalDevice::IOSDeviceManager.new(device)
|
62
|
+
|
63
|
+
if options[:force]
|
64
|
+
idm.install_app(app_instance)
|
65
|
+
else
|
66
|
+
idm.ensure_newest_installed(app_instance)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -45,14 +45,20 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '3.0'
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 3.0.1
|
49
52
|
type: :runtime
|
50
53
|
prerelease: false
|
51
54
|
version_requirements: !ruby/object:Gem::Requirement
|
52
55
|
requirements:
|
53
56
|
- - "~>"
|
54
57
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
58
|
+
version: '3.0'
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.1
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
63
|
name: thor
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -325,6 +331,7 @@ files:
|
|
325
331
|
- lib/run_loop/cli/cli.rb
|
326
332
|
- lib/run_loop/cli/codesign.rb
|
327
333
|
- lib/run_loop/cli/errors.rb
|
334
|
+
- lib/run_loop/cli/idm.rb
|
328
335
|
- lib/run_loop/cli/instruments.rb
|
329
336
|
- lib/run_loop/cli/locale.rb
|
330
337
|
- lib/run_loop/cli/simctl.rb
|
@@ -414,8 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
414
421
|
- !ruby/object:Gem::Version
|
415
422
|
version: '0'
|
416
423
|
requirements: []
|
417
|
-
|
418
|
-
rubygems_version: 2.5.1
|
424
|
+
rubygems_version: 3.0.3
|
419
425
|
signing_key:
|
420
426
|
specification_version: 4
|
421
427
|
summary: The bridge between Calabash iOS and Xcode command-line tools like instruments
|