blacklight-gallery 4.2.0 → 4.3.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: d46a1601796a187729339ce0655d2537db43a7319608a2de67cd763b38fcbdcd
4
- data.tar.gz: b9f28ea874c0908cfc9e19f7134b7dfc29779ed5c7865af8f96f1becab54a478
3
+ metadata.gz: 4aa064cc9d3955af52339ff6ffcaeb6edec7fb71dfe8b5b8b11b435f43dd10b1
4
+ data.tar.gz: 3f49377d2861106d630d16c5d8aca656ce0d7d1e5fe6422befee3b342cceb388
5
5
  SHA512:
6
- metadata.gz: 38912a52ab2cc3a35ec137d5e326e4e92f90228dd8254f9fa7526dc5f565945c08aefe3fcda4d028191dea8a7615b3073865e3c513a1701824deef9a3d4b092f
7
- data.tar.gz: 76f328cf6da35f629a2ce99396ec89be2b5d97331f38daee12574201b9a21392f09b366ff38e099b4510bf380a3ed40a9a74509e7be384455d99fb865a73c7b6
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
@@ -0,0 +1,2 @@
1
+ //= link_tree ../../javascripts .js
2
+ //= link_tree ../../../../vendor/assets/javascripts .js
@@ -10,7 +10,7 @@
10
10
  }
11
11
  }
12
12
 
13
- margin-bottom: $spacer / 2;
13
+ margin-bottom: $spacer * 0.5;
14
14
  position: relative;
15
15
  width: auto;
16
16
 
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ pin_all_from File.expand_path('../app/assets/javascripts/blacklight_gallery', __dir__), under: 'blacklight_gallery'
4
+ pin_all_from File.expand_path('../vendor/assets/javascripts', __dir__)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "4.2.0"
3
+ VERSION = "4.3.0"
4
4
  end
5
5
  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.2.0",
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-alpha",
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.2.0
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-02 00:00:00.000000000 Z
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