activeadmin 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +15 -1
- data/Gemfile +41 -11
- data/LICENSE +5 -0
- data/README.rdoc +202 -87
- data/Rakefile +51 -15
- data/activeadmin.gemspec +310 -131
- data/cucumber.yml +1 -0
- data/features/comments/commenting.feature +81 -0
- data/features/comments/viewing_index.feature +19 -0
- data/features/edit_page.feature +77 -0
- data/features/first_boot.feature +16 -0
- data/features/global_navigation.feature +30 -0
- data/features/index/formats.feature +10 -0
- data/features/index/index_as_block.feature +15 -0
- data/features/index/index_as_blog.feature +50 -0
- data/features/index/index_as_grid.feature +45 -0
- data/features/index/index_as_table.feature +79 -0
- data/features/index/index_scopes.feature +52 -0
- data/features/index/pagination.feature +23 -0
- data/features/new_page.feature +75 -0
- data/features/registering_assets.feature +35 -0
- data/features/registering_resources.feature +33 -0
- data/features/show/default_content.feature +43 -0
- data/features/show/page_title.feature +33 -0
- data/features/sidebar_sections.feature +128 -0
- data/features/specifying_actions.feature +16 -0
- data/features/step_definitions/action_item_steps.rb +7 -0
- data/features/step_definitions/additional_web_steps.rb +67 -0
- data/features/step_definitions/asset_steps.rb +7 -0
- data/features/step_definitions/attribute_steps.rb +15 -0
- data/features/step_definitions/comment_steps.rb +8 -0
- data/features/step_definitions/configuration_steps.rb +31 -0
- data/features/step_definitions/factory_steps.rb +28 -0
- data/features/step_definitions/flash_steps.rb +3 -0
- data/features/step_definitions/format_steps.rb +7 -0
- data/features/step_definitions/index_scope_steps.rb +20 -0
- data/features/step_definitions/pagination_steps.rb +8 -0
- data/features/step_definitions/sidebar_steps.rb +11 -0
- data/features/step_definitions/tab_steps.rb +3 -0
- data/features/step_definitions/user_steps.rb +20 -0
- data/features/step_definitions/web_steps.rb +219 -0
- data/features/support/env.rb +88 -0
- data/features/support/paths.rb +48 -0
- data/features/users/logging_in.feature +34 -0
- data/features/users/logging_out.feature +13 -0
- data/lib/active_admin.rb +155 -79
- data/lib/active_admin/abstract_view_factory.rb +95 -0
- data/lib/active_admin/action_items.rb +4 -15
- data/lib/active_admin/arbre.rb +23 -0
- data/lib/active_admin/arbre/attributes.rb +20 -0
- data/lib/active_admin/arbre/class_list.rb +28 -0
- data/lib/active_admin/arbre/collection.rb +27 -0
- data/lib/active_admin/arbre/context.rb +8 -0
- data/lib/active_admin/arbre/core_extensions.rb +5 -0
- data/lib/active_admin/arbre/document.rb +42 -0
- data/lib/active_admin/arbre/element.rb +151 -0
- data/lib/active_admin/arbre/html.rb +84 -0
- data/lib/active_admin/arbre/html5_elements.rb +47 -0
- data/lib/active_admin/arbre/tag.rb +129 -0
- data/lib/active_admin/arbre/text_node.rb +35 -0
- data/lib/active_admin/callbacks.rb +87 -0
- data/lib/active_admin/comments.rb +73 -0
- data/lib/active_admin/comments/comment.rb +15 -0
- data/lib/active_admin/comments/configuration.rb +16 -0
- data/lib/active_admin/comments/namespace_helper.rb +14 -0
- data/lib/active_admin/comments/resource_helper.rb +17 -0
- data/lib/active_admin/comments/show_page_helper.rb +23 -0
- data/lib/active_admin/comments/views.rb +3 -0
- data/lib/active_admin/comments/views/active_admin_comment.rb +0 -0
- data/lib/active_admin/comments/views/active_admin_comments.rb +82 -0
- data/lib/active_admin/component.rb +22 -0
- data/lib/active_admin/controller_action.rb +12 -0
- data/lib/active_admin/dashboards.rb +0 -2
- data/lib/active_admin/dashboards/dashboard_controller.rb +10 -5
- data/lib/active_admin/dashboards/section.rb +5 -14
- data/lib/active_admin/devise.rb +43 -0
- data/lib/active_admin/dsl.rb +202 -0
- data/lib/active_admin/event.rb +31 -0
- data/lib/active_admin/form_builder.rb +68 -50
- data/lib/active_admin/iconic.rb +51 -0
- data/lib/active_admin/iconic/icons.rb +142 -0
- data/lib/active_admin/namespace.rb +102 -16
- data/lib/active_admin/renderer.rb +18 -3
- data/lib/active_admin/resource.rb +110 -9
- data/lib/active_admin/resource/belongs_to.rb +31 -0
- data/lib/active_admin/resource_controller.rb +45 -260
- data/lib/active_admin/resource_controller/action_builder.rb +21 -0
- data/lib/active_admin/resource_controller/actions.rb +53 -0
- data/lib/active_admin/resource_controller/callbacks.rb +47 -0
- data/lib/active_admin/resource_controller/collection.rb +142 -0
- data/lib/active_admin/resource_controller/filters.rb +58 -0
- data/lib/active_admin/resource_controller/form.rb +42 -0
- data/lib/active_admin/resource_controller/menu.rb +29 -0
- data/lib/active_admin/resource_controller/page_configurations.rb +53 -0
- data/lib/active_admin/resource_controller/scoping.rb +36 -0
- data/lib/active_admin/resource_controller/sidebars.rb +38 -0
- data/lib/active_admin/scope.rb +17 -0
- data/lib/active_admin/sidebar.rb +8 -47
- data/lib/active_admin/stylesheets/active_admin.scss +418 -0
- data/lib/active_admin/stylesheets/active_admin/_comments.scss +40 -0
- data/lib/active_admin/stylesheets/active_admin/_flash_messages.scss +13 -0
- data/lib/active_admin/stylesheets/active_admin/_forms.scss +168 -0
- data/lib/active_admin/stylesheets/active_admin/_header.scss +108 -0
- data/lib/active_admin/stylesheets/active_admin/_typography.scss +100 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_all.scss +8 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_buttons.scss +27 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_gradients.scss +21 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_icons.scss +20 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_reset.scss +165 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_rounded.scss +43 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_sections.scss +27 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_shadows.scss +21 -0
- data/lib/active_admin/stylesheets/active_admin/mixins/_variables.scss +12 -0
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_factory.rb +21 -0
- data/lib/active_admin/view_helpers.rb +17 -100
- data/lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb +7 -0
- data/lib/active_admin/view_helpers/auto_link_helper.rb +41 -0
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +29 -0
- data/lib/active_admin/view_helpers/display_helper.rb +38 -0
- data/lib/active_admin/view_helpers/filter_form_helper.rb +174 -0
- data/lib/active_admin/view_helpers/form_helper.rb +12 -0
- data/lib/active_admin/view_helpers/icon_helper.rb +12 -0
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +26 -0
- data/lib/active_admin/view_helpers/renderer_helper.rb +29 -0
- data/lib/active_admin/view_helpers/sidebar_helper.rb +15 -0
- data/lib/active_admin/view_helpers/status_tag_helper.rb +13 -0
- data/lib/active_admin/view_helpers/table_helper.rb +12 -0
- data/lib/active_admin/view_helpers/title_helper.rb +11 -0
- data/lib/active_admin/view_helpers/view_factory_helper.rb +11 -0
- data/lib/active_admin/views.rb +8 -0
- data/lib/active_admin/views/action_items.rb +17 -0
- data/lib/active_admin/views/components/attributes_table.rb +66 -0
- data/lib/active_admin/views/components/columns.rb +49 -0
- data/lib/active_admin/views/components/paginated_collection.rb +74 -0
- data/lib/active_admin/views/components/panel.rb +26 -0
- data/lib/active_admin/views/components/scopes.rb +64 -0
- data/lib/active_admin/views/components/sidebar_section.rb +30 -0
- data/lib/active_admin/views/components/table_for.rb +174 -0
- data/lib/active_admin/views/dashboard_section_renderer.rb +19 -0
- data/lib/active_admin/views/header_renderer.rb +37 -0
- data/lib/active_admin/views/index_as_block.rb +24 -0
- data/lib/active_admin/views/index_as_blog.rb +89 -0
- data/lib/active_admin/views/index_as_grid.rb +49 -0
- data/lib/active_admin/views/index_as_table.rb +73 -0
- data/lib/active_admin/views/pages/base.rb +138 -0
- data/lib/active_admin/views/pages/dashboard.rb +61 -0
- data/lib/active_admin/views/pages/edit.rb +27 -0
- data/lib/active_admin/views/pages/index.rb +64 -0
- data/lib/active_admin/views/pages/new.rb +27 -0
- data/lib/active_admin/views/pages/show.rb +56 -0
- data/lib/active_admin/views/tabs_renderer.rb +52 -0
- data/lib/active_admin/views/templates/active_admin/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/lib/active_admin/views/templates/active_admin/devise/mailer/unlock_instructions.html.erb +7 -0
- data/lib/active_admin/views/templates/active_admin/devise/passwords/edit.html.erb +16 -0
- data/lib/active_admin/views/templates/active_admin/devise/passwords/new.html.erb +14 -0
- data/lib/active_admin/views/templates/active_admin/devise/sessions/new.html.erb +18 -0
- data/lib/active_admin/views/templates/active_admin/devise/shared/_links.erb +20 -0
- data/lib/active_admin/views/templates/active_admin/devise/unlocks/new.html.erb +12 -0
- data/lib/active_admin/views/templates/active_admin_dashboard/index.html.arb +1 -0
- data/lib/active_admin/views/templates/active_admin_default/edit.html.arb +1 -0
- data/lib/active_admin/views/{active_admin_default → templates/active_admin_default}/index.csv.erb +0 -0
- data/lib/active_admin/views/templates/active_admin_default/index.html.arb +1 -0
- data/lib/active_admin/views/templates/active_admin_default/new.html.arb +1 -0
- data/lib/active_admin/views/templates/active_admin_default/show.html.arb +1 -0
- data/lib/active_admin/views/{layouts → templates/layouts}/active_admin.html.erb +3 -4
- data/lib/active_admin/views/templates/layouts/active_admin_logged_out.html.erb +31 -0
- data/lib/generators/active_admin/devise/devise_generator.rb +45 -0
- data/lib/generators/active_admin/install/install_generator.rb +18 -3
- data/lib/generators/active_admin/install/templates/active_admin.js +41 -0
- data/lib/generators/active_admin/install/templates/{active_admin.rb → active_admin.rb.erb} +33 -3
- data/lib/generators/active_admin/install/templates/active_admin_vendor.js +1 -1
- data/lib/generators/active_admin/install/templates/dashboards.rb +3 -4
- data/lib/generators/active_admin/install/templates/images/admin_notes_icon.png +0 -0
- data/lib/generators/active_admin/install/templates/images/loading.gif +0 -0
- data/lib/generators/active_admin/install/templates/images/nested_menu_arrow.gif +0 -0
- data/lib/generators/active_admin/install/templates/images/nested_menu_arrow_dark.gif +0 -0
- data/lib/generators/active_admin/install/templates/images/orderable.png +0 -0
- data/lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb +16 -0
- data/lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb +25 -0
- data/spec/integration/belongs_to_spec.rb +42 -0
- data/spec/integration/index_as_table_spec.rb +0 -119
- data/spec/integration/layout_spec.rb +3 -37
- data/spec/spec_helper.rb +89 -50
- data/spec/support/integration_example_group.rb +37 -0
- data/spec/support/rails_template.rb +21 -9
- data/spec/support/rails_template_with_data.rb +32 -0
- data/spec/support/templates/cucumber.rb +28 -0
- data/spec/unit/abstract_view_factory_spec.rb +79 -0
- data/spec/unit/action_builder_spec.rb +19 -7
- data/spec/unit/action_items_spec.rb +16 -30
- data/spec/unit/active_admin_spec.rb +10 -22
- data/spec/unit/arbre/html/element_finder_methods_spec.rb +54 -0
- data/spec/unit/arbre/html/element_spec.rb +224 -0
- data/spec/unit/arbre/html/tag_attributes_spec.rb +61 -0
- data/spec/unit/arbre/html/tag_spec.rb +63 -0
- data/spec/unit/arbre/html_spec.rb +185 -0
- data/spec/unit/auto_link_spec.rb +38 -0
- data/spec/unit/belongs_to_spec.rb +44 -0
- data/spec/unit/breadcrumbs_spec.rb +110 -0
- data/spec/unit/comments_spec.rb +53 -0
- data/spec/unit/component_spec.rb +18 -0
- data/spec/unit/components/attributes_table_spec.rb +100 -0
- data/spec/unit/components/columns_spec.rb +75 -0
- data/spec/unit/components/panel_spec.rb +31 -0
- data/spec/unit/components/sidebar_section_spec.rb +37 -0
- data/spec/unit/components/table_for_spec.rb +130 -0
- data/spec/unit/dashboard_controller_spec.rb +26 -0
- data/spec/unit/dashboard_section_spec.rb +10 -17
- data/spec/unit/display_name_spec.rb +29 -0
- data/spec/unit/event_spec.rb +41 -0
- data/spec/unit/filter_form_builder_spec.rb +99 -77
- data/spec/unit/form_builder_spec.rb +69 -69
- data/spec/unit/namespace_spec.rb +61 -3
- data/spec/unit/pretty_format_spec.rb +35 -0
- data/spec/unit/registration_spec.rb +40 -1
- data/spec/unit/renderer_spec.rb +8 -0
- data/spec/unit/resource_controller_spec.rb +105 -6
- data/spec/unit/resource_spec.rb +78 -11
- data/spec/unit/routing_spec.rb +82 -6
- data/spec/unit/scope_spec.rb +31 -0
- data/spec/unit/tabs_renderer_spec.rb +24 -2
- data/spec/unit/view_factory_spec.rb +16 -0
- metadata +268 -82
- data/.gitignore +0 -25
- data/active_admin.gemspec +0 -22
- data/lib/active_admin/action_builder.rb +0 -60
- data/lib/active_admin/breadcrumbs.rb +0 -26
- data/lib/active_admin/dashboards/renderer.rb +0 -45
- data/lib/active_admin/dashboards/section_renderer.rb +0 -28
- data/lib/active_admin/filters.rb +0 -189
- data/lib/active_admin/pages.rb +0 -11
- data/lib/active_admin/pages/base.rb +0 -92
- data/lib/active_admin/pages/edit.rb +0 -21
- data/lib/active_admin/pages/index.rb +0 -58
- data/lib/active_admin/pages/index/blog.rb +0 -65
- data/lib/active_admin/pages/index/table.rb +0 -48
- data/lib/active_admin/pages/index/thumbnails.rb +0 -40
- data/lib/active_admin/pages/new.rb +0 -21
- data/lib/active_admin/pages/show.rb +0 -54
- data/lib/active_admin/table_builder.rb +0 -162
- data/lib/active_admin/tabs_renderer.rb +0 -39
- data/lib/active_admin/views/active_admin_dashboard/index.html.erb +0 -1
- data/lib/active_admin/views/active_admin_default/edit.html.erb +0 -1
- data/lib/active_admin/views/active_admin_default/index.html.erb +0 -1
- data/lib/active_admin/views/active_admin_default/new.html.erb +0 -1
- data/lib/active_admin/views/active_admin_default/show.html.erb +0 -1
- data/lib/generators/active_admin/install/templates/active_admin.css +0 -325
- data/lib/generators/active_admin/install/templates/images/orderable.gif +0 -0
- data/spec/integration/index_as_blog_spec.rb +0 -65
- data/spec/integration/index_as_thumbnails_spec.rb +0 -43
- data/spec/integration/new_view_spec.rb +0 -52
- data/spec/integration/show_view_spec.rb +0 -91
- data/spec/unit/sidebar_spec.rb +0 -96
- data/spec/unit/table_builder_spec.rb +0 -162
data/spec/unit/routing_spec.rb
CHANGED
@@ -1,12 +1,88 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
2
|
|
3
3
|
describe ActiveAdmin, "Routing" do
|
4
|
-
|
5
|
-
subject { Admin::PostsController.new }
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
before :each do
|
6
|
+
load_defaults!
|
7
|
+
reload_routes!
|
8
|
+
end
|
9
|
+
|
10
|
+
include Rails.application.routes.url_helpers
|
11
|
+
|
12
|
+
describe "dashboard" do
|
13
|
+
context "when in admin namespace" do
|
14
|
+
it "should route the admin dashboard" do
|
15
|
+
admin_dashboard_path.should == "/admin"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
context "when in root namespace" do
|
19
|
+
before(:each) do
|
20
|
+
load_resources { ActiveAdmin.register(Post, :namespace => false) }
|
21
|
+
end
|
22
|
+
it "should route the root dashboard" do
|
23
|
+
dashboard_path.should == "/"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "standard resources" do
|
29
|
+
context "when in admin namespace" do
|
30
|
+
it "should route the index path" do
|
31
|
+
admin_posts_path.should == "/admin/posts"
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should route the show path" do
|
35
|
+
admin_post_path(1).should == "/admin/posts/1"
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should route the new path" do
|
39
|
+
new_admin_post_path.should == "/admin/posts/new"
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should route the edit path" do
|
43
|
+
edit_admin_post_path(1).should == "/admin/posts/1/edit"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context "when in root namespace" do
|
48
|
+
before(:each) do
|
49
|
+
load_resources { ActiveAdmin.register(Post, :namespace => false) }
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should route the index path" do
|
53
|
+
posts_path.should == "/posts"
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should route the show path" do
|
57
|
+
post_path(1).should == "/posts/1"
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should route the new path" do
|
61
|
+
new_post_path.should == "/posts/new"
|
62
|
+
end
|
63
|
+
|
64
|
+
it "should route the edit path" do
|
65
|
+
edit_post_path(1).should == "/posts/1/edit"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe "belongs to resource" do
|
71
|
+
it "should route the nested index path" do
|
72
|
+
admin_user_posts_path(1).should == "/admin/users/1/posts"
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should route the nested show path" do
|
76
|
+
admin_user_post_path(1,2).should == "/admin/users/1/posts/2"
|
77
|
+
end
|
78
|
+
|
79
|
+
it "should route the nested new path" do
|
80
|
+
new_admin_user_post_path(1).should == "/admin/users/1/posts/new"
|
81
|
+
end
|
82
|
+
|
83
|
+
it "should route the nested edit path" do
|
84
|
+
edit_admin_user_post_path(1,2).should == "/admin/users/1/posts/2/edit"
|
85
|
+
end
|
86
|
+
end
|
11
87
|
|
12
88
|
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe ActiveAdmin::Scope do
|
4
|
+
|
5
|
+
describe "creating a scope" do
|
6
|
+
subject{ scope }
|
7
|
+
|
8
|
+
context "when just a scope method" do
|
9
|
+
let(:scope) { ActiveAdmin::Scope.new :published }
|
10
|
+
its(:name) { should == "Published"}
|
11
|
+
its(:id) { should == "published"}
|
12
|
+
its(:scope_method) { should == :published }
|
13
|
+
end
|
14
|
+
|
15
|
+
context "when a name and scope method" do
|
16
|
+
let(:scope) { ActiveAdmin::Scope.new "My Scope", :scope_method }
|
17
|
+
its(:name) { should == "My Scope"}
|
18
|
+
its(:id) { should == "my_scope"}
|
19
|
+
its(:scope_method) { should == :scope_method }
|
20
|
+
end
|
21
|
+
|
22
|
+
context "when a name and scope block" do
|
23
|
+
let(:scope) { ActiveAdmin::Scope.new("My Scope"){|s| s } }
|
24
|
+
its(:name) { should == "My Scope"}
|
25
|
+
its(:id) { should == "my_scope"}
|
26
|
+
its(:scope_method) { should == nil }
|
27
|
+
its(:scope_block) { should be_a(Proc)}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../spec_helper'
|
2
2
|
|
3
|
-
describe ActiveAdmin::TabsRenderer do
|
3
|
+
describe ActiveAdmin::Views::TabsRenderer do
|
4
4
|
|
5
|
-
let(:renderer){ ActiveAdmin::TabsRenderer.new(mock_action_view) }
|
5
|
+
let(:renderer){ ActiveAdmin::Views::TabsRenderer.new(mock_action_view) }
|
6
6
|
let(:menu){ ActiveAdmin::Menu.new }
|
7
7
|
let(:html){ renderer.to_html(menu) }
|
8
8
|
|
@@ -10,6 +10,9 @@ describe ActiveAdmin::TabsRenderer do
|
|
10
10
|
before do
|
11
11
|
menu.add "Blog Posts", "/admin/blog-posts"
|
12
12
|
menu.add "Reports", "/admin/reports"
|
13
|
+
reports = menu["Reports"]
|
14
|
+
reports.add "A Sub Reports", "/admin/a-sub-reports"
|
15
|
+
reports.add "B Sub Reports", "/admin/b-sub-reports"
|
13
16
|
end
|
14
17
|
|
15
18
|
it "should generate a ul" do
|
@@ -24,11 +27,30 @@ describe ActiveAdmin::TabsRenderer do
|
|
24
27
|
html.should have_tag("a", "Blog Posts", :attributes => { :href => '/admin/blog-posts' })
|
25
28
|
end
|
26
29
|
|
30
|
+
it "should generate a " do
|
31
|
+
html.should have_tag("a", "Blog Posts", :attributes => { :href => '/admin/blog-posts' })
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should generate a nested list for children" do
|
35
|
+
html.should have_tag("ul", :parent => { :tag => "li" })
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should generate a nested list with li for each child" do
|
39
|
+
html.should have_tag("li", :parent => { :tag => "ul" }, :attributes => {:id => "a_sub_reports"})
|
40
|
+
html.should have_tag("li", :parent => { :tag => "ul" }, :attributes => {:id => "b_sub_reports"})
|
41
|
+
end
|
42
|
+
|
27
43
|
describe "marking current item" do
|
28
44
|
it "should add the 'current' class to the li" do
|
29
45
|
renderer.instance_variable_set :@current_tab, "Blog Posts"
|
30
46
|
html.should have_tag("li", :attributes => { :class => "current" })
|
31
47
|
end
|
48
|
+
|
49
|
+
it "should add the 'current' and 'has_nested' classes to the li and 'current' to the sub li" do
|
50
|
+
renderer.instance_variable_set :@current_tab, "Reports/A Sub Reports"
|
51
|
+
html.should have_tag("li", :attributes => { :id => "reports", :class => "current has_nested" })
|
52
|
+
html.should have_tag("li", :attributes => { :id => "a_sub_reports", :class => "current" })
|
53
|
+
end
|
32
54
|
end
|
33
55
|
|
34
56
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
def it_should_have_view(key, value)
|
4
|
+
it "should have #{value} for view key '#{key}'" do
|
5
|
+
subject.send(key).should == value
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
describe ActiveAdmin::ViewFactory do
|
10
|
+
|
11
|
+
it_should_have_view :global_navigation, ActiveAdmin::Views::TabsRenderer
|
12
|
+
it_should_have_view :action_items, ActiveAdmin::Views::ActionItems
|
13
|
+
it_should_have_view :header, ActiveAdmin::Views::HeaderRenderer
|
14
|
+
it_should_have_view :dashboard_page, ActiveAdmin::Views::Pages::Dashboard
|
15
|
+
|
16
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
version: 0.1.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.2.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Greg Bell
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
18
|
-
default_executable:
|
13
|
+
date: 2011-05-12 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: rails
|
@@ -24,73 +19,98 @@ dependencies:
|
|
24
19
|
requirements:
|
25
20
|
- - ">="
|
26
21
|
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 3
|
29
|
-
- 0
|
30
|
-
- 0
|
31
22
|
version: 3.0.0
|
32
23
|
type: :runtime
|
33
24
|
prerelease: false
|
34
25
|
version_requirements: *id001
|
35
26
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
27
|
+
name: meta_search
|
37
28
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
29
|
none: false
|
39
30
|
requirements:
|
40
31
|
- - ">="
|
41
32
|
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 1
|
44
|
-
- 1
|
45
|
-
- 0
|
46
|
-
- beta
|
47
|
-
version: 1.1.0.beta
|
33
|
+
version: 0.9.2
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: *id002
|
51
37
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
38
|
+
name: devise
|
53
39
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
40
|
none: false
|
55
41
|
requirements:
|
56
42
|
- - ">="
|
57
43
|
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
- 3
|
60
|
-
- 0
|
61
|
-
- pre2
|
62
|
-
version: 3.0.pre2
|
44
|
+
version: 1.1.2
|
63
45
|
type: :runtime
|
64
46
|
prerelease: false
|
65
47
|
version_requirements: *id003
|
66
48
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
49
|
+
name: formtastic
|
68
50
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
51
|
none: false
|
70
52
|
requirements:
|
71
53
|
- - ">="
|
72
54
|
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
- 0
|
75
|
-
- 9
|
76
|
-
- 2
|
77
|
-
version: 0.9.2
|
55
|
+
version: 1.1.0
|
78
56
|
type: :runtime
|
79
57
|
prerelease: false
|
80
58
|
version_requirements: *id004
|
81
59
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
60
|
+
name: will_paginate
|
83
61
|
requirement: &id005 !ruby/object:Gem::Requirement
|
84
62
|
none: false
|
85
63
|
requirements:
|
86
64
|
- - ">="
|
87
65
|
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
- 0
|
90
|
-
version: "0"
|
66
|
+
version: 3.0.pre2
|
91
67
|
type: :runtime
|
92
68
|
prerelease: false
|
93
69
|
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: inherited_views
|
72
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: haml
|
83
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 3.0.18
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *id007
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: sqlite3-ruby
|
94
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: "0"
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *id008
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: jeweler
|
105
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - "="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.5.2
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *id009
|
94
114
|
description: The administration framework for Ruby on Rails.
|
95
115
|
email: gregdbell@gmail.com
|
96
116
|
executables: []
|
@@ -102,102 +122,250 @@ extra_rdoc_files:
|
|
102
122
|
- README.rdoc
|
103
123
|
files:
|
104
124
|
- .document
|
105
|
-
- .gitignore
|
106
125
|
- CHANGELOG.rdoc
|
107
126
|
- Gemfile
|
108
127
|
- LICENSE
|
109
128
|
- README.rdoc
|
110
129
|
- Rakefile
|
111
|
-
- active_admin.gemspec
|
112
130
|
- activeadmin.gemspec
|
131
|
+
- cucumber.yml
|
132
|
+
- features/comments/commenting.feature
|
133
|
+
- features/comments/viewing_index.feature
|
134
|
+
- features/edit_page.feature
|
135
|
+
- features/first_boot.feature
|
136
|
+
- features/global_navigation.feature
|
137
|
+
- features/index/formats.feature
|
138
|
+
- features/index/index_as_block.feature
|
139
|
+
- features/index/index_as_blog.feature
|
140
|
+
- features/index/index_as_grid.feature
|
141
|
+
- features/index/index_as_table.feature
|
142
|
+
- features/index/index_scopes.feature
|
143
|
+
- features/index/pagination.feature
|
144
|
+
- features/new_page.feature
|
145
|
+
- features/registering_assets.feature
|
146
|
+
- features/registering_resources.feature
|
147
|
+
- features/show/default_content.feature
|
148
|
+
- features/show/page_title.feature
|
149
|
+
- features/sidebar_sections.feature
|
150
|
+
- features/specifying_actions.feature
|
151
|
+
- features/step_definitions/action_item_steps.rb
|
152
|
+
- features/step_definitions/additional_web_steps.rb
|
153
|
+
- features/step_definitions/asset_steps.rb
|
154
|
+
- features/step_definitions/attribute_steps.rb
|
155
|
+
- features/step_definitions/comment_steps.rb
|
156
|
+
- features/step_definitions/configuration_steps.rb
|
157
|
+
- features/step_definitions/factory_steps.rb
|
158
|
+
- features/step_definitions/flash_steps.rb
|
159
|
+
- features/step_definitions/format_steps.rb
|
160
|
+
- features/step_definitions/index_scope_steps.rb
|
161
|
+
- features/step_definitions/pagination_steps.rb
|
162
|
+
- features/step_definitions/sidebar_steps.rb
|
163
|
+
- features/step_definitions/tab_steps.rb
|
164
|
+
- features/step_definitions/user_steps.rb
|
165
|
+
- features/step_definitions/web_steps.rb
|
166
|
+
- features/support/env.rb
|
167
|
+
- features/support/paths.rb
|
168
|
+
- features/users/logging_in.feature
|
169
|
+
- features/users/logging_out.feature
|
113
170
|
- lib/active_admin.rb
|
114
|
-
- lib/active_admin/
|
171
|
+
- lib/active_admin/abstract_view_factory.rb
|
115
172
|
- lib/active_admin/action_items.rb
|
173
|
+
- lib/active_admin/arbre.rb
|
174
|
+
- lib/active_admin/arbre/attributes.rb
|
175
|
+
- lib/active_admin/arbre/class_list.rb
|
176
|
+
- lib/active_admin/arbre/collection.rb
|
177
|
+
- lib/active_admin/arbre/context.rb
|
178
|
+
- lib/active_admin/arbre/core_extensions.rb
|
179
|
+
- lib/active_admin/arbre/document.rb
|
180
|
+
- lib/active_admin/arbre/element.rb
|
181
|
+
- lib/active_admin/arbre/html.rb
|
182
|
+
- lib/active_admin/arbre/html5_elements.rb
|
183
|
+
- lib/active_admin/arbre/tag.rb
|
184
|
+
- lib/active_admin/arbre/text_node.rb
|
116
185
|
- lib/active_admin/asset_registration.rb
|
117
|
-
- lib/active_admin/
|
186
|
+
- lib/active_admin/callbacks.rb
|
187
|
+
- lib/active_admin/comments.rb
|
188
|
+
- lib/active_admin/comments/comment.rb
|
189
|
+
- lib/active_admin/comments/configuration.rb
|
190
|
+
- lib/active_admin/comments/namespace_helper.rb
|
191
|
+
- lib/active_admin/comments/resource_helper.rb
|
192
|
+
- lib/active_admin/comments/show_page_helper.rb
|
193
|
+
- lib/active_admin/comments/views.rb
|
194
|
+
- lib/active_admin/comments/views/active_admin_comment.rb
|
195
|
+
- lib/active_admin/comments/views/active_admin_comments.rb
|
196
|
+
- lib/active_admin/component.rb
|
197
|
+
- lib/active_admin/controller_action.rb
|
118
198
|
- lib/active_admin/dashboards.rb
|
119
199
|
- lib/active_admin/dashboards/dashboard_controller.rb
|
120
|
-
- lib/active_admin/dashboards/renderer.rb
|
121
200
|
- lib/active_admin/dashboards/section.rb
|
122
|
-
- lib/active_admin/
|
123
|
-
- lib/active_admin/
|
201
|
+
- lib/active_admin/devise.rb
|
202
|
+
- lib/active_admin/dsl.rb
|
203
|
+
- lib/active_admin/event.rb
|
124
204
|
- lib/active_admin/form_builder.rb
|
125
205
|
- lib/active_admin/helpers/optional_display.rb
|
206
|
+
- lib/active_admin/iconic.rb
|
207
|
+
- lib/active_admin/iconic/icons.rb
|
126
208
|
- lib/active_admin/menu.rb
|
127
209
|
- lib/active_admin/menu_item.rb
|
128
210
|
- lib/active_admin/namespace.rb
|
129
211
|
- lib/active_admin/page_config.rb
|
130
|
-
- lib/active_admin/pages.rb
|
131
|
-
- lib/active_admin/pages/base.rb
|
132
|
-
- lib/active_admin/pages/edit.rb
|
133
|
-
- lib/active_admin/pages/index.rb
|
134
|
-
- lib/active_admin/pages/index/blog.rb
|
135
|
-
- lib/active_admin/pages/index/table.rb
|
136
|
-
- lib/active_admin/pages/index/thumbnails.rb
|
137
|
-
- lib/active_admin/pages/new.rb
|
138
|
-
- lib/active_admin/pages/show.rb
|
139
212
|
- lib/active_admin/renderer.rb
|
140
213
|
- lib/active_admin/resource.rb
|
214
|
+
- lib/active_admin/resource/belongs_to.rb
|
141
215
|
- lib/active_admin/resource_controller.rb
|
216
|
+
- lib/active_admin/resource_controller/action_builder.rb
|
217
|
+
- lib/active_admin/resource_controller/actions.rb
|
218
|
+
- lib/active_admin/resource_controller/callbacks.rb
|
219
|
+
- lib/active_admin/resource_controller/collection.rb
|
220
|
+
- lib/active_admin/resource_controller/filters.rb
|
221
|
+
- lib/active_admin/resource_controller/form.rb
|
222
|
+
- lib/active_admin/resource_controller/menu.rb
|
223
|
+
- lib/active_admin/resource_controller/page_configurations.rb
|
224
|
+
- lib/active_admin/resource_controller/scoping.rb
|
225
|
+
- lib/active_admin/resource_controller/sidebars.rb
|
226
|
+
- lib/active_admin/scope.rb
|
142
227
|
- lib/active_admin/sidebar.rb
|
143
|
-
- lib/active_admin/
|
144
|
-
- lib/active_admin/
|
228
|
+
- lib/active_admin/stylesheets/active_admin.scss
|
229
|
+
- lib/active_admin/stylesheets/active_admin/_comments.scss
|
230
|
+
- lib/active_admin/stylesheets/active_admin/_flash_messages.scss
|
231
|
+
- lib/active_admin/stylesheets/active_admin/_forms.scss
|
232
|
+
- lib/active_admin/stylesheets/active_admin/_header.scss
|
233
|
+
- lib/active_admin/stylesheets/active_admin/_typography.scss
|
234
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_all.scss
|
235
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_buttons.scss
|
236
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_gradients.scss
|
237
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_icons.scss
|
238
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_reset.scss
|
239
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_rounded.scss
|
240
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_sections.scss
|
241
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_shadows.scss
|
242
|
+
- lib/active_admin/stylesheets/active_admin/mixins/_variables.scss
|
145
243
|
- lib/active_admin/version.rb
|
244
|
+
- lib/active_admin/view_factory.rb
|
146
245
|
- lib/active_admin/view_helpers.rb
|
147
|
-
- lib/active_admin/
|
148
|
-
- lib/active_admin/
|
149
|
-
- lib/active_admin/
|
150
|
-
- lib/active_admin/
|
151
|
-
- lib/active_admin/
|
152
|
-
- lib/active_admin/
|
153
|
-
- lib/active_admin/
|
246
|
+
- lib/active_admin/view_helpers/assigns_with_indifferent_access_helper.rb
|
247
|
+
- lib/active_admin/view_helpers/auto_link_helper.rb
|
248
|
+
- lib/active_admin/view_helpers/breadcrumb_helper.rb
|
249
|
+
- lib/active_admin/view_helpers/display_helper.rb
|
250
|
+
- lib/active_admin/view_helpers/filter_form_helper.rb
|
251
|
+
- lib/active_admin/view_helpers/form_helper.rb
|
252
|
+
- lib/active_admin/view_helpers/icon_helper.rb
|
253
|
+
- lib/active_admin/view_helpers/method_or_proc_helper.rb
|
254
|
+
- lib/active_admin/view_helpers/renderer_helper.rb
|
255
|
+
- lib/active_admin/view_helpers/sidebar_helper.rb
|
256
|
+
- lib/active_admin/view_helpers/status_tag_helper.rb
|
257
|
+
- lib/active_admin/view_helpers/table_helper.rb
|
258
|
+
- lib/active_admin/view_helpers/title_helper.rb
|
259
|
+
- lib/active_admin/view_helpers/view_factory_helper.rb
|
260
|
+
- lib/active_admin/views.rb
|
261
|
+
- lib/active_admin/views/action_items.rb
|
262
|
+
- lib/active_admin/views/components/attributes_table.rb
|
263
|
+
- lib/active_admin/views/components/columns.rb
|
264
|
+
- lib/active_admin/views/components/paginated_collection.rb
|
265
|
+
- lib/active_admin/views/components/panel.rb
|
266
|
+
- lib/active_admin/views/components/scopes.rb
|
267
|
+
- lib/active_admin/views/components/sidebar_section.rb
|
268
|
+
- lib/active_admin/views/components/table_for.rb
|
269
|
+
- lib/active_admin/views/dashboard_section_renderer.rb
|
270
|
+
- lib/active_admin/views/header_renderer.rb
|
271
|
+
- lib/active_admin/views/index_as_block.rb
|
272
|
+
- lib/active_admin/views/index_as_blog.rb
|
273
|
+
- lib/active_admin/views/index_as_grid.rb
|
274
|
+
- lib/active_admin/views/index_as_table.rb
|
275
|
+
- lib/active_admin/views/pages/base.rb
|
276
|
+
- lib/active_admin/views/pages/dashboard.rb
|
277
|
+
- lib/active_admin/views/pages/edit.rb
|
278
|
+
- lib/active_admin/views/pages/index.rb
|
279
|
+
- lib/active_admin/views/pages/new.rb
|
280
|
+
- lib/active_admin/views/pages/show.rb
|
281
|
+
- lib/active_admin/views/tabs_renderer.rb
|
282
|
+
- lib/active_admin/views/templates/active_admin/devise/mailer/reset_password_instructions.html.erb
|
283
|
+
- lib/active_admin/views/templates/active_admin/devise/mailer/unlock_instructions.html.erb
|
284
|
+
- lib/active_admin/views/templates/active_admin/devise/passwords/edit.html.erb
|
285
|
+
- lib/active_admin/views/templates/active_admin/devise/passwords/new.html.erb
|
286
|
+
- lib/active_admin/views/templates/active_admin/devise/sessions/new.html.erb
|
287
|
+
- lib/active_admin/views/templates/active_admin/devise/shared/_links.erb
|
288
|
+
- lib/active_admin/views/templates/active_admin/devise/unlocks/new.html.erb
|
289
|
+
- lib/active_admin/views/templates/active_admin_dashboard/index.html.arb
|
290
|
+
- lib/active_admin/views/templates/active_admin_default/edit.html.arb
|
291
|
+
- lib/active_admin/views/templates/active_admin_default/index.csv.erb
|
292
|
+
- lib/active_admin/views/templates/active_admin_default/index.html.arb
|
293
|
+
- lib/active_admin/views/templates/active_admin_default/new.html.arb
|
294
|
+
- lib/active_admin/views/templates/active_admin_default/show.html.arb
|
295
|
+
- lib/active_admin/views/templates/layouts/active_admin.html.erb
|
296
|
+
- lib/active_admin/views/templates/layouts/active_admin_logged_out.html.erb
|
154
297
|
- lib/activeadmin.rb
|
298
|
+
- lib/generators/active_admin/devise/devise_generator.rb
|
155
299
|
- lib/generators/active_admin/install/install_generator.rb
|
156
|
-
- lib/generators/active_admin/install/templates/active_admin.css
|
157
300
|
- lib/generators/active_admin/install/templates/active_admin.js
|
158
|
-
- lib/generators/active_admin/install/templates/active_admin.rb
|
301
|
+
- lib/generators/active_admin/install/templates/active_admin.rb.erb
|
159
302
|
- lib/generators/active_admin/install/templates/active_admin_vendor.js
|
160
303
|
- lib/generators/active_admin/install/templates/dashboards.rb
|
161
|
-
- lib/generators/active_admin/install/templates/images/
|
304
|
+
- lib/generators/active_admin/install/templates/images/admin_notes_icon.png
|
305
|
+
- lib/generators/active_admin/install/templates/images/loading.gif
|
306
|
+
- lib/generators/active_admin/install/templates/images/nested_menu_arrow.gif
|
307
|
+
- lib/generators/active_admin/install/templates/images/nested_menu_arrow_dark.gif
|
308
|
+
- lib/generators/active_admin/install/templates/images/orderable.png
|
309
|
+
- lib/generators/active_admin/install/templates/migrations/1_create_admin_notes.rb
|
310
|
+
- lib/generators/active_admin/install/templates/migrations/2_move_admin_notes_to_comments.rb
|
162
311
|
- lib/generators/active_admin/resource/resource_generator.rb
|
163
312
|
- lib/generators/active_admin/resource/templates/admin.rb
|
313
|
+
- spec/integration/belongs_to_spec.rb
|
164
314
|
- spec/integration/dashboard_spec.rb
|
165
|
-
- spec/integration/index_as_blog_spec.rb
|
166
315
|
- spec/integration/index_as_csv_spec.rb
|
167
316
|
- spec/integration/index_as_table_spec.rb
|
168
|
-
- spec/integration/index_as_thumbnails_spec.rb
|
169
317
|
- spec/integration/layout_spec.rb
|
170
|
-
- spec/integration/new_view_spec.rb
|
171
|
-
- spec/integration/show_view_spec.rb
|
172
318
|
- spec/spec_helper.rb
|
319
|
+
- spec/support/integration_example_group.rb
|
173
320
|
- spec/support/rails_template.rb
|
321
|
+
- spec/support/rails_template_with_data.rb
|
322
|
+
- spec/support/templates/cucumber.rb
|
323
|
+
- spec/unit/abstract_view_factory_spec.rb
|
174
324
|
- spec/unit/action_builder_spec.rb
|
175
325
|
- spec/unit/action_items_spec.rb
|
176
326
|
- spec/unit/active_admin_spec.rb
|
327
|
+
- spec/unit/arbre/html/element_finder_methods_spec.rb
|
328
|
+
- spec/unit/arbre/html/element_spec.rb
|
329
|
+
- spec/unit/arbre/html/tag_attributes_spec.rb
|
330
|
+
- spec/unit/arbre/html/tag_spec.rb
|
331
|
+
- spec/unit/arbre/html_spec.rb
|
177
332
|
- spec/unit/asset_registration_spec.rb
|
333
|
+
- spec/unit/auto_link_spec.rb
|
334
|
+
- spec/unit/belongs_to_spec.rb
|
335
|
+
- spec/unit/breadcrumbs_spec.rb
|
336
|
+
- spec/unit/comments_spec.rb
|
337
|
+
- spec/unit/component_spec.rb
|
338
|
+
- spec/unit/components/attributes_table_spec.rb
|
339
|
+
- spec/unit/components/columns_spec.rb
|
340
|
+
- spec/unit/components/panel_spec.rb
|
341
|
+
- spec/unit/components/sidebar_section_spec.rb
|
342
|
+
- spec/unit/components/table_for_spec.rb
|
178
343
|
- spec/unit/controller_filters_spec.rb
|
344
|
+
- spec/unit/dashboard_controller_spec.rb
|
179
345
|
- spec/unit/dashboard_section_spec.rb
|
180
346
|
- spec/unit/dashboards_spec.rb
|
347
|
+
- spec/unit/display_name_spec.rb
|
348
|
+
- spec/unit/event_spec.rb
|
181
349
|
- spec/unit/filter_form_builder_spec.rb
|
182
350
|
- spec/unit/form_builder_spec.rb
|
183
351
|
- spec/unit/menu_item_spec.rb
|
184
352
|
- spec/unit/menu_spec.rb
|
185
353
|
- spec/unit/namespace_spec.rb
|
354
|
+
- spec/unit/pretty_format_spec.rb
|
186
355
|
- spec/unit/registration_spec.rb
|
187
356
|
- spec/unit/renderer_spec.rb
|
188
357
|
- spec/unit/resource_controller_spec.rb
|
189
358
|
- spec/unit/resource_spec.rb
|
190
359
|
- spec/unit/routing_spec.rb
|
191
|
-
- spec/unit/
|
192
|
-
- spec/unit/table_builder_spec.rb
|
360
|
+
- spec/unit/scope_spec.rb
|
193
361
|
- spec/unit/tabs_renderer_spec.rb
|
194
|
-
|
362
|
+
- spec/unit/view_factory_spec.rb
|
195
363
|
homepage: http://github.com/gregbell/active_admin
|
196
364
|
licenses: []
|
197
365
|
|
198
366
|
post_install_message:
|
199
|
-
rdoc_options:
|
200
|
-
|
367
|
+
rdoc_options: []
|
368
|
+
|
201
369
|
require_paths:
|
202
370
|
- lib
|
203
371
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -205,7 +373,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
373
|
requirements:
|
206
374
|
- - ">="
|
207
375
|
- !ruby/object:Gem::Version
|
208
|
-
hash: -
|
376
|
+
hash: -78845124760778336
|
209
377
|
segments:
|
210
378
|
- 0
|
211
379
|
version: "0"
|
@@ -214,44 +382,62 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
382
|
requirements:
|
215
383
|
- - ">="
|
216
384
|
- !ruby/object:Gem::Version
|
217
|
-
segments:
|
218
|
-
- 0
|
219
385
|
version: "0"
|
220
386
|
requirements: []
|
221
387
|
|
222
388
|
rubyforge_project:
|
223
|
-
rubygems_version: 1.
|
389
|
+
rubygems_version: 1.7.2
|
224
390
|
signing_key:
|
225
391
|
specification_version: 3
|
226
392
|
summary: The administration framework for Ruby on Rails.
|
227
393
|
test_files:
|
394
|
+
- spec/integration/belongs_to_spec.rb
|
228
395
|
- spec/integration/dashboard_spec.rb
|
229
|
-
- spec/integration/index_as_blog_spec.rb
|
230
396
|
- spec/integration/index_as_csv_spec.rb
|
231
397
|
- spec/integration/index_as_table_spec.rb
|
232
|
-
- spec/integration/index_as_thumbnails_spec.rb
|
233
398
|
- spec/integration/layout_spec.rb
|
234
|
-
- spec/integration/new_view_spec.rb
|
235
|
-
- spec/integration/show_view_spec.rb
|
236
399
|
- spec/spec_helper.rb
|
400
|
+
- spec/support/integration_example_group.rb
|
237
401
|
- spec/support/rails_template.rb
|
402
|
+
- spec/support/rails_template_with_data.rb
|
403
|
+
- spec/support/templates/cucumber.rb
|
404
|
+
- spec/unit/abstract_view_factory_spec.rb
|
238
405
|
- spec/unit/action_builder_spec.rb
|
239
406
|
- spec/unit/action_items_spec.rb
|
240
407
|
- spec/unit/active_admin_spec.rb
|
408
|
+
- spec/unit/arbre/html/element_finder_methods_spec.rb
|
409
|
+
- spec/unit/arbre/html/element_spec.rb
|
410
|
+
- spec/unit/arbre/html/tag_attributes_spec.rb
|
411
|
+
- spec/unit/arbre/html/tag_spec.rb
|
412
|
+
- spec/unit/arbre/html_spec.rb
|
241
413
|
- spec/unit/asset_registration_spec.rb
|
414
|
+
- spec/unit/auto_link_spec.rb
|
415
|
+
- spec/unit/belongs_to_spec.rb
|
416
|
+
- spec/unit/breadcrumbs_spec.rb
|
417
|
+
- spec/unit/comments_spec.rb
|
418
|
+
- spec/unit/component_spec.rb
|
419
|
+
- spec/unit/components/attributes_table_spec.rb
|
420
|
+
- spec/unit/components/columns_spec.rb
|
421
|
+
- spec/unit/components/panel_spec.rb
|
422
|
+
- spec/unit/components/sidebar_section_spec.rb
|
423
|
+
- spec/unit/components/table_for_spec.rb
|
242
424
|
- spec/unit/controller_filters_spec.rb
|
425
|
+
- spec/unit/dashboard_controller_spec.rb
|
243
426
|
- spec/unit/dashboard_section_spec.rb
|
244
427
|
- spec/unit/dashboards_spec.rb
|
428
|
+
- spec/unit/display_name_spec.rb
|
429
|
+
- spec/unit/event_spec.rb
|
245
430
|
- spec/unit/filter_form_builder_spec.rb
|
246
431
|
- spec/unit/form_builder_spec.rb
|
247
432
|
- spec/unit/menu_item_spec.rb
|
248
433
|
- spec/unit/menu_spec.rb
|
249
434
|
- spec/unit/namespace_spec.rb
|
435
|
+
- spec/unit/pretty_format_spec.rb
|
250
436
|
- spec/unit/registration_spec.rb
|
251
437
|
- spec/unit/renderer_spec.rb
|
252
438
|
- spec/unit/resource_controller_spec.rb
|
253
439
|
- spec/unit/resource_spec.rb
|
254
440
|
- spec/unit/routing_spec.rb
|
255
|
-
- spec/unit/
|
256
|
-
- spec/unit/table_builder_spec.rb
|
441
|
+
- spec/unit/scope_spec.rb
|
257
442
|
- spec/unit/tabs_renderer_spec.rb
|
443
|
+
- spec/unit/view_factory_spec.rb
|