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 +1 -1
- data/lib/resque_bus/version.rb +1 -1
- data/spec/publish_at_spec.rb +0 -1
- data/spec/publish_spec.rb +0 -1
- metadata +1 -1
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, "
|
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)
|
data/lib/resque_bus/version.rb
CHANGED
data/spec/publish_at_spec.rb
CHANGED
@@ -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
|
|