gettext_simple_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/gettext_simple_rails/application.js +13 -0
- data/app/assets/stylesheets/gettext_simple_rails/application.css +15 -0
- data/app/controllers/gettext_simple_rails/application_controller.rb +4 -0
- data/app/helpers/gettext_simple_rails/application_helper.rb +4 -0
- data/app/views/layouts/gettext_simple_rails/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/gettext_simple_rails.rb +14 -0
- data/lib/gettext_simple_rails/engine.rb +5 -0
- data/lib/gettext_simple_rails/i18n_injector.rb +69 -0
- data/lib/gettext_simple_rails/model_inspector.rb +66 -0
- data/lib/gettext_simple_rails/version.rb +3 -0
- data/lib/tasks/gettext_simple_rails_tasks.rake +41 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/role.rb +3 -0
- data/test/dummy/app/models/user.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -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 +83 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/da.yml +2 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140410170418_create_users.rb +11 -0
- data/test/dummy/db/migrate/20140411112622_create_roles.rb +10 -0
- data/test/dummy/db/schema.rb +38 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/gettext_simple_rails/models/role_model_translations.rb +18 -0
- data/test/dummy/lib/gettext_simple_rails/models/user_model_translations.rb +19 -0
- data/test/dummy/log/development.log +26 -0
- data/test/dummy/log/test.log +630 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/fixtures/roles.yml +9 -0
- data/test/dummy/test/fixtures/users.yml +11 -0
- data/test/dummy/test/models/role_test.rb +7 -0
- data/test/dummy/test/models/user_test.rb +7 -0
- data/test/gettext_simple_rails_test.rb +58 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- metadata +217 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
class GettextSimpleRailsTest < ActiveSupport::TestCase
|
5
|
+
setup do
|
6
|
+
if !$translations_generated
|
7
|
+
$translations_generated = true
|
8
|
+
|
9
|
+
# Make it possible to call the Rake task.
|
10
|
+
::Dummy::Application.load_tasks
|
11
|
+
|
12
|
+
# Clean up any existing translations.
|
13
|
+
FileUtils.rm_r(GettextSimpleRails.translation_dir) if File.exists?(GettextSimpleRails.translation_dir)
|
14
|
+
|
15
|
+
# Generate model translations so we can check them.
|
16
|
+
::Rake::Task["gettext_simple_rails:generate_model_translation_files"].invoke
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
test "generates model translations" do
|
21
|
+
user_model_translations_path = "#{GettextSimpleRails.translation_dir}/models/user_model_translations.rb"
|
22
|
+
assert File.exists?(user_model_translations_path), "a file with user model translations should have been created but wasn't."
|
23
|
+
content = File.read(user_model_translations_path)
|
24
|
+
|
25
|
+
assert content.include?("puts _('models.name.user.one')"), "should include model name"
|
26
|
+
assert content.include?("puts _('models.name.user.other')"), "should include model name"
|
27
|
+
|
28
|
+
attributes = ["id", "name", "birthday_at", "age", "created_at", "updated_at"]
|
29
|
+
attributes.each do |attribute|
|
30
|
+
assert content.include?("puts _('models.attributes.user.#{attribute}')"), "should include attribute #{attribute}"
|
31
|
+
end
|
32
|
+
|
33
|
+
# Relationship translations.
|
34
|
+
assert content.include?("puts _('models.attributes.user.roles')"), "didn't contain relationship translations"
|
35
|
+
end
|
36
|
+
|
37
|
+
test "can inject the translations into I18n" do
|
38
|
+
require "gettext_simple"
|
39
|
+
gs = GettextSimple.new
|
40
|
+
locales = gs.instance_variable_get(:@locales)
|
41
|
+
locales["da"] = {}
|
42
|
+
locales["en"] = {}
|
43
|
+
|
44
|
+
gs.__send__(:add_translation, "da", "models.name.user.one", "Bruger")
|
45
|
+
gs.__send__(:add_translation, "da", "models.name.user.other", "Brugere")
|
46
|
+
|
47
|
+
gs.__send__(:add_translation, "da", "models.attributes.user.name", "Navn")
|
48
|
+
|
49
|
+
injector = GettextSimpleRails::I18nInjector.new
|
50
|
+
injector.inject_model_translations(gs)
|
51
|
+
|
52
|
+
I18n.with_locale :da do
|
53
|
+
assert_equal "Bruger", I18n.t("activerecord.models.user.one")
|
54
|
+
assert_equal "Brugere", I18n.t("activerecord.models.user.other")
|
55
|
+
assert_equal "Navn", I18n.t("activerecord.attributes.user.name")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
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
|
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gettext_simple_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kasper Johansen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: gettext_simple
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.7
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.7
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: string-cases
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sqlite3
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Inspects models and other modules to easily generate .po-files and translate
|
70
|
+
them with POEdit.
|
71
|
+
email:
|
72
|
+
- k@spernj.org
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- app/helpers/gettext_simple_rails/application_helper.rb
|
78
|
+
- app/assets/javascripts/gettext_simple_rails/application.js
|
79
|
+
- app/assets/stylesheets/gettext_simple_rails/application.css
|
80
|
+
- app/controllers/gettext_simple_rails/application_controller.rb
|
81
|
+
- app/views/layouts/gettext_simple_rails/application.html.erb
|
82
|
+
- config/routes.rb
|
83
|
+
- lib/gettext_simple_rails/engine.rb
|
84
|
+
- lib/gettext_simple_rails/i18n_injector.rb
|
85
|
+
- lib/gettext_simple_rails/version.rb
|
86
|
+
- lib/gettext_simple_rails/model_inspector.rb
|
87
|
+
- lib/gettext_simple_rails.rb
|
88
|
+
- lib/tasks/gettext_simple_rails_tasks.rake
|
89
|
+
- MIT-LICENSE
|
90
|
+
- Rakefile
|
91
|
+
- test/gettext_simple_rails_test.rb
|
92
|
+
- test/dummy/bin/rails
|
93
|
+
- test/dummy/bin/bundle
|
94
|
+
- test/dummy/bin/rake
|
95
|
+
- test/dummy/config.ru
|
96
|
+
- test/dummy/README.rdoc
|
97
|
+
- test/dummy/Rakefile
|
98
|
+
- test/dummy/lib/gettext_simple_rails/models/user_model_translations.rb
|
99
|
+
- test/dummy/lib/gettext_simple_rails/models/role_model_translations.rb
|
100
|
+
- test/dummy/test/models/user_test.rb
|
101
|
+
- test/dummy/test/models/role_test.rb
|
102
|
+
- test/dummy/test/fixtures/users.yml
|
103
|
+
- test/dummy/test/fixtures/roles.yml
|
104
|
+
- test/dummy/public/404.html
|
105
|
+
- test/dummy/public/500.html
|
106
|
+
- test/dummy/public/422.html
|
107
|
+
- test/dummy/public/favicon.ico
|
108
|
+
- test/dummy/log/development.log
|
109
|
+
- test/dummy/log/test.log
|
110
|
+
- test/dummy/db/schema.rb
|
111
|
+
- test/dummy/db/development.sqlite3
|
112
|
+
- test/dummy/db/migrate/20140410170418_create_users.rb
|
113
|
+
- test/dummy/db/migrate/20140411112622_create_roles.rb
|
114
|
+
- test/dummy/db/test.sqlite3
|
115
|
+
- test/dummy/app/models/user.rb
|
116
|
+
- test/dummy/app/models/role.rb
|
117
|
+
- test/dummy/app/helpers/application_helper.rb
|
118
|
+
- test/dummy/app/assets/javascripts/application.js
|
119
|
+
- test/dummy/app/assets/stylesheets/application.css
|
120
|
+
- test/dummy/app/controllers/application_controller.rb
|
121
|
+
- test/dummy/app/views/layouts/application.html.erb
|
122
|
+
- test/dummy/config/routes.rb
|
123
|
+
- test/dummy/config/locales/en.yml
|
124
|
+
- test/dummy/config/locales/da.yml
|
125
|
+
- test/dummy/config/secrets.yml
|
126
|
+
- test/dummy/config/application.rb
|
127
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
128
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
129
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
130
|
+
- test/dummy/config/initializers/mime_types.rb
|
131
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
132
|
+
- test/dummy/config/initializers/session_store.rb
|
133
|
+
- test/dummy/config/initializers/inflections.rb
|
134
|
+
- test/dummy/config/database.yml
|
135
|
+
- test/dummy/config/environment.rb
|
136
|
+
- test/dummy/config/boot.rb
|
137
|
+
- test/dummy/config/environments/development.rb
|
138
|
+
- test/dummy/config/environments/test.rb
|
139
|
+
- test/dummy/config/environments/production.rb
|
140
|
+
- test/test_helper.rb
|
141
|
+
- test/integration/navigation_test.rb
|
142
|
+
homepage: http://www.github.com/kaspernj/gettext_simple_rails
|
143
|
+
licenses:
|
144
|
+
- MIT
|
145
|
+
metadata: {}
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 2.0.7
|
163
|
+
signing_key:
|
164
|
+
specification_version: 4
|
165
|
+
summary: Helpers for translating a Rails app with Gettext and POEdit.
|
166
|
+
test_files:
|
167
|
+
- test/gettext_simple_rails_test.rb
|
168
|
+
- test/dummy/bin/rails
|
169
|
+
- test/dummy/bin/bundle
|
170
|
+
- test/dummy/bin/rake
|
171
|
+
- test/dummy/config.ru
|
172
|
+
- test/dummy/README.rdoc
|
173
|
+
- test/dummy/Rakefile
|
174
|
+
- test/dummy/lib/gettext_simple_rails/models/user_model_translations.rb
|
175
|
+
- test/dummy/lib/gettext_simple_rails/models/role_model_translations.rb
|
176
|
+
- test/dummy/test/models/user_test.rb
|
177
|
+
- test/dummy/test/models/role_test.rb
|
178
|
+
- test/dummy/test/fixtures/users.yml
|
179
|
+
- test/dummy/test/fixtures/roles.yml
|
180
|
+
- test/dummy/public/404.html
|
181
|
+
- test/dummy/public/500.html
|
182
|
+
- test/dummy/public/422.html
|
183
|
+
- test/dummy/public/favicon.ico
|
184
|
+
- test/dummy/log/development.log
|
185
|
+
- test/dummy/log/test.log
|
186
|
+
- test/dummy/db/schema.rb
|
187
|
+
- test/dummy/db/development.sqlite3
|
188
|
+
- test/dummy/db/migrate/20140410170418_create_users.rb
|
189
|
+
- test/dummy/db/migrate/20140411112622_create_roles.rb
|
190
|
+
- test/dummy/db/test.sqlite3
|
191
|
+
- test/dummy/app/models/user.rb
|
192
|
+
- test/dummy/app/models/role.rb
|
193
|
+
- test/dummy/app/helpers/application_helper.rb
|
194
|
+
- test/dummy/app/assets/javascripts/application.js
|
195
|
+
- test/dummy/app/assets/stylesheets/application.css
|
196
|
+
- test/dummy/app/controllers/application_controller.rb
|
197
|
+
- test/dummy/app/views/layouts/application.html.erb
|
198
|
+
- test/dummy/config/routes.rb
|
199
|
+
- test/dummy/config/locales/en.yml
|
200
|
+
- test/dummy/config/locales/da.yml
|
201
|
+
- test/dummy/config/secrets.yml
|
202
|
+
- test/dummy/config/application.rb
|
203
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
204
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
205
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
206
|
+
- test/dummy/config/initializers/mime_types.rb
|
207
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
208
|
+
- test/dummy/config/initializers/session_store.rb
|
209
|
+
- test/dummy/config/initializers/inflections.rb
|
210
|
+
- test/dummy/config/database.yml
|
211
|
+
- test/dummy/config/environment.rb
|
212
|
+
- test/dummy/config/boot.rb
|
213
|
+
- test/dummy/config/environments/development.rb
|
214
|
+
- test/dummy/config/environments/test.rb
|
215
|
+
- test/dummy/config/environments/production.rb
|
216
|
+
- test/test_helper.rb
|
217
|
+
- test/integration/navigation_test.rb
|