smartdust-client 1.3.3 → 1.3.5

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
  SHA256:
3
- metadata.gz: 2ccb2e501ce1536eae8f61f60f29d58763d645fcf5598a0a5ddb990cf0a62f70
4
- data.tar.gz: 65454900a8aa8915fe2bafb0bc363b1610fc49beaa16b276c4161ec71bcd2e58
3
+ metadata.gz: 554f5f212b391326cdfa57760c89079a0c5998d1469d01f7d334e5c8a15c1f91
4
+ data.tar.gz: 9c28ac953932a43df0d9c37e0e371d91c88cf39245b364766f86d1e11cb28f44
5
5
  SHA512:
6
- metadata.gz: 46bebb841cb1fce67e37d9d6513b96aa617e4b9d876acefd9cc0e43507d8d993a24d4100c322be07c0fa060e1d542563c734d5b7f905fc4668c19d8fe787edd2
7
- data.tar.gz: ee49a28b2ee17791af1278083495c1093f927898166899476793bdbd320fc152faf2a7297164bc661976a4640c001d7c4fe5edd015d309b9137309a090330043
6
+ metadata.gz: 68fa5a2dba41b466080cbfb45f25a3e98310714b1cebdccb5fcc0c59ee4d1410fb4ecee62e53b4d56d68921debfa5b493fd0f6c22105c65bf8d5538497848f60
7
+ data.tar.gz: f5274b5b8a494fbf9c8c0331f7a42246b001610bb256902a4f2ffb231f4768facc861b41a4442bd464c0c987b78527442d802c00e07e945eff012918b1ab6722
@@ -2,8 +2,8 @@ name: Rubygem build and upload
2
2
 
3
3
  on:
4
4
  push:
5
- # branches:
6
- # - main
5
+ branches:
6
+ - main
7
7
 
8
8
 
9
9
  jobs:
data/Dockerfile CHANGED
@@ -6,6 +6,8 @@ WORKDIR /app
6
6
 
7
7
  COPY . .
8
8
 
9
+ RUN gem install bundler:1.17.3
10
+
9
11
  RUN bundle install
10
12
 
11
13
  RUN gem build smartdust-client.gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smartdust-client (1.3.3)
4
+ smartdust-client (1.3.5)
5
5
  ADB (~> 0.5)
6
6
  dante (~> 0.2.0)
7
7
  dry-configurable (~> 0.1.4)
@@ -34,7 +34,7 @@ GEM
34
34
  ostruct
35
35
  hashdiff (1.0.1)
36
36
  json (2.6.3)
37
- logger (1.7.0)
37
+ logger (1.6.6)
38
38
  ostruct (0.6.1)
39
39
  public_suffix (5.0.1)
40
40
  rack (1.6.13)
data/README.md CHANGED
@@ -38,7 +38,7 @@ e.g. all unique names of devices in the lab instance.
38
38
  - "cd" into the directory where the repository is cloned
39
39
  - Run the following commands: (adding "sudo" might be needed)
40
40
  - ```gem build smartdust-client.gemspec```
41
- - ```gem install smartdust-client-1.3.3.gem``` (or different version, see output of the previous command)
41
+ - ```gem install smartdust-client-1.3.5.gem``` (or different version, see output of the previous command)
42
42
 
43
43
  - Run it by simply entering ```smartdust-client```
44
44
 
@@ -22,7 +22,6 @@ module Stf
22
22
  end
23
23
  end
24
24
 
25
-
26
25
  def connect(url)
27
26
  raise "iOS connecting is not active" unless @active
28
27
  Open3.capture3("usbfluxctl add #{url}")
@@ -34,9 +34,10 @@ module Stf
34
34
  end
35
35
 
36
36
  def close_tunnel(device)
37
- provider_ip = device.getValue("provider")["ip"]
38
- port = device.getValue("remoteConnectUrl").split(":")[1].to_i
39
37
  success = false
38
+ provider_ip = device.getValue("provider")["ip"]
39
+ port = device.getValue("remoteConnectUrl")&.split(":")[1].to_i
40
+ return false if provider_ip.nil? || port.nil?
40
41
  1..10.times do
41
42
  begin
42
43
  success = DI[:stf].destroy_tunnel(provider_ip, port)
data/lib/stf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stf
2
- VERSION = '1.3.3'
2
+ VERSION = '1.3.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartdust-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smartdust
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-05 00:00:00.000000000 Z
11
+ date: 2025-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli