locale_rails 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ = locale_rails-2.0.3 (2009-05-09)
2
+ * Fixed a bug not to work with fragment cache. [Reported by Andy Lo-A-Foe]
3
+ * Fixed the dependencies. [Reported by Hans de Graaff]
4
+
1
5
  = locale_rails-2.0.2 (2009-05-04)
2
6
  * Remove I18n.candidates. Use Locale.candidates directly.
3
7
  * Improve documentations.
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
47
47
  s.files = FileList['**/*'].to_a.select{|v| v !~ /pkg|CVS|git/}
48
48
  s.require_path = 'lib'
49
49
  s.bindir = 'bin'
50
- s.add_dependency('locale', '>= 2.0.2')
50
+ s.add_dependency('locale', '>= 2.0.3')
51
51
  s.has_rdoc = true
52
52
  s.description = <<-EOF
53
53
  Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
@@ -18,7 +18,7 @@ module ActionController #:nodoc:
18
18
  def fragment_cache_key_with_locale(name)
19
19
  ret = fragment_cache_key_without_locale(name)
20
20
  if ret.is_a? String
21
- ret.gsub(/:/, ".") << "_#{I18n.candidates}"
21
+ ret.gsub(/:/, ".") << "_#{I18n.locale}"
22
22
  else
23
23
  ret
24
24
  end
@@ -1,4 +1,4 @@
1
1
  module LocaleRails
2
2
  RAILS_VERSION = "2.3.2"
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
@@ -16,7 +16,7 @@ class ApplicationController < ActionController::Base
16
16
  # Set the charset of Content-Type.
17
17
  # This is not Ruby-Locale method but useful.
18
18
  # self.default_charset = "iso8859-1"
19
- #I18n.supported_locales = ["en", "ja", "fr"]
19
+ # I18n.supported_locales = ["en", "ja", "fr"]
20
20
 
21
21
  =begin
22
22
  def before_init_i18n
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locale_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masao Mutoh
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.0.2
23
+ version: 2.0.3
24
24
  version:
25
25
  description: Ruby-Locale for Ruby on Rails is the pure ruby library which provides basic functions for localization.
26
26
  email: mutomasa at gmail.com