stf-client 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b55ff5a67a849151ac73d524d6086e11468ccf8
4
- data.tar.gz: 890d3966ce8dbaa65842dc8f14b5b434358d3d28
3
+ metadata.gz: ce5d7318c658dec0b3037881a34ca1a31ebf9765
4
+ data.tar.gz: 11a9cae788fceea8fff37ad3999fa802e52458d0
5
5
  SHA512:
6
- metadata.gz: 8e895e08348b578ae4e3182aed554a02237c9a84e2c2a290146df0b8e4ed594077ee5759c7358d9802b74466662c73e110974cb20d504a3d01f3a61bb3ed41c8
7
- data.tar.gz: 3eb12ca9218b4da7aedf6c6f7d8058b993e717a45375e29aa904792777e29aa84e07fbf5c5d052247db1a153940e76bbc047bfe120298ec6c3c1f08a5fc31f29
6
+ metadata.gz: 8eba37ea10f749e99596508994b59c7c110cdda68363b533d577fd0909a294dc2b1cf309f939396c394fdc7fa5e2479e3754c67060e857cf3242d45a310cdf5e
7
+ data.tar.gz: 035e6143864257708de86866a4f17456821afdb4e4e72b7a880abbd99f3d0b4a9cbdcd91e125200f8437888f53091ed849d10017d5ccc653ba6e0b61fa9053fe
@@ -25,7 +25,7 @@ class StartDebugSessionInteractor
25
25
  sleep 5
26
26
  next
27
27
  end
28
- usable_devices = devices.select { |device| device.using == false }
28
+ usable_devices = devices.select{ |d| d.ready == true && d.present == true && d.using == false }
29
29
  if usable_devices.empty?
30
30
  logger.error 'All devices are being used. Retrying'
31
31
  sleep 5
@@ -62,4 +62,6 @@ class StartDebugSessionInteractor
62
62
  end
63
63
  end
64
64
  end
65
- end
65
+ end
66
+
67
+ StartDebugSessionInteractor.new(Stf::Client.new('https://stf.default.svc.agoda.mobi', 'c8c62e3503d246b68d6683c47bc1414a80b9527185494c8ea811f874e9fdb7d2')).execute
data/lib/stf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stf
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stf-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Malinskiy