basepack 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/README.md +64 -44
  4. data/app/assets/javascripts/basepack/loading_spinner.coffee.erb +2 -2
  5. data/app/controllers/basepack/base_controller.rb +22 -1
  6. data/app/views/forms/_bulk_edit.html.haml +1 -1
  7. data/app/views/forms/_export.html.haml +18 -17
  8. data/app/views/forms/_import.html.haml +2 -2
  9. data/app/views/forms/_import_configuration_csv.html.haml +10 -7
  10. data/app/views/forms/_query.html.haml +8 -8
  11. data/app/views/forms/_show.html.haml +1 -1
  12. data/app/views/forms/_show_without_blanks.html.haml +1 -1
  13. data/app/views/forms/buttons/_apply.html.haml +1 -1
  14. data/app/views/forms/buttons/_bulk_delete.html.haml +3 -3
  15. data/app/views/forms/buttons/_create.html.haml +1 -2
  16. data/app/views/forms/buttons/_delete.html.haml +1 -1
  17. data/app/views/forms/buttons/_edit.html.haml +1 -1
  18. data/app/views/forms/buttons/_export.html.haml +1 -2
  19. data/app/views/forms/buttons/_import.html.haml +1 -1
  20. data/app/views/forms/buttons/_print.html.haml +1 -1
  21. data/app/views/forms/buttons/_query.html.haml +3 -3
  22. data/app/views/forms/buttons/_submit_create.html.haml +1 -1
  23. data/app/views/forms/edit/_form_colorpicker.html.haml +4 -4
  24. data/app/views/forms/edit/_form_datetime.html.haml +4 -4
  25. data/app/views/forms/edit/_form_enumeration.html.haml +19 -20
  26. data/app/views/forms/edit/_tag_list_with_suggestions.html.haml +1 -1
  27. data/config/basepack-settings.yml +2 -1
  28. data/config/locales/cs.yml +60 -5
  29. data/config/locales/en.yml +53 -9
  30. data/config/locales/kaminari.en.yml +1 -1
  31. data/lib/basepack.rb +1 -0
  32. data/lib/basepack/engine.rb +1 -0
  33. data/lib/basepack/forms/query.rb +1 -1
  34. data/lib/basepack/import/model_dragonfly.rb +2 -2
  35. data/lib/basepack/rails_admin/fields_types/phone.rb +61 -0
  36. data/lib/basepack/version.rb +1 -1
  37. data/lib/generators/basepack/install_generator.rb +41 -24
  38. data/lib/generators/basepack/templates/import.rb +4 -1
  39. data/lib/generators/rails/scaffold_controller_generator.rb +12 -0
  40. data/spec/dummy_app/app/controllers/employee_with_destroyable_nesteds_controller.rb +3 -0
  41. data/spec/dummy_app/app/models/employee_with_destroyable_nested.rb +6 -0
  42. data/spec/dummy_app/config/routes.rb +6 -2
  43. data/spec/dummy_app/db/development.sqlite3 +0 -0
  44. data/spec/dummy_app/db/migrate/20140117153133_add_phone_to_employee.rb +5 -0
  45. data/spec/dummy_app/db/schema.rb +2 -27
  46. data/spec/dummy_app/db/test.sqlite3 +0 -0
  47. data/spec/dummy_app/log/development.log +2907 -0
  48. data/spec/dummy_app/log/test.log +16850 -0
  49. data/spec/dummy_app/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  50. data/spec/dummy_app/tmp/cache/assets/development/sprockets/6f4d8a75f9952ad791647a0c21be66d3 +0 -0
  51. data/spec/dummy_app/tmp/cache/assets/development/sprockets/93a7167bf36c621d305a9481e3d25bce +0 -0
  52. data/spec/dummy_app/tmp/cache/assets/development/sprockets/a6fad88c8628b92fa21b43b1aa76cf7d +0 -0
  53. data/spec/dummy_app/tmp/cache/assets/development/sprockets/b8a8c2faf730407b004ec269c26473d7 +0 -0
  54. data/spec/dummy_app/tmp/cache/assets/development/sprockets/cb1f853dc4682e46b8f6922910af7491 +0 -0
  55. data/spec/dummy_app/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  56. data/spec/dummy_app/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  57. data/spec/dummy_app/tmp/cache/assets/test/sprockets/0006b869e74d698c8b4e140f70f87b90 +0 -0
  58. data/spec/dummy_app/tmp/cache/assets/test/sprockets/2d71a2a9ba73844a029c993068e478d5 +0 -0
  59. data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f416db7ec3594c66c478e2c70dc5032 +0 -0
  60. data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  61. data/spec/dummy_app/tmp/cache/assets/test/sprockets/3202398591e97bce52539e961f5516c4 +0 -0
  62. data/spec/dummy_app/tmp/cache/assets/test/sprockets/6659113c653e0ca831f730df1b6b0558 +0 -0
  63. data/spec/dummy_app/tmp/cache/assets/test/sprockets/780412261881a814294a5333a4a042d2 +0 -0
  64. data/spec/dummy_app/tmp/cache/assets/test/sprockets/7af866e59b2c1fec401995dbceaf6e72 +0 -0
  65. data/spec/dummy_app/tmp/cache/assets/test/sprockets/8618734b87c2e32d68b15881891d9286 +0 -0
  66. data/spec/dummy_app/tmp/cache/assets/test/sprockets/93a7167bf36c621d305a9481e3d25bce +0 -0
  67. data/spec/dummy_app/tmp/cache/assets/test/sprockets/9b856b2df0d8b82ecd548aebe2c5268f +0 -0
  68. data/spec/dummy_app/tmp/cache/assets/test/sprockets/a6fad88c8628b92fa21b43b1aa76cf7d +0 -0
  69. data/spec/dummy_app/tmp/cache/assets/test/sprockets/c174814b8349dc263c8f65404949e933 +0 -0
  70. data/spec/dummy_app/tmp/cache/assets/test/sprockets/c81fa603414eab811f5a75f5be6fc7a0 +0 -0
  71. data/spec/dummy_app/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  72. data/spec/dummy_app/tmp/cache/assets/test/sprockets/dbc50e82415d51f2497fbc2dc1983bc2 +0 -0
  73. data/spec/dummy_app/tmp/cache/assets/test/sprockets/dcaf58e5c22740a96f5f349888c4cc6f +0 -0
  74. data/spec/dummy_app/tmp/cache/assets/test/sprockets/ed9f6df23839a0fd1983de2fcda43c5c +0 -0
  75. data/spec/dummy_app/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  76. data/spec/dummy_app/tmp/capybara/capybara-201312292242327883099760.html +127 -0
  77. data/spec/integration/basic/edit/basepack_basic_edit_spec.rb +58 -0
  78. data/spec/integration/basic/show/basepack_basic_show_spec.rb +49 -0
  79. metadata +58 -7
  80. data/lib/generators/basepack/templates/dragonfly.rb +0 -8
@@ -1,8 +0,0 @@
1
- require 'dragonfly/rails/images'
2
-
3
- Dragonfly[:images].configure do |c|
4
- c.protect_from_dos_attacks = true
5
- c.secret = 'b6c2fv78b90bukc8d32a13274af4' # random secret
6
-
7
- end
8
-