blacklight-hierarchy 6.0.1 → 6.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
2
  SHA256:
3
- metadata.gz: 034edebdb6680608499eb121c925bbb8b6b3afd15e5bc5a1d188b7d62bae5366
4
- data.tar.gz: 28e35726f9495b54ce1c076bca9b740056d999f0e1c09e1ae4b3a093c546ab0e
3
+ metadata.gz: 49bf8b73b3485393e3e39213a1be9c87a4d0361ea56eb72710bb43c249ae0bc2
4
+ data.tar.gz: 0c985fdd8fd70f2b32fc50f8b9b9b48cc0c1e2665512fa4e94a36ef6e86d0661
5
5
  SHA512:
6
- metadata.gz: dc55e59ad62e1356331ff041b1cba66150d6a2d9ff3512a1260abeb57a343463495703849f024ef8dad794ff0249939061b95362a5862f339060a6bc4f27090c
7
- data.tar.gz: c6d3b61ff654263ddf876c1005162b8f5b211af8c0477d85f9d720ed9f920d5c4ede74791420b07b8b0274e46d9510f6f33be262a4c1ab5b70dcdc3d7e46f00f
6
+ metadata.gz: 9e00cd2aa025959a51851d3add643978fe2757bf2fc901a11df03c1e41b67c61a78f2c77aec3a9abf229a915573030393a1cbb09c8b9179559925eba6d89735c
7
+ data.tar.gz: 80acb77c149db230962ef996905270c82da6b6b1c84d39fc0cb2d4192b3242d26b43d1995dc7430d22b069e55759809fcac3babca97f4291e807496095dc7df5
data/README.md CHANGED
@@ -84,7 +84,7 @@ config.facet_display[:hierarchy].each{ |k,v| puts "#{k}_#{v}" }
84
84
  ```
85
85
 
86
86
  ### Changing the icons
87
- We store our closed/open icons as the SASS variables `$b-h-closed-icon` and `$b-h-closed-icon` in `hierarchy.scss`. By default we use SVGs provided by the [Font Awesome](https://github.com/FortAwesome/Font-Awesome) library. To change the icon, reassign these SASS variables with new SVG code.
87
+ We store our closed/open icons as the SASS variables `$b-h-closed-icon` and `$b-h-closed-icon` in `hierarchy.scss`. By default we use SVGs provided by the [Font Awesome](https://github.com/FortAwesome/Font-Awesome) library. To change the icon, reassign these SASS variables with new SVG code.
88
88
 
89
89
  ```scss
90
90
  /* app/assets/stylesheets/blacklight/hierarchy/hierarchy.scss */
@@ -116,9 +116,17 @@ The javascript in this project requires jquery, but it's up to you to provide it
116
116
 
117
117
  This code was ripped out of another project, and is still quite immature as a standalone project. Every effort has been made to make it as plug-and-play as possible, but it may stomp on Blacklight in unintended ways (e.g., ways that made sense in context of its former host app, but which aren't compatible with generic Blacklight). Proceed with caution, and report issues.
118
118
 
119
+ ## Release
120
+
121
+ In order to cut a new release you will need to publish simultaneously to NPM and RubyGems. Before you do that ensure that versions in `lib/blacklight/hierarchy/version.rb` and `package.json` match. Assuming you have the credentials to do it you can then:
122
+
123
+ ```
124
+ $ rake release
125
+ $ npm publish
126
+ ```
127
+
119
128
  ## TODO
120
129
 
121
130
  - WRITE TESTS
122
131
  - Switch internal facet management from hack-y Hash to `Blacklight::Hierarchy::FacetGroup` class (already implemented, but not plumbed up)
123
- - Add configuration support for hierarchy delimiters other than `/\s*:\s*/` (baked into `Blacklight::Hierarchy::FacetGroup`, but again, requiring additional plumbing)
124
132
  - Clarify when suffix is applied/required/etc.
@@ -1,4 +1,4 @@
1
- import { Controller } from 'stimulus'
1
+ import { Controller } from '@hotwired/stimulus'
2
2
 
3
3
  export default class extends Controller {
4
4
  static targets = [ "list" ]
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  s.require_paths = ['lib']
20
20
 
21
- s.add_dependency 'blacklight', '~> 7.18'
21
+ s.add_dependency 'blacklight', '>= 7.18', '< 9'
22
22
  s.add_dependency 'rails', '>= 5.1', '< 7.1'
23
23
  s.add_dependency 'deprecation'
24
24
 
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Hierarchy
3
- VERSION = '6.0.1'.freeze
3
+ VERSION = '6.1.0'.freeze
4
4
  end
5
5
  end
@@ -4,6 +4,6 @@
4
4
  // blacklight_hierarchy_controller instead:
5
5
  //
6
6
  // import BlacklightHierarchyController from 'blacklight-hierarchy/app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller'
7
- // import { Application } from 'stimulus'
7
+ // import { Application } from '@hotwired/stimulus'
8
8
  // const application = Application.start()
9
9
  // application.register("b-h-collapsible", BlacklightHierarchyController)
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-hierarchy",
3
- "version": "5.4.0",
3
+ "version": "6.1.0",
4
4
  "description": "[![Build Status](https://github.com/sul-dlss/blacklight-hierarchy/workflows/CI/badge.svg)](https://github.com/sul-dlss/blacklight-hierarchy/actions?query=branch%3Amain)",
5
5
  "main": "app/assets/javascripts/blacklight/hierarchy/hierarchy.js",
6
6
  "files": [
@@ -21,8 +21,4 @@ class TestAppGenerator < Rails::Generators::Base
21
21
  def create_images_directory
22
22
  run 'mkdir app/assets/images'
23
23
  end
24
-
25
- def add_js_reference
26
- inject_into_file 'app/assets/config/manifest.js', "\n//= link application.js", after: '//= link_directory ../stylesheets .css'
27
- end
28
24
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-hierarchy
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael B. Klein
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blacklight
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '7.18'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '9'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '7.18'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '9'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rails
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
215
  - !ruby/object:Gem::Version
210
216
  version: '0'
211
217
  requirements: []
212
- rubygems_version: 3.2.32
218
+ rubygems_version: 3.3.26
213
219
  signing_key:
214
220
  specification_version: 4
215
221
  summary: Hierarchical Facets for Blacklight