gettext_simple_rails 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cd25754884360826b579966f7fb55e7a53340a0
4
- data.tar.gz: ad3e9c987c87c3307a8af9a5a946ee2272142d5a
3
+ metadata.gz: ab756d992b407d2f415c33e38f064243ef22ebf4
4
+ data.tar.gz: 876b859d12837b4422e4e99d5134dde8df6e5155
5
5
  SHA512:
6
- metadata.gz: 098773f77eb17750c83a82ff82fc5435e45ae613a22c2e30513c2bdee02d18d0dec276dde4dabb0f0c51884a1aaa44c4ed38aa8b9d563477abe6eed05f9057d4
7
- data.tar.gz: ef7927170f91a27b40b08d392955bf83509324bfffece85d810c2de38142de04fa56250689583249bbc1751365e84376df82cd3ef85237323d722b37b8b003c1
6
+ metadata.gz: 523e17e4c68b2c5157ce22289600f4680219402c1251062e7f3bc41c040679b4a726c621f807c9f82c32ad93523a24620b1d1748b9b1e7fc98b95a5b6d3a40dc
7
+ data.tar.gz: b4ca945e61dafee29b154f38a704eb0a995bfcd9222889e41ac0bc96b845ffa1b37c778850c516573ba424f0605688646cc68da969d0d6bc473bb09f1db6b320
@@ -1,5 +1,5 @@
1
1
  class GettextSimpleRails::SetupHelper
2
- def initialize(args)
2
+ def initialize(args = {})
3
3
  @args = args
4
4
  end
5
5
 
@@ -1,3 +1,3 @@
1
1
  module GettextSimpleRails
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -54,7 +54,7 @@ namespace :gettext_simple_rails do
54
54
  end
55
55
 
56
56
  task "create_poedit_ruby_parser" do
57
- setup_helper = GettextSimpleRails::SetupHelper
57
+ setup_helper = GettextSimpleRails::SetupHelper.new
58
58
  raise "POEdit config file could not be found in: #{setup_helper.poedit_config_path}" unless File.exists?(setup_helper.poedit_config_path)
59
59
 
60
60
  if setup_helper.poedit_config_has_ruby_parser?
