tounge 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +63 -0
- data/Rakefile +38 -0
- data/lib/tasks/tounge_tasks.rake +4 -0
- data/lib/tounge/locale_control.rb +29 -0
- data/lib/tounge/locale_setter.rb +59 -0
- data/lib/tounge/version.rb +3 -0
- data/lib/tounge.rb +5 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/pages_controller.rb +6 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/pages/index.html.erb +3 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en-gb.yml +2 -0
- data/test/dummy/config/locales/en-us.yml +2 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/locales/no-nb.yml +2 -0
- data/test/dummy/config/locales/sv-se.yml +2 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/functional_test.rb +13 -0
- data/test/dummy/log/development.log +413 -0
- data/test/dummy/log/test.log +2523 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D1E/EF0/sprockets%2F52269994ffe75ac35386d6a1fa4e067a +0 -0
- data/test/dummy/tmp/cache/assets/D27/590/sprockets%2F8bfa12499f676f59cfc5a58149276ab5 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D71/780/sprockets%2F7057b6e13d8b3eb5a4ba399ded227d38 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E37/7E0/sprockets%2F8d9eabd26028ef9e8e9efaa2c16bfe03 +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/locale_control_test.rb +49 -0
- data/test/locale_setter_test.rb +95 -0
- data/test/test_helper.rb +15 -0
- data/test/tounge_test.rb +7 -0
- metadata +200 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
41830
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DummyUser
|
4
|
+
def locale
|
5
|
+
'sv-SE'
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
class DummyController < ApplicationController
|
10
|
+
attr_accessor :params, :session, :current_user
|
11
|
+
end
|
12
|
+
|
13
|
+
class LocaleControlTest < ActiveSupport::TestCase
|
14
|
+
test "set locale using default" do
|
15
|
+
controller = DummyController.new
|
16
|
+
controller.set_locale
|
17
|
+
assert_equal :en, I18n.locale
|
18
|
+
end
|
19
|
+
|
20
|
+
test "set locale from params" do
|
21
|
+
controller = DummyController.new
|
22
|
+
controller.params = { locale: 'sv-SE' }
|
23
|
+
controller.set_locale
|
24
|
+
assert_equal :'sv-SE', I18n.locale
|
25
|
+
end
|
26
|
+
|
27
|
+
test "set locale from session" do
|
28
|
+
controller = DummyController.new
|
29
|
+
controller.session = { locale: 'sv-SE' }
|
30
|
+
controller.set_locale
|
31
|
+
assert_equal :'sv-SE', I18n.locale
|
32
|
+
end
|
33
|
+
|
34
|
+
test "set locale from user" do
|
35
|
+
controller = DummyController.new
|
36
|
+
controller.current_user = DummyUser.new
|
37
|
+
controller.set_locale
|
38
|
+
assert_equal :'sv-SE', I18n.locale
|
39
|
+
end
|
40
|
+
|
41
|
+
test "set locale from http" do
|
42
|
+
controller = DummyController.new
|
43
|
+
org_accept = ENV['HTTP_ACCEPT_LANGUAGE']
|
44
|
+
ENV['HTTP_ACCEPT_LANGUAGE'] = "sv-SE,en-US;q=0.8"
|
45
|
+
controller.set_locale
|
46
|
+
assert_equal :'sv-SE', I18n.locale
|
47
|
+
ENV['HTTP_ACCEPT_LANGUAGE'] = org_accept
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class LocaleSetterTest < ActiveSupport::TestCase
|
4
|
+
class DummyUser
|
5
|
+
def locale
|
6
|
+
'no-NB'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
test "by_default returns default locale" do
|
11
|
+
assert_equal :en, Tounge::LocaleSetter.by_default
|
12
|
+
end
|
13
|
+
|
14
|
+
test "by_default returns default unless overriden" do
|
15
|
+
assert_equal :'sv-SE', Tounge::LocaleSetter.by_default(:'sv-SE')
|
16
|
+
end
|
17
|
+
|
18
|
+
test "by_params returns locale set in params" do
|
19
|
+
params = { locale: 'sv-SE' }
|
20
|
+
assert_equal 'sv-SE', Tounge::LocaleSetter.by_params(params)
|
21
|
+
end
|
22
|
+
|
23
|
+
test "by_params returns nil if locale not available" do
|
24
|
+
params = { locale: 'foo-bar' }
|
25
|
+
assert_nil Tounge::LocaleSetter.by_params(params)
|
26
|
+
end
|
27
|
+
|
28
|
+
test "by_session returns locale set in params" do
|
29
|
+
session = { locale: 'en' }
|
30
|
+
assert_equal 'en', Tounge::LocaleSetter.by_session(session)
|
31
|
+
end
|
32
|
+
|
33
|
+
test "by_user returns locale set for a user" do
|
34
|
+
assert_equal 'no-NB', Tounge::LocaleSetter.by_user(DummyUser.new)
|
35
|
+
end
|
36
|
+
|
37
|
+
test "by_http returns first match from HTTP_ACCEPT_LANGUAGE" do
|
38
|
+
http_accept_language = "sv-SE,en-US;q=0.8,en;q=0.6"
|
39
|
+
assert_equal :'sv-SE', Tounge::LocaleSetter.by_http(http_accept_language)
|
40
|
+
http_accept_language = "de,fr-CA;q=0.8,en-US;q=0.6,en;q=0.4"
|
41
|
+
assert_equal :'en-US', Tounge::LocaleSetter.by_http(http_accept_language)
|
42
|
+
end
|
43
|
+
|
44
|
+
test "by_http returns nil if no match" do
|
45
|
+
http_accept_language = "de,fr-CA;q=0.8"
|
46
|
+
assert_nil Tounge::LocaleSetter.by_http(http_accept_language)
|
47
|
+
end
|
48
|
+
|
49
|
+
test "set_by sets locale to first hit in lookup chain" do
|
50
|
+
inputs = {
|
51
|
+
params: { locale: nil },
|
52
|
+
user: nil,
|
53
|
+
session: { locale: nil },
|
54
|
+
http: nil,
|
55
|
+
default: I18n.default_locale
|
56
|
+
}
|
57
|
+
Tounge::LocaleSetter.set_by(inputs)
|
58
|
+
assert_equal :en, I18n.locale
|
59
|
+
Tounge::LocaleSetter.set_by(inputs.merge!(http: "sv-SE,en-US;q=0.8,en;q=0.6"))
|
60
|
+
assert_equal :'sv-SE', I18n.locale
|
61
|
+
Tounge::LocaleSetter.set_by(inputs.merge!(session: { locale: 'en-US' }))
|
62
|
+
assert_equal :'en-US', I18n.locale
|
63
|
+
Tounge::LocaleSetter.set_by(inputs.merge!(user: DummyUser.new))
|
64
|
+
assert_equal :'no-NB', I18n.locale
|
65
|
+
Tounge::LocaleSetter.set_by(inputs.merge!(params: { locale: 'en-GB' }))
|
66
|
+
assert_equal :'en-GB', I18n.locale
|
67
|
+
end
|
68
|
+
|
69
|
+
test "configure block yields self" do
|
70
|
+
Tounge::LocaleSetter.configure do |config|
|
71
|
+
assert_equal config, Tounge::LocaleSetter
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
test "default lookup chain" do
|
76
|
+
assert_equal [:params, :user, :session, :http, :default], Tounge::LocaleSetter.lookup_chain
|
77
|
+
end
|
78
|
+
|
79
|
+
test "allow configuration of lookup chain" do
|
80
|
+
Tounge::LocaleSetter.configure do |config|
|
81
|
+
config.lookup_chain = [:http, :session, :user, :params, :default]
|
82
|
+
end
|
83
|
+
assert_equal [:http, :session, :user, :params, :default], Tounge::LocaleSetter.lookup_chain
|
84
|
+
inputs = {
|
85
|
+
params: { locale: 'en-GB' },
|
86
|
+
http: "sv-SE,en-US;q=0.8,en;q=0.6"
|
87
|
+
}
|
88
|
+
Tounge::LocaleSetter.set_by(inputs)
|
89
|
+
assert_equal :'sv-SE', I18n.locale
|
90
|
+
# Reset lookup chain so other tests don't get affected
|
91
|
+
Tounge::LocaleSetter.configure do |config|
|
92
|
+
config.lookup_chain = Tounge::LocaleSetter::LOOKUP_CHAIN
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
data/test/tounge_test.rb
ADDED
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tounge
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jonas Lundqvist
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.8
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.8
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Easy locale switching in Ruby on Rails through params, session, user
|
47
|
+
or http.
|
48
|
+
email:
|
49
|
+
- lundqvist.j@gmail.com
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- lib/tasks/tounge_tasks.rake
|
55
|
+
- lib/tounge/locale_control.rb
|
56
|
+
- lib/tounge/locale_setter.rb
|
57
|
+
- lib/tounge/version.rb
|
58
|
+
- lib/tounge.rb
|
59
|
+
- MIT-LICENSE
|
60
|
+
- Rakefile
|
61
|
+
- README.rdoc
|
62
|
+
- test/dummy/app/assets/javascripts/application.js
|
63
|
+
- test/dummy/app/assets/stylesheets/application.css
|
64
|
+
- test/dummy/app/controllers/application_controller.rb
|
65
|
+
- test/dummy/app/controllers/pages_controller.rb
|
66
|
+
- test/dummy/app/helpers/application_helper.rb
|
67
|
+
- test/dummy/app/views/layouts/application.html.erb
|
68
|
+
- test/dummy/app/views/pages/index.html.erb
|
69
|
+
- test/dummy/config/application.rb
|
70
|
+
- test/dummy/config/boot.rb
|
71
|
+
- test/dummy/config/database.yml
|
72
|
+
- test/dummy/config/environment.rb
|
73
|
+
- test/dummy/config/environments/development.rb
|
74
|
+
- test/dummy/config/environments/production.rb
|
75
|
+
- test/dummy/config/environments/test.rb
|
76
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
77
|
+
- test/dummy/config/initializers/inflections.rb
|
78
|
+
- test/dummy/config/initializers/mime_types.rb
|
79
|
+
- test/dummy/config/initializers/secret_token.rb
|
80
|
+
- test/dummy/config/initializers/session_store.rb
|
81
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
82
|
+
- test/dummy/config/locales/en-gb.yml
|
83
|
+
- test/dummy/config/locales/en-us.yml
|
84
|
+
- test/dummy/config/locales/en.yml
|
85
|
+
- test/dummy/config/locales/no-nb.yml
|
86
|
+
- test/dummy/config/locales/sv-se.yml
|
87
|
+
- test/dummy/config/routes.rb
|
88
|
+
- test/dummy/config.ru
|
89
|
+
- test/dummy/db/development.sqlite3
|
90
|
+
- test/dummy/db/test.sqlite3
|
91
|
+
- test/dummy/functional_test.rb
|
92
|
+
- test/dummy/log/development.log
|
93
|
+
- test/dummy/log/test.log
|
94
|
+
- test/dummy/public/404.html
|
95
|
+
- test/dummy/public/422.html
|
96
|
+
- test/dummy/public/500.html
|
97
|
+
- test/dummy/public/favicon.ico
|
98
|
+
- test/dummy/Rakefile
|
99
|
+
- test/dummy/README.rdoc
|
100
|
+
- test/dummy/script/rails
|
101
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
102
|
+
- test/dummy/tmp/cache/assets/D1E/EF0/sprockets%2F52269994ffe75ac35386d6a1fa4e067a
|
103
|
+
- test/dummy/tmp/cache/assets/D27/590/sprockets%2F8bfa12499f676f59cfc5a58149276ab5
|
104
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
105
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
106
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
107
|
+
- test/dummy/tmp/cache/assets/D71/780/sprockets%2F7057b6e13d8b3eb5a4ba399ded227d38
|
108
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
109
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
110
|
+
- test/dummy/tmp/cache/assets/E37/7E0/sprockets%2F8d9eabd26028ef9e8e9efaa2c16bfe03
|
111
|
+
- test/dummy/tmp/pids/server.pid
|
112
|
+
- test/locale_control_test.rb
|
113
|
+
- test/locale_setter_test.rb
|
114
|
+
- test/test_helper.rb
|
115
|
+
- test/tounge_test.rb
|
116
|
+
homepage: https://github.com/pubis/tounge
|
117
|
+
licenses: []
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ! '>='
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
hash: -1975252539773363279
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
hash: -1975252539773363279
|
140
|
+
requirements: []
|
141
|
+
rubyforge_project:
|
142
|
+
rubygems_version: 1.8.24
|
143
|
+
signing_key:
|
144
|
+
specification_version: 3
|
145
|
+
summary: Easy locale switching in Ruby on Rails
|
146
|
+
test_files:
|
147
|
+
- test/dummy/app/assets/javascripts/application.js
|
148
|
+
- test/dummy/app/assets/stylesheets/application.css
|
149
|
+
- test/dummy/app/controllers/application_controller.rb
|
150
|
+
- test/dummy/app/controllers/pages_controller.rb
|
151
|
+
- test/dummy/app/helpers/application_helper.rb
|
152
|
+
- test/dummy/app/views/layouts/application.html.erb
|
153
|
+
- test/dummy/app/views/pages/index.html.erb
|
154
|
+
- test/dummy/config/application.rb
|
155
|
+
- test/dummy/config/boot.rb
|
156
|
+
- test/dummy/config/database.yml
|
157
|
+
- test/dummy/config/environment.rb
|
158
|
+
- test/dummy/config/environments/development.rb
|
159
|
+
- test/dummy/config/environments/production.rb
|
160
|
+
- test/dummy/config/environments/test.rb
|
161
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
162
|
+
- test/dummy/config/initializers/inflections.rb
|
163
|
+
- test/dummy/config/initializers/mime_types.rb
|
164
|
+
- test/dummy/config/initializers/secret_token.rb
|
165
|
+
- test/dummy/config/initializers/session_store.rb
|
166
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
167
|
+
- test/dummy/config/locales/en-gb.yml
|
168
|
+
- test/dummy/config/locales/en-us.yml
|
169
|
+
- test/dummy/config/locales/en.yml
|
170
|
+
- test/dummy/config/locales/no-nb.yml
|
171
|
+
- test/dummy/config/locales/sv-se.yml
|
172
|
+
- test/dummy/config/routes.rb
|
173
|
+
- test/dummy/config.ru
|
174
|
+
- test/dummy/db/development.sqlite3
|
175
|
+
- test/dummy/db/test.sqlite3
|
176
|
+
- test/dummy/functional_test.rb
|
177
|
+
- test/dummy/log/development.log
|
178
|
+
- test/dummy/log/test.log
|
179
|
+
- test/dummy/public/404.html
|
180
|
+
- test/dummy/public/422.html
|
181
|
+
- test/dummy/public/500.html
|
182
|
+
- test/dummy/public/favicon.ico
|
183
|
+
- test/dummy/Rakefile
|
184
|
+
- test/dummy/README.rdoc
|
185
|
+
- test/dummy/script/rails
|
186
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
187
|
+
- test/dummy/tmp/cache/assets/D1E/EF0/sprockets%2F52269994ffe75ac35386d6a1fa4e067a
|
188
|
+
- test/dummy/tmp/cache/assets/D27/590/sprockets%2F8bfa12499f676f59cfc5a58149276ab5
|
189
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
190
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
191
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
192
|
+
- test/dummy/tmp/cache/assets/D71/780/sprockets%2F7057b6e13d8b3eb5a4ba399ded227d38
|
193
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
194
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
195
|
+
- test/dummy/tmp/cache/assets/E37/7E0/sprockets%2F8d9eabd26028ef9e8e9efaa2c16bfe03
|
196
|
+
- test/dummy/tmp/pids/server.pid
|
197
|
+
- test/locale_control_test.rb
|
198
|
+
- test/locale_setter_test.rb
|
199
|
+
- test/test_helper.rb
|
200
|
+
- test/tounge_test.rb
|