andrewroth_activeadmin 0.3.4 → 0.3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. data/CHANGELOG.md +159 -3
  2. data/CONTRIBUTING.md +113 -0
  3. data/LICENSE +1 -1
  4. data/README.rdoc +19 -20
  5. data/activeadmin.gemspec +3 -1
  6. data/app/assets/javascripts/active_admin/application.js +9 -0
  7. data/app/assets/javascripts/active_admin/base.js +4 -12
  8. data/app/assets/stylesheets/active_admin/_base.css.scss +16 -340
  9. data/app/assets/stylesheets/active_admin/_forms.css.scss +13 -7
  10. data/app/assets/stylesheets/active_admin/_header.css.scss +23 -4
  11. data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +31 -0
  12. data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +20 -0
  13. data/app/assets/stylesheets/active_admin/components/_buttons.scss +12 -0
  14. data/app/assets/stylesheets/active_admin/components/_flash_messages.css.scss +2 -0
  15. data/app/assets/stylesheets/active_admin/components/_grid.scss +9 -0
  16. data/app/assets/stylesheets/active_admin/components/_links.scss +5 -0
  17. data/app/assets/stylesheets/active_admin/components/_pagination.scss +34 -0
  18. data/app/assets/stylesheets/active_admin/components/_panels.scss +6 -0
  19. data/app/assets/stylesheets/active_admin/components/_scopes.scss +10 -0
  20. data/app/assets/stylesheets/active_admin/components/_status_tags.scss +12 -0
  21. data/app/assets/stylesheets/active_admin/components/_table_tools.css.scss +101 -0
  22. data/app/assets/stylesheets/active_admin/mixins/_all.css.scss +2 -1
  23. data/app/assets/stylesheets/active_admin/mixins/_buttons.css.scss +50 -13
  24. data/app/assets/stylesheets/active_admin/mixins/_gradients.css.scss +9 -1
  25. data/app/assets/stylesheets/active_admin/mixins/_sections.css.scss +7 -5
  26. data/app/assets/stylesheets/active_admin/mixins/_shadows.css.scss +1 -0
  27. data/app/assets/stylesheets/active_admin/mixins/_typography.scss +3 -0
  28. data/app/assets/stylesheets/active_admin/mixins/_variables.css.scss +1 -0
  29. data/app/assets/stylesheets/active_admin/pages/_dashboard.scss +5 -0
  30. data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +44 -0
  31. data/app/assets/stylesheets/active_admin/structure/_footer.scss +14 -0
  32. data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +26 -0
  33. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +44 -0
  34. data/app/views/active_admin/devise/passwords/edit.html.erb +1 -1
  35. data/app/views/active_admin/devise/passwords/new.html.erb +1 -1
  36. data/app/views/active_admin/devise/sessions/new.html.erb +1 -1
  37. data/app/views/active_admin/devise/shared/_links.erb +1 -1
  38. data/app/views/active_admin/devise/unlocks/new.html.erb +1 -1
  39. data/app/views/active_admin/page/index.html.arb +1 -0
  40. data/app/views/layouts/active_admin_logged_out.html.erb +2 -2
  41. data/cucumber.yml +3 -2
  42. data/docs/1-general-configuration.md +46 -10
  43. data/docs/6-show-screens.md +7 -0
  44. data/docs/8-custom-actions.md +12 -2
  45. data/docs/9-custom-pages.md +84 -0
  46. data/features/belongs_to.feature +27 -0
  47. data/features/comments/commenting.feature +3 -2
  48. data/features/dashboard.feature +18 -0
  49. data/features/development_reloading.feature +19 -0
  50. data/features/index/filter_with_check_boxes.feature +25 -0
  51. data/features/index/index_as_table.feature +14 -0
  52. data/features/index/index_scopes.feature +42 -0
  53. data/features/index/pagination.feature +19 -1
  54. data/features/menu.feature +22 -2
  55. data/features/registering_assets.feature +2 -2
  56. data/features/registering_pages.feature +66 -0
  57. data/features/specifying_actions.feature +5 -0
  58. data/features/step_definitions/action_item_steps.rb +2 -6
  59. data/features/step_definitions/action_link_steps.rb +7 -0
  60. data/features/step_definitions/additional_web_steps.rb +8 -0
  61. data/features/step_definitions/asset_steps.rb +5 -1
  62. data/features/step_definitions/breadcrumb_steps.rb +5 -0
  63. data/features/step_definitions/configuration_steps.rb +56 -8
  64. data/features/step_definitions/dashboard_steps.rb +5 -1
  65. data/features/step_definitions/factory_steps.rb +9 -2
  66. data/features/step_definitions/flash_steps.rb +9 -1
  67. data/features/step_definitions/index_scope_steps.rb +16 -4
  68. data/features/step_definitions/member_link_steps.rb +7 -0
  69. data/features/step_definitions/site_title_steps.rb +15 -0
  70. data/features/support/paths.rb +6 -0
  71. data/features/users/logging_out.feature +11 -0
  72. data/lib/active_admin.rb +25 -10
  73. data/lib/active_admin/application.rb +63 -20
  74. data/lib/active_admin/arbre/html/element.rb +10 -0
  75. data/lib/active_admin/asset_registration.rb +15 -2
  76. data/lib/active_admin/base_controller.rb +61 -0
  77. data/lib/active_admin/{resource_controller → base_controller}/menu.rb +1 -1
  78. data/lib/active_admin/comments.rb +48 -54
  79. data/lib/active_admin/comments/comment.rb +13 -2
  80. data/lib/active_admin/comments/namespace_helper.rb +1 -1
  81. data/lib/active_admin/comments/views/active_admin_comments.rb +7 -3
  82. data/lib/active_admin/dashboards.rb +4 -0
  83. data/lib/active_admin/dashboards/dashboard_controller.rb +20 -4
  84. data/lib/active_admin/dsl.rb +6 -159
  85. data/lib/active_admin/event.rb +5 -3
  86. data/lib/active_admin/filter_form_builder.rb +53 -0
  87. data/lib/active_admin/form_builder.rb +25 -19
  88. data/lib/active_admin/inputs.rb +14 -0
  89. data/lib/active_admin/inputs/datepicker_input.rb +11 -0
  90. data/lib/active_admin/inputs/filter_base.rb +46 -0
  91. data/lib/active_admin/inputs/filter_check_boxes_input.rb +40 -0
  92. data/lib/active_admin/inputs/filter_date_range_input.rb +34 -0
  93. data/lib/active_admin/inputs/filter_numeric_input.rb +55 -0
  94. data/lib/active_admin/inputs/filter_select_input.rb +23 -0
  95. data/lib/active_admin/inputs/filter_string_input.rb +22 -0
  96. data/lib/active_admin/locales/ca.yml +44 -0
  97. data/lib/active_admin/locales/cs.yml +14 -10
  98. data/lib/active_admin/locales/de.yml +43 -0
  99. data/lib/active_admin/locales/en.yml +5 -0
  100. data/lib/active_admin/locales/hr.yml +40 -0
  101. data/lib/active_admin/locales/ko.yml +40 -0
  102. data/lib/active_admin/locales/lv.yml +43 -0
  103. data/lib/active_admin/locales/nl.yml +40 -0
  104. data/lib/active_admin/locales/no-NB.yml +40 -0
  105. data/lib/active_admin/locales/pl.yml +7 -1
  106. data/lib/active_admin/locales/pt-BR.yml +6 -2
  107. data/lib/active_admin/namespace.rb +48 -33
  108. data/lib/active_admin/page.rb +54 -0
  109. data/lib/active_admin/page_controller.rb +15 -0
  110. data/lib/active_admin/page_dsl.rb +21 -0
  111. data/lib/active_admin/page_presenter.rb +30 -0
  112. data/lib/active_admin/resource.rb +38 -44
  113. data/lib/active_admin/resource/action_items.rb +5 -0
  114. data/lib/active_admin/resource/belongs_to.rb +4 -2
  115. data/lib/active_admin/resource/controllers.rb +35 -0
  116. data/lib/active_admin/resource/menu.rb +1 -2
  117. data/lib/active_admin/resource/naming.rb +43 -31
  118. data/lib/active_admin/resource/page_presenters.rb +28 -0
  119. data/lib/active_admin/resource/scopes.rb +16 -3
  120. data/lib/active_admin/resource/sidebars.rb +4 -0
  121. data/lib/active_admin/resource_collection.rb +88 -0
  122. data/lib/active_admin/resource_controller.rb +18 -54
  123. data/lib/active_admin/resource_controller/action_builder.rb +1 -1
  124. data/lib/active_admin/resource_controller/actions.rb +1 -1
  125. data/lib/active_admin/resource_controller/callbacks.rb +1 -1
  126. data/lib/active_admin/resource_controller/collection.rb +8 -4
  127. data/lib/active_admin/resource_controller/filters.rb +1 -1
  128. data/lib/active_admin/resource_controller/resource_class_methods.rb +24 -0
  129. data/lib/active_admin/resource_controller/scoping.rb +1 -1
  130. data/lib/active_admin/resource_controller/sidebars.rb +1 -1
  131. data/lib/active_admin/resource_dsl.rb +157 -0
  132. data/lib/active_admin/router.rb +21 -14
  133. data/lib/active_admin/scope.rb +15 -3
  134. data/lib/active_admin/version.rb +1 -1
  135. data/lib/active_admin/view_factory.rb +4 -3
  136. data/lib/active_admin/view_helpers/auto_link_helper.rb +1 -10
  137. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +25 -21
  138. data/lib/active_admin/view_helpers/filter_form_helper.rb +0 -150
  139. data/lib/active_admin/views/components/attributes_table.rb +1 -1
  140. data/lib/active_admin/views/components/paginated_collection.rb +42 -13
  141. data/lib/active_admin/views/components/scopes.rb +17 -17
  142. data/lib/active_admin/views/components/status_tag.rb +6 -5
  143. data/lib/active_admin/views/components/table_for.rb +6 -2
  144. data/lib/active_admin/views/header_renderer.rb +31 -12
  145. data/lib/active_admin/views/index_as_block.rb +2 -2
  146. data/lib/active_admin/views/index_as_blog.rb +3 -3
  147. data/lib/active_admin/views/index_as_grid.rb +4 -4
  148. data/lib/active_admin/views/index_as_table.rb +13 -6
  149. data/lib/active_admin/views/pages/base.rb +4 -4
  150. data/lib/active_admin/views/pages/form.rb +49 -0
  151. data/lib/active_admin/views/pages/index.rb +18 -6
  152. data/lib/active_admin/views/pages/page.rb +24 -0
  153. data/lib/active_admin/views/pages/show.rb +1 -1
  154. data/lib/generators/active_admin/assets/assets_generator.rb +19 -1
  155. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +38 -12
  156. data/lib/generators/active_admin/install/templates/dashboards.rb +6 -0
  157. data/spec/spec_helper.rb +4 -0
  158. data/spec/support/rails_template.rb +11 -0
  159. data/spec/support/templates/cucumber_with_reloading.rb +5 -0
  160. data/spec/unit/active_admin_spec.rb +8 -0
  161. data/spec/unit/application_spec.rb +48 -2
  162. data/spec/unit/arbre/html/element_finder_methods_spec.rb +58 -2
  163. data/spec/unit/asset_registration_spec.rb +9 -3
  164. data/spec/unit/auto_link_spec.rb +2 -2
  165. data/spec/unit/base_controller_shared_examples.rb +28 -0
  166. data/spec/unit/base_controller_spec.rb +8 -0
  167. data/spec/unit/belongs_to_spec.rb +30 -33
  168. data/spec/unit/comments_spec.rb +45 -15
  169. data/spec/unit/config_shared_examples.rb +108 -0
  170. data/spec/unit/dashboard_controller_spec.rb +44 -0
  171. data/spec/unit/event_spec.rb +6 -0
  172. data/spec/unit/filter_form_builder_spec.rb +9 -0
  173. data/spec/unit/form_builder_spec.rb +8 -14
  174. data/spec/unit/namespace/register_page_spec.rb +102 -0
  175. data/spec/unit/namespace/register_resource_spec.rb +188 -0
  176. data/spec/unit/namespace_spec.rb +11 -183
  177. data/spec/unit/page_controller_spec.rb +8 -0
  178. data/spec/unit/page_spec.rb +60 -0
  179. data/spec/unit/resource/menu_spec.rb +1 -51
  180. data/spec/unit/resource/naming_spec.rb +24 -19
  181. data/spec/unit/resource/page_presenters_spec.rb +32 -0
  182. data/spec/unit/resource/scopes_spec.rb +13 -0
  183. data/spec/unit/resource_collection_spec.rb +101 -0
  184. data/spec/unit/resource_controller_spec.rb +40 -32
  185. data/spec/unit/{registration_spec.rb → resource_registration_spec.rb} +0 -0
  186. data/spec/unit/resource_spec.rb +8 -24
  187. data/spec/unit/routing_spec.rb +50 -1
  188. data/spec/unit/scope_spec.rb +18 -4
  189. data/spec/unit/views/components/paginated_collection_spec.rb +150 -0
  190. data/spec/unit/views/components/status_tag_spec.rb +9 -0
  191. data/tasks/test.rake +43 -27
  192. metadata +140 -31
  193. data/app/assets/javascripts/active_admin/vendor.js +0 -382
  194. data/lib/active_admin/comments/configuration.rb +0 -18
  195. data/lib/active_admin/page_config.rb +0 -15
  196. data/lib/active_admin/resource_controller/form.rb +0 -42
  197. data/lib/active_admin/resource_controller/page_configurations.rb +0 -53
  198. data/lib/active_admin/views/pages/edit.rb +0 -28
  199. data/lib/active_admin/views/pages/new.rb +0 -28
  200. data/lib/generators/active_admin/assets/templates/3.0/active_admin.js +0 -427
  201. data/spec/integration/belongs_to_spec.rb +0 -42
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe ActiveAdmin, "Routing" do
3
+ describe ActiveAdmin, "Routing", :type => :routing do
4
4
 
