featureflow 0.3.2 → 0.3.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: b17d105528402ec70e37cc754bddd56934d51ce1
4
- data.tar.gz: 143073f1001a6d5b87ee2520424753492cbfcd56
3
+ metadata.gz: 97b2686278e6219ad19d1c38e216ef48e2e60778
4
+ data.tar.gz: d2b528dcc3f99c770a1afb107777eb75fc03131a
5
5
  SHA512:
6
- metadata.gz: 207150a2eec9caf71e4c10345936232a615eaa7e78c6e84cdab7d19203ca99f360380636a4be196eaa14529be6c3f9e3808c718f47e8fa405030dae88e555f24
7
- data.tar.gz: c10ef32774b8d5ca3890d37d363b85921dcf5e191c86cf80e4425a41e93b5021e5372b710cd2fc7c4d3159849cbb592ba52f41144aae87a9d0f69ab959d4a1ee
6
+ metadata.gz: 3b2dc7c443283d6a4a79651b183b0c2640db2826826c6a351ba926a547034539a232cac9be792aecdbab948d462767b3f09ea47bac8ac52916220a0e975dbe2c
7
+ data.tar.gz: dcd8aaed640c2bdd943c5d7608e44c442a212814a5d8e39d90c475ec8715dca6f02b708fdd30c521c4107d018e7033779ade71a314fc8a1a89d49f367e78aa8d
@@ -33,14 +33,14 @@ module Featureflow
33
33
 
34
34
  private def send_event(event_name, method, path, body)
35
35
  connection = Excon.new(@url)
36
- response connection.request(method: method,
37
- path: path,
38
- headers: {
39
- 'Authorization' => "Bearer #{@api_key}",
40
- 'Content-Type' => 'application/json;charset=UTF-8'
41
- },
42
- omit_default_port: true,
43
- body: JSON.generate(body))
36
+ response = connection.request(method: method,
37
+ path: path,
38
+ headers: {
39
+ 'Authorization' => "Bearer #{@api_key}",
40
+ 'Content-Type' => 'application/json;charset=UTF-8'
41
+ },
42
+ omit_default_port: true,
43
+ body: JSON.generate(body))
44
44
  if response.status >= 400
45
45
  Featureflow.logger.error "unable to send event #{event_name} to #{@url+path}. Failed with response status #{response.status}"
46
46
  Featureflow.logger.error response.to_s
@@ -1,3 +1,3 @@
1
1
  module Featureflow
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.4"
3
3
  end
data/lib/featureflow.rb CHANGED
@@ -8,7 +8,7 @@ module Featureflow
8
8
  attr_writer :logger
9
9
 
10
10
  def logger
11
- @logger ||= Logger.new($stdout).tap do |log|
11
+ @logger ||= Logger.new($stderr).tap do |log|
12
12
  log.progname = self.name
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featureflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Young