administrate_ransack 0.2.0 → 0.3.4

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
2
  SHA256:
3
- metadata.gz: 4d5b6b6df33ceb539a8c0abfead4d35fc568deec8019fbe4357fa4e7c49a7ec4
4
- data.tar.gz: cd1434bf426ffe46b9ee4d8ec34c92aa6c12b2f973dcf1088e81d63568af1240
3
+ metadata.gz: 618ab90151c1ce165a912ce6f6cc08a4384a816224a7a131a2963086cd409354
4
+ data.tar.gz: 2ae8437885077f086c7e9dd8a4d1634106e4637c7c6f9013ffff71ed73a5008e
5
5
  SHA512:
6
- metadata.gz: c04a5d614096bd32d044440a55f6f76738525f5ffa88b020d6745cf89328242823154b6d77e356c981b7f9ce7093d55711a77eac72bc42a6a6bc3f844d2d47e3
7
- data.tar.gz: 8de7bda5e911657aeb149c251038078164a4632b8dc2163a4ac08736770bb50b63a5ce1f9f8b37d6f6d60e0ce94000375b0a7baec487a414ae02a9662c2551f2
6
+ metadata.gz: 567e6778c055506744283f5c43cbc92c02a6276d0e8d9f2dee65efca7b95f52fd6c385fb87c14d4c114c5fb4fc0b854c21c81c2d14f1dfc00f205059a3c81516
7
+ data.tar.gz: 8b48516b5670fa4fa6fe49b818d3f2b04ed97e58790894fcd6b108932f0fe3580ce676f16320eb0d92b0b4d65dbb8264b04f6b322b2f1451262a0761ae2363ee
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
- # Administrate Ransack [![Gem Version](https://badge.fury.io/rb/administrate_ransack.svg)](https://badge.fury.io/rb/administrate_ransack) [![CircleCI](https://circleci.com/gh/blocknotes/administrate_ransack.svg?style=svg)](https://circleci.com/gh/blocknotes/administrate_ransack)
1
+ # Administrate Ransack
2
+ [![gem version](https://badge.fury.io/rb/administrate_ransack.svg)](https://badge.fury.io/rb/administrate_ransack)
3
+ [![gem downloads](https://badgen.net/rubygems/dt/administrate_ransack)](https://rubygems.org/gems/administrate_ransack)
4
+ [![linters](https://github.com/blocknotes/administrate_ransack/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/administrate_ransack/actions/workflows/linters.yml)
5
+ [![specs](https://github.com/blocknotes/administrate_ransack/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/administrate_ransack/actions/workflows/specs.yml)
6
+
2
7
  A plugin for [Administrate](https://github.com/thoughtbot/administrate) to use [Ransack](https://github.com/activerecord-hackery/ransack) for filtering resources.
3
8
 
4
9
  Features:
5
10
  - add Ransack search results using module prepend inside an Administrate controller;
6
- - offer a filters side bar based on the resource's attributes;
11
+ - offer a filters partial based on the resource's attributes;
7
12
  - customize searchable attributes.
8
13
 
9
14
  ## Installation
15
+
10
16
  - After installing Administrate, add to *Gemfile*: `gem 'administrate_ransack'` (and execute `bundle`)
11
17
  - Edit your admin resource controller adding inside the class body:
12
18
  ```rb
@@ -19,13 +25,16 @@ prepend AdministrateRansack::Searchable
19
25
  - See the Usage section for extra options
20
26
 
21
27
  ## Usage
28
+
22
29
  - The filters partial accepts some optional parameters:
23
30
  + `attribute_labels`: hash used to override the field labels, ex. `{ title: "The title" }`
24
31
  + `attribute_types`: hash used to specify the filter fields, ex. `{ title: Administrate::Field::String }`
25
32
  + `search_path`: the path to use for searching (form URL)
26
- - For associations (has many/belongs to) the label used can be customized adding an `admin_label` method to the target model which returns a string while the collection can by filtered with `admin_scope`. Example:
33
+ + `namespace`: the namespace used by Administrate, ex. `:supervisor`
34
+ - For associations (_has many_/_belongs to_) the label used can be customized adding an `admin_label` method to the target model which returns a string while the collection can by filtered with `admin_scope`. Example:
27
35
 
28
36
  ```rb
37
+ # Sample post model
29
38
  class Post < ApplicationRecord
30
39
  scope :admin_scope, -> { where(published: true) }
31
40
 
@@ -35,8 +44,33 @@ class Post < ApplicationRecord
35
44
  end
36
45
  ```
37
46
 
47
+ - To use scopes in filters it's needed to update also the `ransackable_scopes` in the model, example:
48
+
49
+ ```rb
50
+ # Sample post model
51
+ class Post < ApplicationRecord
52
+ scope :recents, ->(dt = 1.month.ago) { where('dt > ?', dt).order(dt: :desc) }
53
+ scope :by_category, ->(category) { where(category: category) }
54
+
55
+ class << self
56
+ def ransackable_scopes(_auth_object = nil)
57
+ %i[by_category recents]
58
+ end
59
+ end
60
+ end
61
+ ```
62
+
63
+ ```erb
64
+ <!-- Sample index view -->
65
+ <%= render(
66
+ 'administrate_ransack/filters',
67
+ attribute_types: { recents: Administrate::Field::DateTime, by_category: Administrate::Field::String }
68
+ ) %>
69
+ ```
70
+
38
71
  ## Notes
39
- - Administrate Search logic works independently from Ransack searches, I suggest to disable it eventually (ex. overriding `show_search_bar?` in the controller)
72
+
73
+ - Administrate Search logic works independently from Ransack searches, I suggest to disable it eventually (ex. overriding `show_search_bar?` in the controller or removing the bar from the view)
40
74
  - Date/time filters use Rails `datetime_field` method which produces a `datetime-local` input field, at the moment this type of element is not broadly supported, a workaround is to include [flatpickr](https://github.com/flatpickr/flatpickr) datetime library.
41
75
  + This gem checks if `flatpickr` function is available in the global scope and applies it to the `datetime-local` filter inputs;
42
76
  + you can include the library using your application assets or via CDN, ex. adding to **app/views/layouts/admin/application.html.erb**:
@@ -51,7 +85,8 @@ end
51
85
  ```
52
86
 
53
87
  ## Customizations
54
- - Sample with different options provided:
88
+
89
+ - Sample call of the filters partial with different options provided:
55
90
  ```erb
56
91
  <%
57
92
  # In alternative prepare an hash in the dashboard like RANSACK_TYPES = {}
@@ -72,11 +107,15 @@ attribute_labels = {
72
107
  search_path: admin_root_path
73
108
  ) %>
74
109
  ```
75
- - An alternative is to prepare some hashes constants in the dashboard (ex. `RANSACK_TYPES`) and then:
110
+ - Another option is to prepare some hashes constants in the dashboard (ex. `RANSACK_TYPES`):
76
111
  ```erb
77
112
  <%= render('administrate_ransack/filters', attribute_types: @dashboard.class::RANSACK_TYPES) %>
78
113
  ```
79
- - Optional basic style to setup the filters as a sidebar:
114
+
115
+ ## Sample styles
116
+
117
+ - Some basic style to setup the filters as a sidebar (see the screenshot below):
118
+
80
119
  ```css
81
120
  .main-content__body {
82
121
  display: inline-block;
@@ -101,34 +140,70 @@ attribute_labels = {
101
140
  ```
102
141
 
103
142
  Screenshot:
104
- ![screenshot](screenshot.png)
143
+ ![screenshot](extra/screenshot.png)
144
+
145
+ - Alternative styles for an horizontal search bar:
146
+
147
+ ```css
148
+ [data-administrate-ransack-filters] {
149
+ border: 1px solid #ddd;
150
+ padding: 10px;
151
+ text-align: center;
152
+ }
153
+
154
+ [data-administrate-ransack-filters] .filters {
155
+ display: inline-block;
156
+ }
157
+
158
+ [data-administrate-ransack-filters] .filter, [data-administrate-ransack-filters] .filter > label {
159
+ display: inline-block;
160
+ }
161
+
162
+ [data-administrate-ransack-filters] .filter > input {
163
+ display: inline-block;
164
+ width: auto;
165
+ }
166
+
167
+ [data-administrate-ransack-filters] .filters-buttons {
168
+ display: inline-block;
169
+ margin-left: 20px;
170
+ }
171
+ ```
172
+
173
+ Screenshot:
174
+ ![screenshot2](extra/screenshot2.png)
105
175
 
106
176
  ## Extra notes
107
- - If you need to define custom search logics you can skip prepending the module (`AdministrateRansack::Searchable`) and create your own search query in a controller, ex:
177
+
178
+ - If you need to define custom search logics you can skip prepending the module (`AdministrateRansack::Searchable`) and create your own search query in a controller (but you need to assign the Ransack search object to `@ransack_results` for the filters partial), for example:
108
179
  ```ruby
109
180
  def scoped_resource
110
181
  @ransack_results = super.ransack(params[:q])
111
182
  @ransack_results.result(distinct: true)
112
183
  end
113
184
  ```
114
- - Sometimes it's easier to create a new ransack field than overriding the search logic, example to search in a `jsonb` field adding to a Post model:
185
+ - Sometimes it's easier to create a new Ransack field than overriding the search logic (there are a lot of good examples in the [Ransack Wiki](https://github.com/activerecord-hackery/ransack/wiki/Using-Ransackers)), example to search in a `jsonb` field adding to a Post model:
115
186
  ```ruby
116
187
  ransacker :keywords do
117
188
  Arel.sql("posts.metadata ->> 'keywords'")
118
189
  end
119
190
  ```
120
- - With this component you can easily link another resource applying some filters, example to add in a tag show page the link to the related posts:
191
+ - With Administrate Ransack you can easily create links to other resources applying some filters, example to add in a tag show page the link to the related posts:
121
192
  ```erb
122
193
  <%= link_to("Tag's posts", admin_posts_path('q[tags_id_in][]': page.resource.id), class: "button") %>
123
194
  ```
124
195
 
125
196
  ## Do you like it? Star it!
197
+
126
198
  If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
127
199
 
128
200
  Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
129
201
 
130
202
  ## Contributors
203
+
131
204
  - [Mattia Roccoberton](https://blocknot.es/): author
205
+ - The good guys that opened issues and pull requests from time to time
132
206
 
133
207
  ## License
208
+
134
209
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,11 +1,17 @@
1
1
  <% content_for :javascript do %>
2
2
  <script>
3
3
  document.addEventListener('DOMContentLoaded', (_event) => {
4
+ // flatpickr setup
4
5
  if(typeof window.flatpickr === 'function') {
5
6
  var options = window.flatpickr_filters_options;
6
7
  if(typeof options !== 'object') options = { enableTime: true };
7
8
  window.flatpickr('.filter [type="datetime-local"]', options);
8
9
  }
10
+
11
+ // selectize setup
12
+ $(function () {
13
+ $('.filters select').selectize();
14
+ });
9
15
  });
10
16
  </script>
11
17
  <% end %>
@@ -14,13 +20,14 @@
14
20
  attribute_labels ||= {}
15
21
  attribute_types ||= @dashboard.attribute_types.select { |key, _value| @dashboard.collection_attributes.include?(key) }
16
22
  form_options = { html: { 'data-administrate-ransack-filters': '1' } }
23
+ namespace = local_assigns[:namespace] || :admin
17
24
  if local_assigns.has_key?(:search_path)
18
25
  form_path = @ransack_results
19
26
  form_options[:url] = search_path
20
27
  clear_filters_path = search_path
21
28
  else
22
- form_path = [:admin, @ransack_results]
23
- clear_filters_path = url_for(url_for([:admin, @ransack_results.klass]))
29
+ form_path = [namespace, @ransack_results]
30
+ clear_filters_path = url_for(url_for([namespace, @ransack_results.klass]))
24
31
  end
25
32
  %>
26
33
 
@@ -30,29 +37,30 @@
30
37
  <% next if field == :id %>
31
38
 
32
39
  <% label = attribute_labels.include?(field) ? attribute_labels[field] : field %>
40
+ <% model = @ransack_results.klass %>
33
41
  <% input_type = type.is_a?(Administrate::Field::Deferred) ? type.deferred_class.to_s : type.to_s %>
34
- <div class="filter <%= input_type.parameterize %>">
42
+ <div class="filter filter-<%= field.to_s.parameterize %> <%= input_type.parameterize %>">
35
43
  <% case input_type %>
36
44
  <% when 'Administrate::Field::BelongsTo' %>
37
- <% association = @ransack_results.klass.reflections[field.to_s] %>
38
- <%= render 'administrate_ransack/components/field_belongs_to', form: f, field: field, label: label, association: association %>
45
+ <% association = model.reflections[field.to_s] %>
46
+ <%= render 'administrate_ransack/components/field_belongs_to', form: f, model: model, field: field, label: label, association: association %>
39
47
  <% when 'Administrate::Field::Boolean' %>
40
- <%= render 'administrate_ransack/components/field_boolean', form: f, field: field, label: label %>
48
+ <%= render 'administrate_ransack/components/field_boolean', form: f, model: model, field: field, label: label %>
41
49
  <% when 'Administrate::Field::Date' %>
42
- <%= render 'administrate_ransack/components/field_date', form: f, field: field, label: label %>
50
+ <%= render 'administrate_ransack/components/field_date', form: f, model: model, field: field, label: label %>
43
51
  <% when 'Administrate::Field::DateTime' %>
44
- <%= render 'administrate_ransack/components/field_datetime', form: f, field: field, label: label %>
52
+ <%= render 'administrate_ransack/components/field_datetime', form: f, model: model, field: field, label: label %>
45
53
  <% when 'Administrate::Field::Email', 'Administrate::Field::String', 'Administrate::Field::Text' %>
46
- <%= render 'administrate_ransack/components/field_string', form: f, field: field, label: label %>
54
+ <%= render 'administrate_ransack/components/field_string', form: f, model: model, field: field, label: label %>
47
55
  <% when 'Administrate::Field::Number' %>
48
- <%= render 'administrate_ransack/components/field_number', form: f, field: field, label: label %>
56
+ <%= render 'administrate_ransack/components/field_number', form: f, model: model, field: field, label: label %>
49
57
  <% when 'Administrate::Field::HasMany' %>
50
- <% association = @ransack_results.klass.reflections[field.to_s] %>
51
- <%= render 'administrate_ransack/components/field_has_many', form: f, field: field, label: label, association: association %>
58
+ <% association = model.reflections[field.to_s] %>
59
+ <%= render 'administrate_ransack/components/field_has_many', form: f, model: model, field: field, label: label, association: association %>
52
60
  <% when 'Administrate::Field::Select' %>
53
- <%= render 'administrate_ransack/components/field_select', form: f, field: field, label: label, type: type %>
61
+ <%= render 'administrate_ransack/components/field_select', form: f, model: model, field: field, label: label, type: type %>
54
62
  <% else %>
55
- <%= render 'administrate_ransack/components/field_other', form: f, field: field, label: label, type: type %>
63
+ <%= render 'administrate_ransack/components/field_other', form: f, model: model, field: field, label: label, type: type %>
56
64
  <% end %>
57
65
  </div>
58
66
  <% end %>
@@ -1,6 +1,7 @@
1
1
  <% if association %>
2
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_id_eq" %>
2
3
  <% desc = association.klass.method_defined?(:admin_label) ? :admin_label : :to_s %>
3
4
  <% collection = association.klass.send(association.klass.respond_to?(:admin_scope) ? :admin_scope : :all) %>
4
5
  <%= form.label(label) %>
5
- <%= form.collection_select "#{field}_id_eq", collection, :id, desc, include_blank: true %>
6
+ <%= form.collection_select(field_key, collection, :id, desc, include_blank: true) %>
6
7
  <% end %>
@@ -1,3 +1,4 @@
1
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_eq" %>
1
2
  <% values = [[t('administrate_ransack.filters.no'), false], [t('administrate_ransack.filters.yes'), true]] %>
2
3
  <%= form.label(label) %>
3
- <%= form.select "#{field}_eq", values, include_blank: true %>
4
+ <%= form.select(field_key, values, include_blank: true) %>
@@ -1,3 +1,7 @@
1
1
  <%= form.label(label) %>
2
- <%= form.date_field "#{field}_gteq" %>
3
- <%= form.date_field "#{field}_lteq" %>
2
+ <% if model.ransackable_scopes.include?(field) %>
3
+ <%= form.date_field(field, value: form.object.send(field)) %>
4
+ <% else %>
5
+ <%= form.date_field("#{field}_gteq") %>
6
+ <%= form.date_field("#{field}_lteq") %>
7
+ <% end %>
@@ -1,3 +1,7 @@
1
1
  <%= form.label(label) %>
2
- <%= form.datetime_field "#{field}_gteq" %>
3
- <%= form.datetime_field "#{field}_lteq" %>
2
+ <% if model.ransackable_scopes.include?(field) %>
3
+ <%= form.datetime_field(field, value: form.object.send(field)) %>
4
+ <% else %>
5
+ <%= form.datetime_field("#{field}_gteq") %>
6
+ <%= form.datetime_field("#{field}_lteq") %>
7
+ <% end %>
@@ -1,8 +1,9 @@
1
1
  <% if association %>
2
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_id_in" %>
2
3
  <% desc = association.klass.method_defined?(:admin_label) ? :admin_label : :to_s %>
3
4
  <% collection = association.klass.send(association.klass.respond_to?(:admin_scope) ? :admin_scope : :all) %>
4
5
  <%= form.label(label) %>
5
- <%= form.collection_check_boxes "#{field}_id_in", collection, :id, desc do |b| %>
6
+ <%= form.collection_check_boxes(field_key, collection, :id, desc) do |b| %>
6
7
  <%= b.label do %>
7
8
  <%= b.check_box %>
8
9
  <span><%= b.object.send(desc) %></span>
@@ -1,2 +1,3 @@
1
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_eq" %>
1
2
  <%= form.label(label) %>
2
- <%= form.number_field "#{field}_eq" %>
3
+ <%= form.number_field(field_key) %>
@@ -1,2 +1,3 @@
1
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_eq" %>
1
2
  <%= form.label(label) %>
2
- <%= form.select "#{field}_eq", type.options[:collection] || [], include_blank: true %>
3
+ <%= form.select(field_key, type.options[:collection] || [], include_blank: true) %>
@@ -1,4 +1,3 @@
1
+ <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_cont" %>
1
2
  <%= form.label(label) %>
2
- <%= form.search_field("#{field}_cont") %>
3
-
4
- <%#= form.search_field(@ransack_results.klass.respond_to?(field) ? field : "#{field}_cont") %>
3
+ <%= form.search_field(field_key) %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AdministrateRansack
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate_ransack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-01 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -39,105 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: activestorage
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '6.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '6.0'
55
- - !ruby/object:Gem::Dependency
56
- name: capybara
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.33'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.33'
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.13'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.13'
83
- - !ruby/object:Gem::Dependency
84
- name: puma
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '4.3'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '4.3'
97
- - !ruby/object:Gem::Dependency
98
- name: rspec_junit_formatter
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.4'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '0.4'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec-rails
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '4.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '4.0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.90'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '0.90'
139
- - !ruby/object:Gem::Dependency
140
- name: sassc
42
+ name: appraisal
141
43
  requirement: !ruby/object:Gem::Requirement
142
44
  requirements:
143
45
  - - "~>"
@@ -150,49 +52,7 @@ dependencies:
150
52
  - - "~>"
151
53
  - !ruby/object:Gem::Version
152
54
  version: '2.4'
153
- - !ruby/object:Gem::Dependency
154
- name: selenium-webdriver
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '3.142'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '3.142'
167
- - !ruby/object:Gem::Dependency
168
- name: sprockets-rails
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '3.2'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '3.2'
181
- - !ruby/object:Gem::Dependency
182
- name: sqlite3
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '1.4'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '1.4'
195
- description: A plugin for Administrate to use Ransack for filtering resources
55
+ description: A plugin for Administrate to use Ransack for search filters
196
56
  email:
197
57
  - mat@blocknot.es
198
58
  executables: []
@@ -221,7 +81,10 @@ files:
221
81
  homepage: https://github.com/blocknotes/administrate_ransack
222
82
  licenses:
223
83
  - MIT
224
- metadata: {}
84
+ metadata:
85
+ homepage_uri: https://github.com/blocknotes/administrate_ransack
86
+ source_code_uri: https://github.com/blocknotes/administrate_ransack
87
+ rubygems_mfa_required: 'true'
225
88
  post_install_message:
226
89
  rdoc_options: []
227
90
  require_paths:
@@ -237,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
100
  - !ruby/object:Gem::Version
238
101
  version: '0'
239
102
  requirements: []
240
- rubygems_version: 3.0.3
103
+ rubygems_version: 3.1.6
241
104
  signing_key:
242
105
  specification_version: 4
243
106
  summary: Administrate Ransack plugin