translation_center 0.0.14 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/app/assets/javascripts/translation_center/application.js +0 -1
  2. data/app/assets/stylesheets/translation_center/application.css +1 -1
  3. data/lib/tasks/translation_center.rake +8 -1
  4. data/lib/translation_center/engine.rb +2 -2
  5. data/lib/translation_center/translation_helpers.rb +5 -1
  6. data/lib/translation_center/version.rb +1 -1
  7. data/test/dummy/log/development.log +17270 -0
  8. data/test/dummy/tmp/cache/assets/C22/210/sprockets%2F517f3140647c785ea1002a8576742f84 +0 -0
  9. data/test/dummy/tmp/cache/assets/C4C/C00/sprockets%2F4849fd265508c443749c502c075a04b1 +0 -0
  10. data/test/dummy/tmp/cache/assets/CB1/FF0/sprockets%2Fe681be210b3497903bc0f72a5955785a +0 -0
  11. data/test/dummy/tmp/cache/assets/CB2/F20/sprockets%2F5aa3227a715577f9e23d7087f1b087c2 +0 -0
  12. data/test/dummy/tmp/cache/assets/CB7/E00/sprockets%2F9fa96c6b2281870857bb5109fe8121e2 +0 -0
  13. data/test/dummy/tmp/cache/assets/CB8/160/sprockets%2F4c66a7ad546d4bd56393954a9531075d +0 -0
  14. data/test/dummy/tmp/cache/assets/CD6/630/sprockets%2F5fb920bd0b789282a41c9b0d01f93560 +0 -0
  15. data/test/dummy/tmp/cache/assets/CD6/F30/sprockets%2F3d4924f68747fc1d600b4d7a0b181f20 +0 -0
  16. data/test/dummy/tmp/cache/assets/CDB/0B0/sprockets%2Fd44248d455dc32b5d0d0694193b9a3f3 +0 -0
  17. data/test/dummy/tmp/cache/assets/CE0/2B0/sprockets%2F9f924e591087e633cea041028cff44c0 +0 -0
  18. data/test/dummy/tmp/cache/assets/CEB/8C0/sprockets%2F5f46ec64022c511631597d6e749fae7e +0 -0
  19. data/test/dummy/tmp/cache/assets/CF9/890/sprockets%2F9a9e0bf32a5409f1007d4ad13381a30f +0 -0
  20. data/test/dummy/tmp/cache/assets/CFE/1B0/sprockets%2F857035385aad6d341c54bfbaa0e54350 +0 -0
  21. data/test/dummy/tmp/cache/assets/D08/640/sprockets%2F06f23dadcaa8a04986519bd71b463355 +0 -0
  22. data/test/dummy/tmp/cache/assets/D11/250/sprockets%2Fa6248a89c55416d68c31cf36ab0fd329 +0 -0
  23. data/test/dummy/tmp/cache/assets/D24/DF0/sprockets%2F8c1612c084b8d6955cb40ba0be1be011 +0 -0
  24. data/test/dummy/tmp/cache/assets/D2C/D60/sprockets%2Fc8e60f5dd6866d4bb516585b99b5e685 +0 -0
  25. data/test/dummy/tmp/cache/assets/D2F/FF0/sprockets%2F00d4ae0093a6d2ee8a2c5cf25283484b +0 -0
  26. data/test/dummy/tmp/cache/assets/D4F/CF0/sprockets%2F6eb5003021c08aa7a0fc0251d9c48abf +0 -0
  27. data/test/dummy/tmp/cache/assets/D5A/B00/sprockets%2F0b17235144ec3a20aebb084c79fc8a2f +0 -0
  28. data/test/dummy/tmp/cache/assets/D5A/C20/sprockets%2Ff38caf7fc2f5920b17e8687b76189e4e +0 -0
  29. data/test/dummy/tmp/cache/assets/D68/450/sprockets%2F4ba3dd8687049bcdd292b6b02b34a77b +0 -0
  30. data/test/dummy/tmp/cache/assets/D6C/8D0/sprockets%2Fe60dfac9e716be406d961b6a342c47b4 +0 -0
  31. data/test/dummy/tmp/cache/assets/D6E/A00/sprockets%2F0fa3735908bd70b81ecdea18839c7a2d +0 -0
  32. data/test/dummy/tmp/cache/assets/D78/D40/sprockets%2F07dc41befc8c7f688c7a3616190dd4a9 +0 -0
  33. data/test/dummy/tmp/cache/assets/D7F/E30/sprockets%2F19c9b7e2cad594a676ba976f69f413ab +0 -0
  34. data/test/dummy/tmp/cache/assets/D80/C50/sprockets%2F4dd8b889e6eff505a7cd9a12ca182695 +0 -0
  35. data/test/dummy/tmp/cache/assets/D8A/B00/sprockets%2Ffe2fc1654c59e17f2e4a6d966a88e9f4 +0 -0
  36. data/test/dummy/tmp/cache/assets/D91/C40/sprockets%2F532ea5e3ef69512c59aae9b042dba04b +0 -0
  37. data/test/dummy/tmp/cache/assets/D96/FF0/sprockets%2F28eb7bc5b8aa97cc2d0d84230f6d22e2 +0 -0
  38. data/test/dummy/tmp/cache/assets/D98/600/sprockets%2F0df44aa17b85e2b8bdb31f49c664bc90 +0 -0
  39. data/test/dummy/tmp/cache/assets/D9F/6C0/sprockets%2F78d1038a1d2d17f8ab97d4cc0eaf2f49 +0 -0
  40. data/test/dummy/tmp/cache/assets/DAA/730/sprockets%2F2c3ea744dd981c4bd5e7f92189db6bd4 +0 -0
  41. data/test/dummy/tmp/cache/assets/DAC/400/sprockets%2Feaf0cd409799f44893175de3ecb1ebb8 +0 -0
  42. data/test/dummy/tmp/cache/assets/DB8/F00/sprockets%2Fc02eadc9ba9486e68ac03ad04e32c2a0 +0 -0
  43. data/test/dummy/tmp/cache/assets/DBB/A10/sprockets%2F2a1df98654a032ac8aacdc27c09c0c2f +0 -0
  44. data/test/dummy/tmp/cache/assets/DC6/6E0/sprockets%2F2a4a6c3bdcb24603e3fe9ebc5853d4e4 +0 -0
  45. data/test/dummy/tmp/cache/assets/DC8/C80/sprockets%2Ff08a39ccdb6b1e90805daf4fe3f03a46 +0 -0
  46. data/test/dummy/tmp/cache/assets/DD6/A60/sprockets%2F687f1deaec6ab3c2199cdbc277f066c7 +0 -0
  47. data/test/dummy/tmp/cache/assets/DD6/D30/sprockets%2F1de67a4ee9e74a3e4a2b45ece3a992e6 +0 -0
  48. data/test/dummy/tmp/cache/assets/DD7/C70/sprockets%2Fd37de68068bc2c3c1fb84b84d6e4ef2e +0 -0
  49. data/test/dummy/tmp/cache/assets/DF8/CA0/sprockets%2Fa39bef7a4a189a4e3b0e3fcc86ee34a0 +0 -0
  50. data/test/dummy/tmp/cache/assets/DFF/FE0/sprockets%2Fbd9631d00f8ec2dfa92346ff7db5afc3 +0 -0
  51. data/test/dummy/tmp/cache/assets/E18/900/sprockets%2Fa5a79cf1bfc989f54cd6f1a85dcc59f7 +0 -0
  52. data/test/dummy/tmp/cache/assets/E82/330/sprockets%2Fff78debea2ae7bb8be1c345cbb361af0 +0 -0
  53. metadata +85 -3
