simctl 1.6.2 → 1.6.3
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/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +80 -0
- data/.travis.yml +5 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +20 -3
- data/README.md +3 -3
- data/fastlane-plugin-simctl/.gitignore +11 -0
- data/fastlane-plugin-simctl/.rspec +3 -0
- data/fastlane-plugin-simctl/.rubocop.yml +263 -0
- data/fastlane-plugin-simctl/Gemfile +6 -0
- data/fastlane-plugin-simctl/README.md +46 -0
- data/fastlane-plugin-simctl/Rakefile +9 -0
- data/fastlane-plugin-simctl/fastlane-plugin-simctl.gemspec +29 -0
- data/fastlane-plugin-simctl/fastlane/Fastfile +9 -0
- data/fastlane-plugin-simctl/fastlane/Pluginfile +1 -0
- data/fastlane-plugin-simctl/lib/fastlane/plugin/simctl.rb +16 -0
- data/fastlane-plugin-simctl/lib/fastlane/plugin/simctl/actions/simctl_action.rb +51 -0
- data/fastlane-plugin-simctl/lib/fastlane/plugin/simctl/helper/simctl_helper.rb +52 -0
- data/fastlane-plugin-simctl/lib/fastlane/plugin/simctl/version.rb +5 -0
- data/fastlane-plugin-simctl/spec/simctl_action_spec.rb +4 -0
- data/fastlane-plugin-simctl/spec/spec_helper.rb +15 -0
- data/lib/simctl.rb +1 -1
- data/lib/simctl/command/create.rb +3 -2
- data/lib/simctl/command/delete.rb +1 -1
- data/lib/simctl/command/erase.rb +0 -2
- data/lib/simctl/command/io.rb +3 -3
- data/lib/simctl/command/launch.rb +6 -6
- data/lib/simctl/command/list.rb +8 -6
- data/lib/simctl/command/reset.rb +2 -2
- data/lib/simctl/command/spawn.rb +4 -2
- data/lib/simctl/command/terminate.rb +4 -4
- data/lib/simctl/command/warmup.rb +3 -3
- data/lib/simctl/device.rb +14 -14
- data/lib/simctl/device_launchctl.rb +3 -3
- data/lib/simctl/device_path.rb +18 -7
- data/lib/simctl/device_settings.rb +5 -5
- data/lib/simctl/device_type.rb +1 -1
- data/lib/simctl/executor.rb +3 -3
- data/lib/simctl/list.rb +6 -6
- data/lib/simctl/object.rb +1 -1
- data/lib/simctl/runtime.rb +2 -2
- data/lib/simctl/version.rb +1 -1
- data/lib/simctl/xcode/path.rb +10 -4
- data/lib/simctl/xcode/version.rb +3 -3
- data/simctl.gemspec +3 -1
- data/spec/simctl/device_interaction_spec.rb +11 -11
- data/spec/simctl/executor_spec.rb +1 -1
- data/spec/simctl/list_spec.rb +6 -2
- data/spec/simctl/readme_spec.rb +5 -5
- data/spec/simctl/warmup_spec.rb +1 -1
- data/spec/spec_helper.rb +9 -13
- metadata +33 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3649008af6a2fe8942b3aa399e3a17bef83f9f8
|
4
|
+
data.tar.gz: c5cf43451dc8226486510a3918e84f7b0863fd4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d6e56466ee297bb069045451f1542601cdb70354e8890fa11d3235dc66e9dc4a3fd7dc4a367a9f22ccfab0143561f85cca22efd5c96e566640283c8b22c825
|
7
|
+
data.tar.gz: c3c5b6c4ceeb1a368b7f7622d978c67b40b1b31065779a23260ff0c11460b9914054cf1dcb690a5c8058c058e46651b8aeee86c18ec707bca8e4e179423ebe1f
|
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2017-09-08 10:56:22 +0200 using RuboCop version 0.49.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
Lint/HandleExceptions:
|
11
|
+
Exclude:
|
12
|
+
- 'spec/spec_helper.rb'
|
13
|
+
|
14
|
+
# Offense count: 1
|
15
|
+
Lint/NonLocalExitFromIterator:
|
16
|
+
Exclude:
|
17
|
+
- 'lib/simctl/executor.rb'
|
18
|
+
|
19
|
+
# Offense count: 1
|
20
|
+
Lint/RescueException:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/simctl/command/reset.rb'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
Lint/ScriptPermission:
|
26
|
+
Exclude:
|
27
|
+
- 'Rakefile'
|
28
|
+
|
29
|
+
# Offense count: 4
|
30
|
+
Metrics/AbcSize:
|
31
|
+
Max: 21
|
32
|
+
|
33
|
+
# Offense count: 4
|
34
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
35
|
+
Metrics/BlockLength:
|
36
|
+
Max: 237
|
37
|
+
|
38
|
+
# Offense count: 1
|
39
|
+
# Configuration parameters: CountComments.
|
40
|
+
Metrics/ClassLength:
|
41
|
+
Max: 145
|
42
|
+
|
43
|
+
# Offense count: 58
|
44
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
45
|
+
# URISchemes: http, https
|
46
|
+
Metrics/LineLength:
|
47
|
+
Max: 144
|
48
|
+
|
49
|
+
# Offense count: 6
|
50
|
+
# Configuration parameters: CountComments.
|
51
|
+
Metrics/MethodLength:
|
52
|
+
Max: 38
|
53
|
+
|
54
|
+
# Offense count: 1
|
55
|
+
Style/AccessorMethodName:
|
56
|
+
Exclude:
|
57
|
+
- 'lib/simctl/device_settings.rb'
|
58
|
+
|
59
|
+
# Offense count: 2
|
60
|
+
Style/ClassVars:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/simctl.rb'
|
63
|
+
|
64
|
+
# Offense count: 30
|
65
|
+
Style/Documentation:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
# Offense count: 1
|
69
|
+
Style/MethodMissing:
|
70
|
+
Exclude:
|
71
|
+
- 'lib/simctl/device.rb'
|
72
|
+
|
73
|
+
# Offense count: 1
|
74
|
+
# Cop supports --auto-correct.
|
75
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
76
|
+
# SupportedStyles: predicate, comparison
|
77
|
+
Style/NumericPredicate:
|
78
|
+
Exclude:
|
79
|
+
- 'spec/**/*'
|
80
|
+
- 'lib/simctl/device.rb'
|
data/.travis.yml
CHANGED
@@ -2,19 +2,20 @@ language: objective-c
|
|
2
2
|
matrix:
|
3
3
|
include:
|
4
4
|
- os: osx
|
5
|
-
osx_image:
|
5
|
+
osx_image: xcode8.3
|
6
6
|
env: CUSTOM_DEVICE_SET_PATH=true
|
7
7
|
- os: osx
|
8
|
-
osx_image:
|
8
|
+
osx_image: xcode8.3
|
9
9
|
env: CUSTOM_DEVICE_SET_PATH=false
|
10
10
|
- os: osx
|
11
|
-
osx_image:
|
11
|
+
osx_image: xcode9
|
12
12
|
env: CUSTOM_DEVICE_SET_PATH=true
|
13
13
|
- os: osx
|
14
|
-
osx_image:
|
14
|
+
osx_image: xcode9
|
15
15
|
env: CUSTOM_DEVICE_SET_PATH=false
|
16
16
|
before_script:
|
17
17
|
- export LANG=en_US.UTF-8
|
18
18
|
install: bundle
|
19
19
|
script:
|
20
20
|
- bundle exec rake
|
21
|
+
- bundle exec rubocop
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simctl (1.6.
|
4
|
+
simctl (1.6.3)
|
5
5
|
CFPropertyList
|
6
6
|
naturally
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
CFPropertyList (
|
11
|
+
CFPropertyList (3.0.0)
|
12
|
+
ast (2.3.0)
|
12
13
|
coveralls (0.8.17)
|
13
14
|
json (>= 1.8, < 3)
|
14
15
|
simplecov (~> 0.12.0)
|
@@ -19,6 +20,12 @@ GEM
|
|
19
20
|
docile (1.1.5)
|
20
21
|
json (2.0.2)
|
21
22
|
naturally (2.1.0)
|
23
|
+
parallel (1.12.0)
|
24
|
+
parser (2.4.0.0)
|
25
|
+
ast (~> 2.2)
|
26
|
+
powerpack (0.1.1)
|
27
|
+
rainbow (2.2.2)
|
28
|
+
rake
|
22
29
|
rake (12.0.0)
|
23
30
|
rspec (3.5.0)
|
24
31
|
rspec-core (~> 3.5.0)
|
@@ -33,6 +40,14 @@ GEM
|
|
33
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
41
|
rspec-support (~> 3.5.0)
|
35
42
|
rspec-support (3.5.0)
|
43
|
+
rubocop (0.49.1)
|
44
|
+
parallel (~> 1.10)
|
45
|
+
parser (>= 2.3.3.1, < 3.0)
|
46
|
+
powerpack (~> 0.1)
|
47
|
+
rainbow (>= 1.99.1, < 3.0)
|
48
|
+
ruby-progressbar (~> 1.7)
|
49
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
50
|
+
ruby-progressbar (1.8.1)
|
36
51
|
simplecov (0.12.0)
|
37
52
|
docile (~> 1.1.0)
|
38
53
|
json (>= 1.8, < 3)
|
@@ -42,6 +57,7 @@ GEM
|
|
42
57
|
tins (~> 1.0)
|
43
58
|
thor (0.19.4)
|
44
59
|
tins (1.13.0)
|
60
|
+
unicode-display_width (1.3.0)
|
45
61
|
|
46
62
|
PLATFORMS
|
47
63
|
ruby
|
@@ -50,7 +66,8 @@ DEPENDENCIES
|
|
50
66
|
coveralls
|
51
67
|
rake
|
52
68
|
rspec
|
69
|
+
rubocop
|
53
70
|
simctl!
|
54
71
|
|
55
72
|
BUNDLED WITH
|
56
|
-
1.
|
73
|
+
1.16.0
|
data/README.md
CHANGED
@@ -12,11 +12,11 @@ require 'simctl'
|
|
12
12
|
# Select the iOS 9.3 runtime
|
13
13
|
runtime = SimCtl.runtime(name: 'iOS 9.3')
|
14
14
|
|
15
|
-
# Select the iPhone
|
16
|
-
devicetype = SimCtl.devicetype(name: 'iPhone
|
15
|
+
# Select the iPhone 6 device type
|
16
|
+
devicetype = SimCtl.devicetype(name: 'iPhone 6')
|
17
17
|
|
18
18
|
# Create a new device
|
19
|
-
device = SimCtl.create_device 'Unit Tests @ iPhone
|
19
|
+
device = SimCtl.create_device 'Unit Tests @ iPhone 6 9.3', devicetype, runtime
|
20
20
|
|
21
21
|
# Launch a new Simulator.app instance
|
22
22
|
device.launch
|
@@ -0,0 +1,263 @@
|
|
1
|
+
Style/MultipleComparison:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/PercentLiteralDelimiters:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
# kind_of? is a good way to check a type
|
8
|
+
Style/ClassCheck:
|
9
|
+
EnforcedStyle: kind_of?
|
10
|
+
|
11
|
+
Style/FrozenStringLiteralComment:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
# This doesn't work with older versions of Ruby (pre 2.4.0)
|
15
|
+
Style/SafeNavigation:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
# This doesn't work with older versions of Ruby (pre 2.4.0)
|
19
|
+
Performance/RegexpMatch:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
# This suggests use of `tr` instead of `gsub`. While this might be more performant,
|
23
|
+
# these methods are not at all interchangable, and behave very differently. This can
|
24
|
+
# lead to people making the substitution without considering the differences.
|
25
|
+
Performance/StringReplacement:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
# .length == 0 is also good, we don't always want .zero?
|
29
|
+
Style/NumericPredicate:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# this would cause errors with long lanes
|
33
|
+
Metrics/BlockLength:
|
34
|
+
Enabled: false
|
35
|
+
|
36
|
+
# this is a bit buggy
|
37
|
+
Metrics/ModuleLength:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
# certificate_1 is an okay variable name
|
41
|
+
Style/VariableNumber:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
# This is used a lot across the fastlane code base for config files
|
45
|
+
Style/MethodMissing:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
# This rule isn't useful, lots of discussion happening around it also
|
49
|
+
# e.g. https://github.com/bbatsov/rubocop/issues/2338
|
50
|
+
MultilineBlockChain:
|
51
|
+
Enabled: false
|
52
|
+
|
53
|
+
#
|
54
|
+
# File.chmod(0777, f)
|
55
|
+
#
|
56
|
+
# is easier to read than
|
57
|
+
#
|
58
|
+
# File.chmod(0o777, f)
|
59
|
+
#
|
60
|
+
Style/NumericLiteralPrefix:
|
61
|
+
Enabled: false
|
62
|
+
|
63
|
+
#
|
64
|
+
# command = (!clean_expired.nil? || !clean_pattern.nil?) ? CLEANUP : LIST
|
65
|
+
#
|
66
|
+
# is easier to read than
|
67
|
+
#
|
68
|
+
# command = !clean_expired.nil? || !clean_pattern.nil? ? CLEANUP : LIST
|
69
|
+
#
|
70
|
+
Style/TernaryParentheses:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
# sometimes it is useful to have those empty methods
|
74
|
+
Style/EmptyMethod:
|
75
|
+
Enabled: false
|
76
|
+
|
77
|
+
# It's better to be more explicit about the type
|
78
|
+
Style/BracesAroundHashParameters:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
# specs sometimes have useless assignments, which is fine
|
82
|
+
Lint/UselessAssignment:
|
83
|
+
Exclude:
|
84
|
+
- '**/spec/**/*'
|
85
|
+
|
86
|
+
# We could potentially enable the 2 below:
|
87
|
+
Layout/IndentHash:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Layout/AlignHash:
|
91
|
+
Enabled: false
|
92
|
+
|
93
|
+
# HoundCI doesn't like this rule
|
94
|
+
Layout/DotPosition:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
# We allow !! as it's an easy way to convert ot boolean
|
98
|
+
Style/DoubleNegation:
|
99
|
+
Enabled: false
|
100
|
+
|
101
|
+
# Prevent to replace [] into %i
|
102
|
+
Style/SymbolArray:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
# We still support Ruby 2.0.0
|
106
|
+
Layout/IndentHeredoc:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
# This cop would not work fine with rspec
|
110
|
+
Style/MixinGrouping:
|
111
|
+
Exclude:
|
112
|
+
- '**/spec/**/*'
|
113
|
+
|
114
|
+
# Sometimes we allow a rescue block that doesn't contain code
|
115
|
+
Lint/HandleExceptions:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
Lint/UnusedBlockArgument:
|
120
|
+
Enabled: false
|
121
|
+
|
122
|
+
Lint/AmbiguousBlockAssociation:
|
123
|
+
Enabled: false
|
124
|
+
|
125
|
+
# Needed for $verbose
|
126
|
+
Style/GlobalVars:
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
# We want to allow class Fastlane::Class
|
130
|
+
Style/ClassAndModuleChildren:
|
131
|
+
Enabled: false
|
132
|
+
|
133
|
+
# $? Exit
|
134
|
+
Style/SpecialGlobalVars:
|
135
|
+
Enabled: false
|
136
|
+
|
137
|
+
Metrics/AbcSize:
|
138
|
+
Enabled: false
|
139
|
+
|
140
|
+
Metrics/MethodLength:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Metrics/CyclomaticComplexity:
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
# The %w might be confusing for new users
|
147
|
+
Style/WordArray:
|
148
|
+
MinSize: 19
|
149
|
+
|
150
|
+
# raise and fail are both okay
|
151
|
+
Style/SignalException:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
# Better too much 'return' than one missing
|
155
|
+
Style/RedundantReturn:
|
156
|
+
Enabled: false
|
157
|
+
|
158
|
+
# Having if in the same line might not always be good
|
159
|
+
Style/IfUnlessModifier:
|
160
|
+
Enabled: false
|
161
|
+
|
162
|
+
# and and or is okay
|
163
|
+
Style/AndOr:
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
# Configuration parameters: CountComments.
|
167
|
+
Metrics/ClassLength:
|
168
|
+
Max: 320
|
169
|
+
|
170
|
+
|
171
|
+
# Configuration parameters: AllowURI, URISchemes.
|
172
|
+
Metrics/LineLength:
|
173
|
+
Max: 370
|
174
|
+
|
175
|
+
# Configuration parameters: CountKeywordArgs.
|
176
|
+
Metrics/ParameterLists:
|
177
|
+
Max: 17
|
178
|
+
|
179
|
+
Metrics/PerceivedComplexity:
|
180
|
+
Max: 18
|
181
|
+
|
182
|
+
# Sometimes it's easier to read without guards
|
183
|
+
Style/GuardClause:
|
184
|
+
Enabled: false
|
185
|
+
|
186
|
+
# We allow both " and '
|
187
|
+
Style/StringLiterals:
|
188
|
+
Enabled: false
|
189
|
+
|
190
|
+
# something = if something_else
|
191
|
+
# that's confusing
|
192
|
+
Style/ConditionalAssignment:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
# Better to have too much self than missing a self
|
196
|
+
Style/RedundantSelf:
|
197
|
+
Enabled: false
|
198
|
+
|
199
|
+
# e.g.
|
200
|
+
# def self.is_supported?(platform)
|
201
|
+
# we may never use `platform`
|
202
|
+
Lint/UnusedMethodArgument:
|
203
|
+
Enabled: false
|
204
|
+
|
205
|
+
# the let(:key) { ... }
|
206
|
+
Lint/ParenthesesAsGroupedExpression:
|
207
|
+
Exclude:
|
208
|
+
- '**/spec/**/*'
|
209
|
+
|
210
|
+
# This would reject is_ in front of methods
|
211
|
+
# We use `is_supported?` everywhere already
|
212
|
+
Style/PredicateName:
|
213
|
+
Enabled: false
|
214
|
+
|
215
|
+
# We allow the $
|
216
|
+
Style/PerlBackrefs:
|
217
|
+
Enabled: false
|
218
|
+
|
219
|
+
# Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
|
220
|
+
Layout/SpaceAroundOperators:
|
221
|
+
Exclude:
|
222
|
+
- '**/spec/actions_specs/xcodebuild_spec.rb'
|
223
|
+
|
224
|
+
AllCops:
|
225
|
+
TargetRubyVersion: 2.0
|
226
|
+
Include:
|
227
|
+
- '**/fastlane/Fastfile'
|
228
|
+
Exclude:
|
229
|
+
- '**/lib/assets/custom_action_template.rb'
|
230
|
+
- './vendor/**/*'
|
231
|
+
|
232
|
+
# They have not to be snake_case
|
233
|
+
Style/FileName:
|
234
|
+
Exclude:
|
235
|
+
- '**/Dangerfile'
|
236
|
+
- '**/Brewfile'
|
237
|
+
- '**/Gemfile'
|
238
|
+
- '**/Podfile'
|
239
|
+
- '**/Rakefile'
|
240
|
+
- '**/Fastfile'
|
241
|
+
- '**/Deliverfile'
|
242
|
+
- '**/Snapfile'
|
243
|
+
- '**/*.gemspec'
|
244
|
+
|
245
|
+
# We're not there yet
|
246
|
+
Style/Documentation:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
# Added after upgrade to 0.38.0
|
250
|
+
Style/MutableConstant:
|
251
|
+
Enabled: false
|
252
|
+
|
253
|
+
# length > 0 is good
|
254
|
+
Style/ZeroLengthPredicate:
|
255
|
+
Enabled: false
|
256
|
+
|
257
|
+
# Adds complexity
|
258
|
+
Style/IfInsideElse:
|
259
|
+
Enabled: false
|
260
|
+
|
261
|
+
# Sometimes we just want to 'collect'
|
262
|
+
Style/CollectionMethods:
|
263
|
+
Enabled: false
|