5
5
  before :each do
6
6
  load_defaults!
@@ -83,6 +83,55 @@ describe ActiveAdmin, "Routing" do
83
83
  it "should route the nested edit path" do
84
84
  edit_admin_user_post_path(1,2).should == "/admin/users/1/posts/2/edit"
85
85
  end
86
+
87
+ context "with collection action" do
88
+ before do
89
+ load_resources do
90
+ ActiveAdmin.register(Post) do
91
+ belongs_to :user, :optional => true
92
+ end
93
+ ActiveAdmin.register(User) do
94
+ collection_action "do_something"
95
+ end
96
+ end
97
+ end
98
+
99
+ it "should properly route the collection action" do
100
+ { :get => "/admin/users/do_something" }.
101
+ should route_to({ :controller => 'admin/users',:action => 'do_something'})
102
+ end
103
+ end
86
104
  end
87
105
 
106
+ describe "page" do
107
+ context "when default namespace" do
108
+ before(:each) do
109
+ load_resources { ActiveAdmin.register_page("Status") }
110
+ end
111
+
112
+ it "should route to the page under /admin" do
113
+ admin_status_path.should == "/admin/status"
114
+ end
115
+
116
+ context "when in the root namespace" do
117
+ before(:each) do
118
+ load_resources { ActiveAdmin.register_page("Status", :namespace => false) }
119
+ end
120
+
121
+ it "should route to page under /" do
122
+ status_path.should == "/status"
123
+ end
124
+ end
125
+
126
+ context "when singular page name" do
127
+ before(:each) do
128
+ load_resources { ActiveAdmin.register_page("Log") }
129
+ end
130
+
131
+ it "should not inject _index_ into the route name" do
132
+ admin_log_path.should == "/admin/log"
133
+ end
134
+ end
135
+ end
136
+ end
88
137
  end
