manage 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +7 -10
  3. data/app/assets/javascripts/manage/application.js +1 -2
  4. data/app/assets/stylesheets/manage/application.css.scss +1 -1
  5. data/app/controllers/manage/admin_users_controller.rb +12 -0
  6. data/app/controllers/manage/application_controller.rb +4 -10
  7. data/app/controllers/manage/resource_controller.rb +74 -0
  8. data/app/controllers/manage/sessions_controller.rb +8 -3
  9. data/app/helpers/manage/form_helper.rb +1 -1
  10. data/app/helpers/manage/resource_helper.rb +56 -0
  11. data/app/models/admin_user.rb +4 -0
  12. data/app/views/layouts/manage/_main_menu.html.slim +1 -5
  13. data/app/views/layouts/manage/sign_in.html.slim +13 -13
  14. data/app/views/manage/resource/_form.html.slim +3 -3
  15. data/app/views/manage/resource/index/_count.html.slim +6 -0
  16. data/app/views/manage/resource/index/_filters.html.slim +18 -7
  17. data/app/views/manage/resource/index/_table.html.slim +7 -5
  18. data/app/views/manage/resource/index.html.slim +3 -2
  19. data/app/views/{sessions → manage/sessions}/new.html.slim +2 -3
  20. data/config/initializers/devise.rb +247 -0
  21. data/config/initializers/session_store.rb +3 -0
  22. data/config/initializers/simple_form_foundation.rb +2 -0
  23. data/config/locales/devise.en.yml +59 -0
  24. data/config/routes.rb +6 -4
  25. data/db/migrate/20131204142720_create_admin_users.rb +24 -0
  26. data/lib/manage/engine.rb +16 -5
  27. data/lib/manage/fields/reader.rb +57 -0
  28. data/lib/manage/fields/searcher.rb +48 -0
  29. data/lib/manage/fields.rb +6 -0
  30. data/lib/manage/version.rb +1 -1
  31. data/lib/manage.rb +2 -0
  32. data/lib/tasks/manage_tasks.rake +11 -0
  33. data/lib/templates/erb/scaffold/_form.html.erb +1 -1
  34. data/spec/controllers/manage/resource_controller_spec.rb +29 -0
  35. data/spec/dummy/app/controllers/manage/posts_controller.rb +4 -0
  36. data/spec/dummy/app/models/post.rb +3 -0
  37. data/spec/dummy/app/models/user.rb +5 -0
  38. data/{test → spec}/dummy/config/application.rb +1 -0
  39. data/{test → spec}/dummy/config/database.yml +1 -1
  40. data/spec/dummy/config/routes.rb +10 -0
  41. data/spec/dummy/db/migrate/20130716083410_init_migration.rb +21 -0
  42. data/spec/dummy/db/schema.rb +53 -0
  43. data/spec/fields/reader_spec.rb +79 -0
  44. data/spec/spec_helper.rb +24 -0
  45. metadata +163 -104
  46. data/test/controllers/manage/resource_controller_test.rb +0 -9
  47. data/test/dummy/config/routes.rb +0 -4
  48. data/test/helpers/manage/resource_helper_test.rb +0 -6
  49. data/test/integration/navigation_test.rb +0 -10
  50. data/test/manage_test.rb +0 -7
  51. data/test/test_helper.rb +0 -15
  52. /data/{test → spec}/dummy/README.rdoc +0 -0
  53. /data/{test → spec}/dummy/Rakefile +0 -0
  54. /data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  55. /data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  56. /data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  57. /data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  58. /data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  59. /data/{test → spec}/dummy/bin/bundle +0 -0
  60. /data/{test → spec}/dummy/bin/rails +0 -0
  61. /data/{test → spec}/dummy/bin/rake +0 -0
  62. /data/{test → spec}/dummy/config/boot.rb +0 -0
  63. /data/{test → spec}/dummy/config/environment.rb +0 -0
  64. /data/{test → spec}/dummy/config/environments/development.rb +0 -0
  65. /data/{test → spec}/dummy/config/environments/production.rb +0 -0
  66. /data/{test → spec}/dummy/config/environments/test.rb +0 -0
  67. /data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  68. /data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  69. /data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  70. /data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  71. /data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
  72. /data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  73. /data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  74. /data/{test → spec}/dummy/config/locales/en.yml +0 -0
  75. /data/{test → spec}/dummy/config.ru +0 -0
  76. /data/{test → spec}/dummy/public/404.html +0 -0
  77. /data/{test → spec}/dummy/public/422.html +0 -0
  78. /data/{test → spec}/dummy/public/500.html +0 -0
  79. /data/{test → spec}/dummy/public/favicon.ico +0 -0
data/test/manage_test.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ManageTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, Manage
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes