Sha256: fb3a16d8cbbbc39ab3b95fdc0d6f12421b3bb35070cdc7165989ba4dfdeffff5

Contents?: true

Size: 388 Bytes

Versions: 11

Compression:

Stored size: 388 Bytes

Contents

localization_spec_root = File.expand_path('localization_spec', __dir__)

use Utopia::Localization,
	locales: ['en', 'ja', 'de'],
	hosts: {/foobar\.com$/ => 'en', /foobar\.co\.jp$/ => 'ja', /foobar\.de$/ => 'de'}

use Utopia::Controller,
	root: localization_spec_root,
	base: Utopia::Controller::Base

use Utopia::Static,
	root: localization_spec_root

run lambda { |env| [404, {}, []] }

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
utopia-1.9.11 spec/utopia/localization_spec.ru
utopia-1.9.10 spec/utopia/localization_spec.ru
utopia-1.9.9 spec/utopia/localization_spec.ru
utopia-1.9.7 spec/utopia/localization_spec.ru
utopia-1.9.6 spec/utopia/localization_spec.ru
utopia-1.9.5 spec/utopia/localization_spec.ru
utopia-1.9.4 spec/utopia/localization_spec.ru
utopia-1.9.3 spec/utopia/localization_spec.ru
utopia-1.9.2 spec/utopia/localization_spec.ru
utopia-1.9.1 spec/utopia/localization_spec.ru
utopia-1.9.0 spec/utopia/localization_spec.ru