@@ -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 "My Scope", :scope_method }
27
- its(:name) { should == "My Scope"}
28
- its(:id) { should == "my_scope"}
29
- its(:scope_method) { should == :scope_method }
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,150 @@
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
+ end
150
+ 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
 
data/tasks/test.rake CHANGED
@@ -5,53 +5,69 @@ 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
- desc "Run against the important versions of rails"
10
- task :major_rails_versions do
13
+
14
+ desc "Run the full suite against the important versions of rails"
15
+ task :major_supported_rails do
11
16
  current_version = detect_rails_version if File.exists?("Gemfile.lock")
17
+
12
18
  ["3.0.10", "3.1.0"].each do |version|
13
- puts
14
19
  puts
15
20
  puts "== Using Rails #{version}"
16
- cmd "./script/use_rails #{version}"
17
- cmd "bundle exec rspec spec/unit"
18
- cmd "bundle exec rspec spec/integration"
19
- cmd "bundle exec cucumber features"
21
+
22
+ if File.exists?("Gemfile.lock")
23
+ puts "Removing the current Gemfile.lock"
24
+ cmd "rm Gemfile.lock"
25
+ end
26
+
27
+ cmd "export RAILS=#{version} && ./script/use_rails #{version}"
28
+ cmd "export RAILS=#{version} && bundle exec rspec spec/unit"
29
+ cmd "export RAILS=#{version} && bundle exec rspec spec/integration"
30
+ cmd "export RAILS=#{version} && bundle exec cucumber features"
31
+ cmd "export RAILS=#{version} && bundle exec cucumber -p class-reloading features"
20
32
  end
21
33
  cmd "./script/use_rails #{current_version}" if current_version
22
34
  end
23
35
 
24
36
  end
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
- end
38
+ require 'rspec/core/rake_task'
39
+
40
+ RSpec::Core::RakeTask.new(:spec)
32
41
 
33
42
  namespace :spec do
34
- desc "Run specs for all versions of rails"
35
- task :all do
36
- (0..6).to_a.each do |v|
37
- puts "Running for Rails 3.0.#{v}"
38
- cmd "rm Gemfile.lock" if File.exists?("Gemfile.lock")
39
- cmd "/usr/bin/env RAILS=3.0.#{v} bundle install"
40
- cmd "/usr/bin/env RAILS=3.0.#{v} rake spec"
41
- end
43
+
44
+ desc "Run the unit specs"
45
+ RSpec::Core::RakeTask.new(:unit) do |t|
46
+ t.pattern = "spec/unit/**/*_spec.rb"
42
47
  end
48
+
49
+ desc "Run the integration specs"
50
+ RSpec::Core::RakeTask.new(:integration) do |t|
51
+ t.pattern = "spec/integration/**/*_spec.rb"
52
+ end
53
+
43
54
  end
44
55
 
56
+
45
57
  require 'cucumber/rake/task'
46
58
 
59
+ Cucumber::Rake::Task.new(:cucumber) do |t|
60
+ t.profile = 'default'
61
+ end
62
+
47
63
  namespace :cucumber do
48
- Cucumber::Rake::Task.new(:all) do |t|
49
- t.profile = 'default'
50
- end
51
64
 
52
- Cucumber::Rake::Task.new(:wip) do |t|
65
+ Cucumber::Rake::Task.new(:wip, "Run the cucumber scenarios with the @wip tag") do |t|
53
66
  t.profile = 'wip'
54
67
  end
55
- end
56
68
 
57
- task :cucumber => "cucumber:all"
69
+ Cucumber::Rake::Task.new(:class_reloading, "Run the cucumber scenarios that test reloading") do |t|
70
+ t.profile = 'class-reloading'
71
+ end
72
+
73
+ end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: andrewroth_activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 4
10
- version: 0.3.4
10
+ - 1
11
+ version: 0.3.4.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Greg Bell
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-12-08 00:00:00 -05:00
19
+ date: 2012-01-02 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -35,9 +36,41 @@ dependencies:
35
36
  type: :runtime
36
37
  version_requirements: *id001
37
38
  - !ruby/object:Gem::Dependency
38
- name: meta_search
39
+ name: jquery-rails
39
40
  prerelease: false
40
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 23
47
+ segments:
48
+ - 1
49
+ - 0
50
+ - 0
51
+ version: 1.0.0
52
+ type: :runtime
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: bourbon
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 23
63
+ segments:
64
+ - 1
65
+ - 0
66
+ - 0
67
+ version: 1.0.0
68
+ type: :runtime
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
71
+ name: meta_search
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
41
74
  none: false
42
75
  requirements:
43
76
  - - ">="
@@ -49,11 +82,11 @@ dependencies:
49
82
  - 2
50
83
  version: 0.9.2
51
84
  type: :runtime
52
- version_requirements: *id002
85
+ version_requirements: *id004
53
86
  - !ruby/object:Gem::Dependency
54
87
  name: devise
55
88
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
57
90
  none: false
58
91
  requirements:
59
92
  - - ">="
@@ -65,14 +98,14 @@ dependencies:
65
98
  - 2
66
99
  version: 1.1.2
67
100
  type: :runtime
68
- version_requirements: *id003
101
+ version_requirements: *id005
69
102
  - !ruby/object:Gem::Dependency
70
103
  name: formtastic
71
104
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
105
+ requirement: &id006 !ruby/object:Gem::Requirement
73
106
  none: false
74
107
  requirements:
75
- - - <
108
+ - - ">="
76
109
  - !ruby/object:Gem::Version
77
110
  hash: 15
78
111
  segments:
@@ -81,11 +114,11 @@ dependencies:
81
114
  - 0
82
115
  version: 2.0.0
83
116
  type: :runtime
84
- version_requirements: *id004
117
+ version_requirements: *id006
85
118
  - !ruby/object:Gem::Dependency
86
119
  name: inherited_resources
87
120
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
121
+ requirement: &id007 !ruby/object:Gem::Requirement
89
122
  none: false
90
123
  requirements:
91
124
  - - <
@@ -97,11 +130,11 @@ dependencies:
97
130
  - 0
98
131
  version: 1.3.0
99
132
  type: :runtime
100
- version_requirements: *id005
133
+ version_requirements: *id007
101
134
  - !ruby/object:Gem::Dependency
102
135
  name: kaminari
103
136
  prerelease: false
104
- requirement: &id006 !ruby/object:Gem::Requirement
137
+ requirement: &id008 !ruby/object:Gem::Requirement
105
138
  none: false
106
139
  requirements:
107
140
  - - ">="
@@ -113,11 +146,11 @@ dependencies:
113
146
  - 4
114
147
  version: 0.12.4
115
148
  type: :runtime
116
- version_requirements: *id006
149
+ version_requirements: *id008
117
150
  - !ruby/object:Gem::Dependency
118
151
  name: sass
119
152
  prerelease: false
120
- requirement: &id007 !ruby/object:Gem::Requirement
153
+ requirement: &id009 !ruby/object:Gem::Requirement
121
154
  none: false
122
155
  requirements:
123
156
  - - ">="
@@ -129,11 +162,11 @@ dependencies:
129
162
  - 0
130
163
  version: 3.1.0
131
164
  type: :runtime
132
- version_requirements: *id007
165
+ version_requirements: *id009
133
166
  - !ruby/object:Gem::Dependency
