smartdust-client 1.3.3 → 1.3.4

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: 2af1a413ea84e37dedbc6a834955cdad82661d5a4a61185fb405442583c36ae2
4
+ data.tar.gz: c55e850f6291ea41eb1a7259afc06384fe791b3b8381415683714bcf7efccf58
5
5
  SHA512:
6
- metadata.gz: 46bebb841cb1fce67e37d9d6513b96aa617e4b9d876acefd9cc0e43507d8d993a24d4100c322be07c0fa060e1d542563c734d5b7f905fc4668c19d8fe787edd2
7
- data.tar.gz: ee49a28b2ee17791af1278083495c1093f927898166899476793bdbd320fc152faf2a7297164bc661976a4640c001d7c4fe5edd015d309b9137309a090330043
6
+ metadata.gz: d04347117e4db242dae76e8c64ca619b05865961441f9a09a3e03ba3727ed1855887ad2e51b220fa62678160211a4ef2232c1a88f2cf21c53ab82c853edf347d
7
+ data.tar.gz: f7c5351efdf519fb6f4799371f8c5cd707d041b0bba03d9fd73f9761bd31bdfc246312084c478c08d5c4117ca7d5045095b6974468f8c20a1b0782e49378796d
data/.gitignore CHANGED
@@ -101,6 +101,3 @@ build-iPhoneSimulator/
101
101
 
102
102
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
103
103
  .rvmrc
104
-
105
- .idea
106
- .DS_Store
data/Gemfile.lock CHANGED
@@ -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,9 +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)
42
-
43
- - Run it by simply entering ```smartdust-client```
41
+ - ```gem install smartdust-client-1.3.4.gem``` (or different version, see output of the previous command)
44
42
 
45
43
  ## Usage
46
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.4'
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smartdust
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-05 00:00:00.000000000 Z
11
+ date: 2025-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -206,7 +206,7 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0.2'
209
- description:
209
+ description:
210
210
  email:
211
211
  - jordan@smartdust.me
212
212
  executables:
@@ -214,13 +214,10 @@ executables:
214
214
  extensions: []
215
215
  extra_rdoc_files: []
216
216
  files:
217
- - ".github/workflows/docker-build.yml"
218
- - ".github/workflows/ruby-build.yml"
219
217
  - ".gitignore"
220
218
  - ".rspec"
221
219
  - ".simplecov"
222
220
  - ".travis.yml"
223
- - Dockerfile
224
221
  - Gemfile
225
222
  - Gemfile.lock
226
223
  - LICENSE.txt
@@ -254,7 +251,7 @@ homepage: https://docs.smartdust.me/docs/CLI%20Lab%20client/cli-client-1-3
254
251
  licenses:
255
252
  - MIT
256
253
  metadata: {}
257
- post_install_message:
254
+ post_install_message:
258
255
  rdoc_options: []
259
256
  require_paths:
260
257
  - lib
@@ -269,8 +266,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
266
  - !ruby/object:Gem::Version
270
267
  version: '0'
271
268
  requirements: []
272
- rubygems_version: 3.2.33
273
- signing_key:
269
+ rubygems_version: 3.3.5
270
+ signing_key:
274
271
  specification_version: 4
275
272
  summary: Connect to devices from Smartdust Lab from cli
276
273
  test_files: []
@@ -1,31 +0,0 @@
1
- name: Docker Image
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- build:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
-
14
- - uses: docker/setup-qemu-action@v3
15
-
16
- - uses: docker/setup-buildx-action@v3
17
-
18
- - name: Login to DockerHub
19
- uses: docker/login-action@v1
20
- with:
21
- username: ${{ secrets.DOCKERHUB_USERNAME }}
22
- password: ${{ secrets.DOCKERHUB_TOKEN }}
23
-
24
- - name: Build and push
25
- uses: docker/build-push-action@v2
26
- with:
27
- context: ./
28
- file: ./Dockerfile
29
- platforms: linux/amd64,linux/arm64
30
- push: true
31
- tags: smartdust/smartdust-cli
@@ -1,32 +0,0 @@
1
- name: Rubygem build and upload
2
-
3
- on:
4
- push:
5
- # branches:
6
- # - main
7
-
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v2
14
-
15
- - uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: '3.0'
18
-
19
- - run: bundle install
20
-
21
- - run: gem build smartdust-client.gemspec
22
-
23
- - name: Push gem to Nexus
24
- run: |
25
- gem install nexus
26
- gem nexus --url https://repository.smartdust.me/repository/ruby/ --credential ruby-write:${{ secrets.NEXUS_CREDS }} smartdust-client-*.gem
27
-
28
- - name: Push gem to RubyGems
29
- run: |
30
- gem push smartdust-client-*.gem
31
- env:
32
- GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
data/Dockerfile DELETED
@@ -1,17 +0,0 @@
1
- FROM ruby:3.0
2
-
3
- RUN apt-get update && apt-get install -y android-tools-adb
4
-
5
- WORKDIR /app
6
-
7
- COPY . .
8
-
9
- RUN bundle install
10
-
11
- RUN gem build smartdust-client.gemspec
12
-
13
- RUN gem install smartdust-client-*.gem
14
-
15
- RUN cd / && rm -rf /app
16
-
17
- ENTRYPOINT ["smartdust-client"]