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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48f66c96b4e5898ee29c2aadc6aed227a47f8219
4
- data.tar.gz: 1cb922123ef0cc2ac7aa2785dcadf5d939ae61aa
3
+ metadata.gz: 3c9714f4e65599992f2bf84b6e7f47a54246dd21
4
+ data.tar.gz: 87e43ad9abb718096caa0800c8699687159b7e36
5
5
  SHA512:
6
- metadata.gz: 16dd4c65347c6d4680a3f036aff5a3ea78cc2bde1d7bc2b5d50a571f125a924b069a94e36db0acc445c4e421dce550111564b0940d55675d6441d4919c50f972
7
- data.tar.gz: 31d27049a7f17f120473b15f8c0388e75973b260d774b32597317f4d5e9ea376d038f926e8b65e1cbed063199c07422966affe8ecf248958736c2baa0021f1c7
6
+ metadata.gz: 41bb6f286fd1865764947aca7566bdf779889b77c9bc543e62fe3003ae71a327ae107342052bb15818c83584419ab07c8e501c3f3f914271fd724d440ce5b249
7
+ data.tar.gz: b7cacf4472b02fab9a735f5404a47cf15e1223488b34347f3e88b6a45ddefe30607dfe2a9a0c2bf6f36474dd2fdf47fc264952488a43466b5889b43d28d16777
@@ -5,7 +5,7 @@ Metrics/CyclomaticComplexity:
5
5
  Max: 10
6
6
 
7
7
  Metrics/LineLength:
8
- Max: 100
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'
@@ -1,6 +1,9 @@
1
1
  language: ruby
2
+ os: osx
3
+ osx_image: xcode7.2
2
4
  rvm: 2.0.0-p598
3
5
  cache: bundler
6
+ before_install: gem install bundler
4
7
  script:
5
8
  - bundle exec rake spec
6
9
  - bundle exec rake rubocop
@@ -9,6 +9,9 @@ module Fourflusher
9
9
  end
10
10
  end
11
11
 
12
+ class Informative < StandardError
13
+ end
14
+
12
15
  class UI
13
16
  def self.indentation_level
14
17
  0
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Fourflusher
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -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
- raise "Simulator #{filter} is not available." if sim.nil?
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.0
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: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler