activeadmin 0.3.4 → 0.4.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/.gitignore +1 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +164 -5
- data/CONTRIBUTING.md +113 -0
- data/Gemfile +7 -9
- data/LICENSE +1 -1
- data/README.rdoc +19 -20
- data/activeadmin.gemspec +4 -2
- data/app/assets/javascripts/active_admin/application.js +9 -0
- data/app/assets/javascripts/active_admin/base.js +4 -12
- data/app/assets/stylesheets/active_admin/_base.css.scss +17 -341
- data/app/assets/stylesheets/active_admin/_forms.css.scss +13 -7
- data/app/assets/stylesheets/active_admin/_header.css.scss +23 -4
- data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +31 -0
- data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +20 -0
- data/app/assets/stylesheets/active_admin/components/_buttons.scss +12 -0
- data/app/assets/stylesheets/active_admin/components/_flash_messages.css.scss +2 -0
- data/app/assets/stylesheets/active_admin/components/_grid.scss +9 -0
- data/app/assets/stylesheets/active_admin/components/_links.scss +5 -0
- data/app/assets/stylesheets/active_admin/components/_pagination.scss +34 -0
- data/app/assets/stylesheets/active_admin/components/_panels.scss +6 -0
- data/app/assets/stylesheets/active_admin/components/_scopes.scss +10 -0
- data/app/assets/stylesheets/active_admin/components/_status_tags.scss +12 -0
- data/app/assets/stylesheets/active_admin/components/_table_tools.css.scss +101 -0
- data/app/assets/stylesheets/active_admin/components/_tables.css.scss +43 -2
- data/app/assets/stylesheets/active_admin/mixins/_all.css.scss +2 -1
- data/app/assets/stylesheets/active_admin/mixins/_buttons.css.scss +50 -13
- data/app/assets/stylesheets/active_admin/mixins/_gradients.css.scss +9 -1
- data/app/assets/stylesheets/active_admin/mixins/_sections.css.scss +7 -5
- data/app/assets/stylesheets/active_admin/mixins/_shadows.css.scss +1 -0
- data/app/assets/stylesheets/active_admin/mixins/_typography.scss +3 -0
- data/app/assets/stylesheets/active_admin/mixins/_utilities.scss +9 -0
- data/app/assets/stylesheets/active_admin/mixins/_variables.css.scss +1 -0
- data/app/assets/stylesheets/active_admin/pages/_dashboard.scss +5 -0
- data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +44 -0
- data/app/assets/stylesheets/active_admin/structure/_footer.scss +14 -0
- data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +26 -0
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +44 -0
- data/app/views/active_admin/devise/passwords/edit.html.erb +1 -1
- data/app/views/active_admin/devise/passwords/new.html.erb +1 -1
- data/app/views/active_admin/devise/sessions/new.html.erb +1 -1
- data/app/views/active_admin/devise/shared/_links.erb +1 -1
- data/app/views/active_admin/devise/unlocks/new.html.erb +1 -1
- data/app/views/active_admin/page/index.html.arb +1 -0
- data/app/views/layouts/active_admin_logged_out.html.erb +2 -2
- data/cucumber.yml +3 -2
- data/docs/1-general-configuration.md +46 -10
- data/docs/6-show-screens.md +7 -0
- data/docs/8-custom-actions.md +12 -2
- data/docs/9-custom-pages.md +84 -0
- data/features/belongs_to.feature +27 -0
- data/features/comments/commenting.feature +3 -2
- data/features/dashboard.feature +18 -0
- data/features/development_reloading.feature +43 -0
- data/features/index/filter_with_check_boxes.feature +25 -0
- data/features/index/index_as_table.feature +14 -0
- data/features/index/index_scopes.feature +59 -0
- data/features/index/pagination.feature +19 -1
- data/features/menu.feature +22 -2
- data/features/registering_assets.feature +2 -2
- data/features/registering_pages.feature +66 -0
- data/features/specifying_actions.feature +5 -0
- data/features/step_definitions/action_item_steps.rb +2 -6
- data/features/step_definitions/action_link_steps.rb +7 -0
- data/features/step_definitions/additional_web_steps.rb +11 -3
- data/features/step_definitions/asset_steps.rb +5 -1
- data/features/step_definitions/breadcrumb_steps.rb +5 -0
- data/features/step_definitions/comment_steps.rb +3 -3
- data/features/step_definitions/configuration_steps.rb +69 -13
- data/features/step_definitions/dashboard_steps.rb +7 -3
- data/features/step_definitions/factory_steps.rb +9 -2
- data/features/step_definitions/flash_steps.rb +9 -1
- data/features/step_definitions/format_steps.rb +9 -1
- data/features/step_definitions/index_scope_steps.rb +18 -6
- data/features/step_definitions/member_link_steps.rb +7 -0
- data/features/step_definitions/pagination_steps.rb +2 -2
- data/features/step_definitions/site_title_steps.rb +15 -0
- data/features/step_definitions/tab_steps.rb +1 -1
- data/features/step_definitions/user_steps.rb +1 -1
- data/features/step_definitions/web_steps.rb +4 -4
- data/features/support/paths.rb +6 -0
- data/features/users/logging_out.feature +11 -0
- data/lib/active_admin.rb +26 -10
- data/lib/active_admin/application.rb +64 -22
- data/lib/active_admin/arbre.rb +0 -1
- data/lib/active_admin/arbre/builder.rb +8 -5
- data/lib/active_admin/arbre/context.rb +1 -1
- data/lib/active_admin/arbre/html/attributes.rb +1 -1
- data/lib/active_admin/arbre/html/class_list.rb +0 -4
- data/lib/active_admin/arbre/html/collection.rb +2 -2
- data/lib/active_admin/arbre/html/document.rb +1 -1
- data/lib/active_admin/arbre/html/element.rb +19 -9
- data/lib/active_admin/arbre/html/tag.rb +3 -3
- data/lib/active_admin/arbre/html/text_node.rb +2 -2
- data/lib/active_admin/asset_registration.rb +15 -2
- data/lib/active_admin/base_controller.rb +61 -0
- data/lib/active_admin/{resource_controller → base_controller}/menu.rb +1 -1
- data/lib/active_admin/callbacks.rb +16 -18
- data/lib/active_admin/comments.rb +48 -54
- data/lib/active_admin/comments/comment.rb +13 -2
- data/lib/active_admin/comments/namespace_helper.rb +1 -1
- data/lib/active_admin/comments/views/active_admin_comments.rb +7 -3
- data/lib/active_admin/dashboards.rb +4 -0
- data/lib/active_admin/dashboards/dashboard_controller.rb +21 -5
- data/lib/active_admin/dsl.rb +6 -159
- data/lib/active_admin/event.rb +5 -3
- data/lib/active_admin/filter_form_builder.rb +53 -0
- data/lib/active_admin/form_builder.rb +25 -19
- data/lib/active_admin/helpers/settings.rb +6 -10
- data/lib/active_admin/inputs.rb +14 -0
- data/lib/active_admin/inputs/datepicker_input.rb +11 -0
- data/lib/active_admin/inputs/filter_base.rb +46 -0
- data/lib/active_admin/inputs/filter_check_boxes_input.rb +40 -0
- data/lib/active_admin/inputs/filter_date_range_input.rb +34 -0
- data/lib/active_admin/inputs/filter_numeric_input.rb +55 -0
- data/lib/active_admin/inputs/filter_select_input.rb +23 -0
- data/lib/active_admin/inputs/filter_string_input.rb +22 -0
- data/lib/active_admin/locales/ca.yml +44 -0
- data/lib/active_admin/locales/cs.yml +14 -10
- data/lib/active_admin/locales/de.yml +44 -0
- data/lib/active_admin/locales/en.yml +5 -0
- data/lib/active_admin/locales/hr.yml +40 -0
- data/lib/active_admin/locales/hu.yml +45 -0
- data/lib/active_admin/locales/it.yml +11 -6
- data/lib/active_admin/locales/ko.yml +40 -0
- data/lib/active_admin/locales/lv.yml +43 -0
- data/lib/active_admin/locales/nl.yml +40 -0
- data/lib/active_admin/locales/no-NB.yml +40 -0
- data/lib/active_admin/locales/pl.yml +7 -1
- data/lib/active_admin/locales/pt-BR.yml +6 -2
- data/lib/active_admin/menu_item.rb +25 -17
- data/lib/active_admin/namespace.rb +48 -33
- data/lib/active_admin/page.rb +65 -0
- data/lib/active_admin/page_controller.rb +15 -0
- data/lib/active_admin/page_dsl.rb +21 -0
- data/lib/active_admin/page_presenter.rb +30 -0
- data/lib/active_admin/reloader.rb +109 -42
- data/lib/active_admin/resource.rb +38 -44
- data/lib/active_admin/resource/action_items.rb +5 -0
- data/lib/active_admin/resource/belongs_to.rb +4 -2
- data/lib/active_admin/resource/controllers.rb +35 -0
- data/lib/active_admin/resource/menu.rb +1 -2
- data/lib/active_admin/resource/naming.rb +53 -31
- data/lib/active_admin/resource/page_presenters.rb +28 -0
- data/lib/active_admin/resource/scopes.rb +16 -3
- data/lib/active_admin/resource/sidebars.rb +4 -0
- data/lib/active_admin/resource_collection.rb +88 -0
- data/lib/active_admin/resource_controller.rb +18 -54
- data/lib/active_admin/resource_controller/action_builder.rb +1 -1
- data/lib/active_admin/resource_controller/actions.rb +8 -8
- data/lib/active_admin/resource_controller/callbacks.rb +1 -1
- data/lib/active_admin/resource_controller/collection.rb +8 -4
- data/lib/active_admin/resource_controller/filters.rb +1 -1
- data/lib/active_admin/resource_controller/resource_class_methods.rb +24 -0
- data/lib/active_admin/resource_controller/scoping.rb +1 -1
- data/lib/active_admin/resource_controller/sidebars.rb +1 -1
- data/lib/active_admin/resource_dsl.rb +157 -0
- data/lib/active_admin/router.rb +21 -14
- data/lib/active_admin/scope.rb +15 -3
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_factory.rb +4 -3
- data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -10
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +25 -21
- data/lib/active_admin/view_helpers/filter_form_helper.rb +0 -150
- data/lib/active_admin/views/components/attributes_table.rb +1 -1
- data/lib/active_admin/views/components/columns.rb +4 -4
- data/lib/active_admin/views/components/paginated_collection.rb +42 -13
- data/lib/active_admin/views/components/panel.rb +8 -0
- data/lib/active_admin/views/components/scopes.rb +24 -18
- data/lib/active_admin/views/components/status_tag.rb +6 -5
- data/lib/active_admin/views/components/table_for.rb +6 -2
- data/lib/active_admin/views/header_renderer.rb +31 -12
- data/lib/active_admin/views/index_as_block.rb +2 -2
- data/lib/active_admin/views/index_as_blog.rb +3 -3
- data/lib/active_admin/views/index_as_grid.rb +4 -4
- data/lib/active_admin/views/index_as_table.rb +13 -6
- data/lib/active_admin/views/pages/base.rb +4 -4
- data/lib/active_admin/views/pages/form.rb +49 -0
- data/lib/active_admin/views/pages/index.rb +18 -6
- data/lib/active_admin/views/pages/page.rb +24 -0
- data/lib/active_admin/views/pages/show.rb +1 -1
- data/lib/generators/active_admin/assets/assets_generator.rb +19 -1
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +38 -12
- data/lib/generators/active_admin/install/templates/dashboards.rb +6 -0
- data/script/use_rails +14 -7
- data/spec/spec_helper.rb +9 -14
- data/spec/spec_helper_without_rails.rb +10 -0
- data/spec/support/detect_rails_version.rb +22 -3
- data/spec/support/integration_example_group.rb +5 -7
- data/spec/support/rails_template.rb +11 -0
- data/spec/support/rails_template_with_data.rb +25 -0
- data/spec/support/templates/cucumber_with_reloading.rb +5 -0
- data/spec/unit/active_admin_spec.rb +8 -0
- data/spec/unit/application_spec.rb +48 -2
- data/spec/unit/arbre/context_spec.rb +1 -1
- data/spec/unit/arbre/html/element_finder_methods_spec.rb +58 -2
- data/spec/unit/arbre/html/element_spec.rb +18 -5
- data/spec/unit/arbre/html/tag_attributes_spec.rb +3 -3
- data/spec/unit/arbre/html/tag_spec.rb +1 -1
- data/spec/unit/arbre/html_spec.rb +32 -22
- data/spec/unit/asset_registration_spec.rb +9 -3
- data/spec/unit/auto_link_spec.rb +2 -2
- data/spec/unit/base_controller_shared_examples.rb +28 -0
- data/spec/unit/base_controller_spec.rb +8 -0
- data/spec/unit/belongs_to_spec.rb +30 -33
- data/spec/unit/comments_spec.rb +45 -15
- data/spec/unit/config_shared_examples.rb +119 -0
- data/spec/unit/dashboard_controller_spec.rb +44 -0
- data/spec/unit/event_spec.rb +6 -0
- data/spec/unit/filter_form_builder_spec.rb +9 -0
- data/spec/unit/form_builder_spec.rb +8 -14
- data/spec/unit/menu_item_spec.rb +25 -20
- data/spec/unit/namespace/register_page_spec.rb +102 -0
- data/spec/unit/namespace/register_resource_spec.rb +188 -0
- data/spec/unit/namespace_spec.rb +11 -183
- data/spec/unit/page_controller_spec.rb +8 -0
- data/spec/unit/page_spec.rb +60 -0
- data/spec/unit/reloader_spec.rb +82 -38
- data/spec/unit/resource/menu_spec.rb +1 -51
- data/spec/unit/resource/naming_spec.rb +25 -20
- data/spec/unit/resource/page_presenters_spec.rb +32 -0
- data/spec/unit/resource/scopes_spec.rb +13 -0
- data/spec/unit/resource_collection_spec.rb +101 -0
- data/spec/unit/resource_controller_spec.rb +40 -32
- data/spec/unit/{registration_spec.rb → resource_registration_spec.rb} +0 -0
- data/spec/unit/resource_spec.rb +8 -24
- data/spec/unit/routing_spec.rb +50 -1
- data/spec/unit/scope_spec.rb +18 -4
- data/spec/unit/views/components/paginated_collection_spec.rb +163 -0
- data/spec/unit/views/components/panel_spec.rb +9 -0
- data/spec/unit/views/components/status_tag_spec.rb +9 -0
- data/spec/unit/views/tabbed_navigation_spec.rb +2 -1
- data/tasks/test.rake +44 -26
- metadata +176 -69
- data/app/assets/javascripts/active_admin/vendor.js +0 -382
- data/lib/active_admin/arbre/core_extensions.rb +0 -5
- data/lib/active_admin/comments/configuration.rb +0 -18
- data/lib/active_admin/page_config.rb +0 -15
- data/lib/active_admin/resource_controller/form.rb +0 -42
- data/lib/active_admin/resource_controller/page_configurations.rb +0 -53
- data/lib/active_admin/views/pages/edit.rb +0 -28
- data/lib/active_admin/views/pages/new.rb +0 -28
- data/lib/generators/active_admin/assets/templates/3.0/active_admin.js +0 -427
- data/spec/integration/belongs_to_spec.rb +0 -42
data/spec/unit/scope_spec.rb
CHANGED
@@ -23,10 +23,10 @@ describe ActiveAdmin::Scope do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
context "when a name and scope method" do
|
26
|
-
let(:scope) { ActiveAdmin::Scope.new "
|
27
|
-
its(:name) { should == "
|
28
|
-
its(:id) { should == "
|
29
|
-
its(:scope_method) { should == :
|
26
|
+
let(:scope) { ActiveAdmin::Scope.new "With API Access", :with_api_access }
|
27
|
+
its(:name) { should == "With API Access"}
|
28
|
+
its(:id) { should == "with_api_access"}
|
29
|
+
its(:scope_method) { should == :with_api_access }
|
30
30
|
end
|
31
31
|
|
32
32
|
context "when a name and scope block" do
|
@@ -38,4 +38,18 @@ describe ActiveAdmin::Scope do
|
|
38
38
|
end
|
39
39
|
end # describe "creating a scope"
|
40
40
|
|
41
|
+
describe "#display_if_block" do
|
42
|
+
|
43
|
+
it "should return true by default" do
|
44
|
+
scope = ActiveAdmin::Scope.new(:default)
|
45
|
+
scope.display_if_block.call.should == true
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should return the :if block if set" do
|
49
|
+
scope = ActiveAdmin::Scope.new(:with_block, nil, :if => proc{ false })
|
50
|
+
scope.display_if_block.call.should == false
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
|
41
55
|
end
|
@@ -0,0 +1,163 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe ActiveAdmin::Views::PaginatedCollection do
|
4
|
+
describe "creating with the dsl" do
|
5
|
+
setup_arbre_context!
|
6
|
+
|
7
|
+
let(:collection) do
|
8
|
+
posts = [Post.new(:title => "First Post"), Post.new(:title => "Second Post"), Post.new(:title => "Third Post")]
|
9
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
10
|
+
end
|
11
|
+
|
12
|
+
before :all do
|
13
|
+
load_defaults!
|
14
|
+
reload_routes!
|
15
|
+
end
|
16
|
+
|
17
|
+
before do
|
18
|
+
request.stub!(:query_parameters).and_return({:controller => 'admin/posts', :action => 'index', :page => '1'})
|
19
|
+
controller.params = {:controller => 'admin/posts', :action => 'index'}
|
20
|
+
end
|
21
|
+
|
22
|
+
context "when specifying collection" do
|
23
|
+
let(:pagination) do
|
24
|
+
paginated_collection(collection)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should set :collection as the passed in collection" do
|
28
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 3</b> posts"
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should raise error if collection has no pagination scope" do
|
32
|
+
lambda {
|
33
|
+
paginated_collection([Post.new, Post.new])
|
34
|
+
}.should raise_error(StandardError, "Collection is not a paginated scope. Set collection.page(params[:page]).per(10) before calling :paginated_collection.")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context "when specifying :param_name option" do
|
39
|
+
let(:collection) do
|
40
|
+
posts = 10.times.inject([]) {|m, _| m << Post.new }
|
41
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
42
|
+
end
|
43
|
+
|
44
|
+
let(:pagination) { paginated_collection(collection, :param_name => :post_page) }
|
45
|
+
|
46
|
+
it "should customize the page number parameter in pagination links" do
|
47
|
+
pagination.find_by_tag('div')[1].content.should match(/\/admin\/posts\?post_page=2/)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context "when specifying :download_links => false option" do
|
52
|
+
let(:collection) do
|
53
|
+
posts = 10.times.inject([]) {|m, _| m << Post.new }
|
54
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
55
|
+
end
|
56
|
+
|
57
|
+
let(:pagination) { paginated_collection(collection, :download_links => false) }
|
58
|
+
|
59
|
+
it "should not render download links" do
|
60
|
+
pagination.find_by_tag('div').last.content.should_not match(/Download:/)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
context "when specifying :entry_name option with a single item" do
|
65
|
+
let(:collection) do
|
66
|
+
posts = [Post.new]
|
67
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
68
|
+
end
|
69
|
+
|
70
|
+
let(:pagination) { paginated_collection(collection, :entry_name => "message") }
|
71
|
+
|
72
|
+
it "should use :entry_name as the collection name" do
|
73
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>1</b> message"
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
context "when specifying :entry_name option with multiple items" do
|
78
|
+
let(:pagination) { paginated_collection(collection, :entry_name => "message") }
|
79
|
+
|
80
|
+
it "should use :entry_name as the collection name" do
|
81
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 3</b> messages"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
context "when specifying :entry_name and :entries_name option with a single item" do
|
86
|
+
let(:collection) do
|
87
|
+
posts = [Post.new]
|
88
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
89
|
+
end
|
90
|
+
|
91
|
+
let(:pagination) { paginated_collection(collection, :entry_name => "singular", :entries_name => "plural") }
|
92
|
+
|
93
|
+
it "should use :entry_name as the collection name" do
|
94
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>1</b> singular"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
context "when specifying :entry_name and :entries_name option with a multiple items" do
|
99
|
+
let(:pagination) { paginated_collection(collection, :entry_name => "singular", :entries_name => "plural") }
|
100
|
+
|
101
|
+
it "should use :entries_name as the collection name" do
|
102
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 3</b> plural"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
context "when omitting :entry_name with a single item" do
|
107
|
+
let(:collection) do
|
108
|
+
posts = [Post.new]
|
109
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
110
|
+
end
|
111
|
+
|
112
|
+
let(:pagination) { paginated_collection(collection) }
|
113
|
+
|
114
|
+
it "should use 'post' as the collection name when there is no I18n translation" do
|
115
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>1</b> post"
|
116
|
+
end
|
117
|
+
|
118
|
+
it "should use 'Singular' as the collection name when there is an I18n translation" do
|
119
|
+
I18n.stub(:translate!) { "Singular" }
|
120
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>1</b> Singular"
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
context "when omitting :entry_name with multiple items" do
|
125
|
+
let(:pagination) { paginated_collection(collection) }
|
126
|
+
|
127
|
+
it "should use 'posts' as the collection name when there is no I18n translation" do
|
128
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 3</b> posts"
|
129
|
+
end
|
130
|
+
|
131
|
+
it "should use 'Plural' as the collection name when there is an I18n translation" do
|
132
|
+
I18n.stub(:translate!) { "Plural" }
|
133
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 3</b> Plural"
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
context "when specifying an empty collection" do
|
138
|
+
let(:collection) do
|
139
|
+
posts = []
|
140
|
+
Kaminari.paginate_array(posts).page(1).per(5)
|
141
|
+
end
|
142
|
+
|
143
|
+
let(:pagination) { paginated_collection(collection) }
|
144
|
+
|
145
|
+
it "should display 'No entries found'" do
|
146
|
+
pagination.find_by_class('pagination_information').first.content.should == "No entries found"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
context "when collection comes from find with GROUP BY" do
|
151
|
+
let(:collection) do
|
152
|
+
%w{Foo Foo Bar}.each {|title| Post.create(:title => title) }
|
153
|
+
Post.group(:title).page(1).per(5)
|
154
|
+
end
|
155
|
+
|
156
|
+
let(:pagination) { paginated_collection(collection) }
|
157
|
+
|
158
|
+
it "should display proper message (including number and not hash)" do
|
159
|
+
pagination.find_by_class('pagination_information').first.content.should == "Displaying <b>all 2</b> posts"
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
@@ -26,4 +26,13 @@ describe ActiveAdmin::Views::Panel do
|
|
26
26
|
panel("Title", :icon => :arrow_down).find_by_tag("h3").first.content.should include("span class=\"icon")
|
27
27
|
end
|
28
28
|
|
29
|
+
describe "#children?" do
|
30
|
+
|
31
|
+
it "returns false if no children have been added to the panel" do
|
32
|
+
the_panel = panel("A Panel")
|
33
|
+
the_panel.children?.should == false
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
29
38
|
end
|
@@ -63,6 +63,15 @@ describe ActiveAdmin::Views::StatusTag do
|
|
63
63
|
its(:class_list) { should include('ok') }
|
64
64
|
end
|
65
65
|
|
66
|
+
context "when status is 'Active' and label is 'on'" do
|
67
|
+
subject { status_tag('Active', :label => 'on') }
|
68
|
+
|
69
|
+
its(:content) { should == 'on' }
|
70
|
+
its(:class_list) { should include('status') }
|
71
|
+
its(:class_list) { should include('active') }
|
72
|
+
its(:class_list) { should_not include('on') }
|
73
|
+
end
|
74
|
+
|
66
75
|
context "when status is 'So useless', type is :ok, class is 'woot awesome' and id is 'useless'" do
|
67
76
|
subject { status_tag('So useless', :ok, :class => 'woot awesome', :id => 'useless') }
|
68
77
|
|
@@ -80,7 +80,8 @@ describe ActiveAdmin::Views::TabbedNavigation do
|
|
80
80
|
|
81
81
|
it "should add the 'current' and 'has_nested' classes to the li and 'current' to the sub li" do
|
82
82
|
assigns[:current_tab] = "Reports/A Sub Reports"
|
83
|
-
html.should have_tag("li", :attributes => { :id => "reports", :class =>
|
83
|
+
html.should have_tag("li", :attributes => { :id => "reports", :class => /current/ })
|
84
|
+
html.should have_tag("li", :attributes => { :id => "reports", :class => /has_nested/ })
|
84
85
|
html.should have_tag("li", :attributes => { :id => "a_sub_reports", :class => "current" })
|
85
86
|
end
|
86
87
|
|
data/tasks/test.rake
CHANGED
@@ -5,53 +5,71 @@ task :setup do
|
|
5
5
|
system "bundle exec rails new spec/rails/rails-#{Rails::VERSION::STRING} -m spec/support/rails_template.rb"
|
6
6
|
end
|
7
7
|
|
8
|
+
# Run specs and cukes
|
9
|
+
desc "Run the full suite"
|
10
|
+
task :test => ['spec:unit', 'spec:integration', 'cucumber', 'cucumber:class_reloading']
|
11
|
+
|
8
12
|
namespace :test do
|
9
|
-
|
10
|
-
|
13
|
+
|
14
|
+
def run_tests_against(*versions)
|
11
15
|
current_version = detect_rails_version if File.exists?("Gemfile.lock")
|
12
|
-
|
13
|
-
|
16
|
+
|
17
|
+
versions.each do |version|
|
14
18
|
puts
|
15
19
|
puts "== Using Rails #{version}"
|
20
|
+
|
16
21
|
cmd "./script/use_rails #{version}"
|
17
|
-
cmd "bundle exec rspec spec
|
18
|
-
cmd "bundle exec rspec spec/integration"
|
22
|
+
cmd "bundle exec rspec spec"
|
19
23
|
cmd "bundle exec cucumber features"
|
24
|
+
cmd "bundle exec cucumber -p class-reloading features"
|
20
25
|
end
|
26
|
+
|
21
27
|
cmd "./script/use_rails #{current_version}" if current_version
|
22
28
|
end
|
23
29
|
|
24
|
-
|
30
|
+
desc "Run the full suite against the important versions of rails"
|
31
|
+
task :major_supported_rails do
|
32
|
+
run_tests_against "3.0.11", "3.1.3", "3.2.0"
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "Alias for major_supported_rails"
|
36
|
+
task :all => :major_supported_rails
|
25
37
|
|
26
|
-
# Run specs and cukes
|
27
|
-
task :test do
|
28
|
-
cmd "bundle exec rspec spec/unit"
|
29
|
-
cmd "bundle exec rspec spec/integration"
|
30
|
-
cmd "bundle exec cucumber features"
|
31
38
|
end
|
32
39
|
|
40
|
+
require 'rspec/core/rake_task'
|
41
|
+
|
42
|
+
RSpec::Core::RakeTask.new(:spec)
|
43
|
+
|
33
44
|
namespace :spec do
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
45
|
+
|
46
|
+
desc "Run the unit specs"
|
47
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
48
|
+
t.pattern = "spec/unit/**/*_spec.rb"
|
49
|
+
end
|
50
|
+
|
51
|
+
desc "Run the integration specs"
|
52
|
+
RSpec::Core::RakeTask.new(:integration) do |t|
|
53
|
+
t.pattern = "spec/integration/**/*_spec.rb"
|
42
54
|
end
|
55
|
+
|
43
56
|
end
|
44
57
|
|
58
|
+
|
45
59
|
require 'cucumber/rake/task'
|
46
60
|
|
61
|
+
Cucumber::Rake::Task.new(:cucumber) do |t|
|
62
|
+
t.profile = 'default'
|
63
|
+
end
|
64
|
+
|
47
65
|
namespace :cucumber do
|
48
|
-
Cucumber::Rake::Task.new(:all) do |t|
|
49
|
-
t.profile = 'default'
|
50
|
-
end
|
51
66
|
|
52
|
-
Cucumber::Rake::Task.new(:wip) do |t|
|
67
|
+
Cucumber::Rake::Task.new(:wip, "Run the cucumber scenarios with the @wip tag") do |t|
|
53
68
|
t.profile = 'wip'
|
54
69
|
end
|
55
|
-
end
|
56
70
|
|
57
|
-
|
71
|
+
Cucumber::Rake::Task.new(:class_reloading, "Run the cucumber scenarios that test reloading") do |t|
|
72
|
+
t.profile = 'class-reloading'
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
- 3
|
8
8
|
- 4
|
9
|
-
|
10
|
-
version: 0.
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Greg Bell
|
@@ -15,135 +15,166 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-01-30 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
27
25
|
- !ruby/object:Gem::Version
|
26
|
+
hash: 7
|
28
27
|
segments:
|
29
28
|
- 3
|
30
29
|
- 0
|
31
30
|
- 0
|
32
|
-
segments_generated: true
|
33
31
|
version: 3.0.0
|
32
|
+
requirement: *id001
|
33
|
+
prerelease: false
|
34
|
+
name: rails
|
34
35
|
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 23
|
43
|
+
segments:
|
44
|
+
- 1
|
45
|
+
- 0
|
46
|
+
- 0
|
47
|
+
version: 1.0.0
|
48
|
+
requirement: *id002
|
35
49
|
prerelease: false
|
36
|
-
|
50
|
+
name: jquery-rails
|
51
|
+
type: :runtime
|
37
52
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
39
|
-
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 23
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 0
|
62
|
+
- 0
|
63
|
+
version: 1.0.0
|
64
|
+
requirement: *id003
|
65
|
+
prerelease: false
|
66
|
+
name: bourbon
|
67
|
+
type: :runtime
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
40
70
|
none: false
|
41
71
|
requirements:
|
42
72
|
- - ">="
|
43
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 63
|
44
75
|
segments:
|
45
76
|
- 0
|
46
77
|
- 9
|
47
78
|
- 2
|
48
|
-
segments_generated: true
|
49
79
|
version: 0.9.2
|
50
|
-
|
80
|
+
requirement: *id004
|
51
81
|
prerelease: false
|
52
|
-
|
82
|
+
name: meta_search
|
83
|
+
type: :runtime
|
53
84
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
55
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
56
86
|
none: false
|
57
87
|
requirements:
|
58
88
|
- - ">="
|
59
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 23
|
60
91
|
segments:
|
61
92
|
- 1
|
62
93
|
- 1
|
63
94
|
- 2
|
64
|
-
segments_generated: true
|
65
95
|
version: 1.1.2
|
66
|
-
|
96
|
+
requirement: *id005
|
67
97
|
prerelease: false
|
68
|
-
|
98
|
+
name: devise
|
99
|
+
type: :runtime
|
69
100
|
- !ruby/object:Gem::Dependency
|
70
|
-
|
71
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
101
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
72
102
|
none: false
|
73
103
|
requirements:
|
74
|
-
- -
|
104
|
+
- - ">="
|
75
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 15
|
76
107
|
segments:
|
77
108
|
- 2
|
78
109
|
- 0
|
79
110
|
- 0
|
80
|
-
segments_generated: true
|
81
111
|
version: 2.0.0
|
82
|
-
|
112
|
+
requirement: *id006
|
83
113
|
prerelease: false
|
84
|
-
|
114
|
+
name: formtastic
|
115
|
+
type: :runtime
|
85
116
|
- !ruby/object:Gem::Dependency
|
86
|
-
|
87
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
117
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
88
118
|
none: false
|
89
119
|
requirements:
|
90
120
|
- - <
|
91
121
|
- !ruby/object:Gem::Version
|
122
|
+
hash: 27
|
92
123
|
segments:
|
93
124
|
- 1
|
94
125
|
- 3
|
95
126
|
- 0
|
96
|
-
segments_generated: true
|
97
127
|
version: 1.3.0
|
98
|
-
|
128
|
+
requirement: *id007
|
99
129
|
prerelease: false
|
100
|
-
|
130
|
+
name: inherited_resources
|
131
|
+
type: :runtime
|
101
132
|
- !ruby/object:Gem::Dependency
|
102
|
-
|
103
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
133
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
104
134
|
none: false
|
105
135
|
requirements:
|
106
136
|
- - ">="
|
107
137
|
- !ruby/object:Gem::Version
|
138
|
+
hash: 43
|
108
139
|
segments:
|
109
140
|
- 0
|
110
|
-
-
|
111
|
-
-
|
112
|
-
|
113
|
-
|
114
|
-
type: :runtime
|
141
|
+
- 13
|
142
|
+
- 0
|
143
|
+
version: 0.13.0
|
144
|
+
requirement: *id008
|
115
145
|
prerelease: false
|
116
|
-
|
146
|
+
name: kaminari
|
147
|
+
type: :runtime
|
117
148
|
- !ruby/object:Gem::Dependency
|
118
|
-
|
119
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
149
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
120
150
|
none: false
|
121
151
|
requirements:
|
122
152
|
- - ">="
|
123
153
|
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
124
155
|
segments:
|
125
156
|
- 3
|
126
157
|
- 1
|
127
158
|
- 0
|
128
|
-
segments_generated: true
|
129
159
|
version: 3.1.0
|
130
|
-
|
160
|
+
requirement: *id009
|
131
161
|
prerelease: false
|
132
|
-
|
162
|
+
name: sass
|
163
|
+
type: :runtime
|
133
164
|
- !ruby/object:Gem::Dependency
|
134
|
-
|
135
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
165
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
136
166
|
none: false
|
137
167
|
requirements:
|
138
168
|
- - ">="
|
139
169
|
- !ruby/object:Gem::Version
|
170
|
+
hash: 3
|
140
171
|
segments:
|
141
172
|
- 0
|
142
|
-
segments_generated: true
|
143
173
|
version: "0"
|
144
|
-
|
174
|
+
requirement: *id010
|
145
175
|
prerelease: false
|
146
|
-
|
176
|
+
name: fastercsv
|
177
|
+
type: :runtime
|
147
178
|
description: The administration framework for Ruby on Rails.
|
148
179
|
email:
|
149
180
|
- gregdbell@gmail.com
|
@@ -159,6 +190,7 @@ files:
|
|
159
190
|
- .travis.yml
|
160
191
|
- .yardopts
|
161
192
|
- CHANGELOG.md
|
193
|
+
- CONTRIBUTING.md
|
162
194
|
- Gemfile
|
163
195
|
- Guardfile
|
164
196
|
- LICENSE
|
@@ -175,16 +207,26 @@ files:
|
|
175
207
|
- app/assets/images/active_admin/nested_menu_arrow.gif
|
176
208
|
- app/assets/images/active_admin/nested_menu_arrow_dark.gif
|
177
209
|
- app/assets/images/active_admin/orderable.png
|
210
|
+
- app/assets/javascripts/active_admin/application.js
|
178
211
|
- app/assets/javascripts/active_admin/base.js
|
179
|
-
- app/assets/javascripts/active_admin/vendor.js
|
180
212
|
- app/assets/stylesheets/active_admin/_base.css.scss
|
181
213
|
- app/assets/stylesheets/active_admin/_forms.css.scss
|
182
214
|
- app/assets/stylesheets/active_admin/_header.css.scss
|
183
215
|
- app/assets/stylesheets/active_admin/_mixins.css.scss
|
184
216
|
- app/assets/stylesheets/active_admin/_typography.css.scss
|
217
|
+
- app/assets/stylesheets/active_admin/components/_blank_slates.scss
|
218
|
+
- app/assets/stylesheets/active_admin/components/_breadcrumbs.scss
|
219
|
+
- app/assets/stylesheets/active_admin/components/_buttons.scss
|
185
220
|
- app/assets/stylesheets/active_admin/components/_comments.css.scss
|
186
221
|
- app/assets/stylesheets/active_admin/components/_date_picker.css.scss
|
187
222
|
- app/assets/stylesheets/active_admin/components/_flash_messages.css.scss
|
223
|
+
- app/assets/stylesheets/active_admin/components/_grid.scss
|
224
|
+
- app/assets/stylesheets/active_admin/components/_links.scss
|
225
|
+
- app/assets/stylesheets/active_admin/components/_pagination.scss
|
226
|
+
- app/assets/stylesheets/active_admin/components/_panels.scss
|
227
|
+
- app/assets/stylesheets/active_admin/components/_scopes.scss
|
228
|
+
- app/assets/stylesheets/active_admin/components/_status_tags.scss
|
229
|
+
- app/assets/stylesheets/active_admin/components/_table_tools.css.scss
|
188
230
|
- app/assets/stylesheets/active_admin/components/_tables.css.scss
|
189
231
|
- app/assets/stylesheets/active_admin/mixins/_all.css.scss
|
190
232
|
- app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
|
@@ -194,8 +236,14 @@ files:
|
|
194
236
|
- app/assets/stylesheets/active_admin/mixins/_rounded.css.scss
|
195
237
|
- app/assets/stylesheets/active_admin/mixins/_sections.css.scss
|
196
238
|
- app/assets/stylesheets/active_admin/mixins/_shadows.css.scss
|
239
|
+
- app/assets/stylesheets/active_admin/mixins/_typography.scss
|
197
240
|
- app/assets/stylesheets/active_admin/mixins/_utilities.scss
|
198
241
|
- app/assets/stylesheets/active_admin/mixins/_variables.css.scss
|
242
|
+
- app/assets/stylesheets/active_admin/pages/_dashboard.scss
|
243
|
+
- app/assets/stylesheets/active_admin/pages/_logged_out.scss
|
244
|
+
- app/assets/stylesheets/active_admin/structure/_footer.scss
|
245
|
+
- app/assets/stylesheets/active_admin/structure/_main_structure.scss
|
246
|
+
- app/assets/stylesheets/active_admin/structure/_title_bar.scss
|
199
247
|
- app/views/active_admin/dashboard/index.html.arb
|
200
248
|
- app/views/active_admin/devise/mailer/reset_password_instructions.html.erb
|
201
249
|
- app/views/active_admin/devise/mailer/unlock_instructions.html.erb
|
@@ -204,6 +252,7 @@ files:
|
|
204
252
|
- app/views/active_admin/devise/sessions/new.html.erb
|
205
253
|
- app/views/active_admin/devise/shared/_links.erb
|
206
254
|
- app/views/active_admin/devise/unlocks/new.html.erb
|
255
|
+
- app/views/active_admin/page/index.html.arb
|
207
256
|
- app/views/active_admin/resource/edit.html.arb
|
208
257
|
- app/views/active_admin/resource/index.csv.erb
|
209
258
|
- app/views/active_admin/resource/index.html.arb
|
@@ -225,12 +274,16 @@ files:
|
|
225
274
|
- docs/6-show-screens.md
|
226
275
|
- docs/7-sidebars.md
|
227
276
|
- docs/8-custom-actions.md
|
277
|
+
- docs/9-custom-pages.md
|
278
|
+
- features/belongs_to.feature
|
228
279
|
- features/comments/commenting.feature
|
229
280
|
- features/comments/viewing_index.feature
|
230
281
|
- features/dashboard.feature
|
282
|
+
- features/development_reloading.feature
|
231
283
|
- features/edit_page.feature
|
232
284
|
- features/first_boot.feature
|
233
285
|
- features/global_navigation.feature
|
286
|
+
- features/index/filter_with_check_boxes.feature
|
234
287
|
- features/index/filters.feature
|
235
288
|
- features/index/format_as_csv.feature
|
236
289
|
- features/index/formats.feature
|
@@ -244,15 +297,18 @@ files:
|
|
244
297
|
- features/menu.feature
|
245
298
|
- features/new_page.feature
|
246
299
|
- features/registering_assets.feature
|
300
|
+
- features/registering_pages.feature
|
247
301
|
- features/registering_resources.feature
|
248
302
|
- features/show/default_content.feature
|
249
303
|
- features/show/page_title.feature
|
250
304
|
- features/sidebar_sections.feature
|
251
305
|
- features/specifying_actions.feature
|
252
306
|
- features/step_definitions/action_item_steps.rb
|
307
|
+
- features/step_definitions/action_link_steps.rb
|
253
308
|
- features/step_definitions/additional_web_steps.rb
|
254
309
|
- features/step_definitions/asset_steps.rb
|
255
310
|
- features/step_definitions/attribute_steps.rb
|
311
|
+
- features/step_definitions/breadcrumb_steps.rb
|
256
312
|
- features/step_definitions/comment_steps.rb
|
257
313
|
- features/step_definitions/configuration_steps.rb
|
258
314
|
- features/step_definitions/dashboard_steps.rb
|
@@ -261,9 +317,11 @@ files:
|
|
261
317
|
- features/step_definitions/format_steps.rb
|
262
318
|
- features/step_definitions/index_scope_steps.rb
|
263
319
|
- features/step_definitions/layout_steps.rb
|
320
|
+
- features/step_definitions/member_link_steps.rb
|
264
321
|
- features/step_definitions/menu_steps.rb
|
265
322
|
- features/step_definitions/pagination_steps.rb
|
266
323
|
- features/step_definitions/sidebar_steps.rb
|
324
|
+
- features/step_definitions/site_title_steps.rb
|
267
325
|
- features/step_definitions/tab_steps.rb
|
268
326
|
- features/step_definitions/user_steps.rb
|
269
327
|
- features/step_definitions/web_steps.rb
|
@@ -279,7 +337,6 @@ files:
|
|
279
337
|
- lib/active_admin/arbre.rb
|
280
338
|
- lib/active_admin/arbre/builder.rb
|
281
339
|
- lib/active_admin/arbre/context.rb
|
282
|
-
- lib/active_admin/arbre/core_extensions.rb
|
283
340
|
- lib/active_admin/arbre/html/attributes.rb
|
284
341
|
- lib/active_admin/arbre/html/class_list.rb
|
285
342
|
- lib/active_admin/arbre/html/collection.rb
|
@@ -289,10 +346,11 @@ files:
|
|
289
346
|
- lib/active_admin/arbre/html/tag.rb
|
290
347
|
- lib/active_admin/arbre/html/text_node.rb
|
291
348
|
- lib/active_admin/asset_registration.rb
|
349
|
+
- lib/active_admin/base_controller.rb
|
350
|
+
- lib/active_admin/base_controller/menu.rb
|
292
351
|
- lib/active_admin/callbacks.rb
|
293
352
|
- lib/active_admin/comments.rb
|
294
353
|
- lib/active_admin/comments/comment.rb
|
295
|
-
- lib/active_admin/comments/configuration.rb
|
296
354
|
- lib/active_admin/comments/namespace_helper.rb
|
297
355
|
- lib/active_admin/comments/resource_helper.rb
|
298
356
|
- lib/active_admin/comments/show_page_helper.rb
|
@@ -311,20 +369,37 @@ files:
|
|
311
369
|
- lib/active_admin/dsl.rb
|
312
370
|
- lib/active_admin/engine.rb
|
313
371
|
- lib/active_admin/event.rb
|
372
|
+
- lib/active_admin/filter_form_builder.rb
|
314
373
|
- lib/active_admin/form_builder.rb
|
315
374
|
- lib/active_admin/helpers/optional_display.rb
|
316
375
|
- lib/active_admin/helpers/scope_chain.rb
|
317
376
|
- lib/active_admin/helpers/settings.rb
|
318
377
|
- lib/active_admin/iconic.rb
|
319
378
|
- lib/active_admin/iconic/icons.rb
|
379
|
+
- lib/active_admin/inputs.rb
|
380
|
+
- lib/active_admin/inputs/datepicker_input.rb
|
381
|
+
- lib/active_admin/inputs/filter_base.rb
|
382
|
+
- lib/active_admin/inputs/filter_check_boxes_input.rb
|
383
|
+
- lib/active_admin/inputs/filter_date_range_input.rb
|
384
|
+
- lib/active_admin/inputs/filter_numeric_input.rb
|
385
|
+
- lib/active_admin/inputs/filter_select_input.rb
|
386
|
+
- lib/active_admin/inputs/filter_string_input.rb
|
320
387
|
- lib/active_admin/locales/bg.yml
|
388
|
+
- lib/active_admin/locales/ca.yml
|
321
389
|
- lib/active_admin/locales/cs.yml
|
322
390
|
- lib/active_admin/locales/da.yml
|
391
|
+
- lib/active_admin/locales/de.yml
|
323
392
|
- lib/active_admin/locales/en.yml
|
324
393
|
- lib/active_admin/locales/es.yml
|
325
394
|
- lib/active_admin/locales/fr.yml
|
395
|
+
- lib/active_admin/locales/hr.yml
|
396
|
+
- lib/active_admin/locales/hu.yml
|
326
397
|
- lib/active_admin/locales/it.yml
|
327
398
|
- lib/active_admin/locales/ja.yml
|
399
|
+
- lib/active_admin/locales/ko.yml
|
400
|
+
- lib/active_admin/locales/lv.yml
|
401
|
+
- lib/active_admin/locales/nl.yml
|
402
|
+
- lib/active_admin/locales/no-NB.yml
|
328
403
|
- lib/active_admin/locales/pl.yml
|
329
404
|
- lib/active_admin/locales/pt-BR.yml
|
330
405
|
- lib/active_admin/locales/ru.yml
|
@@ -333,27 +408,32 @@ files:
|
|
333
408
|
- lib/active_admin/menu.rb
|
334
409
|
- lib/active_admin/menu_item.rb
|
335
410
|
- lib/active_admin/namespace.rb
|
336
|
-
- lib/active_admin/
|
411
|
+
- lib/active_admin/page.rb
|
412
|
+
- lib/active_admin/page_controller.rb
|
413
|
+
- lib/active_admin/page_dsl.rb
|
414
|
+
- lib/active_admin/page_presenter.rb
|
337
415
|
- lib/active_admin/reloader.rb
|
338
416
|
- lib/active_admin/renderer.rb
|
339
417
|
- lib/active_admin/resource.rb
|
340
418
|
- lib/active_admin/resource/action_items.rb
|
341
419
|
- lib/active_admin/resource/belongs_to.rb
|
420
|
+
- lib/active_admin/resource/controllers.rb
|
342
421
|
- lib/active_admin/resource/menu.rb
|
343
422
|
- lib/active_admin/resource/naming.rb
|
423
|
+
- lib/active_admin/resource/page_presenters.rb
|
344
424
|
- lib/active_admin/resource/scopes.rb
|
345
425
|
- lib/active_admin/resource/sidebars.rb
|
426
|
+
- lib/active_admin/resource_collection.rb
|
346
427
|
- lib/active_admin/resource_controller.rb
|
347
428
|
- lib/active_admin/resource_controller/action_builder.rb
|
348
429
|
- lib/active_admin/resource_controller/actions.rb
|
349
430
|
- lib/active_admin/resource_controller/callbacks.rb
|
350
431
|
- lib/active_admin/resource_controller/collection.rb
|
351
432
|
- lib/active_admin/resource_controller/filters.rb
|
352
|
-
- lib/active_admin/resource_controller/
|
353
|
-
- lib/active_admin/resource_controller/menu.rb
|
354
|
-
- lib/active_admin/resource_controller/page_configurations.rb
|
433
|
+
- lib/active_admin/resource_controller/resource_class_methods.rb
|
355
434
|
- lib/active_admin/resource_controller/scoping.rb
|
356
435
|
- lib/active_admin/resource_controller/sidebars.rb
|
436
|
+
- lib/active_admin/resource_dsl.rb
|
357
437
|
- lib/active_admin/router.rb
|
358
438
|
- lib/active_admin/sass/active_admin.scss
|
359
439
|
- lib/active_admin/sass/css_loader.rb
|
@@ -396,15 +476,14 @@ files:
|
|
396
476
|
- lib/active_admin/views/index_as_table.rb
|
397
477
|
- lib/active_admin/views/pages/base.rb
|
398
478
|
- lib/active_admin/views/pages/dashboard.rb
|
399
|
-
- lib/active_admin/views/pages/
|
479
|
+
- lib/active_admin/views/pages/form.rb
|
400
480
|
- lib/active_admin/views/pages/index.rb
|
401
481
|
- lib/active_admin/views/pages/layout.rb
|
402
|
-
- lib/active_admin/views/pages/
|
482
|
+
- lib/active_admin/views/pages/page.rb
|
403
483
|
- lib/active_admin/views/pages/show.rb
|
404
484
|
- lib/active_admin/views/tabbed_navigation.rb
|
405
485
|
- lib/activeadmin.rb
|
406
486
|
- lib/generators/active_admin/assets/assets_generator.rb
|
407
|
-
- lib/generators/active_admin/assets/templates/3.0/active_admin.js
|
408
487
|
- lib/generators/active_admin/assets/templates/3.1/active_admin.css.scss
|
409
488
|
- lib/generators/active_admin/assets/templates/3.1/active_admin.js
|
410
489
|
- lib/generators/active_admin/assets/templates/dashboards.rb
|
@@ -418,18 +497,19 @@ files:
|
|
418
497
|
- lib/generators/active_admin/resource/templates/admin.rb
|
419
498
|
- script/local
|
420
499
|
- script/use_rails
|
421
|
-
- spec/integration/belongs_to_spec.rb
|
422
500
|
- spec/integration/default_namespace.rb
|
423
501
|
- spec/integration/javascript_spec.rb
|
424
502
|
- spec/integration/memory_spec.rb
|
425
503
|
- spec/integration/stylesheets_spec.rb
|
426
504
|
- spec/spec_helper.rb
|
505
|
+
- spec/spec_helper_without_rails.rb
|
427
506
|
- spec/support/detect_rails_version.rb
|
428
507
|
- spec/support/integration_example_group.rb
|
429
508
|
- spec/support/jslint.yml
|
430
509
|
- spec/support/rails_template.rb
|
431
510
|
- spec/support/rails_template_with_data.rb
|
432
511
|
- spec/support/templates/cucumber.rb
|
512
|
+
- spec/support/templates/cucumber_with_reloading.rb
|
433
513
|
- spec/unit/abstract_view_factory_spec.rb
|
434
514
|
- spec/unit/action_builder_spec.rb
|
435
515
|
- spec/unit/active_admin_spec.rb
|
@@ -442,10 +522,13 @@ files:
|
|
442
522
|
- spec/unit/arbre/html_spec.rb
|
443
523
|
- spec/unit/asset_registration_spec.rb
|
444
524
|
- spec/unit/auto_link_spec.rb
|
525
|
+
- spec/unit/base_controller_shared_examples.rb
|
526
|
+
- spec/unit/base_controller_spec.rb
|
445
527
|
- spec/unit/belongs_to_spec.rb
|
446
528
|
- spec/unit/breadcrumbs_spec.rb
|
447
529
|
- spec/unit/comments_spec.rb
|
448
530
|
- spec/unit/component_spec.rb
|
531
|
+
- spec/unit/config_shared_examples.rb
|
449
532
|
- spec/unit/controller_filters_spec.rb
|
450
533
|
- spec/unit/csv_builder_spec.rb
|
451
534
|
- spec/unit/dashboard_controller_spec.rb
|
@@ -461,19 +544,25 @@ files:
|
|
461
544
|
- spec/unit/helpers/settings_spec.rb
|
462
545
|
- spec/unit/menu_item_spec.rb
|
463
546
|
- spec/unit/menu_spec.rb
|
547
|
+
- spec/unit/namespace/register_page_spec.rb
|
548
|
+
- spec/unit/namespace/register_resource_spec.rb
|
464
549
|
- spec/unit/namespace_spec.rb
|
550
|
+
- spec/unit/page_controller_spec.rb
|
551
|
+
- spec/unit/page_spec.rb
|
465
552
|
- spec/unit/pretty_format_spec.rb
|
466
553
|
- spec/unit/rails_spec.rb
|
467
|
-
- spec/unit/registration_spec.rb
|
468
554
|
- spec/unit/reloader_spec.rb
|
469
555
|
- spec/unit/renderer_spec.rb
|
470
556
|
- spec/unit/resource/action_items_spec.rb
|
471
557
|
- spec/unit/resource/menu_spec.rb
|
472
558
|
- spec/unit/resource/naming_spec.rb
|
559
|
+
- spec/unit/resource/page_presenters_spec.rb
|
473
560
|
- spec/unit/resource/scopes_spec.rb
|
474
561
|
- spec/unit/resource/sidebars_spec.rb
|
562
|
+
- spec/unit/resource_collection_spec.rb
|
475
563
|
- spec/unit/resource_controller/collection_spec.rb
|
476
564
|
- spec/unit/resource_controller_spec.rb
|
565
|
+
- spec/unit/resource_registration_spec.rb
|
477
566
|
- spec/unit/resource_spec.rb
|
478
567
|
- spec/unit/routing_spec.rb
|
479
568
|
- spec/unit/sass/helpers_spec.rb
|
@@ -482,6 +571,7 @@ files:
|
|
482
571
|
- spec/unit/views/components/attributes_table_spec.rb
|
483
572
|
- spec/unit/views/components/blank_slate_spec.rb
|
484
573
|
- spec/unit/views/components/columns_spec.rb
|
574
|
+
- spec/unit/views/components/paginated_collection_spec.rb
|
485
575
|
- spec/unit/views/components/panel_spec.rb
|
486
576
|
- spec/unit/views/components/sidebar_section_spec.rb
|
487
577
|
- spec/unit/views/components/status_tag_spec.rb
|
@@ -491,7 +581,6 @@ files:
|
|
491
581
|
- tasks/docs.rake
|
492
582
|
- tasks/test.rake
|
493
583
|
- tasks/yard.rake
|
494
|
-
has_rdoc: true
|
495
584
|
homepage: http://activeadmin.info
|
496
585
|
licenses: []
|
497
586
|
|
@@ -505,35 +594,36 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
505
594
|
requirements:
|
506
595
|
- - ">="
|
507
596
|
- !ruby/object:Gem::Version
|
508
|
-
hash:
|
597
|
+
hash: 3
|
509
598
|
segments:
|
510
599
|
- 0
|
511
|
-
segments_generated: true
|
512
600
|
version: "0"
|
513
601
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
514
602
|
none: false
|
515
603
|
requirements:
|
516
604
|
- - ">="
|
517
605
|
- !ruby/object:Gem::Version
|
518
|
-
hash:
|
606
|
+
hash: 3
|
519
607
|
segments:
|
520
608
|
- 0
|
521
|
-
segments_generated: true
|
522
609
|
version: "0"
|
523
610
|
requirements: []
|
524
611
|
|
525
612
|
rubyforge_project:
|
526
|
-
rubygems_version: 1.
|
613
|
+
rubygems_version: 1.8.10
|
527
614
|
signing_key:
|
528
615
|
specification_version: 3
|
529
616
|
summary: The administration framework for Ruby on Rails.
|
530
617
|
test_files:
|
618
|
+
- features/belongs_to.feature
|
531
619
|
- features/comments/commenting.feature
|
532
620
|
- features/comments/viewing_index.feature
|
533
621
|
- features/dashboard.feature
|
622
|
+
- features/development_reloading.feature
|
534
623
|
- features/edit_page.feature
|
535
624
|
- features/first_boot.feature
|
536
625
|
- features/global_navigation.feature
|
626
|
+
- features/index/filter_with_check_boxes.feature
|
537
627
|
- features/index/filters.feature
|
538
628
|
- features/index/format_as_csv.feature
|
539
629
|
- features/index/formats.feature
|
@@ -547,15 +637,18 @@ test_files:
|
|
547
637
|
- features/menu.feature
|
548
638
|
- features/new_page.feature
|
549
639
|
- features/registering_assets.feature
|
640
|
+
- features/registering_pages.feature
|
550
641
|
- features/registering_resources.feature
|
551
642
|
- features/show/default_content.feature
|
552
643
|
- features/show/page_title.feature
|
553
644
|
- features/sidebar_sections.feature
|
554
645
|
- features/specifying_actions.feature
|
555
646
|
- features/step_definitions/action_item_steps.rb
|
647
|
+
- features/step_definitions/action_link_steps.rb
|
556
648
|
- features/step_definitions/additional_web_steps.rb
|
557
649
|
- features/step_definitions/asset_steps.rb
|
558
650
|
- features/step_definitions/attribute_steps.rb
|
651
|
+
- features/step_definitions/breadcrumb_steps.rb
|
559
652
|
- features/step_definitions/comment_steps.rb
|
560
653
|
- features/step_definitions/configuration_steps.rb
|
561
654
|
- features/step_definitions/dashboard_steps.rb
|
@@ -564,9 +657,11 @@ test_files:
|
|
564
657
|
- features/step_definitions/format_steps.rb
|
565
658
|
- features/step_definitions/index_scope_steps.rb
|
566
659
|
- features/step_definitions/layout_steps.rb
|
660
|
+
- features/step_definitions/member_link_steps.rb
|
567
661
|
- features/step_definitions/menu_steps.rb
|
568
662
|
- features/step_definitions/pagination_steps.rb
|
569
663
|
- features/step_definitions/sidebar_steps.rb
|
664
|
+
- features/step_definitions/site_title_steps.rb
|
570
665
|
- features/step_definitions/tab_steps.rb
|
571
666
|
- features/step_definitions/user_steps.rb
|
572
667
|
- features/step_definitions/web_steps.rb
|
@@ -576,18 +671,19 @@ test_files:
|
|
576
671
|
- features/support/selectors.rb
|
577
672
|
- features/users/logging_in.feature
|
578
673
|
- features/users/logging_out.feature
|
579
|
-
- spec/integration/belongs_to_spec.rb
|
580
674
|
- spec/integration/default_namespace.rb
|
581
675
|
- spec/integration/javascript_spec.rb
|
582
676
|
- spec/integration/memory_spec.rb
|
583
677
|
- spec/integration/stylesheets_spec.rb
|
584
678
|
- spec/spec_helper.rb
|
679
|
+
- spec/spec_helper_without_rails.rb
|
585
680
|
- spec/support/detect_rails_version.rb
|
586
681
|
- spec/support/integration_example_group.rb
|
587
682
|
- spec/support/jslint.yml
|
588
683
|
- spec/support/rails_template.rb
|
589
684
|
- spec/support/rails_template_with_data.rb
|
590
685
|
- spec/support/templates/cucumber.rb
|
686
|
+
- spec/support/templates/cucumber_with_reloading.rb
|
591
687
|
- spec/unit/abstract_view_factory_spec.rb
|
592
688
|
- spec/unit/action_builder_spec.rb
|
593
689
|
- spec/unit/active_admin_spec.rb
|
@@ -600,10 +696,13 @@ test_files:
|
|
600
696
|
- spec/unit/arbre/html_spec.rb
|
601
697
|
- spec/unit/asset_registration_spec.rb
|
602
698
|
- spec/unit/auto_link_spec.rb
|
699
|
+
- spec/unit/base_controller_shared_examples.rb
|
700
|
+
- spec/unit/base_controller_spec.rb
|
603
701
|
- spec/unit/belongs_to_spec.rb
|
604
702
|
- spec/unit/breadcrumbs_spec.rb
|
605
703
|
- spec/unit/comments_spec.rb
|
606
704
|
- spec/unit/component_spec.rb
|
705
|
+
- spec/unit/config_shared_examples.rb
|
607
706
|
- spec/unit/controller_filters_spec.rb
|
608
707
|
- spec/unit/csv_builder_spec.rb
|
609
708
|
- spec/unit/dashboard_controller_spec.rb
|
@@ -619,19 +718,25 @@ test_files:
|
|
619
718
|
- spec/unit/helpers/settings_spec.rb
|
620
719
|
- spec/unit/menu_item_spec.rb
|
621
720
|
- spec/unit/menu_spec.rb
|
721
|
+
- spec/unit/namespace/register_page_spec.rb
|
722
|
+
- spec/unit/namespace/register_resource_spec.rb
|
622
723
|
- spec/unit/namespace_spec.rb
|
724
|
+
- spec/unit/page_controller_spec.rb
|
725
|
+
- spec/unit/page_spec.rb
|
623
726
|
- spec/unit/pretty_format_spec.rb
|
624
727
|
- spec/unit/rails_spec.rb
|
625
|
-
- spec/unit/registration_spec.rb
|
626
728
|
- spec/unit/reloader_spec.rb
|
627
729
|
- spec/unit/renderer_spec.rb
|
628
730
|
- spec/unit/resource/action_items_spec.rb
|
629
731
|
- spec/unit/resource/menu_spec.rb
|
630
732
|
- spec/unit/resource/naming_spec.rb
|
733
|
+
- spec/unit/resource/page_presenters_spec.rb
|
631
734
|
- spec/unit/resource/scopes_spec.rb
|
632
735
|
- spec/unit/resource/sidebars_spec.rb
|
736
|
+
- spec/unit/resource_collection_spec.rb
|
633
737
|
- spec/unit/resource_controller/collection_spec.rb
|
634
738
|
- spec/unit/resource_controller_spec.rb
|
739
|
+
- spec/unit/resource_registration_spec.rb
|
635
740
|
- spec/unit/resource_spec.rb
|
636
741
|
- spec/unit/routing_spec.rb
|
637
742
|
- spec/unit/sass/helpers_spec.rb
|
@@ -640,9 +745,11 @@ test_files:
|
|
640
745
|
- spec/unit/views/components/attributes_table_spec.rb
|
641
746
|
- spec/unit/views/components/blank_slate_spec.rb
|
642
747
|
- spec/unit/views/components/columns_spec.rb
|
748
|
+
- spec/unit/views/components/paginated_collection_spec.rb
|
643
749
|
- spec/unit/views/components/panel_spec.rb
|
644
750
|
- spec/unit/views/components/sidebar_section_spec.rb
|
645
751
|
- spec/unit/views/components/status_tag_spec.rb
|
646
752
|
- spec/unit/views/components/table_for_spec.rb
|
647
753
|
- spec/unit/views/pages/layout_spec.rb
|
648
754
|
- spec/unit/views/tabbed_navigation_spec.rb
|
755
|
+
has_rdoc:
|