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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32499c7e82d4ba199cbf24eca7329015d6940e5d
4
- data.tar.gz: c49c440227d80b0ea05a96fb8d9080d191d24d11
3
+ metadata.gz: f0f13962db980dde881804716ac7768d4020da76
4
+ data.tar.gz: c2f11de795261180517317e6e79b06d112d59d24
5
5
  SHA512:
6
- metadata.gz: 7578f2209999bd3af712ced47098413d3867d72f1bb61233bb7129fc1db27889cfb5262c2748d72c2a4881eeddd2ba0a0721a1d987eeecd93b49771260b5ce9e
7
- data.tar.gz: a0d2d7597ddec40ab8c45ab48cee57c0a1d923bf46e86ced76abde368e01e8b1221352597debf86258e68a9c9be7d90e0668a50654b6f0b9e9f3580954e32c58
6
+ metadata.gz: 5dfbe4b95476bd781b1aa19da6bf2700eef8d522f19d6e6647df2b5f15eac1d0cd8a124b073f5d59cd63f894112ca1dbae1616a6a8aab1caafbba07d99eb65af
7
+ data.tar.gz: 1ed3c3ff21f4efef71510bcd0e0695ca71a4a79ec9b68c3436d135e48d8aeb1688fd4c8e500dcbb7d6af7ae464fc2bbc8e74eaa166d4104e5beb144c0a087dcd
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 1.0.0
@@ -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)
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Screenbeacon
2
- VERSION = '0.1.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screenbeacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Humphreys