resque-bus 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resque-bus.rb +2 -2
- data/lib/resque_bus/version.rb +1 -1
- metadata +2 -2
data/lib/resque-bus.rb
CHANGED
@@ -152,8 +152,8 @@ module ResqueBus
|
|
152
152
|
bus_attr = {"bus_published_at" => Time.now.to_i, "bus_event_type" => event_type}
|
153
153
|
bus_attr["bus_id"] = "#{Time.now.to_i}-#{generate_uuid}"
|
154
154
|
bus_attr["bus_app_hostname"] = hostname
|
155
|
-
bus_attr["bus_locale"] = I18n.locale.to_s if defined?(I18n) && I18n.respond_to?(:locale)
|
156
|
-
bus_attr["bus_timezone"] = Time.zone.name if defined?(Time) && Time.respond_to?(:zone)
|
155
|
+
bus_attr["bus_locale"] = I18n.locale.to_s if defined?(I18n) && I18n.respond_to?(:locale) && I18n.locale
|
156
|
+
bus_attr["bus_timezone"] = Time.zone.name if defined?(Time) && Time.respond_to?(:zone) && Time.zone
|
157
157
|
bus_attr.merge(attributes || {})
|
158
158
|
end
|
159
159
|
|
data/lib/resque_bus/version.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: resque
|