manage 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +7 -10
- data/app/assets/javascripts/manage/application.js +1 -2
- data/app/assets/stylesheets/manage/application.css.scss +1 -1
- data/app/controllers/manage/admin_users_controller.rb +12 -0
- data/app/controllers/manage/application_controller.rb +4 -10
- data/app/controllers/manage/resource_controller.rb +74 -0
- data/app/controllers/manage/sessions_controller.rb +8 -3
- data/app/helpers/manage/form_helper.rb +1 -1
- data/app/helpers/manage/resource_helper.rb +56 -0
- data/app/models/admin_user.rb +4 -0
- data/app/views/layouts/manage/_main_menu.html.slim +1 -5
- data/app/views/layouts/manage/sign_in.html.slim +13 -13
- data/app/views/manage/resource/_form.html.slim +3 -3
- data/app/views/manage/resource/index/_count.html.slim +6 -0
- data/app/views/manage/resource/index/_filters.html.slim +18 -7
- data/app/views/manage/resource/index/_table.html.slim +7 -5
- data/app/views/manage/resource/index.html.slim +3 -2
- data/app/views/{sessions → manage/sessions}/new.html.slim +2 -3
- data/config/initializers/devise.rb +247 -0
- data/config/initializers/session_store.rb +3 -0
- data/config/initializers/simple_form_foundation.rb +2 -0
- data/config/locales/devise.en.yml +59 -0
- data/config/routes.rb +6 -4
- data/db/migrate/20131204142720_create_admin_users.rb +24 -0
- data/lib/manage/engine.rb +16 -5
- data/lib/manage/fields/reader.rb +57 -0
- data/lib/manage/fields/searcher.rb +48 -0
- data/lib/manage/fields.rb +6 -0
- data/lib/manage/version.rb +1 -1
- data/lib/manage.rb +2 -0
- data/lib/tasks/manage_tasks.rake +11 -0
- data/lib/templates/erb/scaffold/_form.html.erb +1 -1
- data/spec/controllers/manage/resource_controller_spec.rb +29 -0
- data/spec/dummy/app/controllers/manage/posts_controller.rb +4 -0
- data/spec/dummy/app/models/post.rb +3 -0
- data/spec/dummy/app/models/user.rb +5 -0
- data/{test → spec}/dummy/config/application.rb +1 -0
- data/{test → spec}/dummy/config/database.yml +1 -1
- data/spec/dummy/config/routes.rb +10 -0
- data/spec/dummy/db/migrate/20130716083410_init_migration.rb +21 -0
- data/spec/dummy/db/schema.rb +53 -0
- data/spec/fields/reader_spec.rb +79 -0
- data/spec/spec_helper.rb +24 -0
- metadata +163 -104
- data/test/controllers/manage/resource_controller_test.rb +0 -9
- data/test/dummy/config/routes.rb +0 -4
- data/test/helpers/manage/resource_helper_test.rb +0 -6
- data/test/integration/navigation_test.rb +0 -10
- data/test/manage_test.rb +0 -7
- data/test/test_helper.rb +0 -15
- /data/{test → spec}/dummy/README.rdoc +0 -0
- /data/{test → spec}/dummy/Rakefile +0 -0
- /data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
- /data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- /data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- /data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- /data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
- /data/{test → spec}/dummy/bin/bundle +0 -0
- /data/{test → spec}/dummy/bin/rails +0 -0
- /data/{test → spec}/dummy/bin/rake +0 -0
- /data/{test → spec}/dummy/config/boot.rb +0 -0
- /data/{test → spec}/dummy/config/environment.rb +0 -0
- /data/{test → spec}/dummy/config/environments/development.rb +0 -0
- /data/{test → spec}/dummy/config/environments/production.rb +0 -0
- /data/{test → spec}/dummy/config/environments/test.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/secret_token.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- /data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- /data/{test → spec}/dummy/config/locales/en.yml +0 -0
- /data/{test → spec}/dummy/config.ru +0 -0
- /data/{test → spec}/dummy/public/404.html +0 -0
- /data/{test → spec}/dummy/public/422.html +0 -0
- /data/{test → spec}/dummy/public/500.html +0 -0
- /data/{test → spec}/dummy/public/favicon.ico +0 -0
data/test/manage_test.rb
DELETED
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
|
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
|