134
167
  name: fastercsv
135
168
  prerelease: false
136
- requirement: &id008 !ruby/object:Gem::Requirement
169
+ requirement: &id010 !ruby/object:Gem::Requirement
137
170
  none: false
138
171
  requirements:
139
172
  - - ">="
@@ -143,7 +176,7 @@ dependencies:
143
176
  - 0
144
177
  version: "0"
145
178
  type: :runtime
146
- version_requirements: *id008
179
+ version_requirements: *id010
147
180
  description: The administration framework for Ruby on Rails.
148
181
  email:
149
182
  - gregdbell@gmail.com
@@ -159,6 +192,7 @@ files:
159
192
  - .travis.yml
160
193
  - .yardopts
161
194
  - CHANGELOG.md
195
+ - CONTRIBUTING.md
162
196
  - Gemfile
163
197
  - Guardfile
164
198
  - LICENSE
@@ -175,16 +209,26 @@ files:
175
209
  - app/assets/images/active_admin/nested_menu_arrow.gif
176
210
  - app/assets/images/active_admin/nested_menu_arrow_dark.gif
177
211
  - app/assets/images/active_admin/orderable.png
212
+ - app/assets/javascripts/active_admin/application.js
178
213
  - app/assets/javascripts/active_admin/base.js
179
- - app/assets/javascripts/active_admin/vendor.js
180
214
  - app/assets/stylesheets/active_admin/_base.css.scss
181
215
  - app/assets/stylesheets/active_admin/_forms.css.scss
182
216
  - app/assets/stylesheets/active_admin/_header.css.scss
183
217
  - app/assets/stylesheets/active_admin/_mixins.css.scss
184
218
  - app/assets/stylesheets/active_admin/_typography.css.scss
219
+ - app/assets/stylesheets/active_admin/components/_blank_slates.scss
220
+ - app/assets/stylesheets/active_admin/components/_breadcrumbs.scss
221
+ - app/assets/stylesheets/active_admin/components/_buttons.scss
185
222
  - app/assets/stylesheets/active_admin/components/_comments.css.scss
186
223
  - app/assets/stylesheets/active_admin/components/_date_picker.css.scss
187
224
  - app/assets/stylesheets/active_admin/components/_flash_messages.css.scss
225
+ - app/assets/stylesheets/active_admin/components/_grid.scss
226
+ - app/assets/stylesheets/active_admin/components/_links.scss
227
+ - app/assets/stylesheets/active_admin/components/_pagination.scss
228
+ - app/assets/stylesheets/active_admin/components/_panels.scss
229
+ - app/assets/stylesheets/active_admin/components/_scopes.scss
230
+ - app/assets/stylesheets/active_admin/components/_status_tags.scss
231
+ - app/assets/stylesheets/active_admin/components/_table_tools.css.scss
188
232
  - app/assets/stylesheets/active_admin/components/_tables.css.scss
189
233
  - app/assets/stylesheets/active_admin/mixins/_all.css.scss
190
234
  - app/assets/stylesheets/active_admin/mixins/_buttons.css.scss
@@ -194,8 +238,14 @@ files:
194
238
  - app/assets/stylesheets/active_admin/mixins/_rounded.css.scss
195
239
  - app/assets/stylesheets/active_admin/mixins/_sections.css.scss
196
240
  - app/assets/stylesheets/active_admin/mixins/_shadows.css.scss
241
+ - app/assets/stylesheets/active_admin/mixins/_typography.scss
197
242
  - app/assets/stylesheets/active_admin/mixins/_utilities.scss
198
243
  - app/assets/stylesheets/active_admin/mixins/_variables.css.scss
244
+ - app/assets/stylesheets/active_admin/pages/_dashboard.scss
245
+ - app/assets/stylesheets/active_admin/pages/_logged_out.scss
246
+ - app/assets/stylesheets/active_admin/structure/_footer.scss
247
+ - app/assets/stylesheets/active_admin/structure/_main_structure.scss
248
+ - app/assets/stylesheets/active_admin/structure/_title_bar.scss
199
249
  - app/views/active_admin/dashboard/index.html.arb
200
250
  - app/views/active_admin/devise/mailer/reset_password_instructions.html.erb
201
251
  - app/views/active_admin/devise/mailer/unlock_instructions.html.erb
@@ -204,6 +254,7 @@ files:
204
254
  - app/views/active_admin/devise/sessions/new.html.erb
205
255
  - app/views/active_admin/devise/shared/_links.erb
206
256
  - app/views/active_admin/devise/unlocks/new.html.erb
257
+ - app/views/active_admin/page/index.html.arb
207
258
  - app/views/active_admin/resource/edit.html.arb
208
259
  - app/views/active_admin/resource/index.csv.erb
209
260
  - app/views/active_admin/resource/index.html.arb
@@ -225,12 +276,16 @@ files:
225
276
  - docs/6-show-screens.md
226
277
  - docs/7-sidebars.md
227
278
  - docs/8-custom-actions.md
279
+ - docs/9-custom-pages.md
280
+ - features/belongs_to.feature
228
281
  - features/comments/commenting.feature
229
282
  - features/comments/viewing_index.feature
230
283
  - features/dashboard.feature
284
+ - features/development_reloading.feature
231
285
  - features/edit_page.feature
232
286
  - features/first_boot.feature
233
287
  - features/global_navigation.feature
288
+ - features/index/filter_with_check_boxes.feature
234
289
  - features/index/filters.feature
235
290
  - features/index/format_as_csv.feature
236
291
  - features/index/formats.feature
@@ -244,15 +299,18 @@ files:
244
299
  - features/menu.feature
245
300
  - features/new_page.feature
246
301
  - features/registering_assets.feature
302
+ - features/registering_pages.feature
247
303
  - features/registering_resources.feature
248
304
  - features/show/default_content.feature
