awesome_translations 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/awesome_translations/groups_controller.rb +8 -3
  3. data/app/models/awesome_translations/translated_value.rb +32 -1
  4. data/app/models/awesome_translations/translation.rb +45 -6
  5. data/app/views/awesome_translations/groups/show.html.haml +6 -3
  6. data/lib/awesome_translations/handlers/rails_handler.rb +208 -0
  7. data/lib/awesome_translations/version.rb +1 -1
  8. data/spec/controllers/groups_controller_spec.rb +23 -0
  9. data/spec/dummy/config/locales/awesome_translations/date_time/da.yml +9 -0
  10. data/spec/dummy/config/locales/awesome_translations/date_time/de.yml +6 -0
  11. data/spec/dummy/config/locales/awesome_translations/date_time/en.yml +62 -0
  12. data/spec/dummy/config/locales/awesome_translations/number/da.yml +16 -0
  13. data/spec/dummy/config/locales/awesome_translations/number/de.yml +16 -0
  14. data/spec/dummy/config/locales/awesome_translations/number/en.yml +16 -0
  15. data/spec/dummy/log/development.log +1505 -0
  16. data/spec/dummy/log/test.log +881 -0
  17. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2p155H920Y76tD9Gj4HuvSeyKPX48gW2EeT0uJ-qDC4.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5HoGxXKxoOX3AIQe7mpvJ8HkWoGDGVITn12A-AS39bI.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6AKSuLQ7-rmru8z6X93bpAnu7f-pBhVaPqrLnlZEEr4.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6ISWS0E-NUDxPhl5eE0vGMmOPleI0-CevJF8RF2OPYU.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AdM4bSpxF-V3SVialcxcS5JaSV3t0miIFEegjuwBWlA.cache +0 -0
  22. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GDzC1chWWGmhgF3fUvOghjlCyrUvZCCVC_YH1oldtsM.cache +0 -0
  23. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/LtuKwRcTWtNm0-9U116mcMNSEOapgDhyZaj926hhVPs.cache +0 -0
  24. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/MzYsi2S393224patsQC_5aJpDwq4F97WspZCPEXC2Q0.cache +0 -0
  25. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WyLdqMqQlKkaN4Q-7OsT-01hYlq3cmhy19iZV5OI8rs.cache +1 -0
  26. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YeUs3vJiPOiW0ze9DAFqEBU8WdoE6CPE1vE4Q_rumCk.cache +0 -0
  27. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a8zRTXmGI4EOik4D8x6S1OJGcr3oKvUM9jNHim0xGio.cache +1 -0
  28. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/diUCwnrnAqP09ITWwzJqFv3pdkHx0DNdSAfRVgCl-Ho.cache +1 -0
  29. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eNBcyVIS4PNh9lfbPupF-BdIC0evfo6BlGMHxcwCYtU.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hw8AiVkuV0Jb1MqnlKOmPV7OzCf0ggO2-FpwNNDX7rA.cache +0 -0
  31. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/js_-GbuvJQ4VGhFUV6QutWkBN2J467qAxjx2Yf91Eak.cache +0 -0
  32. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kYXemjpBFknH9kzOhifClhhOaHlRaYc04eAnYvnO3VA.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7x5_coI4aGfED9cLsTL7o8vGLSX2oA61zI9K50O2a4.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/development/sprockets/v3.0/x38Hslo9uhZ5JJmEG-emEJE12q4Kdd3OdHw6je6KEjw.cache +1 -0
  35. data/spec/dummy/tmp/pids/server.pid +1 -0
  36. data/spec/models/awesome_translations/translated_value_spec.rb +4 -4
  37. data/spec/models/awesome_translations/translation_spec.rb +49 -0
  38. metadata +43 -2
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/Dev/Rails/awesome_translations/spec/dummy/app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=115752acc142eb967bc31912eab9e54ad332a0a3eb62e7f51eb562add48d9412:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/RVM/gems/ruby-2.1-head/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=32501684b3b5c9f856615d5bb25ce9d8b8c027a5c948348d55053ae05452cb08:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/RVM/gems/ruby-2.1-head/gems/jquery-rails-3.1.2/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=10431118775467c36c36a9fdcc290f42f062de0fc8949366967b99b97556011c:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/Dev/Rails/awesome_translations/spec/dummy/app/assets/stylesheets/application.css?type=text/css&id=f120aea25308630ee2bed4d01f74394362ab35e01c57990ee95ae088a5cad4ba:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/Dev/Rails/awesome_translations/spec/dummy/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=07613bd6731e070d22e0f9a51ab3fcda607ee397ba799f9943985086b616c9e5:ET
@@ -0,0 +1 @@
1
+ I"�file:///media/storage/Dev/Rails/awesome_translations/spec/dummy/app/assets/javascripts/application.js?type=application/javascript&id=1c1c258b0c3732a360691a4e9de419f3abf647fbba2c61f38198534844c489cb:ET
@@ -0,0 +1 @@
1
+ 15402
@@ -1,16 +1,16 @@
1
- require "spec_helper"
1
+ require 'spec_helper'
2
2
 
