i18n_url 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,8 +46,11 @@ module ActionDispatch::Routing
46
46
 
47
47
  def translate_route path
48
48
  path.split("/").each do |word|
49
- next if word[0] == ":"
50
- (@localized_path ||= []) << I18n.t(word,:scope => :routes, :default => word)
49
+ if word[0] == ":"
50
+ (@localized_path ||= []) << word
51
+ else
52
+ (@localized_path ||= []) << I18n.t(word,:scope => :routes, :default => word)
53
+ end
51
54
  end
52
55
  end
53
56
  end
@@ -1,3 +1,3 @@
1
1
  module I18nUrl
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-25 00:00:00.000000000Z
12
+ date: 2011-10-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70219792521140 !ruby/object:Gem::Requirement
16
+ requirement: &70146699766840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70219792521140
24
+ version_requirements: *70146699766840
25
25
  description: I18n url module for Rails 3. Translate your routes easily
26
26
  email:
27
27
  - anthony.laibe@gmail.com