249
305
  - features/show/page_title.feature
250
306
  - features/sidebar_sections.feature
251
307
  - features/specifying_actions.feature
252
308
  - features/step_definitions/action_item_steps.rb
309
+ - features/step_definitions/action_link_steps.rb
253
310
  - features/step_definitions/additional_web_steps.rb
254
311
  - features/step_definitions/asset_steps.rb
255
312
  - features/step_definitions/attribute_steps.rb
313
+ - features/step_definitions/breadcrumb_steps.rb
256
314
  - features/step_definitions/comment_steps.rb
257
315
  - features/step_definitions/configuration_steps.rb
258
316
  - features/step_definitions/dashboard_steps.rb
@@ -261,9 +319,11 @@ files:
261
319
  - features/step_definitions/format_steps.rb
262
320
  - features/step_definitions/index_scope_steps.rb
263
321
  - features/step_definitions/layout_steps.rb
322
+ - features/step_definitions/member_link_steps.rb
264
323
  - features/step_definitions/menu_steps.rb
265
324
  - features/step_definitions/pagination_steps.rb
266
325
  - features/step_definitions/sidebar_steps.rb
326
+ - features/step_definitions/site_title_steps.rb
267
327
  - features/step_definitions/tab_steps.rb
268
328
  - features/step_definitions/user_steps.rb
269
329
  - features/step_definitions/web_steps.rb
@@ -289,10 +349,11 @@ files:
289
349
  - lib/active_admin/arbre/html/tag.rb
290
350
  - lib/active_admin/arbre/html/text_node.rb
291
351
  - lib/active_admin/asset_registration.rb
352
+ - lib/active_admin/base_controller.rb
353
+ - lib/active_admin/base_controller/menu.rb
292
354
  - lib/active_admin/callbacks.rb
293
355
  - lib/active_admin/comments.rb
294
356
  - lib/active_admin/comments/comment.rb
295
- - lib/active_admin/comments/configuration.rb
296
357
  - lib/active_admin/comments/namespace_helper.rb
297
358
  - lib/active_admin/comments/resource_helper.rb
298
359
  - lib/active_admin/comments/show_page_helper.rb
@@ -311,20 +372,36 @@ files:
311
372
  - lib/active_admin/dsl.rb
312
373
  - lib/active_admin/engine.rb
313
374
  - lib/active_admin/event.rb
375
+ - lib/active_admin/filter_form_builder.rb
314
376
  - lib/active_admin/form_builder.rb
315
377
  - lib/active_admin/helpers/optional_display.rb
316
378
  - lib/active_admin/helpers/scope_chain.rb
317
379
  - lib/active_admin/helpers/settings.rb
318
380
  - lib/active_admin/iconic.rb
319
381
  - lib/active_admin/iconic/icons.rb
382
+ - lib/active_admin/inputs.rb
383
+ - lib/active_admin/inputs/datepicker_input.rb
384
+ - lib/active_admin/inputs/filter_base.rb
385
+ - lib/active_admin/inputs/filter_check_boxes_input.rb
386
+ - lib/active_admin/inputs/filter_date_range_input.rb
387
+ - lib/active_admin/inputs/filter_numeric_input.rb
388
+ - lib/active_admin/inputs/filter_select_input.rb
389
+ - lib/active_admin/inputs/filter_string_input.rb
320
390
  - lib/active_admin/locales/bg.yml
391
+ - lib/active_admin/locales/ca.yml
321
392
  - lib/active_admin/locales/cs.yml
322
393
  - lib/active_admin/locales/da.yml
394
+ - lib/active_admin/locales/de.yml
323
395
  - lib/active_admin/locales/en.yml
324
396
  - lib/active_admin/locales/es.yml
325
397
  - lib/active_admin/locales/fr.yml
398
+ - lib/active_admin/locales/hr.yml
326
399
  - lib/active_admin/locales/it.yml
327
400
  - lib/active_admin/locales/ja.yml
401
+ - lib/active_admin/locales/ko.yml
402
+ - lib/active_admin/locales/lv.yml
403
+ - lib/active_admin/locales/nl.yml
404
+ - lib/active_admin/locales/no-NB.yml
328
405
  - lib/active_admin/locales/pl.yml
329
406
  - lib/active_admin/locales/pt-BR.yml
330
407
  - lib/active_admin/locales/ru.yml
@@ -333,27 +410,32 @@ files:
333
410
  - lib/active_admin/menu.rb
334
411
  - lib/active_admin/menu_item.rb
335
412
  - lib/active_admin/namespace.rb
336
- - lib/active_admin/page_config.rb
413
+ - lib/active_admin/page.rb
414
+ - lib/active_admin/page_controller.rb
415
+ - lib/active_admin/page_dsl.rb
416
+ - lib/active_admin/page_presenter.rb
337
417
  - lib/active_admin/reloader.rb
338
418
  - lib/active_admin/renderer.rb
339
419
  - lib/active_admin/resource.rb
340
420
  - lib/active_admin/resource/action_items.rb
341
421
  - lib/active_admin/resource/belongs_to.rb
422
+ - lib/active_admin/resource/controllers.rb
342
423
  - lib/active_admin/resource/menu.rb
343
424
  - lib/active_admin/resource/naming.rb
425
+ - lib/active_admin/resource/page_presenters.rb
344
426
  - lib/active_admin/resource/scopes.rb
345
427
  - lib/active_admin/resource/sidebars.rb
428
+ - lib/active_admin/resource_collection.rb
346
429
  - lib/active_admin/resource_controller.rb
347
430
  - lib/active_admin/resource_controller/action_builder.rb
348
431
  - lib/active_admin/resource_controller/actions.rb
349
432
  - lib/active_admin/resource_controller/callbacks.rb
350
433
  - lib/active_admin/resource_controller/collection.rb
351
434
  - lib/active_admin/resource_controller/filters.rb
