simctl 0.2.0 → 1.0.0

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: 08e307334697a4860011084ade0950db0e7603b6
4
- data.tar.gz: 16ba00c29ba5c6d3b8108412aadd49d6a89e8411
3
+ metadata.gz: b69dda3a4d2d65b36411424b2348d7fe2e7bc6e3
4
+ data.tar.gz: c6628e187a8ebb0b7daee3abeaa524154623f60e
5
5
  SHA512:
6
- metadata.gz: 4c6f499511ef8e23a2843f7ab9e67b10fa818e0949497fb1031a0b97760dc90652e79c4ffc4bdd1cdb71bb9719a23698be27b4aa380f7e85e45e684f5deed7d7
7
- data.tar.gz: 2573ec31399d6e1fe268d4729367cc8e319344bb23c641c1b21169262113b95cca600903f6140ff8d0db765fb9911d0038c04555eade7127ec7af15b77a543f8
6
+ metadata.gz: 4a5b354223c05fbfa7170412de2e570a785b0ba6e4c06320da678ae45b5b6a01ba90303d055a05078263c0284d80da3910c20898f4520383fa1f0d8efcb06e93
7
+ data.tar.gz: 3b22417301bb749c1935f686d97d6827a452ec3cce88e13c7f2f2aca8d9a1a3d8a388e766d10f8a108a8087e7a88deeddd0d7b2001e63571fa56eb1d95f24078
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simctl (0.2.0)
4
+ simctl (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,9 +24,10 @@ module SimCtl
24
24
  # @yield [exception] an exception that might happen during shutdown/delete of the old device
25
25
  def reset_device(name, device_type, runtime)
26
26
  begin
27
- device = device(name: name, os: runtime.name)
28
- device.shutdown! if device.state != 'Shutdown'
29
- device.delete!
27
+ SimCtl.list_devices.where(name: name, os: runtime.name).each do |device|
28
+ device.shutdown! if device.state != 'Shutdown'
29
+ device.delete!
30
+ end
30
31
  rescue Exception => exception
31
32
  yield exception if block_given?
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module SimCtl
2
- VERSION = "0.2.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Plunien