screenbeacon 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/screenbeacon/alert.rb +0 -5
- data/lib/screenbeacon/project.rb +12 -1
- data/lib/screenbeacon/test.rb +21 -0
- data/lib/screenbeacon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0f13962db980dde881804716ac7768d4020da76
|
4
|
+
data.tar.gz: c2f11de795261180517317e6e79b06d112d59d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dfbe4b95476bd781b1aa19da6bf2700eef8d522f19d6e6647df2b5f15eac1d0cd8a124b073f5d59cd63f894112ca1dbae1616a6a8aab1caafbba07d99eb65af
|
7
|
+
data.tar.gz: 1ed3c3ff21f4efef71510bcd0e0695ca71a4a79ec9b68c3436d135e48d8aeb1688fd4c8e500dcbb7d6af7ae464fc2bbc8e74eaa166d4104e5beb144c0a087dcd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
data/lib/screenbeacon/alert.rb
CHANGED
@@ -8,11 +8,6 @@ module Screenbeacon
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Resolve all alerts on account
|
11
|
-
def self.resolve_all(opts={})
|
12
|
-
response, opts = request(:post, resolve_all_url, {}, opts)
|
13
|
-
refresh_from(response, opts)
|
14
|
-
end
|
15
|
-
|
16
11
|
def self.resolve_all(filters={}, opts={})
|
17
12
|
response, opts = request(:post, resolve_all_url, filters, opts)
|
18
13
|
Util.convert_to_screenbeacon_object(response, opts)
|
data/lib/screenbeacon/project.rb
CHANGED
@@ -5,9 +5,20 @@ module Screenbeacon
|
|
5
5
|
include Screenbeacon::APIOperations::Delete
|
6
6
|
include Screenbeacon::APIOperations::List
|
7
7
|
|
8
|
-
|
9
8
|
def alerts
|
10
9
|
Alert.all({ :project_id => id }, @opts)
|
11
10
|
end
|
11
|
+
|
12
|
+
def resolve_all(opts={})
|
13
|
+
response, opts = request(:patch, resolve_url, {}, opts)
|
14
|
+
refresh_from(response, opts)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def resolve_all_url
|
20
|
+
url + '/resolve_all'
|
21
|
+
end
|
22
|
+
|
12
23
|
end
|
13
24
|
end
|
data/lib/screenbeacon/test.rb
CHANGED
@@ -4,5 +4,26 @@ module Screenbeacon
|
|
4
4
|
include Screenbeacon::APIOperations::Update
|
5
5
|
include Screenbeacon::APIOperations::Delete
|
6
6
|
include Screenbeacon::APIOperations::List
|
7
|
+
|
8
|
+
def run(opts={})
|
9
|
+
response, opts = request(:patch, run_url, {}, opts)
|
10
|
+
refresh_from(response, opts)
|
11
|
+
end
|
12
|
+
|
13
|
+
def pause(opts={})
|
14
|
+
response, opts = request(:patch, pause_url, {}, opts)
|
15
|
+
refresh_from(response, opts)
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def run_url
|
21
|
+
url + '/run'
|
22
|
+
end
|
23
|
+
|
24
|
+
def pause_url
|
25
|
+
url + '/pause'
|
26
|
+
end
|
27
|
+
|
7
28
|
end
|
8
29
|
end
|
data/lib/screenbeacon/version.rb
CHANGED