testingbot 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +26 -0
- data/README.md +36 -1
- data/lib/testingbot/api.rb +16 -0
- data/lib/testingbot/version.rb +1 -1
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c1801b21d64a6515b1fd8d1f1a6db23b0915dff62121b49a681d02eff530c2a
|
4
|
+
data.tar.gz: 30edd8ebbc255bf2b14005e9c5ea881b5bfc1ef6a19a1e8b9a24ed2bc2584f59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e9843ec66a235debde34b17f2a40ab05bc545fd175959d14497b5b23a133beb9155408d61363cf307d2463b1aeb23cad50d081d05ff6a40dd431b9b82c3119
|
7
|
+
data.tar.gz: e781af83c71eeb24d0d086e29b1ee1e0bce71263b260045e1d2acc656f7d55409a03991bde4802edfae33bf474648184e45755bb7324ac6c9bcb8b0c1c48fc03
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Test Changes
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: [ '2.5', '2.6' ]
|
11
|
+
name: Ruby ${{ matrix.ruby }} test
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- uses: actions/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.ruby }}
|
17
|
+
- name: Build and test
|
18
|
+
run: |
|
19
|
+
sudo apt-get -yqq install libpq-dev
|
20
|
+
gem install bundler
|
21
|
+
bundle install --jobs 3 --retry 3
|
22
|
+
bundle exec rake spec
|
23
|
+
env:
|
24
|
+
TB_KEY: ${{ secrets.TB_KEY }}
|
25
|
+
TB_SECRET: ${{ secrets.TB_SECRET }}
|
26
|
+
|
data/README.md
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/testingbot/testingbot_ruby.png)](https://travis-ci.org/testingbot/testingbot_ruby)
|
2
1
|
[![Gem Version](https://badge.fury.io/rb/testingbot.svg)](https://badge.fury.io/rb/testingbot)
|
3
2
|
|
4
3
|
# Testingbot-Ruby
|
@@ -50,6 +49,20 @@ Gets a list of browsers you can test on
|
|
50
49
|
@api.get_browsers
|
51
50
|
```
|
52
51
|
|
52
|
+
### get_devices
|
53
|
+
Gets a list of (physical) devices you can test on
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
@api.get_devices
|
57
|
+
```
|
58
|
+
|
59
|
+
### get_available_devices
|
60
|
+
Gets a list of available (physical) devices you can test on
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
@api.get_available_devices
|
64
|
+
```
|
65
|
+
|
53
66
|
### get_user_info
|
54
67
|
Gets your user information
|
55
68
|
|
@@ -114,6 +127,13 @@ Gets a build from TestingBot
|
|
114
127
|
@api.get_build(build_identifier)
|
115
128
|
```
|
116
129
|
|
130
|
+
### delete_build
|
131
|
+
Deletes a build from TestingBot
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
@api.delete_build(build_identifier)
|
135
|
+
```
|
136
|
+
|
117
137
|
### get_tunnels
|
118
138
|
Gets a list of active tunnels for your account.
|
119
139
|
|
@@ -121,6 +141,13 @@ Gets a list of active tunnels for your account.
|
|
121
141
|
@api.get_tunnels
|
122
142
|
```
|
123
143
|
|
144
|
+
### delete_tunnel
|
145
|
+
Deletes an active tunnel.
|
146
|
+
|
147
|
+
```ruby
|
148
|
+
@api.delete_tunnel(tunnel_identifier)
|
149
|
+
```
|
150
|
+
|
124
151
|
### upload_local_file
|
125
152
|
Uploads a local file (APK or IPA file) to TestingBot Storage for Mobile App Testing.
|
126
153
|
|
@@ -149,12 +176,20 @@ Retrieves meta-data for a file previously uploaded to TestingBot Storage.
|
|
149
176
|
@api.get_uploaded_file(app_url)
|
150
177
|
```
|
151
178
|
|
179
|
+
### delete_uploaded_file
|
180
|
+
Deletes a previously uploaded file
|
181
|
+
|
182
|
+
```ruby
|
183
|
+
@api.delete_uploaded_file(remoteFileUrl)
|
184
|
+
```
|
185
|
+
|
152
186
|
### upload_remote_file
|
153
187
|
Uploads a remote file (APK or IPA URL) to TestingBot Storage for Mobile App Testing.
|
154
188
|
|
155
189
|
```ruby
|
156
190
|
@api.upload_remote_file(remoteFileUrl)
|
157
191
|
```
|
192
|
+
|
158
193
|
### get_authentication_hash
|
159
194
|
Calculates the hash necessary to share tests with other people
|
160
195
|
|
data/lib/testingbot/api.rb
CHANGED
@@ -43,6 +43,14 @@ module TestingBot
|
|
43
43
|
get("/browsers")
|
44
44
|
end
|
45
45
|
|
46
|
+
def get_devices
|
47
|
+
get("/devices")
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_available_devices
|
51
|
+
get("/devices/available")
|
52
|
+
end
|
53
|
+
|
46
54
|
def update_user_info(params = {})
|
47
55
|
new_params = {}
|
48
56
|
params.keys.each do |key|
|
@@ -87,10 +95,18 @@ module TestingBot
|
|
87
95
|
get("/builds/#{build_identifier}")
|
88
96
|
end
|
89
97
|
|
98
|
+
def delete_build(build_identifier)
|
99
|
+
delete("/builds/#{build_identifier}")
|
100
|
+
end
|
101
|
+
|
90
102
|
def get_tunnels
|
91
103
|
get("/tunnel/list")
|
92
104
|
end
|
93
105
|
|
106
|
+
def delete_tunnel(tunnel_identifier)
|
107
|
+
delete("/tunnel/#{tunnel_identifier}")
|
108
|
+
end
|
109
|
+
|
94
110
|
def get_authentication_hash(identifier)
|
95
111
|
Digest::MD5.hexdigest("#{@key}:#{@secret}:#{identifier}")
|
96
112
|
end
|
data/lib/testingbot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testingbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jochen Delabie
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -74,6 +74,7 @@ executables:
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
+
- ".github/workflows/test.yml"
|
77
78
|
- ".gitignore"
|
78
79
|
- ".travis.yml"
|
79
80
|
- Gemfile
|
@@ -90,8 +91,12 @@ files:
|
|
90
91
|
homepage: https://testingbot.com
|
91
92
|
licenses:
|
92
93
|
- MIT
|
93
|
-
metadata:
|
94
|
-
|
94
|
+
metadata:
|
95
|
+
bug_tracker_uri: https://github.com/testingbot/testingbot_ruby/issues
|
96
|
+
documentation_uri: https://github.com/testingbot/testingbot_ruby
|
97
|
+
homepage_uri: https://github.com/testingbot/testingbot_ruby
|
98
|
+
source_code_uri: https://github.com/testingbot/testingbot_ruby
|
99
|
+
post_install_message:
|
95
100
|
rdoc_options: []
|
96
101
|
require_paths:
|
97
102
|
- lib
|
@@ -107,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
112
|
version: '0'
|
108
113
|
requirements: []
|
109
114
|
rubyforge_project: testingbot
|
110
|
-
rubygems_version: 2.7.
|
111
|
-
signing_key:
|
115
|
+
rubygems_version: 2.7.10
|
116
|
+
signing_key:
|
112
117
|
specification_version: 4
|
113
118
|
summary: Ruby API Gem to be used with testingbot.com
|
114
119
|
test_files:
|