Skip to content

Commit

Permalink
fix http close bug (#123)
Browse files Browse the repository at this point in the history
* fix http close bug
  • Loading branch information
snltd authored Jan 19, 2024
1 parent 8f8567f commit aede0e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 8.0.1 (2024-01-19)
* Add an empty `Wavefront::Writer::Http#close` method, which some clients
expect to exist.

## 8.0.0 (2023-09-06)
* Drop support for Ruby 2.7 (Breaking change.)
* Correctly report errors when sending points to API.
Expand Down
2 changes: 1 addition & 1 deletion lib/wavefront-sdk/defs/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

require 'pathname'

WF_SDK_VERSION = '8.0.0'
WF_SDK_VERSION = '8.0.1'
WF_SDK_LOCATION = Pathname.new(__dir__).parent.parent.parent
2 changes: 1 addition & 1 deletion lib/wavefront-sdk/support/parse_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def parse_time_datetime
end

def parse!
method = "parse_time_#{t.class.name.downcase}".to_sym
method = :"parse_time_#{t.class.name.downcase}"
send(method)
rescue StandardError
raise Wavefront::Exception::InvalidTimestamp, t
Expand Down
2 changes: 2 additions & 0 deletions lib/wavefront-sdk/writers/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def chunk_size
100
end

def close; end

private

def _send_point(point)
Expand Down

0 comments on commit aede0e2

Please sign in to comment.