honeycomb-rails 0.8.0 → 0.8.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
  SHA256:
3
- metadata.gz: 533c50b666c1fcedea44b6c995cbf9b355c5f77797a75ab3453ec3d8f0b16bee
4
- data.tar.gz: 1ca9b5003000633990a29fdee9c953ad229e27d52eada2e2d4b38dca9ea8e232
3
+ metadata.gz: 9faa75bf47c2e024baa7de9daa83b5ae60754257beda81f092b057545449ba7d
4
+ data.tar.gz: f3bce36fc2de8fba880657849e0f6506dd98b4029fb19673b4e289a12068c8a5
5
5
  SHA512:
6
- metadata.gz: 476b8657c45a060dccf94228e4b02782c22a62047ee5da2c08e0330b93e8c48a4b9a019daab2cbfab00dcf52d87ae2798cd4bd2fce11503f59548fbf6f999577
7
- data.tar.gz: 3ebdf878c27405f7e11cb5f840862d4c0fb9ed4b76813b4bda4df86a16e1fd977b8be27cfaf2f2110956762aa8b9320421f420408181bdf80a2a734693c4c61d
6
+ metadata.gz: bce6b75182206a54ea37eeb711844541ba7d024170c5a89bc42b171f5baace2445bbcc9e845d66e9e77f63ed2764d95d8f9c1b6db14cca3e8ee7f66ba3f45e08
7
+ data.tar.gz: 8f16f37c907a5648ea40e7cb11b2686d24235c5f2f7e8cc8feafa131064b59a414e766b4f0727d648525fc776fda02c112a0d8eb9f03de1ca9c1ea3a071bbb0f
data/README.md CHANGED
@@ -1,34 +1,11 @@
1
1
  # honeycomb-rails [![Build Status](https://travis-ci.org/honeycombio/honeycomb-rails.svg?branch=master)](https://travis-ci.org/honeycombio/honeycomb-rails) [![Gem Version](https://badge.fury.io/rb/honeycomb-rails.svg)](https://badge.fury.io/rb/honeycomb-rails)
2
2
 
3
- Easily instrument your Rails apps with [Honeycomb](https://honeycomb.io).
3
+ Ruby gem for sending events from your Rails application to [Honeycomb](https://www.honeycomb.io), a service for debugging your software in production.
4
4
 
5
- ## Getting started
5
+ Requires Ruby 2.2 or greater and Rails 3 or greater.
6
6
 
7
- Add the following to your Gemfile:
8
-
9
- ```ruby
10
- gem 'honeycomb-rails'
11
- ```
12
-
13
- Then create a file in your application repo called `config/initializers/honeycomb.rb` with the following contents:
14
-
15
- ```ruby
16
- HoneycombRails.configure do |conf|
17
- conf.writekey = 'your honeycomb writekey here'
18
- conf.dataset = 'your app name'
19
- conf.db_dataset = 'your app name-activerecord'
20
- end
21
- ```
22
-
23
- Now check out our [guide](https://honeycomb.io/docs/guides/rails/) to see what kind of visibility you can get from your app.
24
-
25
- ## Configuration
26
-
27
- See [docs](http://www.rubydoc.info/gems/honeycomb-rails/HoneycombRails/Config) for available config options.
28
-
29
- ## Documentation
30
-
31
- See [rubydoc](http://www.rubydoc.info/gems/honeycomb-rails/) for gem documentation.
7
+ - [Usage and Examples](https://docs.honeycomb.io/thinking-about-observability/getting-started-with/rails/)
8
+ - [API Reference](https://www.rubydoc.info/gems/honeycomb-rails)
32
9
 
33
10
  ## Contributions
34
11
 
@@ -23,10 +23,10 @@ module HoneycombRails
23
23
  event = ActiveSupport::Notifications::Event.new(*args)
24
24
  data = event.payload.slice(:name, :connection_id)
25
25
  data[:sql] = event.payload[:sql].strip
26
- event.payload[:binds].each do |b|
26
+ event.payload[:binds].each_with_index do |b, i|
27
27
  case b
28
28
  when Array
29
- data["bind_#{ b[0].name }".to_sym] = b[1]
29
+ data["bind_#{ b[0].nil? ? i : b[0].name }".to_sym] = b[1]
30
30
  else
31
31
  data["bind_#{ b.name }".to_sym] = b.value
32
32
  end
@@ -1,7 +1,7 @@
1
1
  module HoneycombRails
2
2
  GEM_NAME = 'honeycomb-rails'
3
3
 
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
 
6
6
  USER_AGENT_SUFFIX = "#{GEM_NAME}/#{VERSION}".freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeycomb-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stokes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-31 00:00:00.000000000 Z
12
+ date: 2018-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libhoney
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 1.8.1
20
+ version: '1.9'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 1.8.1
27
+ version: '1.9'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rails
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 2.0.0
149
+ version: 2.2.0
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.7.7
157
+ rubygems_version: 2.7.8
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Easily instrument your Rails apps with Honeycomb