dynamic_menus 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,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dynamic_menus"
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 = ["kaspernj"]
12
- s.date = "2013-05-28"
12
+ s.date = "2013-06-08"
13
13
  s.description = "Various helpers to create dynamic menus in Rails."
14
14
  s.email = "k@spernj.org"
15
15
  s.extra_rdoc_files = [
data/lib/dynamic_menus.rb CHANGED
@@ -144,10 +144,6 @@ module DynamicMenus
144
144
  end
145
145
  end
146
146
 
147
- def _(str)
148
- begin
149
- return t(str, default: str)
150
- rescue NoMethodError
151
- return str
152
- end
147
+ def _(str, args = {})
148
+ return t(str, *args, args.merge(:default => str))
153
149
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: dynamic_menus
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - kaspernj
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
12
+ date: 2013-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  segments:
139
139
  - 0
140
- hash: 2015105023988623928
140
+ hash: -3094891859276427608
141
141
  version: '0'
142
142
  none: false
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement