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 +4 -4
- data/.gitignore +0 -3
- data/Gemfile.lock +1 -1
- data/README.md +1 -3
- data/lib/stf/interactor/connect_ios_interactor.rb +0 -1
- data/lib/stf/interactor/stop_debug_session_interactor.rb +3 -2
- data/lib/stf/version.rb +1 -1
- metadata +7 -10
- data/.github/workflows/docker-build.yml +0 -31
- data/.github/workflows/ruby-build.yml +0 -32
- data/Dockerfile +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af1a413ea84e37dedbc6a834955cdad82661d5a4a61185fb405442583c36ae2
|
4
|
+
data.tar.gz: c55e850f6291ea41eb1a7259afc06384fe791b3b8381415683714bcf7efccf58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d04347117e4db242dae76e8c64ca619b05865961441f9a09a3e03ba3727ed1855887ad2e51b220fa62678160211a4ef2232c1a88f2cf21c53ab82c853edf347d
|
7
|
+
data.tar.gz: f7c5351efdf519fb6f4799371f8c5cd707d041b0bba03d9fd73f9761bd31bdfc246312084c478c08d5c4117ca7d5045095b6974468f8c20a1b0782e49378796d
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
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.
|
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
|
|
@@ -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
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.
|
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-
|
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.
|
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"]
|