Sha256: 35822306f127698fe27d3466b275685bbb97fc1d2b26de9e27fd68bbc41c86f5

Contents?: true

Size: 574 Bytes

Versions: 37

Compression:

Stored size: 574 Bytes

Contents

#Iconv will not be defined, unless it is found -> normalize test results for users that have Iconv/those who do not have it
begin;require 'iconv';rescue;LoadError;end
initial = methods.count + Module.constants.count

#FastGettext
$LOAD_PATH.unshift File.join(File.dirname(__FILE__),'..','..','lib')
require 'fast_gettext'
FastGettext.locale = 'de'
FastGettext.add_text_domain 'test', :path=>'spec/locale'
FastGettext.text_domain = 'test'
include FastGettext::Translation
raise unless _('car')=='Auto'

puts "FastGettext"
puts methods.count + Module.constants.count - initial

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
grosser-fast_gettext-0.4.12 benchmark/namespace/fast_gettext.rb
grosser-fast_gettext-0.4.13 benchmark/namespace/fast_gettext.rb
grosser-fast_gettext-0.4.14 benchmark/namespace/fast_gettext.rb
grosser-fast_gettext-0.4.15 benchmark/namespace/fast_gettext.rb
grosser-fast_gettext-0.4.16 benchmark/namespace/fast_gettext.rb
fast_gettext-0.8.1 benchmark/namespace/fast_gettext.rb
fast_gettext-0.8.0 benchmark/namespace/fast_gettext.rb
fast_gettext-0.7.1 benchmark/namespace/fast_gettext.rb
fast_gettext-0.7.0 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.12 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.11 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.10 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.9 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.8 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.7 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.6 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.5 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.4 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.3 benchmark/namespace/fast_gettext.rb
fast_gettext-0.6.2 benchmark/namespace/fast_gettext.rb