blacklight-gallery 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/app/assets/config/blacklight_gallery/manifest.js +2 -0
- data/app/assets/stylesheets/blacklight_gallery/_masonry.scss +1 -1
- data/config/importmap.rb +4 -0
- data/lib/blacklight/gallery/engine.rb +3 -0
- data/lib/blacklight/gallery/version.rb +1 -1
- data/lib/generators/blacklight_gallery/install_generator.rb +1 -0
- data/package.json +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4aa064cc9d3955af52339ff6ffcaeb6edec7fb71dfe8b5b8b11b435f43dd10b1
|
|
4
|
+
data.tar.gz: 3f49377d2861106d630d16c5d8aca656ce0d7d1e5fe6422befee3b342cceb388
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ae3864ebf3d8bf2c20c16cc5b4ebbc5a167e0182b985a071eb1e7835640357cbc56cbb62279835bcf0783c89d4192b3a2fb2d9b2500db14226910ba10a91d48
|
|
7
|
+
data.tar.gz: ac663b760e931c884454fea3eec9e7d9b896ab08f0aa065ca2ac4fee2633005d95a149d95b1c0c21cab123b737057e1beac0b1445a3330dd2ef0cf6cf1c2f177
|
data/README.md
CHANGED
|
@@ -49,3 +49,11 @@ If you would like to add or remove any particular view either add or remove the
|
|
|
49
49
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
50
50
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
51
51
|
5. Create new Pull Request
|
|
52
|
+
|
|
53
|
+
## Releasing
|
|
54
|
+
|
|
55
|
+
1. Edit `lib/version.rb` and `package.json` to set the new version
|
|
56
|
+
1. Commit the changes e.g. `git commit -am "Bump version to X.X.X"`
|
|
57
|
+
1. Push release to rubygems `bundle exec rake release`
|
|
58
|
+
1. Push release to NPM `npm publish`
|
|
59
|
+
1. Create a release on github with the tag that was just created: https://github.com/projectblacklight/blacklight-gallery/releases/new
|
data/config/importmap.rb
ADDED
|
@@ -3,6 +3,9 @@ require 'blacklight'
|
|
|
3
3
|
module Blacklight
|
|
4
4
|
module Gallery
|
|
5
5
|
class Engine < Rails::Engine
|
|
6
|
+
initializer 'blacklight_gallery.importmap', before: 'importmap' do |app|
|
|
7
|
+
app.config.importmap.paths << Engine.root.join('config/importmap.rb') if app.config.respond_to?(:importmap)
|
|
8
|
+
end
|
|
6
9
|
end
|
|
7
10
|
end
|
|
8
11
|
end
|
|
@@ -29,6 +29,7 @@ module BlacklightGallery
|
|
|
29
29
|
|
|
30
30
|
def assets
|
|
31
31
|
copy_file "blacklight_gallery.css.scss", "app/assets/stylesheets/blacklight_gallery.css.scss"
|
|
32
|
+
append_to_file 'app/assets/config/manifest.js', "\n//= link blacklight_gallery/manifest.js"
|
|
32
33
|
copy_file "blacklight_gallery.js", "app/assets/javascripts/blacklight_gallery.js"
|
|
33
34
|
|
|
34
35
|
insert_into_file "app/assets/javascripts/application.js", after: '//= require blacklight/blacklight' do
|
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blacklight-gallery",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Gallery views for Blacklight search results",
|
|
5
5
|
"main": "app/assets/javascripts/blacklight_gallery/default.js",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"homepage": "https://github.com/projectblacklight/blacklight-gallery#readme",
|
|
21
21
|
"devDependencies": { },
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"blacklight-frontend": ">=7.1.0
|
|
23
|
+
"blacklight-frontend": ">=7.1.0 <9",
|
|
24
24
|
"jquery": ">=3.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight-gallery
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -218,6 +218,7 @@ files:
|
|
|
218
218
|
- LICENSE.txt
|
|
219
219
|
- README.md
|
|
220
220
|
- Rakefile
|
|
221
|
+
- app/assets/config/blacklight_gallery/manifest.js
|
|
221
222
|
- app/assets/images/blacklight/add_circle.svg
|
|
222
223
|
- app/assets/images/blacklight/chevron_left.svg
|
|
223
224
|
- app/assets/images/blacklight/chevron_right.svg
|
|
@@ -264,6 +265,7 @@ files:
|
|
|
264
265
|
- app/views/catalog/_openseadragon_default.html.erb
|
|
265
266
|
- app/views/catalog/_slideshow_modal.html.erb
|
|
266
267
|
- blacklight-gallery.gemspec
|
|
268
|
+
- config/importmap.rb
|
|
267
269
|
- config/locales/blacklight-gallery.ar.yml
|
|
268
270
|
- config/locales/blacklight-gallery.de.yml
|
|
269
271
|
- config/locales/blacklight-gallery.en.yml
|