3
3
  describe AwesomeTranslations::TranslatedValue do
4
- let(:test_file_path){ "#{Dir.tmpdir}/da.yml" }
4
+ let(:test_file_path) { "#{Dir.tmpdir}/da.yml" }
5
5
 
6
- let(:translated_value){
6
+ let(:translated_value) do
7
7
  described_class.new(
8
8
  file: test_file_path,
9
9
  key: "activerecord.attributes.test_model.test",
10
10
  locale: :da,
11
11
  value: "test"
12
12
  )
13
- }
13
+ end
14
14
 
15
15
  before do
16
16
  test_translations = {
@@ -0,0 +1,49 @@
1
+ require 'spec_helper'
2
+
3
+ describe AwesomeTranslations::Translation do
4
+ let(:day_names_monday_translation) do
5
+ AwesomeTranslations::Translation.new(
6
+ dir: Rails.root.join('config', 'locales', 'awesome_translations', 'date_time'),
7
+ key: 'date.day_names[1]'
8
+ )
9
+ end
10
+
11
+ let(:am_translation) do
12
+ AwesomeTranslations::Translation.new(
13
+ dir: Rails.root.join('config', 'locales', 'awesome_translations', 'date_time'),
14
+ key: 'time.am'
15
+ )
16
+ end
17
+
18
+ it '#array_key' do
19
+ expect(day_names_monday_translation.array_key).to eq 'date.day_names'
20
+ end
21
+
22
+ it '#array_translation?' do
23
+ expect(day_names_monday_translation.array_translation?).to eq true
24
+ end
25
+
26
+ it '#array_no' do
27
+ expect(day_names_monday_translation.array_no).to eq 1
28
+ end
29
+
30
+ describe '#value' do
31
+ it 'returns correct value when it is an array translation' do
32
+ expect(day_names_monday_translation.value(locale: 'en')).to eq 'Monday'
33
+ end
34
+
35
+ it 'returns correct value for normal translations' do
36
+ expect(am_translation.value(locale: 'en')).to eq 'am'
37
+ end
38
+ end
39
+
40
+ describe '#value_for?' do
41
+ it 'returns correct value when it is an array translation' do
42
+ expect(day_names_monday_translation.value_for?('en')).to eq true
43
+ end
44
+
45
+ it 'returns correct value for normal translations' do
46
+ expect(am_translation.value_for?('en')).to eq true
47
+ end
48
+ end
49
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_translations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-08 00:00:00.000000000 Z
11
+ date: 2015-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -239,6 +239,7 @@ files:
239
239
  - lib/awesome_translations/handlers/global_handler.rb
240
240
  - lib/awesome_translations/handlers/library_handler.rb
241
241
  - lib/awesome_translations/handlers/model_handler.rb
242
+ - lib/awesome_translations/handlers/rails_handler.rb
242
243
  - lib/awesome_translations/handlers/validations_handler.rb
243
244
  - lib/awesome_translations/model_inspector.rb
244
245
  - lib/awesome_translations/model_inspector/attribute.rb
@@ -282,12 +283,18 @@ files:
282
283
  - spec/dummy/config/initializers/secret_token.rb
283
284
  - spec/dummy/config/initializers/session_store.rb
284
285
  - spec/dummy/config/initializers/wrap_parameters.rb
286
+ - spec/dummy/config/locales/awesome_translations/date_time/da.yml
287
+ - spec/dummy/config/locales/awesome_translations/date_time/de.yml
288
+ - spec/dummy/config/locales/awesome_translations/date_time/en.yml
285
289
  - spec/dummy/config/locales/awesome_translations/models/role/da.yml
286
290
  - spec/dummy/config/locales/awesome_translations/models/role/de.yml
287
291
  - spec/dummy/config/locales/awesome_translations/models/role/en.yml
288
292
  - spec/dummy/config/locales/awesome_translations/models/user/da.yml
289
293
  - spec/dummy/config/locales/awesome_translations/models/user/de.yml
290
294
  - spec/dummy/config/locales/awesome_translations/models/user/en.yml
295
+ - spec/dummy/config/locales/awesome_translations/number/da.yml
296
+ - spec/dummy/config/locales/awesome_translations/number/de.yml
297
+ - spec/dummy/config/locales/awesome_translations/number/en.yml
291
298
  - spec/dummy/config/locales/en.yml
292
299
  - spec/dummy/config/routes.rb
293
300
  - spec/dummy/db/development.sqlite3
@@ -339,9 +346,11 @@ files:
339
346
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2p155H920Y76tD9Gj4HuvSeyKPX48gW2EeT0uJ-qDC4.cache
340
347
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/4wrAyfUn-EK6EXn7W8gD4gVVVWlabjkGULZy1VWAz48.cache
341
348
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/50fOcYI8btz2Ua8cJrAGfh7uxPgsxbmCU9_ElJsZR10.cache
349
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5HoGxXKxoOX3AIQe7mpvJ8HkWoGDGVITn12A-AS39bI.cache
342
350
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5zUDnyGW8pnqn9eoHvW4fOBfVbTt9L83VTsjTN_emmo.cache
343
351
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6AKSuLQ7-rmru8z6X93bpAnu7f-pBhVaPqrLnlZEEr4.cache
344
352
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6COttfT2lr_OcQNS6FWwoe5Dckyn9GyLcG838tntSrI.cache
353
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6ISWS0E-NUDxPhl5eE0vGMmOPleI0-CevJF8RF2OPYU.cache
345
354
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7EHTFFToRZu5VrDhHFvA9gEfhiAOmIFb0DQuWcbN7jk.cache
346
355
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7QKZ7V7qzDK3EtnZ695pi2UHVib9nj_W6crYsRXdL3k.cache
347
356
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7gTxlHmDCoe0pK3toG5j6HVAgPWLlbnmsma34AAdLMU.cache
@@ -350,6 +359,7 @@ files:
350
359
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8zUJR8yWUhGZJYABZTaSKnZxRKvu9k-IHW09ioTZ7a0.cache
351
360
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9FtH8_zmw6vl-JBtl2mpWPTu1SZtJkwq7va6MsSuCK0.cache
352
361
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9iQKiA8r9gbiEbHy1D1kb0hv-tqaFT6Jyw1b4P9flos.cache
362
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AdM4bSpxF-V3SVialcxcS5JaSV3t0miIFEegjuwBWlA.cache
353
363
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Ap5o3Ju8LsP2SlQJ8q_CubJ6eGCjAvxtNiF4FaDTyn8.cache
354
364
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AwkOC2gVDWMkSj54qADI_lu4Sfz9TS2FLAl0uAnoDkk.cache
355
365
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AyNPDW3Dgg140bGx7uc2Fyehos3xkt6fL-jfJkv6-qU.cache
@@ -382,20 +392,27 @@ files:
382
392
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/TMQdzYiLouXIt5E5YfAQG0CuYeJn9z0X-uG5N0kJfm0.cache
383
393
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UMznzQq-uwbslH-8M6pmrNrruRcrHtfOwclv5rh-yVc.cache
384
394
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UpB_Ha9hbMTiPjLPu74wM2oQeFksqnwGf1o8ywDJ4Ek.cache
395
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WyLdqMqQlKkaN4Q-7OsT-01hYlq3cmhy19iZV5OI8rs.cache
385
396
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XXVgQaXIqeZePB8w3OojaKBepeay8N8Dht-pY9-BzYc.cache
397
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YeUs3vJiPOiW0ze9DAFqEBU8WdoE6CPE1vE4Q_rumCk.cache
398
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a8zRTXmGI4EOik4D8x6S1OJGcr3oKvUM9jNHim0xGio.cache
386
399
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/bq4ayPBoJ3P2twJ_AfUk_9dSy5v_LZuEeQY2Dg4bQmk.cache
387
400
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ctR7CyZiQ_H9JUQ82aXvfhPEiYw_9biQFi1t0ODt19k.cache
388
401
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dMFeGxOIVkOd4tx60u_-2_Wdao-Kg0waBf9NHDBqUAI.cache
402
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/diUCwnrnAqP09ITWwzJqFv3pdkHx0DNdSAfRVgCl-Ho.cache
389
403
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dv-t_-azYNWr2Fxh4xuYgZ5IJHOubVDYbcaFQKwW5-k.cache
390
404
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eB4rtnh6CHhj84gj2Pr06A1_zEE7R7fg1QZ0V-CBK04.cache
405
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eNBcyVIS4PNh9lfbPupF-BdIC0evfo6BlGMHxcwCYtU.cache
391
406
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/gg9k3Z7hedEOKE3TitDeSpuh19j2yNXWtGyM9JXXpIA.cache
392
407
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hA7aBF-f5PrPHDCU4_rX8RGuqSnI9NCgyCuUqdLhDrM.cache
393
408
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hZ88W4bAHtCwBVig-JsakmHNwpIfGIfixvKJ1b876Qw.cache
409
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hw8AiVkuV0Jb1MqnlKOmPV7OzCf0ggO2-FpwNNDX7rA.cache
394
410
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/i86GHirKPk5F2FgVVKH3xQvACxb6pMWe6jY8pRbqgAg.cache
395
411
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ioHTiBF-8-6CURnZ7YlpQrSyfHbnQEoAncw3Hkpc-fI.cache
396
412
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/jP9zZQjroxUOZZkI8Fu4jl7u2ksMMGKDpixzk119Zic.cache
397
413
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/js_-GbuvJQ4VGhFUV6QutWkBN2J467qAxjx2Yf91Eak.cache
398
414
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kCGpSXjVHLbwe04B7WxFFD21HfXCYpg3LC3PEky9sZI.cache
415
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kYXemjpBFknH9kzOhifClhhOaHlRaYc04eAnYvnO3VA.cache
399
416
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/lBXKiv2k-ODSn6dfiYEUn3l_EDOu0ge79iuhn-DAqZk.cache
400
417
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/lYCH7zVb6ECpax-WuyKXHfMlu2Lim5XVE8jQKgqPurY.cache
401
418
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/luNSeFt-kFkFmbWnLPI-Td9g1m6FkZOlE8AGFhB1Mbw.cache
@@ -405,6 +422,7 @@ files:
405
422
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ov3EDe0iKlpPkgh1KjahCK1OVL8uWYQ1cVNUaiGmlG0.cache
406
423
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pj7Zt9BnWoEsYKpKqDUVTbdupv2Oqe4oRmyzyzwuJas.cache
407
424
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/qeJ2RaBHZkRM-mPrW6qCLdSi-iiJFmRiTjfDbVP66uw.cache
425
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7x5_coI4aGfED9cLsTL7o8vGLSX2oA61zI9K50O2a4.cache
408
426
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tAG3ILvje5Ldk4QK_XED38PXirtc745_9jwIzmlTdkY.cache
409
427
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tIQSpYE9c-PiToBFBJOsSmd0V3AjOl72qo6jJRoc7_0.cache
410
428
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/u0jNXsg3M7MVjfjMUd35w_z7eJTwugxonLvMEwJRNXE.cache
@@ -412,6 +430,7 @@ files:
412
430
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/vg7YZAtUIKxon4DPUdCac22lnxPs0NyOjlXpbdFDgaQ.cache
413
431
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/vlWxgBVBSTI0wY3TZw7lWnop3zBCeSBsWksOmuscto8.cache
414
432
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/w2WWeg633cG8q01-uNSRUMZw3s-S1ZVq3xO-1x_6F98.cache
433
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/x38Hslo9uhZ5JJmEG-emEJE12q4Kdd3OdHw6je6KEjw.cache
415
434
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zLIiPZHKBB7dMguv8917pHsofobSuT1C_bkatR1QRPw.cache
416
435
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ziuIMdFPkGTyTbAtDx8B7YubNSIvQdzkDOVXUwo7NIE.cache
417
436
  - spec/dummy/tmp/cache/assets/test/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/application.css.scssc
@@ -529,6 +548,7 @@ files:
529
548
  - spec/dummy/tmp/cache/assets/test/sprockets/v3.0/xoSaAGdIEiGSuQOIsR7F32U5bfhjw8_daxc8TyKjldw.cache
530
549
  - spec/dummy/tmp/cache/assets/test/sprockets/v3.0/zLIiPZHKBB7dMguv8917pHsofobSuT1C_bkatR1QRPw.cache
531
550
  - spec/dummy/tmp/cache/assets/test/sprockets/v3.0/ziuIMdFPkGTyTbAtDx8B7YubNSIvQdzkDOVXUwo7NIE.cache
551
+ - spec/dummy/tmp/pids/server.pid
532
552
  - spec/factories/user.rb
533
553
  - spec/handlers/erb_handler_spec.rb
534
554
  - spec/handlers/global_handler_spec.rb
@@ -544,6 +564,7 @@ files:
544
564
  - spec/lib/object_extensions_spec.rb
545
565
  - spec/models/awesome_translations/handler_spec.rb
546
566
  - spec/models/awesome_translations/translated_value_spec.rb
567
+ - spec/models/awesome_translations/translation_spec.rb
547
568
  - spec/spec_helper.rb
548
569
  homepage: https://www.github.com/kaspernj/awesome_translations
549
570
  licenses: []
@@ -585,6 +606,7 @@ test_files:
585
606
  - spec/handlers/global_handler_spec.rb
586
607
  - spec/handlers/library_handler_spec.rb
587
608
  - spec/models/awesome_translations/translated_value_spec.rb
609
+ - spec/models/awesome_translations/translation_spec.rb
588
610
  - spec/models/awesome_translations/handler_spec.rb
589
611
  - spec/factories/user.rb
590
612
  - spec/dummy/README.rdoc
@@ -605,6 +627,7 @@ test_files:
605
627
  - spec/dummy/public/422.html
606
628
  - spec/dummy/public/404.html
607
629
  - spec/dummy/public/favicon.ico
630
+ - spec/dummy/tmp/pids/server.pid
608
631
  - spec/dummy/tmp/cache/assets/test/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/application.css.scssc
609
632
  - spec/dummy/tmp/cache/assets/test/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/layout.css.scssc
610
633
  - spec/dummy/tmp/cache/assets/test/sass/79bc6a1530be4e47bb2bf0dda4943bc0e439789f/groups.css.scssc
@@ -747,6 +770,7 @@ test_files:
747
770
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/D-3iJYFRFCszoXQb3LfIC0LafCPRp34fERWGoFHCueo.cache
748
771
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/EWfamfuyaQxRui6HTk7sy39pc-i01LRgB2rlhjjgpo4.cache
749
772
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/HxyrnSU7mRWWyTD4be5FrFnaPcu4FrWEIOFoLOb4ERg.cache
773
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/5HoGxXKxoOX3AIQe7mpvJ8HkWoGDGVITn12A-AS39bI.cache
750
774
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/luNSeFt-kFkFmbWnLPI-Td9g1m6FkZOlE8AGFhB1Mbw.cache
751
775
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/8zUJR8yWUhGZJYABZTaSKnZxRKvu9k-IHW09ioTZ7a0.cache
752
776
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/LtuKwRcTWtNm0-9U116mcMNSEOapgDhyZaj926hhVPs.cache
@@ -758,6 +782,7 @@ test_files:
758
782
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/MzYsi2S393224patsQC_5aJpDwq4F97WspZCPEXC2Q0.cache
759
783
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/FBwAuPK6BCbMbGWYxYwBMw3DoucwiFMce9YeNnwsQ0Q.cache
760
784
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6AKSuLQ7-rmru8z6X93bpAnu7f-pBhVaPqrLnlZEEr4.cache
785
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kYXemjpBFknH9kzOhifClhhOaHlRaYc04eAnYvnO3VA.cache
761
786
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/1qsmk1lf7TX1GNRePYEZoKSDWfCwA7pyv7myARLkaQk.cache
762
787
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/kCGpSXjVHLbwe04B7WxFFD21HfXCYpg3LC3PEky9sZI.cache
763
788
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/XXVgQaXIqeZePB8w3OojaKBepeay8N8Dht-pY9-BzYc.cache
@@ -779,6 +804,7 @@ test_files:
779
804
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dMFeGxOIVkOd4tx60u_-2_Wdao-Kg0waBf9NHDBqUAI.cache
780
805
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/UMznzQq-uwbslH-8M6pmrNrruRcrHtfOwclv5rh-yVc.cache
781
806
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/GDzC1chWWGmhgF3fUvOghjlCyrUvZCCVC_YH1oldtsM.cache
807
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/s7x5_coI4aGfED9cLsTL7o8vGLSX2oA61zI9K50O2a4.cache
782
808
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9FtH8_zmw6vl-JBtl2mpWPTu1SZtJkwq7va6MsSuCK0.cache
783
809
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AyNPDW3Dgg140bGx7uc2Fyehos3xkt6fL-jfJkv6-qU.cache
784
810
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/T7-ktcoZK9XVmYk74-QFlUBoFrIqfWZDYZHF9QsO1KQ.cache
@@ -798,9 +824,15 @@ test_files:
798
824
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/zLIiPZHKBB7dMguv8917pHsofobSuT1C_bkatR1QRPw.cache
799
825
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/BrDzTsxp9UnHHzHEX28hHrcLUZv2vC-CcToUdBmjgHo.cache
800
826
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/u0jNXsg3M7MVjfjMUd35w_z7eJTwugxonLvMEwJRNXE.cache
827
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/YeUs3vJiPOiW0ze9DAFqEBU8WdoE6CPE1vE4Q_rumCk.cache
801
828
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/pj7Zt9BnWoEsYKpKqDUVTbdupv2Oqe4oRmyzyzwuJas.cache
829
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/diUCwnrnAqP09ITWwzJqFv3pdkHx0DNdSAfRVgCl-Ho.cache
802
830
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/QbJd9uihGphd-h3qb5FEbRTdtdQGL_rCzK7fh3kwBFU.cache
831
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/6ISWS0E-NUDxPhl5eE0vGMmOPleI0-CevJF8RF2OPYU.cache
832
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/WyLdqMqQlKkaN4Q-7OsT-01hYlq3cmhy19iZV5OI8rs.cache
833
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/a8zRTXmGI4EOik4D8x6S1OJGcr3oKvUM9jNHim0xGio.cache
803
834
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/JU1edprYccFyRmg3oGL-MRuknvcB2_pQYTG5o63Ag8Q.cache
835
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/AdM4bSpxF-V3SVialcxcS5JaSV3t0miIFEegjuwBWlA.cache
804
836
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/Rhafj2GpRZtp-MvV8OPk2PMmp5ovrXMGbfkfJDC5rJk.cache
805
837
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7EHTFFToRZu5VrDhHFvA9gEfhiAOmIFb0DQuWcbN7jk.cache
806
838
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ctR7CyZiQ_H9JUQ82aXvfhPEiYw_9biQFi1t0ODt19k.cache
@@ -816,12 +848,15 @@ test_files:
816
848
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/w2WWeg633cG8q01-uNSRUMZw3s-S1ZVq3xO-1x_6F98.cache
817
849
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/dv-t_-azYNWr2Fxh4xuYgZ5IJHOubVDYbcaFQKwW5-k.cache
818
850
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ziuIMdFPkGTyTbAtDx8B7YubNSIvQdzkDOVXUwo7NIE.cache
851
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/x38Hslo9uhZ5JJmEG-emEJE12q4Kdd3OdHw6je6KEjw.cache
852
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/eNBcyVIS4PNh9lfbPupF-BdIC0evfo6BlGMHxcwCYtU.cache
819
853
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2S3FXevY1QIhpSWf8Q_wLVVed6OE4MwIoCWF1nNjvdw.cache
820
854
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/7QKZ7V7qzDK3EtnZ695pi2UHVib9nj_W6crYsRXdL3k.cache
821
855
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ioHTiBF-8-6CURnZ7YlpQrSyfHbnQEoAncw3Hkpc-fI.cache
822
856
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/tAG3ILvje5Ldk4QK_XED38PXirtc745_9jwIzmlTdkY.cache
823
857
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ov3EDe0iKlpPkgh1KjahCK1OVL8uWYQ1cVNUaiGmlG0.cache
824
858
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/upcnXbukMqcMbxXpDLFBr2SnYGoCqc6d5mMfrwuoVSc.cache
859
+ - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/hw8AiVkuV0Jb1MqnlKOmPV7OzCf0ggO2-FpwNNDX7rA.cache
825
860
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/IANLfG9pasfKSn3jfOtNoftMpg1xuANLJOullYmgiAs.cache
826
861
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/i86GHirKPk5F2FgVVKH3xQvACxb6pMWe6jY8pRbqgAg.cache
827
862
  - spec/dummy/tmp/cache/assets/development/sprockets/v3.0/mFbF4IvBWjgt_vwp7v7rFY1bGKbqGkGnONfS6HnsKnM.cache
@@ -858,6 +893,12 @@ test_files:
858
893
  - spec/dummy/config/application.rb
859
894
  - spec/dummy/config/environment.rb
860
895
  - spec/dummy/config/boot.rb
896
+ - spec/dummy/config/locales/awesome_translations/number/da.yml
897
+ - spec/dummy/config/locales/awesome_translations/number/de.yml
898
+ - spec/dummy/config/locales/awesome_translations/number/en.yml
899
+ - spec/dummy/config/locales/awesome_translations/date_time/da.yml
900
+ - spec/dummy/config/locales/awesome_translations/date_time/de.yml
901
+ - spec/dummy/config/locales/awesome_translations/date_time/en.yml
861
902
  - spec/dummy/config/locales/awesome_translations/models/role/da.yml
862
903
  - spec/dummy/config/locales/awesome_translations/models/role/de.yml
863
904
  - spec/dummy/config/locales/awesome_translations/models/role/en.yml