event_horizon 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{event_horizon}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jiri Zajpt"]
@@ -10,10 +10,10 @@ module EventHorizonHelper
10
10
  when ago..Date.today; [:days, date.wday]
11
11
  end
12
12
  if key.is_a? Array
13
- day = t("date.day_names")[key.last]
13
+ day = I18n.t("date.day_names")[key.last]
14
14
  "#{day}, #{l date, :format => :short}"
15
15
  elsif key
16
- key && t("helpers.dashboards.relativize_date.#{key}")
16
+ key && I18n.t("helpers.relativize_date.#{key}")
17
17
  else
18
18
  l date, :format => :short
19
19
  end
@@ -22,7 +22,7 @@ module EventHorizonHelper
22
22
  def event_description(event)
23
23
  scope = "#{event.document_type.tableize.singularize}.#{event.event_type}"
24
24
  interpolations = event_interpolations(event)
25
- t("helpers.dashboards.event_description.#{scope}", interpolations).html_safe
25
+ I18n.t("helpers.event_description.#{scope}", interpolations).html_safe
26
26
  end
27
27
 
28
28
  def event_interpolations(event)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jiri Zajpt