352
- - lib/active_admin/resource_controller/form.rb
353
- - lib/active_admin/resource_controller/menu.rb
354
- - lib/active_admin/resource_controller/page_configurations.rb
435
+ - lib/active_admin/resource_controller/resource_class_methods.rb
355
436
  - lib/active_admin/resource_controller/scoping.rb
356
437
  - lib/active_admin/resource_controller/sidebars.rb
438
+ - lib/active_admin/resource_dsl.rb
357
439
  - lib/active_admin/router.rb
358
440
  - lib/active_admin/sass/active_admin.scss
359
441
  - lib/active_admin/sass/css_loader.rb
@@ -396,15 +478,14 @@ files:
396
478
  - lib/active_admin/views/index_as_table.rb
397
479
  - lib/active_admin/views/pages/base.rb
398
480
  - lib/active_admin/views/pages/dashboard.rb
399
- - lib/active_admin/views/pages/edit.rb
481
+ - lib/active_admin/views/pages/form.rb
400
482
  - lib/active_admin/views/pages/index.rb
401
483
  - lib/active_admin/views/pages/layout.rb
402
- - lib/active_admin/views/pages/new.rb
484
+ - lib/active_admin/views/pages/page.rb
403
485
  - lib/active_admin/views/pages/show.rb
404
486
  - lib/active_admin/views/tabbed_navigation.rb
405
487
  - lib/activeadmin.rb
406
488
  - lib/generators/active_admin/assets/assets_generator.rb
407
- - lib/generators/active_admin/assets/templates/3.0/active_admin.js
408
489
  - lib/generators/active_admin/assets/templates/3.1/active_admin.css.scss
409
490
  - lib/generators/active_admin/assets/templates/3.1/active_admin.js
410
491
  - lib/generators/active_admin/assets/templates/dashboards.rb
@@ -418,7 +499,6 @@ files:
418
499
  - lib/generators/active_admin/resource/templates/admin.rb
419
500
  - script/local
420
501
  - script/use_rails
421
- - spec/integration/belongs_to_spec.rb
422
502
  - spec/integration/default_namespace.rb
423
503
  - spec/integration/javascript_spec.rb
424
504
  - spec/integration/memory_spec.rb
@@ -430,6 +510,7 @@ files:
430
510
  - spec/support/rails_template.rb
431
511
  - spec/support/rails_template_with_data.rb
432
512
  - spec/support/templates/cucumber.rb
513
+ - spec/support/templates/cucumber_with_reloading.rb
433
514
  - spec/unit/abstract_view_factory_spec.rb
434
515
  - spec/unit/action_builder_spec.rb
435
516
  - spec/unit/active_admin_spec.rb
@@ -442,10 +523,13 @@ files:
442
523
  - spec/unit/arbre/html_spec.rb
443
524
  - spec/unit/asset_registration_spec.rb
444
525
  - spec/unit/auto_link_spec.rb
526
+ - spec/unit/base_controller_shared_examples.rb
527
+ - spec/unit/base_controller_spec.rb
445
528
  - spec/unit/belongs_to_spec.rb
446
529
  - spec/unit/breadcrumbs_spec.rb
447
530
  - spec/unit/comments_spec.rb
448
531
  - spec/unit/component_spec.rb
532
+ - spec/unit/config_shared_examples.rb
449
533
  - spec/unit/controller_filters_spec.rb
450
534
  - spec/unit/csv_builder_spec.rb
451
535
  - spec/unit/dashboard_controller_spec.rb
@@ -461,19 +545,25 @@ files:
461
545
  - spec/unit/helpers/settings_spec.rb
462
546
  - spec/unit/menu_item_spec.rb
463
547
  - spec/unit/menu_spec.rb
548
+ - spec/unit/namespace/register_page_spec.rb
549
+ - spec/unit/namespace/register_resource_spec.rb
464
550
  - spec/unit/namespace_spec.rb
551
+ - spec/unit/page_controller_spec.rb
552
+ - spec/unit/page_spec.rb
465
553
  - spec/unit/pretty_format_spec.rb
466
554
  - spec/unit/rails_spec.rb
467
- - spec/unit/registration_spec.rb
468
555
  - spec/unit/reloader_spec.rb
469
556
  - spec/unit/renderer_spec.rb
470
557
  - spec/unit/resource/action_items_spec.rb
471
558
  - spec/unit/resource/menu_spec.rb
472
559
  - spec/unit/resource/naming_spec.rb
560
+ - spec/unit/resource/page_presenters_spec.rb
473
561
  - spec/unit/resource/scopes_spec.rb
474
562
  - spec/unit/resource/sidebars_spec.rb
563
+ - spec/unit/resource_collection_spec.rb
475
564
  - spec/unit/resource_controller/collection_spec.rb
476
565
  - spec/unit/resource_controller_spec.rb
566
+ - spec/unit/resource_registration_spec.rb
477
567
  - spec/unit/resource_spec.rb
478
568
  - spec/unit/routing_spec.rb
479
569
  - spec/unit/sass/helpers_spec.rb
@@ -482,6 +572,7 @@ files:
482
572
  - spec/unit/views/components/attributes_table_spec.rb
483
573
  - spec/unit/views/components/blank_slate_spec.rb
484
574
  - spec/unit/views/components/columns_spec.rb
575
+ - spec/unit/views/components/paginated_collection_spec.rb
485
576
  - spec/unit/views/components/panel_spec.rb
486
577
  - spec/unit/views/components/sidebar_section_spec.rb
487
578
  - spec/unit/views/components/status_tag_spec.rb
@@ -526,12 +617,15 @@ signing_key:
526
617
  specification_version: 3
527
618
  summary: The administration framework for Ruby on Rails.
528
619
  test_files:
620
+ - features/belongs_to.feature
529
621
  - features/comments/commenting.feature
530
622
  - features/comments/viewing_index.feature
