activeadmin_addons 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d45ccfa9219ff23329c1f9fc5dca62102a24f835
4
- data.tar.gz: 3da699fc77154f777a6cafb0768d15863acc826d
2
+ SHA256:
3
+ metadata.gz: 6b472f06d732bbadadadfa9c67ebcb3e6f6bfb1073e7d07083685e65c660e7c2
4
+ data.tar.gz: 7ef025d004f6c102ad7baccef42dc5ffb0952cc80e7100991856c8d2fa6bc4a0
5
5
  SHA512:
6
- metadata.gz: a68bb383da27e5895104ca3db2ea864a43bcffa6bae398c8a085b49dcd69cb0ea630f66706f82cdb7c34bcac2746574e217ced27121145f26ebbe049d1e1e5c5
7
- data.tar.gz: e835d4d209f378c96f8a19130ae7a79c09b6e42a4efec39c480f4b00201d875eedd1b917b58f44e324c64892d7f3342330a44683f3de551b8b96689d501b06aa
6
+ metadata.gz: e5ed4170f3ddd766831bac74455956dea8198a842ad277a4fabe4afa115461b8384392402ae4c3dd7733b97b12f8cc255645d7a0da0409d5107faafdd122a757
7
+ data.tar.gz: 6d1322392b6668af72a5ebe53e5f8498c909613e0d6ce9b99d2159aa0a3f4bab757daf588a17a07cda0a0f358e398d954ba37d0e7776d142a9f63797b8fc42d3
@@ -0,0 +1,36 @@
1
+ $(function() {
2
+ $('.toggle-bool-switch').click(function(e) {
3
+ var boolSwitch = $(e.target);
4
+ var model = boolSwitch.data('model');
5
+ var objectId = boolSwitch.data('object_id');
6
+ var field = boolSwitch.data('field');
7
+ var value = boolSwitch.data('value');
8
+ var otherValue = String(value) !== 'true';
9
+ var switchId = boolSwitch.attr('id');
10
+ var otherSwitch = $('#' + switchId.substr(0, switchId.lastIndexOf('-') + 1) + otherValue);
11
+ var url = boolSwitch.data('url');
12
+ var successMessage = boolSwitch.data('success_message');
13
+ var data = { id: objectId };
14
+ data[model] = {};
15
+ data[model][field] = otherValue;
16
+ $.ajax({
17
+ url: url,
18
+ data: data,
19
+ dataType: 'json',
20
+ error: function() {
21
+ var errorMsg = 'Error: Update Unsuccessful';
22
+ alert(errorMsg);
23
+ },
24
+ success: function() {
25
+ boolSwitch.addClass('hidden-switch');
26
+ otherSwitch.removeClass('hidden-switch');
27
+ if (!boolSwitch.hasClass('notify-success')) return;
28
+ $(function() {
29
+ var successMsg = 'Update Successful!';
30
+ setTimeout(alert(successMessage), 500);
31
+ });
32
+ },
33
+ type: 'PATCH',
34
+ });
35
+ });
36
+ });
@@ -10,3 +10,4 @@
10
10
  #= require ./inputs/selected-list
11
11
  #= require ./inputs/date-time-picker
12
12
  #= require ./inputs/color-picker
13
+ #= require ./addons/toggle_bool
@@ -0,0 +1,11 @@
1
+ .toggle-bool-switches-container {
2
+ text-align: center;
3
+
4
+ .toggle-bool-switch {
5
+ cursor: pointer;
6
+
7
+ &.hidden-switch {
8
+ display: none;
9
+ }
10
+ }
11
+ }
@@ -7,6 +7,7 @@
7
7
  @import 'inputs/date-time-picker';
8
8
  @import 'inputs/select2';
9
9
  @import 'inputs/selected-list';
10
+ @import 'addons/toggle_bool';
10
11
 
11
12
  $error-color: #932419;
12
13
 
@@ -0,0 +1,46 @@
1
+ module ActiveAdminAddons
2
+ class ToggleBoolBuilder < CustomBuilder
3
+ SWITCHES_IMAGES_SIZE = "40x16"
4
+
5
+ def render
6
+ raise ArgumentError, 'Block should not be used in toggle bool columns' if block
7
+ return if conditional_eval_hide?
8
+ context.div class: 'toggle-bool-switches-container' do
9
+ [true, false].each do |value|
10
+ context.span switch_image_for value
11
+ end
12
+ end
13
+ end
14
+
15
+ def switch_image_for(value)
16
+ img_tag_class = 'toggle-bool-switch'
17
+ img_tag_class += ' hidden-switch' if value == !data
18
+ img_tag_class += ' notify-success' if options[:success_message]
19
+
20
+ context.image_tag(
21
+ "switches/switch_#{value ? :on : :off}.png",
22
+ size: SWITCHES_IMAGES_SIZE,
23
+ id: "toggle-#{class_name}-#{model.id}-#{attribute}-#{value}",
24
+ class: img_tag_class,
25
+ 'data-model': class_name,
26
+ 'data-object_id': model.id,
27
+ 'data-field': attribute,
28
+ 'data-value': value,
29
+ 'data-url': context.resource_path(model),
30
+ 'data-success_message': options[:success_message]
31
+ )
32
+ end
33
+
34
+ def conditional_eval_hide?
35
+ [:if, :unless].any? do |cond|
36
+ if options[cond]
37
+ raise ArgumentError, "'#{cond}' option should be a proc" unless options[cond].is_a?(Proc)
38
+ result = options[cond].call(model)
39
+ cond == :if ? !result : result
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ ActiveAdminAddons::ToggleBoolBuilder.create_view_methods
@@ -9,7 +9,7 @@ module ActiveAdminAddons
9
9
  require_rel "support"
