lastobelus-merb_global 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/merb_global/locale.rb +4 -0
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake/rdoctask'
4
4
 
5
5
  PLUGIN = "merb_global"
6
6
  NAME = "merb_global"
7
- GEM_VERSION = "0.0.12"
7
+ GEM_VERSION = "0.0.13"
8
8
  AUTHORS = ["Alex Coles", "Maciej Piechotka"]
9
9
  EMAIL = "merb_global@googlegroups.com"
10
10
  HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
@@ -131,6 +131,10 @@ module Merb
131
131
  Merb::Global::config('locales', ['en'])
132
132
  end
133
133
 
134
+ def default?
135
+ self.to_s == Merb::Global::Locale.supported_locales.first
136
+ end
137
+
134
138
  def self.choose(except)
135
139
  new((supported_locales - except.map{|e| e.to_s}).first)
136
140
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastobelus-merb_global
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Coles