531
623
  - features/dashboard.feature
624
+ - features/development_reloading.feature
532
625
  - features/edit_page.feature
533
626
  - features/first_boot.feature
534
627
  - features/global_navigation.feature
628
+ - features/index/filter_with_check_boxes.feature
535
629
  - features/index/filters.feature
536
630
  - features/index/format_as_csv.feature
537
631
  - features/index/formats.feature
@@ -545,15 +639,18 @@ test_files:
545
639
  - features/menu.feature
546
640
  - features/new_page.feature
547
641
  - features/registering_assets.feature
642
+ - features/registering_pages.feature
548
643
  - features/registering_resources.feature
549
644
  - features/show/default_content.feature
550
645
  - features/show/page_title.feature
551
646
  - features/sidebar_sections.feature
552
647
  - features/specifying_actions.feature
553
648
  - features/step_definitions/action_item_steps.rb
649
+ - features/step_definitions/action_link_steps.rb
554
650
  - features/step_definitions/additional_web_steps.rb
555
651
  - features/step_definitions/asset_steps.rb
556
652
  - features/step_definitions/attribute_steps.rb
653
+ - features/step_definitions/breadcrumb_steps.rb
557
654
  - features/step_definitions/comment_steps.rb
558
655
  - features/step_definitions/configuration_steps.rb
559
656
  - features/step_definitions/dashboard_steps.rb
@@ -562,9 +659,11 @@ test_files:
562
659
  - features/step_definitions/format_steps.rb
563
660
  - features/step_definitions/index_scope_steps.rb
564
661
  - features/step_definitions/layout_steps.rb
662
+ - features/step_definitions/member_link_steps.rb
565
663
  - features/step_definitions/menu_steps.rb
566
664
  - features/step_definitions/pagination_steps.rb
567
665
  - features/step_definitions/sidebar_steps.rb
666
+ - features/step_definitions/site_title_steps.rb
568
667
  - features/step_definitions/tab_steps.rb
569
668
  - features/step_definitions/user_steps.rb
570
669
  - features/step_definitions/web_steps.rb
@@ -574,7 +673,6 @@ test_files:
574
673
  - features/support/selectors.rb
575
674
  - features/users/logging_in.feature
576
675
  - features/users/logging_out.feature
577
- - spec/integration/belongs_to_spec.rb
578
676
  - spec/integration/default_namespace.rb
579
677
  - spec/integration/javascript_spec.rb
580
678
  - spec/integration/memory_spec.rb
@@ -586,6 +684,7 @@ test_files:
586
684
  - spec/support/rails_template.rb
587
685
  - spec/support/rails_template_with_data.rb
588
686
  - spec/support/templates/cucumber.rb
687
+ - spec/support/templates/cucumber_with_reloading.rb
589
688
  - spec/unit/abstract_view_factory_spec.rb
590
689
  - spec/unit/action_builder_spec.rb
591
690
  - spec/unit/active_admin_spec.rb
@@ -598,10 +697,13 @@ test_files:
598
697
  - spec/unit/arbre/html_spec.rb
599
698
  - spec/unit/asset_registration_spec.rb
600
699
  - spec/unit/auto_link_spec.rb
700
+ - spec/unit/base_controller_shared_examples.rb
701
+ - spec/unit/base_controller_spec.rb
601
702
  - spec/unit/belongs_to_spec.rb
602
703
  - spec/unit/breadcrumbs_spec.rb
603
704
  - spec/unit/comments_spec.rb
604
705
  - spec/unit/component_spec.rb
706
+ - spec/unit/config_shared_examples.rb
605
707
  - spec/unit/controller_filters_spec.rb
606
708
  - spec/unit/csv_builder_spec.rb
607
709
  - spec/unit/dashboard_controller_spec.rb
@@ -617,19 +719,25 @@ test_files:
617
719
  - spec/unit/helpers/settings_spec.rb
618
720
  - spec/unit/menu_item_spec.rb
619
721
  - spec/unit/menu_spec.rb
722
+ - spec/unit/namespace/register_page_spec.rb
723
+ - spec/unit/namespace/register_resource_spec.rb
620
724
  - spec/unit/namespace_spec.rb
725
+ - spec/unit/page_controller_spec.rb
726
+ - spec/unit/page_spec.rb
621
727
  - spec/unit/pretty_format_spec.rb
622
728
  - spec/unit/rails_spec.rb
623
- - spec/unit/registration_spec.rb
624
729
  - spec/unit/reloader_spec.rb
625
730
  - spec/unit/renderer_spec.rb
626
731
  - spec/unit/resource/action_items_spec.rb
627
732
  - spec/unit/resource/menu_spec.rb
628
733
  - spec/unit/resource/naming_spec.rb
734
+ - spec/unit/resource/page_presenters_spec.rb
629
735
  - spec/unit/resource/scopes_spec.rb
630
736
  - spec/unit/resource/sidebars_spec.rb
737
+ - spec/unit/resource_collection_spec.rb
631
738
  - spec/unit/resource_controller/collection_spec.rb
632
739
  - spec/unit/resource_controller_spec.rb
740
+ - spec/unit/resource_registration_spec.rb
633
741
  - spec/unit/resource_spec.rb
634
742
  - spec/unit/routing_spec.rb
635
743
  - spec/unit/sass/helpers_spec.rb
@@ -638,6 +746,7 @@ test_files:
638
746
  - spec/unit/views/components/attributes_table_spec.rb
639
747
  - spec/unit/views/components/blank_slate_spec.rb
640
748
  - spec/unit/views/components/columns_spec.rb
749
+ - spec/unit/views/components/paginated_collection_spec.rb
641
750
  - spec/unit/views/components/panel_spec.rb
642
751
  - spec/unit/views/components/sidebar_section_spec.rb
643
752
  - spec/unit/views/components/status_tag_spec.rb