libhoney 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/example/fact.rb +1 -1
- data/lib/libhoney/builder.rb +1 -1
- data/lib/libhoney/client.rb +3 -4
- data/lib/libhoney/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b05d90c2ad4d5632cdcdd49023ca0d9a6d7bcbd
|
4
|
+
data.tar.gz: 1d79285c213de5818ed15c25333832447370bfce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/libhoney/builder.rb
CHANGED
@@ -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.
|
92
|
+
# ev.add_field("additionalField", value)
|
93
93
|
# ev.send
|
94
94
|
def event
|
95
95
|
Event.new(@libhoney, self, @fields, @dyn_fields)
|
data/lib/libhoney/client.rb
CHANGED
@@ -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=
|
109
|
-
|
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.
|
134
|
+
# honey.add_field("responseTime_ms", 100)
|
136
135
|
def add_field(name, val)
|
137
136
|
@builder.add_field(name, val)
|
138
137
|
self
|
data/lib/libhoney/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|