@@ -13,7 +13,6 @@
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
15
  //= require jquery-ui
16
- //= require bootstrap-datepicker
17
16
  //= require_tree .
18
17
 
19
18
 
@@ -9,7 +9,7 @@
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
11
  *= require_self
12
- *= require bootstrap-datepicker
12
+ *= require jquery.ui.all
13
13
  *= require_tree .
14
14
  */
15
15
 
@@ -30,7 +30,14 @@ namespace :translation_center do
30
30
  end
31
31
 
32
32
  # prepare translator by creating the translator if he doesn't exist
33
- translator = TranslationCenter.prepare_translator
33
+ translator = TranslationCenter.prepare_translator
34
+
35
+ # if couldn't create translator then print error msg and quit
36
+ if translator.blank?
37
+ puts "ERROR: Unable to create default translator with #{TranslationCenter::CONFIG['identifier_type']} = #{TranslationCenter::CONFIG['yaml_translator_identifier']}"
38
+ puts "Create this user manually and run the rake again"
39
+ next
40
+ end
34
41
 
35
42
  # Make sure we've loaded the translations
36
43
  I18n.backend.send(:init_translations)
@@ -1,4 +1,5 @@
1
- require "jquery-rails"
1
+ require 'jquery-rails'
2
+ require 'jquery-ui-rails'
2
3
  require 'haml'
3
4
  require 'haml-rails'
4
5
  require 'acts_as_votable'
@@ -7,7 +8,6 @@ require 'will_paginate'
7
8
  require 'meta_search'
8
9
  require 'font-awesome-rails'
9
10
  require 'audited-activerecord'
10
- require 'bootstrap-datepicker-rails'
11
11
 
12
12
  module TranslationCenter
13
13
  class Engine < ::Rails::Engine
@@ -14,7 +14,11 @@ module TranslationCenter
14
14
  # if translator doesn't exist then create him
15
15
  if translator.blank?
16
16
  translator = TranslationCenter::Translation.translator.new(TranslationCenter::CONFIG['identifier_type'] => TranslationCenter::CONFIG['yaml_translator_identifier'])
17
- translator.save(validate: false)
17
+ begin
18
+ translator.save(validate: false)
19
+ rescue
20
+ translator = nil
21
+ end
18
22
  end
19
23
  translator
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module TranslationCenter
2
- VERSION = "0.0.14"
2
+ VERSION = "1.0.0"
3
3
  end