faceted_search 3.0.3 → 3.0.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: 40e1b27cf5c4266abfb4adeb45a75e915985334d6b57027e126f0dde3df31703
4
- data.tar.gz: cd236dc85e1405e760b481b54a412e0379bda78f87e4c4d84ce5ce96ea856c11
3
+ metadata.gz: 01b52a6d4ff80371c7c4030ff58ad80484e5f88a1cfc2407253fa1c072a4b1d0
4
+ data.tar.gz: 79e84f07a40b12c66e55c4454f33db36b1261c2af32684bc026e145c6b84df0b
5
5
  SHA512:
6
- metadata.gz: 0a78d0cc408c4428e5764e6fd4df090a6a298288054ed18c9dfa8e3ac31f8df55ee57f696fbd885dc2d664dfb284f8bf549442478468968e6fd4b4b56a9bda8a
7
- data.tar.gz: 49a64dfd21621fff301272072fa0d0529b244d775da075c2ff19a92bc45a1c983f5249b63ac0dc845f1a8291c505afe719105c1bc2d2f86a121d684a6bf8c087
6
+ metadata.gz: 7744e9624c370f16c5221e496579ca0f79b82d0510fee596e5a7c1b0d99a4e31469eb5fb233a09dd6fb94c6a9d0f0ebd488cc62282f10bd361fcec08756979ba
7
+ data.tar.gz: 4ce7e29bbab85ac106aadfcd0d52afd9c005e9ed0c50f73b71ff2b488c99abb8a9d6de5ae739c6fc5c6f45b3b43a309c1ad0c7086a0e02e4f8feec55eba343dd
data/README.md CHANGED
@@ -107,5 +107,8 @@ If something is tagged as "Delta blues", it MUST be tagged as "Blues" as well.
107
107
  Otherwise, it creates very odd comportments (selecting "Blues" does not show the object, whereas it is "Delta blues").
108
108
  There is no inference whatsoever, so the data MUST be clean.
109
109
 
110
+ The HTML code is ready for [Nestable2](https://github.com/RamonSmit/Nestable2) implementation. If you want to use this library, add the [CSS](https://github.com/RamonSmit/Nestable2/blob/master/dist/jquery.nestable.min.css) & [JS](https://github.com/RamonSmit/Nestable2/blob/master/dist/jquery.nestable.min.js) in your `vendor` folder and import them in `application.sass` & `application.js`.
111
+
112
+
110
113
  ## License
111
114
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,8 +1,12 @@
1
1
  <% if facet.values.any? %>
2
2
  <li>
3
3
  <% unless facet.title.blank? %><b><%= facet.title %></b><% end %>
4
- <ol class="faceted__facet__full_tree list-unstyled ">
5
- <%= render 'faceted_search/facets/full_tree/values', values: facet.values, facet: facet %>
6
- </ol>
4
+ <div class="static-nestable-list">
5
+ <div class="dd">
6
+ <ol class="faceted__facet__full_tree list-unstyled dd-list">
7
+ <%= render 'faceted_search/facets/full_tree/values', values: facet.values, facet: facet %>
8
+ </ol>
9
+ </div>
10
+ </div>
7
11
  </li>
8
12
  <% end %>
@@ -4,11 +4,11 @@
4
4
  identifier = value.send facet.find_by
5
5
  path = facet.facets.path_for(facet, identifier)
6
6
  %>
7
- <li class="faceted__facet__full_tree__value<%= '--selected' if facet.value_selected?(identifier) %>">
7
+ <li class="faceted__facet__full_tree__value<%= '--selected' if facet.value_selected?(identifier) %> dd-item">
8
8
  <%= link_to display_value, path %>
9
9
  <% child_values = facet.child_values(value) %>
10
10
  <% if child_values.any? %>
11
- <ol>
11
+ <ol class="dd-list">
12
12
  <%= render 'faceted_search/facets/full_tree/values', values: child_values, facet: facet %>
13
13
  </ol>
14
14
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module FacetedSearch
2
- VERSION = '3.0.3'
2
+ VERSION = '3.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faceted_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-04-03 00:00:00.000000000 Z
13
+ date: 2019-04-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -159,8 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.6
162
+ rubygems_version: 3.0.1
164
163
  signing_key:
165
164
  specification_version: 4
166
165
  summary: Faceted search with Active Record