grosser-fast_gettext 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 7
4
+ :patch: 8
@@ -107,7 +107,7 @@ module FastGettext
107
107
  locales += [] if part.length == 2 #if it could be split we are now in a new locale
108
108
  end
109
109
 
110
- locales.sort!(&:last) #sort them by weight which is the last entry
110
+ locales = locales.sort_by{|l|l.last} #sort them by weight which is the last entry
111
111
  locales.flatten.each do |candidate|
112
112
  candidate = candidate.sub(/^([a-zA-Z]{2})[-_]([a-zA-Z]{2})$/){$1.downcase+'_'+$2.upcase}#de-de -> de_DE
113
113
  return candidate if not available_locales or available_locales.include?(candidate)
data/spec/spec_helper.rb CHANGED
@@ -2,17 +2,6 @@
2
2
  $LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__))
3
3
  require 'fast_gettext'
4
4
 
5
- # ---- bugfix
6
- #`exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)
7
- #can be solved with require test/unit but this will result in extra test-output
8
- module Test
9
- module Unit
10
- def self.run?
11
- true
12
- end
13
- end
14
- end
15
-
16
5
  # ---- revert to defaults
17
6
  Spec::Runner.configure do |config|
18
7
  config.before :all do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grosser-fast_gettext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-04 00:00:00 -07:00
12
+ date: 2009-04-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15