rack-honeycomb 0.0.17 → 0.0.18

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: 46fc6f3a8fbb4c2bb926c92bcd101313e3ec79795735664c851e230e55579bea
4
- data.tar.gz: ed408d7ce0baf8aa98eeff6ae6461527692199a1c7685739acf794e36f42d122
3
+ metadata.gz: d8462b0a0923efce44eddd081ebe87f528cbd23cc1bd9086a5401183adbc9ee1
4
+ data.tar.gz: f35eeb477ade70d60e1e059429041fdbb33ff43b026d8f12b9f997159b096d97
5
5
  SHA512:
6
- metadata.gz: aa105613b9fcd20e15bee4e52c17e1917bce0cd5220cc95c4966f3db51b1b86529296d6647209c4be5f9a8f92148c5f386e5003119b3f2507558cc771a3c4dbb
7
- data.tar.gz: ed4bc78029b0e442ea125284791ed92e806deaa1018630481a341aa0fc359a64dd486824c1f8904261a03abca89ec64d75948e427a462efac899dac7cdb2d548
6
+ metadata.gz: 291f4e3801f073249d29d2076f3eeb45a4bfc73aadf8ccddd3dce290055f032228e6ed490a9b47caf82f25ad234c2ae5dbb986d7f63b2a2cee64eadae3e2e333
7
+ data.tar.gz: da0269e7f6577d88e86562c445161b0e88ad47b9d018ea4944e1b5c9b17334cbbb1c743d9c6d588945c9ed88bb7f599c0732ac021b875f853479881ebe21be6c
@@ -43,6 +43,12 @@ module Rack
43
43
  end
44
44
  build_without_honeycomb(*args, &block)
45
45
  end
46
+
47
+ ::Sinatra::Base.include(Module.new do
48
+ def add_honeycomb_field(field, value)
49
+ ::Rack::Honeycomb.add_field(env, field, value)
50
+ end
51
+ end)
46
52
  end
47
53
 
48
54
  attr_accessor :already_added
@@ -121,5 +121,11 @@ module Rack
121
121
  end
122
122
  end
123
123
  end
124
+
125
+ class << self
126
+ def add_field(env, field, value)
127
+ env["#{ENV_PREFIX}#{field}"] = value
128
+ end
129
+ end
124
130
  end
125
131
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Honeycomb
3
- VERSION="0.0.17"
3
+ VERSION="0.0.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-honeycomb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Honeycomb.io Team