refinerycms-i18n 0.9.9.16 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gemspec.rb +2 -2
  2. data/lib/refinery/i18n.rb +3 -2
  3. metadata +6 -8
data/lib/gemspec.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- version = '0.9.9.16'
2
+ version = '1.0.0'
3
3
  raise "Could not get version so gemspec can not be built" if version.nil?
4
4
  files = Dir.glob("**/*").flatten.reject do |file|
5
5
  file =~ /\.gem(spec)?$/
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.summary = %q{i18n logic for Refinery CMS.}
15
15
  s.email = %q{info@refinerycms.com}
16
16
  s.homepage = %q{http://refinerycms.com}
17
- s.authors = %w(Resolve\\ Digital)
17
+ s.authors = ['Philip Arndt']
18
18
  s.require_paths = %w(lib)
19
19
 
20
20
  s.add_dependency 'refinerycms-core', '>= 0.9.9.12'
data/lib/refinery/i18n.rb CHANGED
@@ -20,7 +20,7 @@ module Refinery
20
20
  end
21
21
 
22
22
  config.to_prepare do
23
- ::ApplicationController.class_eval do
23
+ ::ApplicationController.module_eval do
24
24
  before_filter lambda {|c|
25
25
  ::SimplesIdeias::I18n.export! if Rails.env.development?
26
26
  }
@@ -31,7 +31,7 @@ module Refinery
31
31
 
32
32
  def find_or_set_locale
33
33
  if ::Refinery::I18n.enabled?
34
- ::I18n.locale = ::Refinery::I18n.current_locale
34
+ ::I18n.locale = ::Refinery::I18n.current_frontend_locale
35
35
 
36
36
  if ::Refinery::I18n.has_locale?(locale = params[:locale].try(:to_sym))
37
37
  ::I18n.locale = locale
@@ -41,6 +41,7 @@ module Refinery
41
41
  else
42
42
  ::I18n.locale = ::Refinery::I18n.default_frontend_locale
43
43
  end
44
+ Thread.current[:globalize_locale] = ::I18n.locale
44
45
  end
45
46
  end
46
47
 
metadata CHANGED
@@ -2,16 +2,15 @@
2
2
  name: refinerycms-i18n
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.9.16
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
- - Resolve Digital
8
+ - Philip Arndt
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-28 00:00:00 +13:00
14
- default_executable:
13
+ date: 2011-04-13 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: refinerycms-core
@@ -36,7 +35,7 @@ dependencies:
36
35
  type: :runtime
37
36
  version_requirements: *id002
38
37
  description: i18n logic extracted from RefineryCMS, for Refinery CMS.
39
- email: info@refinerycms.com
38
+ email: parndt@gmail.com
40
39
  executables: []
41
40
 
42
41
  extensions: []
@@ -400,8 +399,7 @@ files:
400
399
  - test/resources/simple_scope.yml
401
400
  - test/test_helper.rb
402
401
  - translate-readme.md
403
- has_rdoc: true
404
- homepage: http://refinerycms.com
402
+ homepage: http://philiparndt.name
405
403
  licenses: []
406
404
 
407
405
  post_install_message:
@@ -424,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
424
422
  requirements: []
425
423
 
426
424
  rubyforge_project:
427
- rubygems_version: 1.6.1
425
+ rubygems_version: 1.7.2
428
426
  signing_key:
429
427
  specification_version: 3
430
428
  summary: i18n logic for Refinery CMS.