babel_train 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -15
- data/Rakefile +8 -2
- data/app/assets/javascripts/{bable_train → babel_train}/application.js +0 -0
- data/app/assets/stylesheets/{bable_train → babel_train}/application.css +0 -0
- data/app/controllers/{bable_train → babel_train}/application_controller.rb +0 -0
- data/app/helpers/{bable_train → babel_train}/application_helper.rb +0 -0
- data/app/views/layouts/{bable_train → babel_train}/application.html.erb +0 -0
- data/lib/babel_train/engine.rb +8 -0
- data/lib/babel_train/i18n.rb +49 -0
- data/lib/babel_train/version.rb +1 -1
- data/lib/tasks/{bable_train_tasks.rake → babel_train_tasks.rake} +0 -0
- data/spec/features/translations_spec.rb +9 -0
- data/spec/rails_helper.rb +53 -0
- data/spec/spec_helper.rb +90 -0
- data/spec/test-app/README.rdoc +28 -0
- data/spec/test-app/Rakefile +6 -0
- data/spec/test-app/app/assets/javascripts/application.js +13 -0
- data/spec/test-app/app/assets/stylesheets/application.css +15 -0
- data/spec/test-app/app/controllers/application_controller.rb +5 -0
- data/spec/test-app/app/controllers/pages_controller.rb +2 -0
- data/spec/test-app/app/helpers/application_helper.rb +2 -0
- data/spec/test-app/app/helpers/pages_helper.rb +2 -0
- data/spec/test-app/app/views/layouts/application.html.erb +14 -0
- data/spec/test-app/app/views/pages/page_1.html.erb +1 -0
- data/spec/test-app/app/views/pages/page_2.html.erb +1 -0
- data/spec/test-app/bin/bundle +3 -0
- data/spec/test-app/bin/rails +4 -0
- data/spec/test-app/bin/rake +4 -0
- data/spec/test-app/bin/setup +29 -0
- data/spec/test-app/config.ru +4 -0
- data/spec/test-app/config/application.rb +32 -0
- data/spec/test-app/config/boot.rb +5 -0
- data/spec/test-app/config/database.yml +25 -0
- data/spec/test-app/config/environment.rb +5 -0
- data/spec/test-app/config/environments/development.rb +42 -0
- data/spec/test-app/config/environments/production.rb +79 -0
- data/spec/test-app/config/environments/test.rb +43 -0
- data/spec/test-app/config/initializers/assets.rb +11 -0
- data/spec/test-app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/test-app/config/initializers/cookies_serializer.rb +3 -0
- data/spec/test-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/test-app/config/initializers/i18n.rb +3 -0
- data/spec/test-app/config/initializers/inflections.rb +16 -0
- data/spec/test-app/config/initializers/mime_types.rb +4 -0
- data/spec/test-app/config/initializers/session_store.rb +3 -0
- data/spec/test-app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/test-app/config/locales/en.yml +1 -0
- data/spec/test-app/config/locales/pages/page_1.en.yml +3 -0
- data/spec/test-app/config/locales/pages/page_2/en.yml +1 -0
- data/spec/test-app/config/routes.rb +4 -0
- data/spec/test-app/config/secrets.yml +22 -0
- data/spec/test-app/log/development.log +0 -0
- data/spec/test-app/log/test.log +44 -0
- data/spec/test-app/public/404.html +67 -0
- data/spec/test-app/public/422.html +67 -0
- data/spec/test-app/public/500.html +66 -0
- data/spec/test-app/public/favicon.ico +0 -0
- metadata +132 -11
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babel_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Nicoll
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4
|
19
|
+
version: '4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4
|
26
|
+
version: '4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
description:
|
28
56
|
email:
|
29
57
|
- eltiare@github
|
@@ -34,16 +62,63 @@ files:
|
|
34
62
|
- MIT-LICENSE
|
35
63
|
- README.rdoc
|
36
64
|
- Rakefile
|
37
|
-
- app/assets/javascripts/
|
38
|
-
- app/assets/stylesheets/
|
39
|
-
- app/controllers/
|
40
|
-
- app/helpers/
|
41
|
-
- app/views/layouts/
|
65
|
+
- app/assets/javascripts/babel_train/application.js
|
66
|
+
- app/assets/stylesheets/babel_train/application.css
|
67
|
+
- app/controllers/babel_train/application_controller.rb
|
68
|
+
- app/helpers/babel_train/application_helper.rb
|
69
|
+
- app/views/layouts/babel_train/application.html.erb
|
42
70
|
- config/routes.rb
|
43
71
|
- lib/babel_train.rb
|
44
72
|
- lib/babel_train/engine.rb
|
73
|
+
- lib/babel_train/i18n.rb
|
45
74
|
- lib/babel_train/version.rb
|
46
|
-
- lib/tasks/
|
75
|
+
- lib/tasks/babel_train_tasks.rake
|
76
|
+
- spec/features/translations_spec.rb
|
77
|
+
- spec/rails_helper.rb
|
78
|
+
- spec/spec_helper.rb
|
79
|
+
- spec/test-app/README.rdoc
|
80
|
+
- spec/test-app/Rakefile
|
81
|
+
- spec/test-app/app/assets/javascripts/application.js
|
82
|
+
- spec/test-app/app/assets/stylesheets/application.css
|
83
|
+
- spec/test-app/app/controllers/application_controller.rb
|
84
|
+
- spec/test-app/app/controllers/pages_controller.rb
|
85
|
+
- spec/test-app/app/helpers/application_helper.rb
|
86
|
+
- spec/test-app/app/helpers/pages_helper.rb
|
87
|
+
- spec/test-app/app/views/layouts/application.html.erb
|
88
|
+
- spec/test-app/app/views/pages/page_1.html.erb
|
89
|
+
- spec/test-app/app/views/pages/page_2.html.erb
|
90
|
+
- spec/test-app/bin/bundle
|
91
|
+
- spec/test-app/bin/rails
|
92
|
+
- spec/test-app/bin/rake
|
93
|
+
- spec/test-app/bin/setup
|
94
|
+
- spec/test-app/config.ru
|
95
|
+
- spec/test-app/config/application.rb
|
96
|
+
- spec/test-app/config/boot.rb
|
97
|
+
- spec/test-app/config/database.yml
|
98
|
+
- spec/test-app/config/environment.rb
|
99
|
+
- spec/test-app/config/environments/development.rb
|
100
|
+
- spec/test-app/config/environments/production.rb
|
101
|
+
- spec/test-app/config/environments/test.rb
|
102
|
+
- spec/test-app/config/initializers/assets.rb
|
103
|
+
- spec/test-app/config/initializers/backtrace_silencers.rb
|
104
|
+
- spec/test-app/config/initializers/cookies_serializer.rb
|
105
|
+
- spec/test-app/config/initializers/filter_parameter_logging.rb
|
106
|
+
- spec/test-app/config/initializers/i18n.rb
|
107
|
+
- spec/test-app/config/initializers/inflections.rb
|
108
|
+
- spec/test-app/config/initializers/mime_types.rb
|
109
|
+
- spec/test-app/config/initializers/session_store.rb
|
110
|
+
- spec/test-app/config/initializers/wrap_parameters.rb
|
111
|
+
- spec/test-app/config/locales/en.yml
|
112
|
+
- spec/test-app/config/locales/pages/page_1.en.yml
|
113
|
+
- spec/test-app/config/locales/pages/page_2/en.yml
|
114
|
+
- spec/test-app/config/routes.rb
|
115
|
+
- spec/test-app/config/secrets.yml
|
116
|
+
- spec/test-app/log/development.log
|
117
|
+
- spec/test-app/log/test.log
|
118
|
+
- spec/test-app/public/404.html
|
119
|
+
- spec/test-app/public/422.html
|
120
|
+
- spec/test-app/public/500.html
|
121
|
+
- spec/test-app/public/favicon.ico
|
47
122
|
homepage: https://github.com/eltiare/babel_train
|
48
123
|
licenses:
|
49
124
|
- MIT
|
@@ -68,4 +143,50 @@ rubygems_version: 2.5.1
|
|
68
143
|
signing_key:
|
69
144
|
specification_version: 4
|
70
145
|
summary: Backend for i18n that auto-scopes by folder and filename.
|
71
|
-
test_files:
|
146
|
+
test_files:
|
147
|
+
- spec/features/translations_spec.rb
|
148
|
+
- spec/rails_helper.rb
|
149
|
+
- spec/spec_helper.rb
|
150
|
+
- spec/test-app/app/assets/javascripts/application.js
|
151
|
+
- spec/test-app/app/assets/stylesheets/application.css
|
152
|
+
- spec/test-app/app/controllers/application_controller.rb
|
153
|
+
- spec/test-app/app/controllers/pages_controller.rb
|
154
|
+
- spec/test-app/app/helpers/application_helper.rb
|
155
|
+
- spec/test-app/app/helpers/pages_helper.rb
|
156
|
+
- spec/test-app/app/views/layouts/application.html.erb
|
157
|
+
- spec/test-app/app/views/pages/page_1.html.erb
|
158
|
+
- spec/test-app/app/views/pages/page_2.html.erb
|
159
|
+
- spec/test-app/bin/bundle
|
160
|
+
- spec/test-app/bin/rails
|
161
|
+
- spec/test-app/bin/rake
|
162
|
+
- spec/test-app/bin/setup
|
163
|
+
- spec/test-app/config/application.rb
|
164
|
+
- spec/test-app/config/boot.rb
|
165
|
+
- spec/test-app/config/database.yml
|
166
|
+
- spec/test-app/config/environment.rb
|
167
|
+
- spec/test-app/config/environments/development.rb
|
168
|
+
- spec/test-app/config/environments/production.rb
|
169
|
+
- spec/test-app/config/environments/test.rb
|
170
|
+
- spec/test-app/config/initializers/assets.rb
|
171
|
+
- spec/test-app/config/initializers/backtrace_silencers.rb
|
172
|
+
- spec/test-app/config/initializers/cookies_serializer.rb
|
173
|
+
- spec/test-app/config/initializers/filter_parameter_logging.rb
|
174
|
+
- spec/test-app/config/initializers/i18n.rb
|
175
|
+
- spec/test-app/config/initializers/inflections.rb
|
176
|
+
- spec/test-app/config/initializers/mime_types.rb
|
177
|
+
- spec/test-app/config/initializers/session_store.rb
|
178
|
+
- spec/test-app/config/initializers/wrap_parameters.rb
|
179
|
+
- spec/test-app/config/locales/en.yml
|
180
|
+
- spec/test-app/config/locales/pages/page_1.en.yml
|
181
|
+
- spec/test-app/config/locales/pages/page_2/en.yml
|
182
|
+
- spec/test-app/config/routes.rb
|
183
|
+
- spec/test-app/config/secrets.yml
|
184
|
+
- spec/test-app/config.ru
|
185
|
+
- spec/test-app/log/development.log
|
186
|
+
- spec/test-app/log/test.log
|
187
|
+
- spec/test-app/public/404.html
|
188
|
+
- spec/test-app/public/422.html
|
189
|
+
- spec/test-app/public/500.html
|
190
|
+
- spec/test-app/public/favicon.ico
|
191
|
+
- spec/test-app/Rakefile
|
192
|
+
- spec/test-app/README.rdoc
|