10
10
  require_rel "addons"
11
11
  require_rel "active_admin_config"
12
- app.config.assets.precompile += %w(select.scss fileicons/*.png)
12
+ app.config.assets.precompile += %w(select.scss fileicons/*.png switches/switch_*.png)
13
13
  end
14
14
  end
15
15
  end
@@ -44,6 +44,10 @@ module ActiveAdminAddons
44
44
  @options ||= has_opts? ? args.last : {}
45
45
  end
46
46
 
47
+ def class_name
48
+ model.class.name.downcase
49
+ end
50
+
47
51
  # attachment_column :foto
48
52
  # attachment_column :foto, style: :hola
49
53
  # attachment_column "Mi Foto", :foto
@@ -1,3 +1,3 @@
1
1
  module ActiveadminAddons
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -8,16 +8,16 @@ Gem::Specification.new do |s|
8
8
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Greg Bell".freeze]
11
- s.date = "2017-09-06"
11
+ s.date = "2017-11-17"
12
12
  s.description = "The administration framework for Ruby on Rails.".freeze
13
13
  s.email = ["gregdbell@gmail.com".freeze]
14
14
  s.files = [".gitignore".freeze, ".hound.yml".freeze, ".travis.yml".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "CONTRIBUTING.md".freeze, "Gemfile".freeze, "Guardfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "activeadmin.gemspec".freeze, "app/assets/images/active_admin/datepicker/datepicker-input-icon.png".freeze, "app/assets/images/active_admin/nested_menu_arrow.gif".freeze, "app/assets/images/active_admin/nested_menu_arrow_dark.gif".freeze, "app/assets/images/active_admin/orderable.png".freeze, "app/assets/javascripts/active_admin/application.js.coffee".freeze, "app/assets/javascripts/active_admin/base.js.coffee".freeze, "app/assets/javascripts/active_admin/ext/jquery-ui.js.coffee".freeze, "app/assets/javascripts/active_admin/ext/jquery.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/batch_actions.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/checkbox-toggler.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/dropdown-menu.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/flash.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/has_many.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/modal_dialog.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/per_page.js.coffee".freeze, "app/assets/javascripts/active_admin/lib/table-checkbox-toggler.js.coffee".freeze, "app/assets/stylesheets/active_admin/_base.scss".freeze, "app/assets/stylesheets/active_admin/_forms.scss".freeze, "app/assets/stylesheets/active_admin/_header.scss".freeze, "app/assets/stylesheets/active_admin/_mixins.scss".freeze, "app/assets/stylesheets/active_admin/_typography.scss".freeze, "app/assets/stylesheets/active_admin/components/_batch_actions.scss".freeze, "app/assets/stylesheets/active_admin/components/_blank_slates.scss".freeze, "app/assets/stylesheets/active_admin/components/_breadcrumbs.scss".freeze, "app/assets/stylesheets/active_admin/components/_buttons.scss".freeze, "app/assets/stylesheets/active_admin/components/_columns.scss".freeze, "app/assets/stylesheets/active_admin/components/_comments.scss".freeze, "app/assets/stylesheets/active_admin/components/_date_picker.scss".freeze, "app/assets/stylesheets/active_admin/components/_dropdown_menu.scss".freeze, "app/assets/stylesheets/active_admin/components/_flash_messages.scss".freeze, "app/assets/stylesheets/active_admin/components/_grid.scss".freeze, "app/assets/stylesheets/active_admin/components/_index_list.scss".freeze, "app/assets/stylesheets/active_admin/components/_links.scss".freeze, "app/assets/stylesheets/active_admin/components/_modal_dialog.scss".freeze, "app/assets/stylesheets/active_admin/components/_pagination.scss".freeze, "app/assets/stylesheets/active_admin/components/_panels.scss".freeze, "app/assets/stylesheets/active_admin/components/_scopes.scss".freeze, "app/assets/stylesheets/active_admin/components/_status_tags.scss".freeze, "app/assets/stylesheets/active_admin/components/_table_tools.scss".freeze, "app/assets/stylesheets/active_admin/components/_tables.scss".freeze, "app/assets/stylesheets/active_admin/components/_tabs.scss".freeze, "app/assets/stylesheets/active_admin/components/_unsupported_browser.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_all.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_buttons.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_gradients.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_reset.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_rounded.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_sections.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_shadows.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_typography.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_utilities.scss".freeze, "app/assets/stylesheets/active_admin/mixins/_variables.scss".freeze, "app/assets/stylesheets/active_admin/pages/_logged_out.scss".freeze, "app/assets/stylesheets/active_admin/print.scss".freeze, "app/assets/stylesheets/active_admin/structure/_footer.scss".freeze, "app/assets/stylesheets/active_admin/structure/_main_structure.scss".freeze, "app/assets/stylesheets/active_admin/structure/_title_bar.scss".freeze, "app/views/active_admin/devise/confirmations/new.html.erb".freeze, "app/views/active_admin/devise/mailer/reset_password_instructions.html.erb".freeze, "app/views/active_admin/devise/mailer/unlock_instructions.html.erb".freeze, "app/views/active_admin/devise/passwords/edit.html.erb".freeze, "app/views/active_admin/devise/passwords/new.html.erb".freeze, "app/views/active_admin/devise/registrations/new.html.erb".freeze, "app/views/active_admin/devise/sessions/new.html.erb".freeze, "app/views/active_admin/devise/shared/_links.erb".freeze, "app/views/active_admin/devise/unlocks/new.html.erb".freeze, "app/views/active_admin/page/index.html.arb".freeze, "app/views/active_admin/resource/edit.html.arb".freeze, "app/views/active_admin/resource/index.html.arb".freeze, "app/views/active_admin/resource/new.html.arb".freeze, "app/views/active_admin/resource/show.html.arb".freeze, "app/views/layouts/active_admin.html.arb".freeze, "app/views/layouts/active_admin_logged_out.html.erb".freeze, "config/locales/ar.yml".freeze, "config/locales/bg.yml".freeze, "config/locales/bs.yml".freeze, "config/locales/ca.yml".freeze, "config/locales/cs.yml".freeze, "config/locales/da.yml".freeze, "config/locales/de-CH.yml".freeze, "config/locales/de.yml".freeze, "config/locales/el.yml".freeze, "config/locales/en-GB.yml".freeze, "config/locales/en.yml".freeze, "config/locales/es-MX.yml".freeze, "config/locales/es.yml".freeze, "config/locales/fa.yml".freeze, "config/locales/fi.yml".freeze, "config/locales/fr.yml".freeze, "config/locales/he.yml".freeze, "config/locales/hr.yml".freeze, "config/locales/hu.yml".freeze, "config/locales/it.yml".freeze, "config/locales/ja.yml".freeze, "config/locales/ko.yml".freeze, "config/locales/lt.yml".freeze, "config/locales/lv.yml".freeze, "config/locales/nb.yml".freeze, "config/locales/nl.yml".freeze, "config/locales/pl.yml".freeze, "config/locales/pt-BR.yml".freeze, "config/locales/pt-PT.yml".freeze, "config/locales/ro.yml".freeze, "config/locales/ru.yml".freeze, "config/locales/sv-SE.yml".freeze, "config/locales/tr.yml".freeze, "config/locales/uk.yml".freeze, "config/locales/vi.yml".freeze, "config/locales/zh-CN.yml".freeze, "config/locales/zh-TW.yml".freeze, "cucumber.yml".freeze, "docs/0-installation.md".freeze, "docs/1-general-configuration.md".freeze, "docs/10-custom-pages.md".freeze, "docs/11-decorators.md".freeze, "docs/12-arbre-components.md".freeze, "docs/13-authorization-adapter.md".freeze, "docs/14-gotchas.md".freeze, "docs/2-resource-customization.md".freeze, "docs/3-index-pages.md".freeze, "docs/3-index-pages/custom-index.md".freeze, "docs/3-index-pages/index-as-block.md".freeze, "docs/3-index-pages/index-as-blog.md".freeze, "docs/3-index-pages/index-as-grid.md".freeze, "docs/3-index-pages/index-as-table.md".freeze, "docs/4-csv-format.md".freeze, "docs/5-forms.md".freeze, "docs/6-show-pages.md".freeze, "docs/7-sidebars.md".freeze, "docs/8-custom-actions.md".freeze, "docs/9-batch-actions.md".freeze, "docs/README.md".freeze, "features/action_item.feature".freeze, "features/authorization.feature".freeze, "features/authorization_cancan.feature".freeze, "features/authorization_pundit.feature".freeze, "features/belongs_to.feature".freeze, "features/breadcrumb.feature".freeze, "features/comments/commenting.feature".freeze, "features/comments/viewing_index.feature".freeze, "features/dashboard.feature".freeze, "features/decorators.feature".freeze, "features/development_reloading.feature".freeze, "features/edit_page.feature".freeze, "features/favicon.feature".freeze, "features/first_boot.feature".freeze, "features/global_navigation.feature".freeze, "features/i18n.feature".freeze, "features/index/batch_actions.feature".freeze, "features/index/filters.feature".freeze, "features/index/format_as_csv.feature".freeze, "features/index/formats.feature".freeze, "features/index/index_as_block.feature".freeze, "features/index/index_as_blog.feature".freeze, "features/index/index_as_grid.feature".freeze, "features/index/index_as_table.feature".freeze, "features/index/index_blank_slate.feature".freeze, "features/index/index_parameters.feature".freeze, "features/index/index_scope_to.feature".freeze, "features/index/index_scopes.feature".freeze, "features/index/page_title.feature".freeze, "features/index/pagination.feature".freeze, "features/index/switch_index_view.feature".freeze, "features/menu.feature".freeze, "features/meta_tags.feature".freeze, "features/new_page.feature".freeze, "features/registering_assets.feature".freeze, "features/registering_pages.feature".freeze, "features/registering_resources.feature".freeze, "features/renamed_resource.feature".freeze, "features/root_to.feature".freeze, "features/show/columns.feature".freeze, "features/show/default_content.feature".freeze, "features/show/page_title.feature".freeze, "features/show/tabs.feature".freeze, "features/sidebar_sections.feature".freeze, "features/site_title.feature".freeze, "features/specifying_actions.feature".freeze, "features/step_definitions/action_item_steps.rb".freeze, "features/step_definitions/action_link_steps.rb".freeze, "features/step_definitions/additional_web_steps.rb".freeze, "features/step_definitions/asset_steps.rb".freeze, "features/step_definitions/attribute_steps.rb".freeze, "features/step_definitions/batch_action_steps.rb".freeze, "features/step_definitions/blog_steps.rb".freeze, "features/step_definitions/breadcrumb_steps.rb".freeze, "features/step_definitions/column_steps.rb".freeze, "features/step_definitions/comment_steps.rb".freeze, "features/step_definitions/configuration_steps.rb".freeze, "features/step_definitions/dashboard_steps.rb".freeze, "features/step_definitions/factory_steps.rb".freeze, "features/step_definitions/filter_steps.rb".freeze, "features/step_definitions/flash_steps.rb".freeze, "features/step_definitions/format_steps.rb".freeze, "features/step_definitions/i18n_steps.rb".freeze, "features/step_definitions/index_scope_steps.rb".freeze, "features/step_definitions/index_views_steps.rb".freeze, "features/step_definitions/layout_steps.rb".freeze, "features/step_definitions/member_link_steps.rb".freeze, "features/step_definitions/menu_steps.rb".freeze, "features/step_definitions/meta_tag_steps.rb".freeze, "features/step_definitions/pagination_steps.rb".freeze, "features/step_definitions/sidebar_steps.rb".freeze, "features/step_definitions/site_title_steps.rb".freeze, "features/step_definitions/symbol_leak_steps.rb".freeze, "features/step_definitions/tab_steps.rb".freeze, "features/step_definitions/table_steps.rb".freeze, "features/step_definitions/user_steps.rb".freeze, "features/step_definitions/web_steps.rb".freeze, "features/sti_resource.feature".freeze, "features/strong_parameters.feature".freeze, "features/support/env.rb".freeze, "features/support/paths.rb".freeze, "features/support/selectors.rb".freeze, "features/symbol_leak.feature".freeze, "features/users/logging_in.feature".freeze, "features/users/logging_out.feature".freeze, "features/users/resetting_password.feature".freeze, "lib/active_admin.rb".freeze, "lib/active_admin/abstract_view_factory.rb".freeze, "lib/active_admin/application.rb".freeze, "lib/active_admin/asset_registration.rb".freeze, "lib/active_admin/authorization_adapter.rb".freeze, "lib/active_admin/base_controller.rb".freeze, "lib/active_admin/base_controller/authorization.rb".freeze, "lib/active_admin/base_controller/menu.rb".freeze, "lib/active_admin/batch_actions.rb".freeze, "lib/active_admin/batch_actions/controller.rb".freeze, "lib/active_admin/batch_actions/resource_extension.rb".freeze, "lib/active_admin/batch_actions/views/batch_action_form.rb".freeze, "lib/active_admin/batch_actions/views/batch_action_selector.rb".freeze, "lib/active_admin/batch_actions/views/selection_cells.rb".freeze, "lib/active_admin/callbacks.rb".freeze, "lib/active_admin/cancan_adapter.rb".freeze, "lib/active_admin/component.rb".freeze, "lib/active_admin/controller_action.rb".freeze, "lib/active_admin/csv_builder.rb".freeze, "lib/active_admin/dependency.rb".freeze, "lib/active_admin/deprecation.rb".freeze, "lib/active_admin/devise.rb".freeze, "lib/active_admin/dsl.rb".freeze, "lib/active_admin/engine.rb".freeze, "lib/active_admin/error.rb".freeze, "lib/active_admin/event.rb".freeze, "lib/active_admin/filters.rb".freeze, "lib/active_admin/filters/active.rb".freeze, "lib/active_admin/filters/dsl.rb".freeze, "lib/active_admin/filters/forms.rb".freeze, "lib/active_admin/filters/formtastic_addons.rb".freeze, "lib/active_admin/filters/humanized.rb".freeze, "lib/active_admin/filters/resource_extension.rb".freeze, "lib/active_admin/form_builder.rb".freeze, "lib/active_admin/generators/boilerplate.rb".freeze, "lib/active_admin/helpers/collection.rb".freeze, "lib/active_admin/helpers/i18n.rb".freeze, "lib/active_admin/helpers/optional_display.rb".freeze, "lib/active_admin/helpers/routes/url_helpers.rb".freeze, "lib/active_admin/helpers/scope_chain.rb".freeze, "lib/active_admin/helpers/settings.rb".freeze, "lib/active_admin/inputs.rb".freeze, "lib/active_admin/inputs/datepicker_input.rb".freeze, "lib/active_admin/inputs/filters/base.rb".freeze, "lib/active_admin/inputs/filters/base/search_method_select.rb".freeze, "lib/active_admin/inputs/filters/boolean_input.rb".freeze, "lib/active_admin/inputs/filters/check_boxes_input.rb".freeze, "lib/active_admin/inputs/filters/date_picker_input.rb".freeze, "lib/active_admin/inputs/filters/date_range_input.rb".freeze, "lib/active_admin/inputs/filters/numeric_input.rb".freeze, "lib/active_admin/inputs/filters/select_input.rb".freeze, "lib/active_admin/inputs/filters/string_input.rb".freeze, "lib/active_admin/menu.rb".freeze, "lib/active_admin/menu_collection.rb".freeze, "lib/active_admin/menu_item.rb".freeze, "lib/active_admin/namespace.rb".freeze, "lib/active_admin/order_clause.rb".freeze, "lib/active_admin/orm/active_record.rb".freeze, "lib/active_admin/orm/active_record/comments.rb".freeze, "lib/active_admin/orm/active_record/comments/comment.rb".freeze, "lib/active_admin/orm/active_record/comments/namespace_helper.rb".freeze, "lib/active_admin/orm/active_record/comments/resource_helper.rb".freeze, "lib/active_admin/orm/active_record/comments/show_page_helper.rb".freeze, "lib/active_admin/orm/active_record/comments/views.rb".freeze, "lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb".freeze, "lib/active_admin/orm/mongoid.rb".freeze, "lib/active_admin/orm/mongoid/.gitkeep".freeze, "lib/active_admin/page.rb".freeze, "lib/active_admin/page_controller.rb".freeze, "lib/active_admin/page_dsl.rb".freeze, "lib/active_admin/page_presenter.rb".freeze, "lib/active_admin/pundit_adapter.rb".freeze, "lib/active_admin/resource.rb".freeze, "lib/active_admin/resource/action_items.rb".freeze, "lib/active_admin/resource/belongs_to.rb".freeze, "lib/active_admin/resource/controllers.rb".freeze, "lib/active_admin/resource/includes.rb".freeze, "lib/active_admin/resource/menu.rb".freeze, "lib/active_admin/resource/naming.rb".freeze, "lib/active_admin/resource/page_presenters.rb".freeze, "lib/active_admin/resource/pagination.rb".freeze, "lib/active_admin/resource/routes.rb".freeze, "lib/active_admin/resource/scope_to.rb".freeze, "lib/active_admin/resource/scopes.rb".freeze, "lib/active_admin/resource/sidebars.rb".freeze, "lib/active_admin/resource_collection.rb".freeze, "lib/active_admin/resource_controller.rb".freeze, "lib/active_admin/resource_controller/action_builder.rb".freeze, "lib/active_admin/resource_controller/data_access.rb".freeze, "lib/active_admin/resource_controller/decorators.rb".freeze, "lib/active_admin/resource_controller/resource_class_methods.rb".freeze, "lib/active_admin/resource_controller/scoping.rb".freeze, "lib/active_admin/resource_controller/sidebars.rb".freeze, "lib/active_admin/resource_controller/streaming.rb".freeze, "lib/active_admin/resource_dsl.rb".freeze, "lib/active_admin/router.rb".freeze, "lib/active_admin/scope.rb".freeze, "lib/active_admin/sidebar_section.rb".freeze, "lib/active_admin/version.rb".freeze, "lib/active_admin/view_factory.rb".freeze, "lib/active_admin/view_helpers.rb".freeze, "lib/active_admin/view_helpers/active_admin_application_helper.rb".freeze, "lib/active_admin/view_helpers/auto_link_helper.rb".freeze, "lib/active_admin/view_helpers/breadcrumb_helper.rb".freeze, "lib/active_admin/view_helpers/display_helper.rb".freeze, "lib/active_admin/view_helpers/download_format_links_helper.rb".freeze, "lib/active_admin/view_helpers/fields_for.rb".freeze, "lib/active_admin/view_helpers/flash_helper.rb".freeze, "lib/active_admin/view_helpers/form_helper.rb".freeze, "lib/active_admin/view_helpers/method_or_proc_helper.rb".freeze, "lib/active_admin/view_helpers/sidebar_helper.rb".freeze, "lib/active_admin/view_helpers/title_helper.rb".freeze, "lib/active_admin/view_helpers/view_factory_helper.rb".freeze, "lib/active_admin/views.rb".freeze, "lib/active_admin/views/action_items.rb".freeze, "lib/active_admin/views/components/active_admin_form.rb".freeze, "lib/active_admin/views/components/attributes_table.rb".freeze, "lib/active_admin/views/components/blank_slate.rb".freeze, "lib/active_admin/views/components/columns.rb".freeze, "lib/active_admin/views/components/dropdown_menu.rb".freeze, "lib/active_admin/views/components/index_list.rb".freeze, "lib/active_admin/views/components/paginated_collection.rb".freeze, "lib/active_admin/views/components/panel.rb".freeze, "lib/active_admin/views/components/scopes.rb".freeze, "lib/active_admin/views/components/sidebar_section.rb".freeze, "lib/active_admin/views/components/site_title.rb".freeze, "lib/active_admin/views/components/status_tag.rb".freeze, "lib/active_admin/views/components/table_for.rb".freeze, "lib/active_admin/views/components/tabs.rb".freeze, "lib/active_admin/views/components/unsupported_browser.rb".freeze, "lib/active_admin/views/footer.rb".freeze, "lib/active_admin/views/header.rb".freeze, "lib/active_admin/views/index_as_block.rb".freeze, "lib/active_admin/views/index_as_blog.rb".freeze, "lib/active_admin/views/index_as_grid.rb".freeze, "lib/active_admin/views/index_as_table.rb".freeze, "lib/active_admin/views/pages/base.rb".freeze, "lib/active_admin/views/pages/form.rb".freeze, "lib/active_admin/views/pages/index.rb".freeze, "lib/active_admin/views/pages/layout.rb".freeze, "lib/active_admin/views/pages/page.rb".freeze, "lib/active_admin/views/pages/show.rb".freeze, "lib/active_admin/views/tabbed_navigation.rb".freeze, "lib/active_admin/views/title_bar.rb".freeze, "lib/activeadmin.rb".freeze, "lib/generators/active_admin/assets/assets_generator.rb".freeze, "lib/generators/active_admin/assets/templates/active_admin.js.coffee".freeze, "lib/generators/active_admin/assets/templates/active_admin.scss".freeze, "lib/generators/active_admin/devise/devise_generator.rb".freeze, "lib/generators/active_admin/install/install_generator.rb".freeze, "lib/generators/active_admin/install/templates/active_admin.rb.erb".freeze, "lib/generators/active_admin/install/templates/admin_user.rb.erb".freeze, "lib/generators/active_admin/install/templates/dashboard.rb".freeze, "lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb".freeze, "lib/generators/active_admin/page/USAGE".freeze, "lib/generators/active_admin/page/page_generator.rb".freeze, "lib/generators/active_admin/page/templates/page.rb".freeze, "lib/generators/active_admin/resource/resource_generator.rb".freeze, "lib/generators/active_admin/resource/templates/admin.rb".freeze, "lib/ransack_ext.rb".freeze, "script/local".freeze, "script/travis_cache".freeze, "script/use_rails".freeze, "spec/javascripts/coffeescripts/jquery.aa.checkbox-toggler-spec.js.coffee".freeze, "spec/javascripts/coffeescripts/jquery.aa.flash.js.coffee".freeze, "spec/javascripts/coffeescripts/jquery.aa.table-checkbox-toggler-spec.js.coffee".freeze, "spec/javascripts/fixtures/checkboxes.html".freeze, "spec/javascripts/fixtures/flashes.html".freeze, "spec/javascripts/fixtures/table_checkboxes.html".freeze, "spec/javascripts/helpers/SpecHelper.js".freeze, "spec/javascripts/support/jasmine.yml".freeze, "spec/javascripts/support/jasmine_config.rb".freeze, "spec/javascripts/support/jasmine_runner.rb".freeze, "spec/rails_helper.rb".freeze, "spec/requests/default_namespace_spec.rb".freeze, "spec/requests/javascript_spec.rb".freeze, "spec/requests/memory_spec.rb".freeze, "spec/requests/stylesheets_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/support/active_admin_request_helpers.rb".freeze, "spec/support/deferred_garbage_collection.rb".freeze, "spec/support/detect_rails_version.rb".freeze, "spec/support/jslint.yml".freeze, "spec/support/rails_template.rb".freeze, "spec/support/rails_template_with_data.rb".freeze, "spec/support/templates/admin/stores.rb".freeze, "spec/support/templates/cucumber.rb".freeze, "spec/support/templates/cucumber_with_reloading.rb".freeze, "spec/support/templates/en.yml".freeze, "spec/support/templates/policies/active_admin/comment_policy.rb".freeze, "spec/support/templates/policies/active_admin/page_policy.rb".freeze, "spec/support/templates/policies/admin_user_policy.rb".freeze, "spec/support/templates/policies/application_policy.rb".freeze, "spec/support/templates/policies/category_policy.rb".freeze, "spec/support/templates/policies/post_policy.rb".freeze, "spec/support/templates/policies/store_policy.rb".freeze, "spec/support/templates/policies/user_policy.rb".freeze, "spec/support/templates/post_decorator.rb".freeze, "spec/unit/abstract_view_factory_spec.rb".freeze, "spec/unit/action_builder_spec.rb".freeze, "spec/unit/active_admin_spec.rb".freeze, "spec/unit/application_spec.rb".freeze, "spec/unit/asset_registration_spec.rb".freeze, "spec/unit/authorization/authorization_adapter_spec.rb".freeze, "spec/unit/authorization/controller_authorization_spec.rb".freeze, "spec/unit/authorization/index_overriding_spec.rb".freeze, "spec/unit/auto_link_spec.rb".freeze, "spec/unit/batch_actions/resource_spec.rb".freeze, "spec/unit/batch_actions/settings_spec.rb".freeze, "spec/unit/belongs_to_spec.rb".freeze, "spec/unit/cancan_adapter_spec.rb".freeze, "spec/unit/comments_spec.rb".freeze, "spec/unit/component_spec.rb".freeze, "spec/unit/config_shared_examples.rb".freeze, "spec/unit/controller_filters_spec.rb".freeze, "spec/unit/csv_builder_spec.rb".freeze, "spec/unit/dependency_spec.rb".freeze, "spec/unit/devise_spec.rb".freeze, "spec/unit/dsl_spec.rb".freeze, "spec/unit/filters/filter_form_builder_spec.rb".freeze, "spec/unit/filters/humanized_spec.rb".freeze, "spec/unit/filters/resource_spec.rb".freeze, "spec/unit/form_builder_spec.rb".freeze, "spec/unit/generators/install_spec.rb".freeze, "spec/unit/helpers/collection_spec.rb".freeze, "spec/unit/helpers/scope_chain_spec.rb".freeze, "spec/unit/helpers/settings_spec.rb".freeze, "spec/unit/i18n_spec.rb".freeze, "spec/unit/menu_collection_spec.rb".freeze, "spec/unit/menu_item_spec.rb".freeze, "spec/unit/menu_spec.rb".freeze, "spec/unit/namespace/authorization_spec.rb".freeze, "spec/unit/namespace/register_page_spec.rb".freeze, "spec/unit/namespace/register_resource_spec.rb".freeze, "spec/unit/namespace_spec.rb".freeze, "spec/unit/order_clause_spec.rb".freeze, "spec/unit/page_controller_spec.rb".freeze, "spec/unit/page_spec.rb".freeze, "spec/unit/pretty_format_spec.rb".freeze, "spec/unit/pundit_adapter_spec.rb".freeze, "spec/unit/resource/action_items_spec.rb".freeze, "spec/unit/resource/includes_spec.rb".freeze, "spec/unit/resource/menu_spec.rb".freeze, "spec/unit/resource/naming_spec.rb".freeze, "spec/unit/resource/page_presenters_spec.rb".freeze, "spec/unit/resource/pagination_spec.rb".freeze, "spec/unit/resource/routes_spec.rb".freeze, "spec/unit/resource/scopes_spec.rb".freeze, "spec/unit/resource/sidebars_spec.rb".freeze, "spec/unit/resource_collection_spec.rb".freeze, "spec/unit/resource_controller/data_access_spec.rb".freeze, "spec/unit/resource_controller/decorators_spec.rb".freeze, "spec/unit/resource_controller/sidebars_spec.rb".freeze, "spec/unit/resource_controller_spec.rb".freeze, "spec/unit/resource_registration_spec.rb".freeze, "spec/unit/resource_spec.rb".freeze, "spec/unit/routing_spec.rb".freeze, "spec/unit/scope_spec.rb".freeze, "spec/unit/settings_spec.rb".freeze, "spec/unit/view_factory_spec.rb".freeze, "spec/unit/view_helpers/breadcrumbs_spec.rb".freeze, "spec/unit/view_helpers/display_name_spec.rb".freeze, "spec/unit/view_helpers/download_format_links_helper_spec.rb".freeze, "spec/unit/view_helpers/fields_for_spec.rb".freeze, "spec/unit/view_helpers/flash_helper_spec.rb".freeze, "spec/unit/view_helpers/form_helper_spec.rb".freeze, "spec/unit/view_helpers/method_or_proc_helper_spec.rb".freeze, "spec/unit/views/components/attributes_table_spec.rb".freeze, "spec/unit/views/components/batch_action_selector_spec.rb".freeze, "spec/unit/views/components/blank_slate_spec.rb".freeze, "spec/unit/views/components/columns_spec.rb".freeze, "spec/unit/views/components/index_list_spec.rb".freeze, "spec/unit/views/components/index_table_for_spec.rb".freeze, "spec/unit/views/components/paginated_collection_spec.rb".freeze, "spec/unit/views/components/panel_spec.rb".freeze, "spec/unit/views/components/sidebar_section_spec.rb".freeze, "spec/unit/views/components/site_title_spec.rb".freeze, "spec/unit/views/components/status_tag_spec.rb".freeze, "spec/unit/views/components/table_for_spec.rb".freeze, "spec/unit/views/components/tabs_spec.rb".freeze, "spec/unit/views/components/unsupported_browser_spec.rb".freeze, "spec/unit/views/pages/form_spec.rb".freeze, "spec/unit/views/pages/index_spec.rb".freeze, "spec/unit/views/pages/layout_spec.rb".freeze, "spec/unit/views/pages/show_spec.rb".freeze, "spec/unit/views/tabbed_navigation_spec.rb".freeze, "tasks/docs.rake".freeze, "tasks/parallel_tests.rake".freeze, "tasks/test.rake".freeze, "tasks/yard.rake".freeze]
15
15
  s.homepage = "http://activeadmin.info".freeze
16
16
  s.licenses = ["MIT".freeze]
17
- s.rubygems_version = "2.6.13".freeze
17
+ s.rubygems_version = "2.7.2".freeze
18
18
  s.summary = "The administration framework for Ruby on Rails.".freeze
19
19
 
20
- s.installed_by_version = "2.6.13" if s.respond_to? :installed_by_version
20
+ s.installed_by_version = "2.7.2" if s.respond_to? :installed_by_version
21
21
 
22
22
  if s.respond_to? :specification_version then
23
23
  s.specification_version = 4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_addons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-09-06 00:00:00.000000000 Z
14
+ date: 2017-11-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -381,6 +381,9 @@ files:
381
381
  - app/assets/images/fileicons/file_extension_xlsx.png
382
382
  - app/assets/images/fileicons/file_extension_xpi.png
383
383
  - app/assets/images/fileicons/file_extension_zip.png
384
+ - app/assets/images/switches/switch_off.png
385
+ - app/assets/images/switches/switch_on.png
386
+ - app/assets/javascripts/activeadmin_addons/addons/toggle_bool.js
384
387
  - app/assets/javascripts/activeadmin_addons/all.js.coffee
385
388
  - app/assets/javascripts/activeadmin_addons/config.js
386
389
  - app/assets/javascripts/activeadmin_addons/inputs/color-picker.js
@@ -390,6 +393,7 @@ files:
390
393
  - app/assets/javascripts/activeadmin_addons/inputs/select2.js
391
394
  - app/assets/javascripts/activeadmin_addons/inputs/selected-list.js
392
395
  - app/assets/javascripts/activeadmin_addons/inputs/tags.js
396
+ - app/assets/stylesheets/activeadmin_addons/addons/toggle_bool.scss
393
397
  - app/assets/stylesheets/activeadmin_addons/all.scss
394
398
  - app/assets/stylesheets/activeadmin_addons/inputs/color-picker.scss
395
399
  - app/assets/stylesheets/activeadmin_addons/inputs/date-time-picker.scss
@@ -416,6 +420,7 @@ files:
416
420
  - lib/activeadmin_addons/addons/number_builder.rb
417
421
  - lib/activeadmin_addons/addons/state_builder.rb
418
422
  - lib/activeadmin_addons/addons/tag_builder.rb
423
+ - lib/activeadmin_addons/addons/toggle_bool_builder.rb
419
424
  - lib/activeadmin_addons/engine.rb
420
425
  - lib/activeadmin_addons/support/custom_builder.rb
421
426
  - lib/activeadmin_addons/support/enumerize_formtastic_support.rb
@@ -968,7 +973,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
968
973
  version: '0'
969
974
  requirements: []
970
975
  rubyforge_project:
971
- rubygems_version: 2.6.13
976
+ rubygems_version: 2.7.2
972
977
  signing_key:
973
978
  specification_version: 4
974
979
  summary: Set of addons to help with the activeadmin ui