wavefront-sdk 2.0.2 → 2.0.3

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
  SHA256:
3
- metadata.gz: 7f6a34dea3c4a830b6d88dd6aa5ec4f71ae32bbe5876dd4b27c11cf0435e33af
4
- data.tar.gz: e1b6644fb628a87ade2ef26e8ea0fb07d60fe99d84c9cee50702b15591aef74d
3
+ metadata.gz: fca02aa5cfb6552d6623f6e22d2ec23507deb5f4c625dd07ee0c1d39a6ac4922
4
+ data.tar.gz: 127aeff281387e1c7b1510c39bd4fdf1a3c1589da49c56caf4859f29635aefba
5
5
  SHA512:
6
- metadata.gz: 481e32c205b42980ede38927f05add80b921f199b993454288c22742d4b6079842513cc77f63b6b9c6e258515edc6c7586e01a5a63faab53b6cbf7f59a129954
7
- data.tar.gz: 2a06c64a8570db9fffba169042e8ca839857b99e7d15a5d93b0c57a6b62f85a859f6bc92f8c848c08e16875b20451790bc636493886310acf158fc8cbfeef8d4
6
+ metadata.gz: 3cf13219e0f89cb7a5b7cd31b99f836ed1640c451ead825dac2e77d7738a3dde359173fb7dfa6c26bfc44d54b0f2342cae4a3d5963eb2f60d0c4f7d580bbc361
7
+ data.tar.gz: 4a0d535006b814fedafb11e8fe28de94617a71bac3f304471788ba76c23f1ddf7be5029e5944c8dac6b5f1414057bfd54eb6a1552c3d0cc4ab915497b109801e
data/HISTORY.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.3 (23/10/2018)
4
+ * Remove unnecessarily strict argument check on `event#list`.
5
+
6
+ ## 2.0.2 (22/10/2018)
7
+ * Bugfix
8
+
3
9
  ## 2.0.1 (22/10/2018)
4
10
  * Bugfix on response types.
5
11
 
@@ -1 +1 @@
1
- WF_SDK_VERSION = '2.0.2'.freeze
1
+ WF_SDK_VERSION = '2.0.3'.freeze
@@ -59,8 +59,7 @@ module Wavefront
59
59
  dist.fetch(:source, HOSTNAME),
60
60
  dist[:tags] && dist[:tags].to_wf_tag,
61
61
  opts[:tags] && opts[:tags].to_wf_tag).squeeze(' ').strip
62
- rescue StandardError => e
63
- puts e
62
+ rescue StandardError
64
63
  raise Wavefront::Exception::InvalidDistribution
65
64
  end
66
65
  # rubocop:enable Metrics/AbcSize
@@ -23,8 +23,8 @@ module Wavefront
23
23
  # @param limit [Integer] the number of events to return
24
24
  # @return [Wavefront::Response]
25
25
  #
26
- def list(from = nil, to = nil, limit = 100, cursor = nil)
27
- raise ArgumentError unless from && to && limit.is_a?(Integer)
26
+ def list(from = nil, to = Time.now, limit = 100, cursor = nil)
27
+ raise ArgumentError unless from && to
28
28
  wf_event_id?(cursor) if cursor
29
29
 
30
30
  from = parse_time(from, true)
@@ -26,8 +26,7 @@ class WavefrontEventTest < WavefrontTestBase
26
26
  tms1 = t1.to_datetime.strftime('%Q')
27
27
  tms2 = t2.to_datetime.strftime('%Q')
28
28
 
29
- assert_raises(ArgumentError) { wf.list }
30
- assert_raises(ArgumentError) { wf.list(tms1) }
29
+ assert_raises(ArgumentError) { wf.list }
31
30
 
32
31
  should_work(:list, [t1, t2],
33
32
  "?earliestStartTimeEpochMillis=#{tms1}" \
@@ -7,17 +7,13 @@ require_relative '../../../lib/wavefront-sdk/paginator/post'
7
7
  # Stub for ApiCaller class
8
8
  #
9
9
  class FakeApiCaller
10
- def respond(_args)
11
- puts 'merp'
12
- end
10
+ def respond(_args); end
13
11
  end
14
12
 
15
13
  # Stub for connection object
16
14
  #
17
15
  class FakeConn
18
- def get(*args)
19
- puts args
20
- end
16
+ def get(*args); end
21
17
  end
22
18
 
23
19
  # Test POST pagination
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher