libhoney 1.0.3 → 1.0.4

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: 06df84ee35ddc0404138ba13d165d050aedb9853
4
- data.tar.gz: 89e1d56c5bafcb8dd8a01bc29bc79a90936f2337
3
+ metadata.gz: 0b05d90c2ad4d5632cdcdd49023ca0d9a6d7bcbd
4
+ data.tar.gz: 1d79285c213de5818ed15c25333832447370bfce
5
5
  SHA512:
6
- metadata.gz: e42226ab7fba4019dd300436e14022821aef0117eeb8a3300e34bfcb207e06ec25d478e9589cd6dd2e6d57e41a642ba2c7af1b564c8572186599fafd8d3fbce4
7
- data.tar.gz: e626bd143413c30be7c14a85dee85917f86a5f43beea2394a05615930a004aed556d0191f221c08f42e18264fca6bf06000a1cee9173cd7a39e955d3e625dba2
6
+ metadata.gz: c06d729791156ddfd27e3b85ddc2503ddc2e9c66e04d6bee0407e3c070a9ca63b933db8cea8c0c9a100f336cc384dd25d77cf72973f8288bb6c03ce8793b3aee
7
+ data.tar.gz: bb89728a3082133c921e6971d7e13021917542117d092a5320644154ba05c28e0496966362759dcbfc1261ac54101fe255b00f8095ef9a5be3ecdbea146ab703
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # libhoney [![Build Status](https://travis-ci.org/honeycombio/libhoney-rb.svg?branch=master)](https://travis-ci.org/honeycombio/libhoney-rb) [![Gem Version](https://badge.fury.io/rb/libhoney.svg)](https://badge.fury.io/rb/libhoney)
2
2
 
3
-
4
3
  Ruby gem for sending events to [Honeycomb](https://honeycomb.io). (See here for more information about [using Honeycomb](https://honeycomb.io/intro/) and [its libraries](https://honeycomb.io/docs/send-data/sdks).)
5
4
 
6
5
  ## Installation
@@ -49,7 +48,6 @@ CONTRIBUTORS file!
49
48
 
50
49
  All contributions will be released under the Apache License 2.0.
51
50
 
52
-
53
51
  ### Releasing a new version
54
52
 
55
53
  Travis will automatically upload tagged releases to Rubygems. To release a new
@@ -58,3 +56,5 @@ version, run
58
56
  bump patch --tag # Or bump minor --tag, etc.
59
57
  git push --follow-tags
60
58
  ```
59
+
60
+ Docs are generated via `rdoc` and hosted via the `gh-pages` branch of this repo.
data/example/fact.rb CHANGED
@@ -53,7 +53,7 @@ Thread.new do
53
53
 
54
54
  # sends an event with "version", "num_threads", and "status" fields
55
55
  libhoney.send_now({:status => "ending run"})
56
- libhoney.close(true)
56
+ libhoney.close
57
57
  rescue Exception => e
58
58
  puts e
59
59
  end
@@ -89,7 +89,7 @@ module Libhoney
89
89
  # @return [Event] an Event instance
90
90
  # @example adding data at send-time
91
91
  # ev = builder.event
92
- # ev.addField("additionalField", value)
92
+ # ev.add_field("additionalField", value)
93
93
  # ev.send
94
94
  def event
95
95
  Event.new(@libhoney, self, @fields, @dyn_fields)
@@ -105,9 +105,8 @@ module Libhoney
105
105
 
106
106
  ##
107
107
  # Nuke the queue and wait for inflight requests to complete before returning.
108
- # If you set drain=true, it will not clear the queue, so all queued requests
109
- # will drain before exiting.
110
- def close(drain=false)
108
+ # If you set drain=false, all queued requests will be dropped on the floor.
109
+ def close(drain=true)
111
110
  return @tx.close(drain) if @tx
112
111
  0
113
112
  end
@@ -132,7 +131,7 @@ module Libhoney
132
131
  # @param val [any] value of field to add.
133
132
  # @return [self] this Client instance
134
133
  # @example
135
- # honey.addField("responseTime_ms", 100)
134
+ # honey.add_field("responseTime_ms", 100)
136
135
  def add_field(name, val)
137
136
  @builder.add_field(name, val)
138
137
  self
@@ -1,3 +1,3 @@
1
1
  module Libhoney
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libhoney
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Honeycomb.io Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-30 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler