resque-honey 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: c30b776b5e318c99960e9cb28bca1b624fb68941
4
- data.tar.gz: 4aa2abb6beb132ba9c527f55123a8aca5c2eef67
3
+ metadata.gz: d5889e0ab8e3bec12b2c04370cb23a7649b1948c
4
+ data.tar.gz: 552b87ae3823402cdeef2692303813e6eb941f5f
5
5
  SHA512:
6
- metadata.gz: 5cce3b1a8ac51e066e5ca7c64c411e9bc62916c0cff21e95469f9aeb9bbb2efa3f5b2b8958c2907aa7ff053a09ee671ee8aeb4dbe83f03ac7c80cc6136fac090
7
- data.tar.gz: 7dd1918d6891111f23d1e7efb3c1df3d89fe261c040e90c605099bdf85c683d9926cd021da58e9cf76a7ad9391c82d63a0f7f5cde2f1496ef1813e2bfdbf0f5f
6
+ metadata.gz: 4f8ed8d4f2d61e33d303c2ded179710bf5ec4748970dc4abf82d78ca1b1f5397d6aee1fc4c5a2d7e6bc3892660076fec64ed7cb968133caaf56d53129e2fc8ea
7
+ data.tar.gz: cb0a045003e1f145803b29b56369fd168d24e593a039dd7003c184b2b2b2c67ceb4a0ff0467676ddda93b14eecab0342e912ee3da05f9f173efabf938b6b70c3
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Honey
4
- VERSION = '0.0.3'.freeze
4
+ VERSION = '0.0.4'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,19 +1,14 @@
1
1
  module Resque
2
2
  module Plugins
3
3
  module Honey
4
- def self.write_key=(write_key)
5
- @write_key = write_key
6
- end
7
-
8
- def self.dataset_name=(dataset_name)
9
- @dataset_name = dataset_name
10
- end
4
+ mattr_accessor :write_key
5
+ mattr_accessor :dataset_name
11
6
 
12
7
  def around_perform_honey(*args)
13
- return yield unless @write_key && @dataset_name
8
+ return yield unless write_key && dataset_name
14
9
 
15
- client = Libhoney::Client.new(writekey: @write_key,
16
- dataset: @dataset_name)
10
+ client = Libhoney::Client.new(writekey: write_key,
11
+ dataset: dataset_name)
17
12
  exc = nil
18
13
  result = nil
19
14
  start_time = Time.now
@@ -30,6 +25,7 @@ module Resque
30
25
  success: exc.nil?,
31
26
  worker_host: `hostname`.chomp
32
27
  }
28
+ p data
33
29
  client.send_now(data)
34
30
 
35
31
  client.close(true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-honey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock