activeadmin 1.0.0 → 1.1.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.

Files changed (276) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE.md +20 -0
  3. data/.mdlrc +1 -0
  4. data/.rubocop.yml +52 -3
  5. data/.simplecov +13 -0
  6. data/.travis.yml +9 -24
  7. data/.yardopts +0 -1
  8. data/CHANGELOG.md +85 -4
  9. data/CONTRIBUTING.md +33 -57
  10. data/Gemfile +26 -17
  11. data/Rakefile +1 -12
  12. data/activeadmin.gemspec +9 -11
  13. data/app/assets/javascripts/active_admin/base.js.coffee +6 -2
  14. data/app/assets/javascripts/active_admin/initializers/batch_actions.js.coffee +5 -1
  15. data/app/assets/javascripts/active_admin/initializers/datepicker.js.coffee +5 -1
  16. data/app/assets/javascripts/active_admin/initializers/filters.js.coffee +5 -1
  17. data/app/assets/javascripts/active_admin/initializers/tabs.js.coffee +5 -1
  18. data/app/assets/javascripts/active_admin/lib/batch_actions.js.coffee +6 -3
  19. data/app/assets/javascripts/active_admin/lib/checkbox-toggler.js.coffee +9 -7
  20. data/app/assets/javascripts/active_admin/lib/dropdown-menu.js.coffee +5 -2
  21. data/app/assets/javascripts/active_admin/lib/per_page.js.coffee +6 -2
  22. data/app/assets/javascripts/active_admin/lib/table-checkbox-toggler.js.coffee +3 -5
  23. data/app/assets/stylesheets/active_admin/_base.scss +2 -2
  24. data/app/assets/stylesheets/active_admin/_forms.scss +6 -12
  25. data/app/assets/stylesheets/active_admin/components/_batch_actions.scss +0 -5
  26. data/app/assets/stylesheets/active_admin/components/_pagination.scss +11 -0
  27. data/app/assets/stylesheets/active_admin/components/_status_tags.scss +1 -0
  28. data/app/assets/stylesheets/active_admin/components/_tables.scss +4 -1
  29. data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -2
  30. data/app/assets/stylesheets/active_admin/print.scss +2 -3
  31. data/app/views/active_admin/devise/sessions/new.html.erb +1 -1
  32. data/app/views/active_admin/devise/shared/_links.erb +12 -6
  33. data/app/views/kaminari/active_admin/_first_page.html.erb +11 -0
  34. data/app/views/kaminari/active_admin/_gap.html.erb +8 -0
  35. data/app/views/kaminari/active_admin/_last_page.html.erb +11 -0
  36. data/app/views/kaminari/active_admin/_next_page.html.erb +11 -0
  37. data/app/views/kaminari/active_admin/_page.html.erb +12 -0
  38. data/app/views/kaminari/active_admin/_paginator.html.erb +25 -0
  39. data/app/views/kaminari/active_admin/_prev_page.html.erb +11 -0
  40. data/codecov.yml +14 -12
  41. data/config/i18n-tasks.yml +26 -0
  42. data/config/locales/ar.yml +1 -3
  43. data/config/locales/bg.yml +0 -2
  44. data/config/locales/bs.yml +0 -2
  45. data/config/locales/ca.yml +0 -2
  46. data/config/locales/cs.yml +0 -2
  47. data/config/locales/da.yml +1 -3
  48. data/config/locales/de-CH.yml +1 -3
  49. data/config/locales/de.yml +1 -3
  50. data/config/locales/el.yml +1 -3
  51. data/config/locales/en-CA.yml +138 -0
  52. data/config/locales/en-GB.yml +43 -3
  53. data/config/locales/en.yml +8 -4
  54. data/config/locales/es-MX.yml +3 -2
  55. data/config/locales/es.yml +10 -4
  56. data/config/locales/fa.yml +0 -2
  57. data/config/locales/fi.yml +0 -2
  58. data/config/locales/fr.yml +9 -2
  59. data/config/locales/he.yml +53 -7
  60. data/config/locales/hr.yml +0 -2
  61. data/config/locales/hu.yml +0 -2
  62. data/config/locales/id.yml +1 -3
  63. data/config/locales/it.yml +2 -4
  64. data/config/locales/ja.yml +1 -3
  65. data/config/locales/ko.yml +0 -2
  66. data/config/locales/lt.yml +24 -4
  67. data/config/locales/lv.yml +0 -2
  68. data/config/locales/nb.yml +0 -2
  69. data/config/locales/nl.yml +1 -3
  70. data/config/locales/pl.yml +3 -2
  71. data/config/locales/pt-BR.yml +1 -3
  72. data/config/locales/pt-PT.yml +0 -2
  73. data/config/locales/ro.yml +0 -2
  74. data/config/locales/ru.yml +1 -3
  75. data/config/locales/sk.yml +0 -2
  76. data/config/locales/sv-SE.yml +1 -3
  77. data/config/locales/tr.yml +0 -2
  78. data/config/locales/uk.yml +1 -3
  79. data/config/locales/vi.yml +0 -2
  80. data/config/locales/zh-CN.yml +0 -2
  81. data/config/locales/zh-TW.yml +1 -3
  82. data/config/mdl_style.rb +9 -0
  83. data/cucumber.yml +3 -3
  84. data/docs/0-installation.md +15 -12
  85. data/docs/1-general-configuration.md +10 -3
  86. data/docs/10-custom-pages.md +10 -5
  87. data/docs/11-decorators.md +1 -0
  88. data/docs/12-arbre-components.md +7 -9
  89. data/docs/13-authorization-adapter.md +39 -24
  90. data/docs/14-gotchas.md +41 -22
  91. data/docs/2-resource-customization.md +41 -18
  92. data/docs/3-index-pages.md +30 -12
  93. data/docs/3-index-pages/custom-index.md +1 -0
  94. data/docs/3-index-pages/index-as-block.md +0 -5
  95. data/docs/3-index-pages/index-as-blog.md +0 -5
  96. data/docs/3-index-pages/index-as-grid.md +0 -5
  97. data/docs/3-index-pages/index-as-table.md +1 -9
  98. data/docs/4-csv-format.md +2 -1
  99. data/docs/5-forms.md +45 -21
  100. data/docs/6-show-pages.md +2 -1
  101. data/docs/7-sidebars.md +2 -1
  102. data/docs/8-custom-actions.md +4 -1
  103. data/docs/9-batch-actions.md +4 -2
  104. data/docs/documentation.md +19 -21
  105. data/features/comments/commenting.feature +20 -0
  106. data/features/index/filters.feature +41 -1
  107. data/features/index/format_as_csv.feature +17 -0
  108. data/features/index/index_scopes.feature +15 -0
  109. data/features/registering_assets.feature +8 -4
  110. data/features/show/attributes_table_title.feature +54 -0
  111. data/features/show/tabs.feature +10 -4
  112. data/features/step_definitions/action_link_steps.rb +0 -1
  113. data/features/step_definitions/attributes_table_title_steps.rb +11 -0
  114. data/features/step_definitions/batch_action_steps.rb +2 -2
  115. data/features/step_definitions/comment_steps.rb +21 -1
  116. data/features/step_definitions/configuration_steps.rb +1 -1
  117. data/features/step_definitions/filter_steps.rb +9 -0
  118. data/features/step_definitions/format_steps.rb +1 -1
  119. data/features/step_definitions/index_scope_steps.rb +4 -0
  120. data/features/support/env.rb +5 -4
  121. data/features/support/regular_env.rb +7 -0
  122. data/features/support/reload_env.rb +7 -0
  123. data/gemfiles/rails_42.gemfile +2 -37
  124. data/gemfiles/rails_50.gemfile +5 -40
  125. data/gemfiles/rails_51.gemfile +5 -40
  126. data/lib/active_admin.rb +0 -3
  127. data/lib/active_admin/application.rb +6 -4
  128. data/lib/active_admin/asset_registration.rb +8 -0
  129. data/lib/active_admin/authorization_adapter.rb +0 -3
  130. data/lib/active_admin/base_controller.rb +1 -2
  131. data/lib/active_admin/base_controller/authorization.rb +0 -1
  132. data/lib/active_admin/base_controller/menu.rb +9 -9
  133. data/lib/active_admin/batch_actions/controller.rb +1 -1
  134. data/lib/active_admin/batch_actions/views/selection_cells.rb +6 -5
  135. data/lib/active_admin/csv_builder.rb +3 -3
  136. data/lib/active_admin/dependency.rb +1 -1
  137. data/lib/active_admin/devise.rb +2 -2
  138. data/lib/active_admin/dsl.rb +2 -2
  139. data/lib/active_admin/filters.rb +2 -0
  140. data/lib/active_admin/filters/active.rb +13 -14
  141. data/lib/active_admin/filters/active_filter.rb +87 -0
  142. data/lib/active_admin/filters/active_sidebar.rb +50 -0
  143. data/lib/active_admin/filters/forms.rb +1 -2
  144. data/lib/active_admin/filters/resource_extension.rb +2 -30
  145. data/lib/active_admin/helpers/settings.rb +0 -1
  146. data/lib/active_admin/inputs/datepicker_input.rb +5 -5
  147. data/lib/active_admin/inputs/filters/date_range_input.rb +12 -4
  148. data/lib/active_admin/inputs/filters/text_input.rb +0 -1
  149. data/lib/active_admin/menu.rb +4 -4
  150. data/lib/active_admin/menu_collection.rb +0 -2
  151. data/lib/active_admin/namespace.rb +1 -1
  152. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -5
  153. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +4 -2
  154. data/lib/active_admin/page_controller.rb +1 -1
  155. data/lib/active_admin/resource/action_items.rb +4 -0
  156. data/lib/active_admin/resource/attributes.rb +1 -1
  157. data/lib/active_admin/resource/page_presenters.rb +1 -1
  158. data/lib/active_admin/resource/routes.rb +0 -1
  159. data/lib/active_admin/resource/scopes.rb +2 -1
  160. data/lib/active_admin/resource_controller.rb +1 -1
  161. data/lib/active_admin/resource_controller/data_access.rb +8 -9
  162. data/lib/active_admin/resource_dsl.rb +10 -10
  163. data/lib/active_admin/router.rb +1 -1
  164. data/lib/active_admin/scope.rb +3 -3
  165. data/lib/active_admin/version.rb +1 -1
  166. data/lib/active_admin/view_helpers.rb +1 -0
  167. data/lib/active_admin/view_helpers/display_helper.rb +1 -1
  168. data/lib/active_admin/view_helpers/form_helper.rb +1 -1
  169. data/lib/active_admin/view_helpers/scope_name_helper.rb +16 -0
  170. data/lib/active_admin/views/action_items.rb +1 -1
  171. data/lib/active_admin/views/components/active_admin_form.rb +1 -1
  172. data/lib/active_admin/views/components/dropdown_menu.rb +2 -2
  173. data/lib/active_admin/views/components/index_list.rb +0 -2
  174. data/lib/active_admin/views/components/paginated_collection.rb +1 -1
  175. data/lib/active_admin/views/components/scopes.rb +2 -10
  176. data/lib/active_admin/views/components/status_tag.rb +19 -11
  177. data/lib/active_admin/views/components/tabs.rb +2 -2
  178. data/lib/active_admin/views/header.rb +0 -1
  179. data/lib/active_admin/views/index_as_blog.rb +1 -2
  180. data/lib/active_admin/views/index_as_grid.rb +2 -2
  181. data/lib/active_admin/views/index_as_table.rb +19 -1
  182. data/lib/active_admin/views/pages/base.rb +4 -4
  183. data/lib/active_admin/views/pages/show.rb +6 -1
  184. data/lib/active_admin/views/title_bar.rb +4 -4
  185. data/lib/bug_report_templates/{rails_5_master.rb → active_admin_master.rb} +35 -40
  186. data/lib/generators/active_admin/devise/devise_generator.rb +1 -1
  187. data/lib/generators/active_admin/install/templates/admin_user.rb.erb +1 -1
  188. data/spec/bug_report_templates_spec.rb +2 -3
  189. data/spec/rails_helper.rb +0 -3
  190. data/spec/spec_helper.rb +1 -12
  191. data/spec/support/active_admin_integration_spec_helper.rb +1 -1
  192. data/spec/support/rails_template.rb +5 -37
  193. data/spec/support/rails_template_with_data.rb +262 -3
  194. data/spec/support/templates/policies/active_admin/comment_policy.rb +1 -1
  195. data/spec/support/templates/policies/active_admin/page_policy.rb +1 -1
  196. data/spec/support/templates/policies/application_policy.rb +1 -2
  197. data/spec/support/templates/post_decorator.rb +0 -1
  198. data/spec/unit/abstract_view_factory_spec.rb +0 -1
  199. data/spec/unit/application_spec.rb +4 -0
  200. data/spec/unit/asset_registration_spec.rb +29 -0
  201. data/spec/unit/belongs_to_spec.rb +1 -2
  202. data/spec/unit/config_shared_examples.rb +1 -1
  203. data/spec/unit/csv_builder_spec.rb +2 -4
  204. data/spec/unit/dependency_spec.rb +7 -7
  205. data/spec/unit/dsl_spec.rb +0 -2
  206. data/spec/unit/filters/active_filter_spec.rb +135 -0
  207. data/spec/unit/filters/active_spec.rb +11 -1
  208. data/spec/unit/filters/filter_form_builder_spec.rb +9 -7
  209. data/spec/unit/form_builder_spec.rb +14 -14
  210. data/spec/unit/helpers/scope_chain_spec.rb +0 -1
  211. data/spec/unit/i18n_spec.rb +17 -0
  212. data/spec/unit/menu_item_spec.rb +1 -3
  213. data/spec/unit/namespace/register_page_spec.rb +1 -1
  214. data/spec/unit/namespace_spec.rb +0 -1
  215. data/spec/unit/page_spec.rb +0 -3
  216. data/spec/unit/resource/action_items_spec.rb +5 -1
  217. data/spec/unit/resource/attributes_spec.rb +1 -2
  218. data/spec/unit/resource/ordering_spec.rb +0 -3
  219. data/spec/unit/resource/scopes_spec.rb +1 -1
  220. data/spec/unit/resource_controller/data_access_spec.rb +2 -2
  221. data/spec/unit/resource_controller_spec.rb +1 -2
  222. data/spec/unit/resource_spec.rb +9 -2
  223. data/spec/unit/routing_spec.rb +0 -2
  224. data/spec/unit/scope_spec.rb +3 -3
  225. data/spec/unit/settings_spec.rb +0 -1
  226. data/spec/unit/view_factory_spec.rb +1 -1
  227. data/spec/unit/view_helpers/flash_helper_spec.rb +0 -1
  228. data/spec/unit/view_helpers/form_helper_spec.rb +3 -4
  229. data/spec/unit/view_helpers/method_or_proc_helper_spec.rb +0 -1
  230. data/spec/unit/views/components/attributes_table_spec.rb +0 -1
  231. data/spec/unit/views/components/columns_spec.rb +0 -2
  232. data/spec/unit/views/components/site_title_spec.rb +0 -2
  233. data/spec/unit/views/components/status_tag_spec.rb +23 -7
  234. data/spec/unit/views/components/tabs_spec.rb +29 -1
  235. data/spec/unit/views/pages/index_spec.rb +1 -1
  236. data/tasks/docs.rake +37 -10
  237. data/tasks/lint.rake +14 -1
  238. data/tasks/local.rake +2 -2
  239. data/tasks/test.rake +8 -25
  240. data/vendor/assets/javascripts/jquery-ui/data.js +41 -0
  241. data/vendor/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  242. data/vendor/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  243. data/vendor/assets/javascripts/jquery-ui/focusable.js +86 -0
  244. data/vendor/assets/javascripts/jquery-ui/ie.js +17 -0
  245. data/vendor/assets/javascripts/jquery-ui/keycode.js +47 -0
  246. data/vendor/assets/javascripts/jquery-ui/plugin.js +46 -0
  247. data/vendor/assets/javascripts/jquery-ui/position.js +500 -0
  248. data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  249. data/vendor/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  250. data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  251. data/vendor/assets/javascripts/jquery-ui/tabbable.js +38 -0
  252. data/vendor/assets/javascripts/jquery-ui/unique-id.js +51 -0
  253. data/vendor/assets/javascripts/jquery-ui/version.js +17 -0
  254. data/vendor/assets/javascripts/jquery-ui/widget.js +735 -0
  255. data/vendor/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  256. data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +300 -0
  257. data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  258. data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  259. data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +954 -0
  260. data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +1259 -0
  261. data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  262. data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +1207 -0
  263. data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  264. data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  265. data/vendor/assets/stylesheets/active_admin/_normalize.scss +447 -0
  266. metadata +62 -51
  267. data/.hound.yml +0 -14
  268. data/Appraisals +0 -41
  269. data/app/assets/images/active_admin/datepicker/datepicker-input-icon.png +0 -0
  270. data/app/assets/javascripts/active_admin/jquery_ui.js.erb +0 -18
  271. data/app/assets/stylesheets/active_admin/mixins/_reset.scss +0 -165
  272. data/lib/active_admin/filters/humanized.rb +0 -68
  273. data/spec/requests/javascript_spec.rb +0 -22
  274. data/spec/support/jslint.yml +0 -80
  275. data/spec/unit/filters/humanized_spec.rb +0 -64
  276. data/tasks/yard.rake +0 -9
@@ -0,0 +1,447 @@
1
+ /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in
9
+ * IE on Windows Phone and in iOS.
10
+ */
11
+
12
+ html {
13
+ line-height: 1.15; /* 1 */
14
+ -ms-text-size-adjust: 100%; /* 2 */
15
+ -webkit-text-size-adjust: 100%; /* 2 */
16
+ }
17
+
18
+ /* Sections
19
+ ========================================================================== */
20
+
21
+ /**
22
+ * Remove the margin in all browsers (opinionated).
23
+ */
24
+
25
+ body {
26
+ margin: 0;
27
+ }
28
+
29
+ /**
30
+ * Add the correct display in IE 9-.
31
+ */
32
+
33
+ article,
34
+ aside,
35
+ footer,
36
+ header,
37
+ nav,
38
+ section {
39
+ display: block;
40
+ }
41
+
42
+ /**
43
+ * Correct the font size and margin on `h1` elements within `section` and
44
+ * `article` contexts in Chrome, Firefox, and Safari.
45
+ */
46
+
47
+ h1 {
48
+ font-size: 2em;
49
+ margin: 0.67em 0;
50
+ }
51
+
52
+ /* Grouping content
53
+ ========================================================================== */
54
+
55
+ /**
56
+ * Add the correct display in IE 9-.
57
+ * 1. Add the correct display in IE.
58
+ */
59
+
60
+ figcaption,
61
+ figure,
62
+ main { /* 1 */
63
+ display: block;
64
+ }
65
+
66
+ /**
67
+ * Add the correct margin in IE 8.
68
+ */
69
+
70
+ figure {
71
+ margin: 1em 40px;
72
+ }
73
+
74
+ /**
75
+ * 1. Add the correct box sizing in Firefox.
76
+ * 2. Show the overflow in Edge and IE.
77
+ */
78
+
79
+ hr {
80
+ box-sizing: content-box; /* 1 */
81
+ height: 0; /* 1 */
82
+ overflow: visible; /* 2 */
83
+ }
84
+
85
+ /**
86
+ * 1. Correct the inheritance and scaling of font size in all browsers.
87
+ * 2. Correct the odd `em` font sizing in all browsers.
88
+ */
89
+
90
+ pre {
91
+ font-family: monospace, monospace; /* 1 */
92
+ font-size: 1em; /* 2 */
93
+ }
94
+
95
+ /* Text-level semantics
96
+ ========================================================================== */
97
+
98
+ /**
99
+ * 1. Remove the gray background on active links in IE 10.
100
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
101
+ */
102
+
103
+ a {
104
+ background-color: transparent; /* 1 */
105
+ -webkit-text-decoration-skip: objects; /* 2 */
106
+ }
107
+
108
+ /**
109
+ * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
110
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
111
+ */
112
+
113
+ abbr[title] {
114
+ border-bottom: none; /* 1 */
115
+ text-decoration: underline; /* 2 */
116
+ text-decoration: underline dotted; /* 2 */
117
+ }
118
+
119
+ /**
120
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
121
+ */
122
+
123
+ b,
124
+ strong {
125
+ font-weight: inherit;
126
+ }
127
+
128
+ /**
129
+ * Add the correct font weight in Chrome, Edge, and Safari.
130
+ */
131
+
132
+ b,
133
+ strong {
134
+ font-weight: bolder;
135
+ }
136
+
137
+ /**
138
+ * 1. Correct the inheritance and scaling of font size in all browsers.
139
+ * 2. Correct the odd `em` font sizing in all browsers.
140
+ */
141
+
142
+ code,
143
+ kbd,
144
+ samp {
145
+ font-family: monospace, monospace; /* 1 */
146
+ font-size: 1em; /* 2 */
147
+ }
148
+
149
+ /**
150
+ * Add the correct font style in Android 4.3-.
151
+ */
152
+
153
+ dfn {
154
+ font-style: italic;
155
+ }
156
+
157
+ /**
158
+ * Add the correct background and color in IE 9-.
159
+ */
160
+
161
+ mark {
162
+ background-color: #ff0;
163
+ color: #000;
164
+ }
165
+
166
+ /**
167
+ * Add the correct font size in all browsers.
168
+ */
169
+
170
+ small {
171
+ font-size: 80%;
172
+ }
173
+
174
+ /**
175
+ * Prevent `sub` and `sup` elements from affecting the line height in
176
+ * all browsers.
177
+ */
178
+
179
+ sub,
180
+ sup {
181
+ font-size: 75%;
182
+ line-height: 0;
183
+ position: relative;
184
+ vertical-align: baseline;
185
+ }
186
+
187
+ sub {
188
+ bottom: -0.25em;
189
+ }
190
+
191
+ sup {
192
+ top: -0.5em;
193
+ }
194
+
195
+ /* Embedded content
196
+ ========================================================================== */
197
+
198
+ /**
199
+ * Add the correct display in IE 9-.
200
+ */
201
+
202
+ audio,
203
+ video {
204
+ display: inline-block;
205
+ }
206
+
207
+ /**
208
+ * Add the correct display in iOS 4-7.
209
+ */
210
+
211
+ audio:not([controls]) {
212
+ display: none;
213
+ height: 0;
214
+ }
215
+
216
+ /**
217
+ * Remove the border on images inside links in IE 10-.
218
+ */
219
+
220
+ img {
221
+ border-style: none;
222
+ }
223
+
224
+ /**
225
+ * Hide the overflow in IE.
226
+ */
227
+
228
+ svg:not(:root) {
229
+ overflow: hidden;
230
+ }
231
+
232
+ /* Forms
233
+ ========================================================================== */
234
+
235
+ /**
236
+ * 1. Change the font styles in all browsers (opinionated).
237
+ * 2. Remove the margin in Firefox and Safari.
238
+ */
239
+
240
+ button,
241
+ input,
242
+ optgroup,
243
+ select,
244
+ textarea {
245
+ font-family: sans-serif; /* 1 */
246
+ font-size: 100%; /* 1 */
247
+ line-height: 1.15; /* 1 */
248
+ margin: 0; /* 2 */
249
+ }
250
+
251
+ /**
252
+ * Show the overflow in IE.
253
+ * 1. Show the overflow in Edge.
254
+ */
255
+
256
+ button,
257
+ input { /* 1 */
258
+ overflow: visible;
259
+ }
260
+
261
+ /**
262
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
263
+ * 1. Remove the inheritance of text transform in Firefox.
264
+ */
265
+
266
+ button,
267
+ select { /* 1 */
268
+ text-transform: none;
269
+ }
270
+
271
+ /**
272
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
273
+ * controls in Android 4.
274
+ * 2. Correct the inability to style clickable types in iOS and Safari.
275
+ */
276
+
277
+ button,
278
+ html [type="button"], /* 1 */
279
+ [type="reset"],
280
+ [type="submit"] {
281
+ -webkit-appearance: button; /* 2 */
282
+ }
283
+
284
+ /**
285
+ * Remove the inner border and padding in Firefox.
286
+ */
287
+
288
+ button::-moz-focus-inner,
289
+ [type="button"]::-moz-focus-inner,
290
+ [type="reset"]::-moz-focus-inner,
291
+ [type="submit"]::-moz-focus-inner {
292
+ border-style: none;
293
+ padding: 0;
294
+ }
295
+
296
+ /**
297
+ * Restore the focus styles unset by the previous rule.
298
+ */
299
+
300
+ button:-moz-focusring,
301
+ [type="button"]:-moz-focusring,
302
+ [type="reset"]:-moz-focusring,
303
+ [type="submit"]:-moz-focusring {
304
+ outline: 1px dotted ButtonText;
305
+ }
306
+
307
+ /**
308
+ * Correct the padding in Firefox.
309
+ */
310
+
311
+ fieldset {
312
+ padding: 0.35em 0.75em 0.625em;
313
+ }
314
+
315
+ /**
316
+ * 1. Correct the text wrapping in Edge and IE.
317
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
318
+ * 3. Remove the padding so developers are not caught out when they zero out
319
+ * `fieldset` elements in all browsers.
320
+ */
321
+
322
+ legend {
323
+ box-sizing: border-box; /* 1 */
324
+ color: inherit; /* 2 */
325
+ display: table; /* 1 */
326
+ max-width: 100%; /* 1 */
327
+ padding: 0; /* 3 */
328
+ white-space: normal; /* 1 */
329
+ }
330
+
331
+ /**
332
+ * 1. Add the correct display in IE 9-.
333
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
334
+ */
335
+
336
+ progress {
337
+ display: inline-block; /* 1 */
338
+ vertical-align: baseline; /* 2 */
339
+ }
340
+
341
+ /**
342
+ * Remove the default vertical scrollbar in IE.
343
+ */
344
+
345
+ textarea {
346
+ overflow: auto;
347
+ }
348
+
349
+ /**
350
+ * 1. Add the correct box sizing in IE 10-.
351
+ * 2. Remove the padding in IE 10-.
352
+ */
353
+
354
+ [type="checkbox"],
355
+ [type="radio"] {
356
+ box-sizing: border-box; /* 1 */
357
+ padding: 0; /* 2 */
358
+ }
359
+
360
+ /**
361
+ * Correct the cursor style of increment and decrement buttons in Chrome.
362
+ */
363
+
364
+ [type="number"]::-webkit-inner-spin-button,
365
+ [type="number"]::-webkit-outer-spin-button {
366
+ height: auto;
367
+ }
368
+
369
+ /**
370
+ * 1. Correct the odd appearance in Chrome and Safari.
371
+ * 2. Correct the outline style in Safari.
372
+ */
373
+
374
+ [type="search"] {
375
+ -webkit-appearance: textfield; /* 1 */
376
+ outline-offset: -2px; /* 2 */
377
+ }
378
+
379
+ /**
380
+ * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
381
+ */
382
+
383
+ [type="search"]::-webkit-search-cancel-button,
384
+ [type="search"]::-webkit-search-decoration {
385
+ -webkit-appearance: none;
386
+ }
387
+
388
+ /**
389
+ * 1. Correct the inability to style clickable types in iOS and Safari.
390
+ * 2. Change font properties to `inherit` in Safari.
391
+ */
392
+
393
+ ::-webkit-file-upload-button {
394
+ -webkit-appearance: button; /* 1 */
395
+ font: inherit; /* 2 */
396
+ }
397
+
398
+ /* Interactive
399
+ ========================================================================== */
400
+
401
+ /*
402
+ * Add the correct display in IE 9-.
403
+ * 1. Add the correct display in Edge, IE, and Firefox.
404
+ */
405
+
406
+ details, /* 1 */
407
+ menu {
408
+ display: block;
409
+ }
410
+
411
+ /*
412
+ * Add the correct display in all browsers.
413
+ */
414
+
415
+ summary {
416
+ display: list-item;
417
+ }
418
+
419
+ /* Scripting
420
+ ========================================================================== */
421
+
422
+ /**
423
+ * Add the correct display in IE 9-.
424
+ */
425
+
426
+ canvas {
427
+ display: inline-block;
428
+ }
429
+
430
+ /**
431
+ * Add the correct display in IE.
432
+ */
433
+
434
+ template {
435
+ display: none;
436
+ }
437
+
438
+ /* Hidden
439
+ ========================================================================== */
440
+
441
+ /**
442
+ * Add the correct display in IE 10-.
443
+ */
444
+
445
+ [hidden] {
446
+ display: none;
447
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Bell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arbre
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.1.1
27
- - !ruby/object:Gem::Dependency
28
- name: bourbon
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: coffee-rails
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +94,6 @@ dependencies:
108
94
  - - ">="
109
95
  - !ruby/object:Gem::Version
110
96
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: jquery-ui-rails
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
97
  - !ruby/object:Gem::Dependency
126
98
  name: kaminari
127
99
  requirement: !ruby/object:Gem::Requirement
@@ -177,19 +149,19 @@ dependencies:
177
149
  - !ruby/object:Gem::Version
178
150
  version: '1.3'
179
151
  - !ruby/object:Gem::Dependency
180
- name: sass-rails
152
+ name: sass
181
153
  requirement: !ruby/object:Gem::Requirement
182
154
  requirements:
183
- - - ">="
155
+ - - "~>"
184
156
  - !ruby/object:Gem::Version
185
- version: '0'
157
+ version: '3.1'
186
158
  type: :runtime
187
159
  prerelease: false
188
160
  version_requirements: !ruby/object:Gem::Requirement
189
161
  requirements:
190
- - - ">="
162
+ - - "~>"
191
163
  - !ruby/object:Gem::Version
192
- version: '0'
164
+ version: '3.1'
193
165
  - !ruby/object:Gem::Dependency
194
166
  name: sprockets
195
167
  requirement: !ruby/object:Gem::Requirement
@@ -211,12 +183,13 @@ executables: []
211
183
  extensions: []
212
184
  extra_rdoc_files: []
213
185
  files:
186
+ - ".github/ISSUE_TEMPLATE.md"
214
187
  - ".gitignore"
215
- - ".hound.yml"
188
+ - ".mdlrc"
216
189
  - ".rubocop.yml"
190
+ - ".simplecov"
217
191
  - ".travis.yml"
218
192
  - ".yardopts"
219
- - Appraisals
220
193
  - CHANGELOG.md
221
194
  - CODE_OF_CONDUCT.md
222
195
  - CONTRIBUTING.md
@@ -225,7 +198,6 @@ files:
225
198
  - README.md
226
199
  - Rakefile
227
200
  - activeadmin.gemspec
228
- - app/assets/images/active_admin/datepicker/datepicker-input-icon.png
229
201
  - app/assets/images/active_admin/nested_menu_arrow.gif
230
202
  - app/assets/images/active_admin/nested_menu_arrow_dark.gif
231
203
  - app/assets/images/active_admin/orderable.png
@@ -236,7 +208,6 @@ files:
236
208
  - app/assets/javascripts/active_admin/initializers/datepicker.js.coffee
237
209
  - app/assets/javascripts/active_admin/initializers/filters.js.coffee
238
210
  - app/assets/javascripts/active_admin/initializers/tabs.js.coffee
239
- - app/assets/javascripts/active_admin/jquery_ui.js.erb
240
211
  - app/assets/javascripts/active_admin/lib/batch_actions.js.coffee
241
212
  - app/assets/javascripts/active_admin/lib/checkbox-toggler.js.coffee
242
213
  - app/assets/javascripts/active_admin/lib/dropdown-menu.js.coffee
@@ -274,7 +245,6 @@ files:
274
245
  - app/assets/stylesheets/active_admin/mixins/_all.scss
275
246
  - app/assets/stylesheets/active_admin/mixins/_buttons.scss
276
247
  - app/assets/stylesheets/active_admin/mixins/_gradients.scss
277
- - app/assets/stylesheets/active_admin/mixins/_reset.scss
278
248
  - app/assets/stylesheets/active_admin/mixins/_rounded.scss
279
249
  - app/assets/stylesheets/active_admin/mixins/_sections.scss
280
250
  - app/assets/stylesheets/active_admin/mixins/_shadows.scss
@@ -300,9 +270,17 @@ files:
300
270
  - app/views/active_admin/resource/index.html.arb
301
271
  - app/views/active_admin/resource/new.html.arb
302
272
  - app/views/active_admin/resource/show.html.arb
273
+ - app/views/kaminari/active_admin/_first_page.html.erb
274
+ - app/views/kaminari/active_admin/_gap.html.erb
275
+ - app/views/kaminari/active_admin/_last_page.html.erb
276
+ - app/views/kaminari/active_admin/_next_page.html.erb
277
+ - app/views/kaminari/active_admin/_page.html.erb
278
+ - app/views/kaminari/active_admin/_paginator.html.erb
279
+ - app/views/kaminari/active_admin/_prev_page.html.erb
303
280
  - app/views/layouts/active_admin.html.arb
304
281
  - app/views/layouts/active_admin_logged_out.html.erb
305
282
  - codecov.yml
283
+ - config/i18n-tasks.yml
306
284
  - config/locales/ar.yml
307
285
  - config/locales/bg.yml
308
286
  - config/locales/bs.yml
@@ -312,6 +290,7 @@ files:
312
290
  - config/locales/de-CH.yml
313
291
  - config/locales/de.yml
314
292
  - config/locales/el.yml
293
+ - config/locales/en-CA.yml
315
294
  - config/locales/en-GB.yml
316
295
  - config/locales/en.yml
317
296
  - config/locales/es-MX.yml
@@ -342,6 +321,7 @@ files:
342
321
  - config/locales/vi.yml
343
322
  - config/locales/zh-CN.yml
344
323
  - config/locales/zh-TW.yml
324
+ - config/mdl_style.rb
345
325
  - cucumber.yml
346
326
  - docs/0-installation.md
347
327
  - docs/1-general-configuration.md
@@ -421,6 +401,7 @@ files:
421
401
  - features/registering_resources.feature
422
402
  - features/renamed_resource.feature
423
403
  - features/root_to.feature
404
+ - features/show/attributes_table_title.feature
424
405
  - features/show/columns.feature
425
406
  - features/show/default_content.feature
426
407
  - features/show/page_title.feature
@@ -433,6 +414,7 @@ files:
433
414
  - features/step_definitions/additional_web_steps.rb
434
415
  - features/step_definitions/asset_steps.rb
435
416
  - features/step_definitions/attribute_steps.rb
417
+ - features/step_definitions/attributes_table_title_steps.rb
436
418
  - features/step_definitions/batch_action_steps.rb
437
419
  - features/step_definitions/blog_steps.rb
438
420
  - features/step_definitions/breadcrumb_steps.rb
@@ -463,6 +445,8 @@ files:
463
445
  - features/strong_parameters.feature
464
446
  - features/support/env.rb
465
447
  - features/support/paths.rb
448
+ - features/support/regular_env.rb
449
+ - features/support/reload_env.rb
466
450
  - features/support/selectors.rb
467
451
  - features/users/logging_in.feature
468
452
  - features/users/logging_out.feature
@@ -498,10 +482,11 @@ files:
498
482
  - lib/active_admin/event.rb
499
483
  - lib/active_admin/filters.rb
500
484
  - lib/active_admin/filters/active.rb
485
+ - lib/active_admin/filters/active_filter.rb
486
+ - lib/active_admin/filters/active_sidebar.rb
501
487
  - lib/active_admin/filters/dsl.rb
502
488
  - lib/active_admin/filters/forms.rb
503
489
  - lib/active_admin/filters/formtastic_addons.rb
504
- - lib/active_admin/filters/humanized.rb
505
490
  - lib/active_admin/filters/resource_extension.rb
506
491
  - lib/active_admin/form_builder.rb
507
492
  - lib/active_admin/generators/boilerplate.rb
@@ -586,6 +571,7 @@ files:
586
571
  - lib/active_admin/view_helpers/flash_helper.rb
587
572
  - lib/active_admin/view_helpers/form_helper.rb
588
573
  - lib/active_admin/view_helpers/method_or_proc_helper.rb
574
+ - lib/active_admin/view_helpers/scope_name_helper.rb
589
575
  - lib/active_admin/view_helpers/sidebar_helper.rb
590
576
  - lib/active_admin/view_helpers/title_helper.rb
591
577
  - lib/active_admin/view_helpers/view_factory_helper.rb
@@ -621,7 +607,7 @@ files:
621
607
  - lib/active_admin/views/tabbed_navigation.rb
622
608
  - lib/active_admin/views/title_bar.rb
623
609
  - lib/activeadmin.rb
624
- - lib/bug_report_templates/rails_5_master.rb
610
+ - lib/bug_report_templates/active_admin_master.rb
625
611
  - lib/generators/active_admin/assets/assets_generator.rb
626
612
  - lib/generators/active_admin/assets/templates/active_admin.js.coffee
627
613
  - lib/generators/active_admin/assets/templates/active_admin.scss
@@ -649,13 +635,11 @@ files:
649
635
  - spec/javascripts/support/jasmine_runner.rb
650
636
  - spec/rails_helper.rb
651
637
  - spec/requests/default_namespace_spec.rb
652
- - spec/requests/javascript_spec.rb
653
638
  - spec/requests/memory_spec.rb
654
639
  - spec/requests/stylesheets_spec.rb
655
640
  - spec/spec_helper.rb
656
641
  - spec/support/active_admin_integration_spec_helper.rb
657
642
  - spec/support/active_admin_request_helpers.rb
658
- - spec/support/jslint.yml
659
643
  - spec/support/rails_template.rb
660
644
  - spec/support/rails_template_with_data.rb
661
645
  - spec/support/templates/admin/stores.rb
@@ -691,9 +675,9 @@ files:
691
675
  - spec/unit/dependency_spec.rb
692
676
  - spec/unit/devise_spec.rb
693
677
  - spec/unit/dsl_spec.rb
678
+ - spec/unit/filters/active_filter_spec.rb
694
679
  - spec/unit/filters/active_spec.rb
695
680
  - spec/unit/filters/filter_form_builder_spec.rb
696
- - spec/unit/filters/humanized_spec.rb
697
681
  - spec/unit/filters/resource_spec.rb
698
682
  - spec/unit/form_builder_spec.rb
699
683
  - spec/unit/generators/install_spec.rb
@@ -768,7 +752,32 @@ files:
768
752
  - tasks/local.rake
769
753
  - tasks/parallel_tests.rake
770
754
  - tasks/test.rake
771
- - tasks/yard.rake
755
+ - vendor/assets/javascripts/jquery-ui/data.js
756
+ - vendor/assets/javascripts/jquery-ui/disable-selection.js
757
+ - vendor/assets/javascripts/jquery-ui/escape-selector.js
758
+ - vendor/assets/javascripts/jquery-ui/focusable.js
759
+ - vendor/assets/javascripts/jquery-ui/ie.js
760
+ - vendor/assets/javascripts/jquery-ui/keycode.js
761
+ - vendor/assets/javascripts/jquery-ui/plugin.js
762
+ - vendor/assets/javascripts/jquery-ui/position.js
763
+ - vendor/assets/javascripts/jquery-ui/safe-active-element.js
764
+ - vendor/assets/javascripts/jquery-ui/safe-blur.js
765
+ - vendor/assets/javascripts/jquery-ui/scroll-parent.js
766
+ - vendor/assets/javascripts/jquery-ui/tabbable.js
767
+ - vendor/assets/javascripts/jquery-ui/unique-id.js
768
+ - vendor/assets/javascripts/jquery-ui/version.js
769
+ - vendor/assets/javascripts/jquery-ui/widget.js
770
+ - vendor/assets/javascripts/jquery-ui/widgets/button.js
771
+ - vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js
772
+ - vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js
773
+ - vendor/assets/javascripts/jquery-ui/widgets/datepicker.js
774
+ - vendor/assets/javascripts/jquery-ui/widgets/dialog.js
775
+ - vendor/assets/javascripts/jquery-ui/widgets/draggable.js
776
+ - vendor/assets/javascripts/jquery-ui/widgets/mouse.js
777
+ - vendor/assets/javascripts/jquery-ui/widgets/resizable.js
778
+ - vendor/assets/javascripts/jquery-ui/widgets/sortable.js
779
+ - vendor/assets/javascripts/jquery-ui/widgets/tabs.js
780
+ - vendor/assets/stylesheets/active_admin/_normalize.scss
772
781
  homepage: http://activeadmin.info
773
782
  licenses:
774
783
  - MIT
@@ -781,7 +790,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
781
790
  requirements:
782
791
  - - ">="
783
792
  - !ruby/object:Gem::Version
784
- version: '2.1'
793
+ version: '2.2'
785
794
  required_rubygems_version: !ruby/object:Gem::Requirement
786
795
  requirements:
787
796
  - - ">="
@@ -789,7 +798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
789
798
  version: '0'
790
799
  requirements: []
791
800
  rubyforge_project:
792
- rubygems_version: 2.6.10
801
+ rubygems_version: 2.6.12
793
802
  signing_key:
794
803
  specification_version: 4
795
804
  summary: The administration framework for Ruby on Rails.
@@ -835,6 +844,7 @@ test_files:
835
844
  - features/registering_resources.feature
836
845
  - features/renamed_resource.feature
837
846
  - features/root_to.feature
847
+ - features/show/attributes_table_title.feature
838
848
  - features/show/columns.feature
839
849
  - features/show/default_content.feature
840
850
  - features/show/page_title.feature
@@ -847,6 +857,7 @@ test_files:
847
857
  - features/step_definitions/additional_web_steps.rb
848
858
  - features/step_definitions/asset_steps.rb
849
859
  - features/step_definitions/attribute_steps.rb
860
+ - features/step_definitions/attributes_table_title_steps.rb
850
861
  - features/step_definitions/batch_action_steps.rb
851
862
  - features/step_definitions/blog_steps.rb
852
863
  - features/step_definitions/breadcrumb_steps.rb
@@ -877,6 +888,8 @@ test_files:
877
888
  - features/strong_parameters.feature
878
889
  - features/support/env.rb
879
890
  - features/support/paths.rb
891
+ - features/support/regular_env.rb
892
+ - features/support/reload_env.rb
880
893
  - features/support/selectors.rb
881
894
  - features/users/logging_in.feature
882
895
  - features/users/logging_out.feature
@@ -893,13 +906,11 @@ test_files:
893
906
  - spec/javascripts/support/jasmine_runner.rb
894
907
  - spec/rails_helper.rb
895
908
  - spec/requests/default_namespace_spec.rb
896
- - spec/requests/javascript_spec.rb
897
909
  - spec/requests/memory_spec.rb
898
910
  - spec/requests/stylesheets_spec.rb
899
911
  - spec/spec_helper.rb
900
912
  - spec/support/active_admin_integration_spec_helper.rb
901
913
  - spec/support/active_admin_request_helpers.rb
902
- - spec/support/jslint.yml
903
914
  - spec/support/rails_template.rb
904
915
  - spec/support/rails_template_with_data.rb
905
916
  - spec/support/templates/admin/stores.rb
@@ -935,9 +946,9 @@ test_files:
935
946
  - spec/unit/dependency_spec.rb
936
947
  - spec/unit/devise_spec.rb
937
948
  - spec/unit/dsl_spec.rb
949
+ - spec/unit/filters/active_filter_spec.rb
938
950
  - spec/unit/filters/active_spec.rb
939
951
  - spec/unit/filters/filter_form_builder_spec.rb
940
- - spec/unit/filters/humanized_spec.rb
941
952
  - spec/unit/filters/resource_spec.rb
942
953
  - spec/unit/form_builder_spec.rb
943
954
  - spec/unit/generators/install_spec.rb