resque-bus 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/lib/resque-bus.rb CHANGED
@@ -132,7 +132,7 @@ module ResqueBus
132
132
 
133
133
  def publish_metadata(event_type, attributes={})
134
134
  # TODO: "bus_app_key" => application.app_key ?
135
- bus_attr = {"bus_published_at" => Time.now.to_i, "created_at" => Time.now.to_i, "bus_event_type" => event_type}
135
+ bus_attr = {"bus_published_at" => Time.now.to_i, "bus_event_type" => event_type}
136
136
  bus_attr["bus_id"] = "#{Time.now.to_i}-#{generate_uuid}"
137
137
  bus_attr["bus_app_hostname"] = hostname
138
138
  bus_attr["bus_locale"] = I18n.locale.to_s if defined?(I18n) && I18n.respond_to?(:locale)
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Bus
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
@@ -11,7 +11,6 @@ describe "Publishing an event in the future" do
11
11
  end
12
12
  let(:delayed_attrs) { {"bus_delayed_until" => future.to_i,
13
13
  "bus_id" => "#{now.to_i}-idfhlkj",
14
- "created_at" => now.to_i,
15
14
  "bus_app_hostname" => `hostname 2>&1`.strip.sub(/.local/,'')} }
16
15
 
17
16
  let(:bus_attrs) { delayed_attrs.merge({"bus_published_at" => worktime.to_i})}
data/spec/publish_spec.rb CHANGED
@@ -10,7 +10,6 @@ describe "Publishing an event" do
10
10
  Timecop.return
11
11
  end
12
12
  let(:bus_attrs) { {"bus_published_at" => Time.now.to_i,
13
- "created_at" => Time.now.to_i,
14
13
  "bus_id"=>"#{Time.now.to_i}-idfhlkj",
15
14
  "bus_app_hostname" => `hostname 2>&1`.strip.sub(/.local/,'')} }
16
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: