wavefront-sdk 1.0.0 → 1.0.1

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: 19b69376bae0fb003a885f84caec73b642242144
4
- data.tar.gz: 09c37865d29c17fb1fd9f8d98b79982dcae7491f
3
+ metadata.gz: 7f3b856c060a4f482d056e2e03888ad6ae8f9d11
4
+ data.tar.gz: 6ce74dab9704cf5d0405209691c16f3896263447
5
5
  SHA512:
6
- metadata.gz: eec85994ce6b03d2921b968d9f44e62372ab676117a5eb706c0f1d3b57e835889d2833366d035aa2539a66fe24a0cd59d790081a4147ac65ec3dd23503aa3e0e
7
- data.tar.gz: ff10d6af734516be10162cd4dc900751563517b8b1841b76bc796b8510374c36c9b8f001b387a003135cf4efab05cb11e6f2d807baad44c67f6651424a5f4c76
6
+ metadata.gz: f531550d20190c9b752f5e9b15ded85dca512cd1b1c124e062bf28eec3c457eaae0097323e6758ef57690c7ef973a7eb4063be0fbdc8be13912a542851bbd605
7
+ data.tar.gz: 56930dd7718749e247cc681f740240ef94b3d8770832f46ca22fc9a24ba5c34f0cc80d69389747cea30c4931f18487417e93b1418c47f9e43ea186308b4a7084
@@ -296,7 +296,7 @@ module Wavefront
296
296
  # valid
297
297
  #
298
298
  def wf_message_id?(v)
299
- return true if v.is_a?(String) && v =~ /^\w+$/
299
+ return true if v.is_a?(String) && v =~ /^\w+::\w+$/
300
300
  raise Wavefront::Exception::InvalidMessageId
301
301
  end
302
302
 
@@ -1 +1 @@
1
- WF_SDK_VERSION = '1.0.0'.freeze
1
+ WF_SDK_VERSION = '1.0.1'.freeze
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative '../spec_helper'
4
4
 
5
- MESSAGE = 'message_id'.freeze # don't know what these look like yet
5
+ MESSAGE = 'CLUSTER::IHjNaHM9'.freeze
6
6
 
7
7
  # Unit tests for Message class
8
8
  #
@@ -151,6 +151,12 @@ class WavefrontValidatorsTest < MiniTest::Test
151
151
  good, bad)
152
152
  end
153
153
 
154
+ def test_wf_message_id?
155
+ good = %w(CLUSTER::IHjNaHM9)
156
+ bad = %w(4OfsEM8RcvkM7n 4OfsEM8Rcvk-7nw)
157
+ good_and_bad('wf_message_id?', 'InvalidMessageId', good, bad)
158
+ end
159
+
154
160
  def test_wf_alert_severity?
155
161
  good = %w(INFO SMOKE WARN SEVERE)
156
162
  bad = %w(any THING else)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday