fourflusher 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -1
- data/.travis.yml +3 -0
- data/lib/fourflusher/compat.rb +3 -0
- data/lib/fourflusher/executable.rb +3 -3
- data/lib/fourflusher/version.rb +1 -1
- data/lib/fourflusher/xcodebuild.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c9714f4e65599992f2bf84b6e7f47a54246dd21
|
4
|
+
data.tar.gz: 87e43ad9abb718096caa0800c8699687159b7e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41bb6f286fd1865764947aca7566bdf779889b77c9bc543e62fe3003ae71a327ae107342052bb15818c83584419ab07c8e501c3f3f914271fd724d440ce5b249
|
7
|
+
data.tar.gz: b7cacf4472b02fab9a735f5404a47cf15e1223488b34347f3e88b6a45ddefe30607dfe2a9a0c2bf6f36474dd2fdf47fc264952488a43466b5889b43d28d16777
|
data/.rubocop.yml
CHANGED
@@ -5,7 +5,7 @@ Metrics/CyclomaticComplexity:
|
|
5
5
|
Max: 10
|
6
6
|
|
7
7
|
Metrics/LineLength:
|
8
|
-
Max:
|
8
|
+
Max: 105
|
9
9
|
|
10
10
|
Metrics/MethodLength:
|
11
11
|
Max: 30
|
@@ -24,3 +24,7 @@ Style/Documentation:
|
|
24
24
|
- 'test/**/*'
|
25
25
|
- 'lib/fourflusher/version.rb'
|
26
26
|
- 'lib/fourflusher/compat.rb'
|
27
|
+
|
28
|
+
Lint/Void:
|
29
|
+
Exclude:
|
30
|
+
- 'spec/unit_spec.rb'
|
data/.travis.yml
CHANGED
data/lib/fourflusher/compat.rb
CHANGED
@@ -78,7 +78,7 @@ module Fourflusher
|
|
78
78
|
#
|
79
79
|
def self.execute_command(executable, command, raise_on_failure = true)
|
80
80
|
bin = which(executable)
|
81
|
-
fail Informative, "Unable to locate the executable `#{executable}`" unless bin
|
81
|
+
fail Fourflusher::Informative, "Unable to locate the executable `#{executable}`" unless bin
|
82
82
|
|
83
83
|
command = command.map(&:to_s)
|
84
84
|
full_command = "#{bin} #{command.join(' ')}"
|
@@ -98,7 +98,7 @@ module Fourflusher
|
|
98
98
|
output = stdout + stderr
|
99
99
|
unless status.success?
|
100
100
|
if raise_on_failure
|
101
|
-
fail Informative, "#{full_command}\n\n#{output}"
|
101
|
+
fail Fourflusher::Informative, "#{full_command}\n\n#{output}"
|
102
102
|
else
|
103
103
|
UI.message("[!] Failed: #{full_command}".red)
|
104
104
|
end
|
@@ -144,7 +144,7 @@ module Fourflusher
|
|
144
144
|
#
|
145
145
|
def self.capture_command(executable, command, capture: :merge)
|
146
146
|
bin = which(executable)
|
147
|
-
fail Informative, "Unable to locate the executable `#{executable}`" unless bin
|
147
|
+
fail Fourflusher::Informative, "Unable to locate the executable `#{executable}`" unless bin
|
148
148
|
|
149
149
|
require 'open3'
|
150
150
|
command = command.map(&:to_s)
|
data/lib/fourflusher/version.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require 'fourflusher/find'
|
2
2
|
|
3
3
|
module Fourflusher
|
4
|
+
# Executes `simctl` commands
|
4
5
|
class SimControl
|
5
6
|
def destination(filter, minimum_version = '1.0')
|
6
7
|
sim = simulator(filter, minimum_version)
|
7
|
-
|
8
|
+
fail "Simulator #{filter} is not available." if sim.nil?
|
8
9
|
['-destination', "id=#{sim.id}"]
|
9
10
|
end
|
10
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fourflusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Bügling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|