runscope_statuspage 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: eb62c439ebb1ba9cc983e980d9d33e4a6494ebb9
4
- data.tar.gz: 1e9f6d9ab1e33eda9c2bb5cd195c85c277eeb072
3
+ metadata.gz: f623754ab2431efc77d3156586e9428bf9c6a041
4
+ data.tar.gz: da38e4e14eb39dd622305ace009acbc4a28e32cb
5
5
  SHA512:
6
- metadata.gz: 9d9a8fe2c762af150c9f91b1688b0cba48fa5f11f86b755121e0ddd9671473fa3989e855f2d8415b0f7a7328769161b0d6d9dbd3989df9ebcbda357297455c60
7
- data.tar.gz: 78b77b820f0abb1531521a7350d400ec3a1f10516ae49e86ac5e3abefe80a770b1fbb3197fa28d0945a651b56a3ecf0dee6c2dd7ea587b96e20dd07eae3feeb7
6
+ metadata.gz: 1645d2e82c35118601ed59b537a23245f8588b5a21ab78d95a01a6d2c882b364aad105ab1e8b9c681876d9b135a73b32785a8b8bcf3e25e519b19627ba00e227
7
+ data.tar.gz: 00a5dab51f9214dedd4a334b6963b1db76e2f8ac0eb4a8d6cdcdbf885e45d08f1b72b66020c74656803aa239cff06fd2312252b3baaccd0a23c3986c1baf8fe7
@@ -9,7 +9,7 @@ module RunscopeStatuspage
9
9
 
10
10
  # Set credentials
11
11
  def initialize(token)
12
- @options = { headers: {:Authorization => "Bearer #{token}"} }
12
+ @options = { headers: {"Authorization" => "Bearer #{token}"} }
13
13
  end
14
14
 
15
15
  # Get list of buckets
@@ -9,25 +9,25 @@ module RunscopeStatuspage
9
9
 
10
10
  # Set credentials
11
11
  def initialize(token)
12
- @options = { headers: {:Authorization => "OAuth #{token}"} }
12
+ @options = { headers: {"Authorization" => "OAuth #{token}"} }
13
13
  end
14
14
 
15
15
  # Create incident
16
16
  def create_realtime_incident(page, name, msg, status, twitter)
17
- self.class.post("/pages/#{page}/incidents.json", @options.merge!(body: {:incident => {
18
- :name => name,
19
- :message => msg,
20
- :status => status.nil? ? 'investigating' : status,
21
- :wants_twitter_update => twitter
17
+ self.class.post("/pages/#{page}/incidents.json", @options.merge!(body: {"incident" => {
18
+ "name" => name,
19
+ "message" => msg,
20
+ "status" => status.nil? ? 'investigating' : status,
21
+ "wants_twitter_update" => twitter
22
22
  }}))
23
23
  end
24
24
 
25
25
  # Publish data for a custom page metric
26
26
  def push_metric_data(page_id, metric_id, data, timestamp)
27
- self.class.post("/pages/#{page_id}/metrics/#{metric_id}/data.json", @options.merge!(data: {:data => {
28
- :value => data,
29
- :timestamp => timestamp
30
- }})))
27
+ self.class.post("/pages/#{page_id}/metrics/#{metric_id}/data.json", @options.merge!(data: {"data" => {
28
+ "value" => data,
29
+ "timestamp" => timestamp
30
+ }}))
31
31
  end
32
32
 
33
33
  # Delete all data for a custom page metric
@@ -1,3 +1,3 @@
1
1
  module RunscopeStatuspage
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -8,6 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = RunscopeStatuspage::VERSION
9
9
  spec.authors = ['David Stancu']
10
10
  spec.email = ['dstancu@nyu.edu']
11
+
12
+
11
13
  spec.summary = 'Push RunScope data to StatusPage.io'
12
14
  spec.description = 'Get test data from RunScope and easily report incidents to StatusPage.io, all with one gem.'
13
15
  spec.homepage = 'https://github.com/mach-kernel/runscope_statuspage'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runscope_statuspage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Stancu