@@ -1 +1 @@
1
- {"da":{"activerecord":{"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}},"en":{"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[]}}}
1
+ {"da":{"activerecord":{"errors":{"models":{"user":{"attributes":{"name":{"too_short":"er for kort. Minimum er %{count}"}}}}}},"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[],"order":[]}},"en":{"date":{"day_names":[],"abbr_day_names":[],"month_names":[],"abbr_month_names":[],"order":[]}}}
@@ -46,6 +46,9 @@ class GettextSimpleRails::MonthNames
46
46
  _('date.abbr_month_names.10')
47
47
  _('date.abbr_month_names.11')
48
48
  _('date.abbr_month_names.12')
49
+ _('date.order.0')
50
+ _('date.order.1')
51
+ _('date.order.2')
49
52
  #. Default value: %a, %d %b %Y %H:%M:%S %z
50
53
  _('time.formats.default')
51
54
  #. Default value: %d %b %H:%M
@@ -992,3 +992,20 @@ Migrating to CreateUserTranslations (20140515092420)
992
992
   (0.1ms) rollback transaction
993
993
   (0.0ms) begin transaction
994
994
   (0.1ms) rollback transaction
995
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
996
+  (0.1ms) begin transaction
997
+  (0.1ms) rollback transaction
998
+  (0.0ms) begin transaction
999
+  (0.2ms) rollback transaction
1000
+  (0.2ms) begin transaction
1001
+  (0.1ms) rollback transaction
1002
+  (0.0ms) begin transaction
1003
+  (0.0ms) rollback transaction
1004
+  (0.0ms) begin transaction
1005
+  (0.0ms) rollback transaction
1006
+  (0.0ms) begin transaction
1007
+  (0.1ms) rollback transaction
1008
+  (0.0ms) begin transaction
1009
+  (0.1ms) rollback transaction
1010
+  (0.0ms) begin transaction
1011
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext_simple_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-24 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,95 +116,95 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - app/helpers/gettext_simple_rails/application_helper.rb
120
- - app/assets/javascripts/gettext_simple_rails/application.js
121
- - app/assets/stylesheets/gettext_simple_rails/application.css
122
119
  - app/controllers/gettext_simple_rails/application_controller.rb
123
120
  - app/views/layouts/gettext_simple_rails/application.html.erb
121
+ - app/helpers/gettext_simple_rails/application_helper.rb
122
+ - app/assets/stylesheets/gettext_simple_rails/application.css
123
+ - app/assets/javascripts/gettext_simple_rails/application.js
124
124
  - config/routes.rb
125
- - config/poedit_ruby_parser.conf
126
125
  - config/default.po
127
- - lib/gettext_simple_rails/setup_helper.rb
126
+ - config/poedit_ruby_parser.conf
127
+ - lib/gettext_simple_rails/model_inspector.rb
128
128
  - lib/gettext_simple_rails/engine.rb
129
- - lib/gettext_simple_rails/i18n_injector.rb
130
129
  - lib/gettext_simple_rails/version.rb
131
- - lib/gettext_simple_rails/model_inspector.rb
132
- - lib/gettext_simple_rails/translators/active_record_validations_translator.rb
130
+ - lib/gettext_simple_rails/setup_helper.rb
131
+ - lib/gettext_simple_rails/cache_handler.rb
132
+ - lib/gettext_simple_rails/i18n_injector.rb
133
133
  - lib/gettext_simple_rails/translators/simple_form_translator.rb
134
- - lib/gettext_simple_rails/translators/globalize_translator.rb
134
+ - lib/gettext_simple_rails/translators/devise_translator.rb
135
+ - lib/gettext_simple_rails/translators/active_record_validations_translator.rb
135
136
  - lib/gettext_simple_rails/translators/active_admin_translator.rb
136
137
  - lib/gettext_simple_rails/translators/active_record_attributes_translator.rb
137
- - lib/gettext_simple_rails/translators/number_translator.rb
138
- - lib/gettext_simple_rails/translators/devise_translator.rb
139
138
  - lib/gettext_simple_rails/translators/date_translator.rb
140
- - lib/gettext_simple_rails/cache_handler.rb
139
+ - lib/gettext_simple_rails/translators/number_translator.rb
140
+ - lib/gettext_simple_rails/translators/globalize_translator.rb
141
141
  - lib/gettext_simple_rails.rb
142
142
  - lib/tasks/gettext_simple_rails_tasks.rake
143
143
  - MIT-LICENSE
144
144
  - Rakefile
145
- - spec/globalize_translator_spec.rb
146
- - spec/poedit_config_with_ruby.conf
147
- - spec/poedit_config_without_ruby.conf
148
- - spec/cache_handler_spec.rb
145
+ - spec/dummy/config/environments/test.rb
146
+ - spec/dummy/config/environments/production.rb
147
+ - spec/dummy/config/environments/development.rb
148
+ - spec/dummy/config/environment.rb
149
+ - spec/dummy/config/secrets.yml
150
+ - spec/dummy/config/application.rb
151
+ - spec/dummy/config/database.yml
152
+ - spec/dummy/config/locales/en.yml
153
+ - spec/dummy/config/locales/da.yml
154
+ - spec/dummy/config/routes.rb
155
+ - spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
156
+ - spec/dummy/config/locales_gettext/static_translation_file.json
157
+ - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
158
+ - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
159
+ - spec/dummy/config/initializers/session_store.rb
160
+ - spec/dummy/config/initializers/inflections.rb
161
+ - spec/dummy/config/initializers/mime_types.rb
162
+ - spec/dummy/config/initializers/wrap_parameters.rb
163
+ - spec/dummy/config/initializers/cookies_serializer.rb
164
+ - spec/dummy/config/initializers/backtrace_silencers.rb
165
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
166
+ - spec/dummy/config/boot.rb
167
+ - spec/dummy/bin/rake
149
168
  - spec/dummy/bin/rails
150
169
  - spec/dummy/bin/bundle
151
- - spec/dummy/bin/rake
152
- - spec/dummy/config.ru
153
- - spec/dummy/README.rdoc
154
- - spec/dummy/Rakefile
155
- - spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
156
- - spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
157
- - spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
158
- - spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
159
- - spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
160
- - spec/dummy/test/models/user_test.rb
161
- - spec/dummy/test/models/role_test.rb
170
+ - spec/dummy/log/test.log
162
171
  - spec/dummy/test/fixtures/users.yml
163
172
  - spec/dummy/test/fixtures/roles.yml
164
- - spec/dummy/public/404.html
165
- - spec/dummy/public/500.html
173
+ - spec/dummy/test/models/role_test.rb
174
+ - spec/dummy/test/models/user_test.rb
166
175
  - spec/dummy/public/422.html
176
+ - spec/dummy/public/500.html
177
+ - spec/dummy/public/404.html
167
178
  - spec/dummy/public/favicon.ico
168
- - spec/dummy/log/test.log
169
179
  - spec/dummy/db/schema.rb
180
+ - spec/dummy/db/test.sqlite3
181
+ - spec/dummy/db/migrate/20140411112622_create_roles.rb
170
182
  - spec/dummy/db/migrate/20140410170418_create_users.rb
171
183
  - spec/dummy/db/migrate/20140515092420_create_user_translations.rb
172
- - spec/dummy/db/migrate/20140411112622_create_roles.rb
173
- - spec/dummy/db/test.sqlite3
174
- - spec/dummy/app/models/user.rb
175
- - spec/dummy/app/models/role.rb
176
- - spec/dummy/app/helpers/application_helper.rb
177
- - spec/dummy/app/assets/javascripts/application.js
178
- - spec/dummy/app/assets/stylesheets/application.css
184
+ - spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
185
+ - spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
186
+ - spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
187
+ - spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
188
+ - spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
189
+ - spec/dummy/Rakefile
190
+ - spec/dummy/config.ru
179
191
  - spec/dummy/app/controllers/application_controller.rb
180
192
  - spec/dummy/app/views/layouts/application.html.erb
181
- - spec/dummy/config/routes.rb
182
- - spec/dummy/config/locales/en.yml
183
- - spec/dummy/config/locales/da.yml
184
- - spec/dummy/config/secrets.yml
185
- - spec/dummy/config/application.rb
186
- - spec/dummy/config/initializers/wrap_parameters.rb
187
- - spec/dummy/config/initializers/backtrace_silencers.rb
188
- - spec/dummy/config/initializers/filter_parameter_logging.rb
189
- - spec/dummy/config/initializers/mime_types.rb
190
- - spec/dummy/config/initializers/cookies_serializer.rb
191
- - spec/dummy/config/initializers/session_store.rb
192
- - spec/dummy/config/initializers/inflections.rb
193
- - spec/dummy/config/database.yml
194
- - spec/dummy/config/environment.rb
195
- - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
196
- - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
197
- - spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
198
- - spec/dummy/config/locales_gettext/static_translation_file.json
199
- - spec/dummy/config/boot.rb
200
- - spec/dummy/config/environments/development.rb
201
- - spec/dummy/config/environments/test.rb
202
- - spec/dummy/config/environments/production.rb
193
+ - spec/dummy/app/helpers/application_helper.rb
194
+ - spec/dummy/app/assets/stylesheets/application.css
195
+ - spec/dummy/app/assets/javascripts/application.js
196
+ - spec/dummy/app/models/role.rb
197
+ - spec/dummy/app/models/user.rb
198
+ - spec/dummy/README.rdoc
203
199
  - spec/setup_helper_spec.rb
200
+ - spec/poedit_config_without_ruby.conf
201
+ - spec/globalize_translator_spec.rb
202
+ - spec/poedit_config_with_ruby.conf
203
+ - spec/cache_handler_spec.rb
204
204
  - spec/gettext_simple_rails_spec.rb
205
205
  - spec/spec_helper.rb
206
- - spec/active_record_validations_spec.rb
207
206
  - spec/date_translator_spec.rb
207
+ - spec/active_record_validations_spec.rb
208
208
  homepage: http://www.github.com/kaspernj/gettext_simple_rails
209
209
  licenses:
210
210
  - MIT
@@ -225,71 +225,71 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.0.7
228
+ rubygems_version: 2.0.14
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Helpers for translating a Rails app with Gettext and POEdit.
232
232
  test_files:
233
- - spec/globalize_translator_spec.rb
234
- - spec/poedit_config_with_ruby.conf
235
- - spec/poedit_config_without_ruby.conf
236
- - spec/cache_handler_spec.rb
233
+ - spec/dummy/config/environments/test.rb
234
+ - spec/dummy/config/environments/production.rb
235
+ - spec/dummy/config/environments/development.rb
236
+ - spec/dummy/config/environment.rb
237
+ - spec/dummy/config/secrets.yml
238
+ - spec/dummy/config/application.rb
239
+ - spec/dummy/config/database.yml
240
+ - spec/dummy/config/locales/en.yml
241
+ - spec/dummy/config/locales/da.yml
242
+ - spec/dummy/config/routes.rb
243
+ - spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
244
+ - spec/dummy/config/locales_gettext/static_translation_file.json
245
+ - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
246
+ - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
247
+ - spec/dummy/config/initializers/session_store.rb
248
+ - spec/dummy/config/initializers/inflections.rb
249
+ - spec/dummy/config/initializers/mime_types.rb
250
+ - spec/dummy/config/initializers/wrap_parameters.rb
251
+ - spec/dummy/config/initializers/cookies_serializer.rb
252
+ - spec/dummy/config/initializers/backtrace_silencers.rb
253
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
254
+ - spec/dummy/config/boot.rb
255
+ - spec/dummy/bin/rake
237
256
  - spec/dummy/bin/rails
238
257
  - spec/dummy/bin/bundle
239
- - spec/dummy/bin/rake
240
- - spec/dummy/config.ru
241
- - spec/dummy/README.rdoc
242
- - spec/dummy/Rakefile
243
- - spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
244
- - spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
245
- - spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
246
- - spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
247
- - spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
248
- - spec/dummy/test/models/user_test.rb
249
- - spec/dummy/test/models/role_test.rb
258
+ - spec/dummy/log/test.log
250
259
  - spec/dummy/test/fixtures/users.yml
251
260
  - spec/dummy/test/fixtures/roles.yml
252
- - spec/dummy/public/404.html
253
- - spec/dummy/public/500.html
261
+ - spec/dummy/test/models/role_test.rb
262
+ - spec/dummy/test/models/user_test.rb
254
263
  - spec/dummy/public/422.html
264
+ - spec/dummy/public/500.html
265
+ - spec/dummy/public/404.html
255
266
  - spec/dummy/public/favicon.ico
256
- - spec/dummy/log/test.log
257
267
  - spec/dummy/db/schema.rb
268
+ - spec/dummy/db/test.sqlite3
269
+ - spec/dummy/db/migrate/20140411112622_create_roles.rb
258
270
  - spec/dummy/db/migrate/20140410170418_create_users.rb
259
271
  - spec/dummy/db/migrate/20140515092420_create_user_translations.rb
260
- - spec/dummy/db/migrate/20140411112622_create_roles.rb
261
- - spec/dummy/db/test.sqlite3
262
- - spec/dummy/app/models/user.rb
263
- - spec/dummy/app/models/role.rb
264
- - spec/dummy/app/helpers/application_helper.rb
265
- - spec/dummy/app/assets/javascripts/application.js
266
- - spec/dummy/app/assets/stylesheets/application.css
272
+ - spec/dummy/lib/gettext_simple_rails/date_translator_translations.rb
273
+ - spec/dummy/lib/gettext_simple_rails/number_translator_translations.rb
274
+ - spec/dummy/lib/gettext_simple_rails/active_record_validations_translator_translations.rb
275
+ - spec/dummy/lib/gettext_simple_rails/globalize_translator_translations.rb
276
+ - spec/dummy/lib/gettext_simple_rails/active_record_attributes_translator_translations.rb
277
+ - spec/dummy/Rakefile
278
+ - spec/dummy/config.ru
267
279
  - spec/dummy/app/controllers/application_controller.rb
268
280
  - spec/dummy/app/views/layouts/application.html.erb
269
- - spec/dummy/config/routes.rb
270
- - spec/dummy/config/locales/en.yml
271
- - spec/dummy/config/locales/da.yml
272
- - spec/dummy/config/secrets.yml
273
- - spec/dummy/config/application.rb
274
- - spec/dummy/config/initializers/wrap_parameters.rb
275
- - spec/dummy/config/initializers/backtrace_silencers.rb
276
- - spec/dummy/config/initializers/filter_parameter_logging.rb
277
- - spec/dummy/config/initializers/mime_types.rb
278
- - spec/dummy/config/initializers/cookies_serializer.rb
279
- - spec/dummy/config/initializers/session_store.rb
280
- - spec/dummy/config/initializers/inflections.rb
281
- - spec/dummy/config/database.yml
282
- - spec/dummy/config/environment.rb
283
- - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.po
284
- - spec/dummy/config/locales_gettext/da/LC_MESSAGES/default.mo
285
- - spec/dummy/config/locales_gettext/en/LC_MESSAGES/default.po
286
- - spec/dummy/config/locales_gettext/static_translation_file.json
287
- - spec/dummy/config/boot.rb
288
- - spec/dummy/config/environments/development.rb
289
- - spec/dummy/config/environments/test.rb
290
- - spec/dummy/config/environments/production.rb
281
+ - spec/dummy/app/helpers/application_helper.rb
282
+ - spec/dummy/app/assets/stylesheets/application.css
283
+ - spec/dummy/app/assets/javascripts/application.js
284
+ - spec/dummy/app/models/role.rb
285
+ - spec/dummy/app/models/user.rb
286
+ - spec/dummy/README.rdoc
291
287
  - spec/setup_helper_spec.rb
288
+ - spec/poedit_config_without_ruby.conf
289
+ - spec/globalize_translator_spec.rb
290
+ - spec/poedit_config_with_ruby.conf
291
+ - spec/cache_handler_spec.rb
292
292
  - spec/gettext_simple_rails_spec.rb
293
293
  - spec/spec_helper.rb
294
- - spec/active_record_validations_spec.rb
295
294
  - spec/date_translator_spec.rb
295
+ - spec/active_record_validations_spec.rb