rack-i18n_locale_switcher 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/rack/i18n_locale_switcher.rb +1 -1
- data/rack-i18n_locale_switcher.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('rack-i18n_locale_switcher', '0.2.
|
5
|
+
Echoe.new('rack-i18n_locale_switcher', '0.2.3') do |p|
|
6
6
|
|
7
7
|
p.description = "Detects the current locale from url, domain, parameter, session or accept header."
|
8
8
|
p.url = "http://github.com/christoph-buente/rack-i18n_locale_switcher"
|
@@ -20,7 +20,7 @@ module Rack
|
|
20
20
|
private
|
21
21
|
|
22
22
|
def is_available?(locale)
|
23
|
-
|
23
|
+
not locale.to_s.empty? and I18n.available_locales.include?(locale.to_sym)
|
24
24
|
end
|
25
25
|
|
26
26
|
def extract_locale_from_params(request)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rack-i18n_locale_switcher"
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Christoph B\u{fc}nte, Andreas Korth"]
|