openseadragon 1.0.13 → 1.0.14

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: b4fc8f7211a57499f019e214970cbc95bf7386396dc28bc7ac64038acfeb6464
4
- data.tar.gz: 2b0539e28179ab329dfbfdb24cbbcd6a65212e0a449d14033528a4d7822df751
3
+ metadata.gz: 2633984c526a853e90977d539a3cf82c8f8e28cc2c8881474e1096b28abf370e
4
+ data.tar.gz: '00548049217f4ff6eeb576ab6d142c9b503373bacb759d915307395085e05222'
5
5
  SHA512:
6
- metadata.gz: 897f64693c7132f82b82cb19f8e06f9a2569451bbce1e2ef93719f9e9e272bd53ed2eb5c933b2af80103d8358b465d56b95ee148c7b381a493c6b2da2e4eaf89
7
- data.tar.gz: 0f4321f01d2c48fb0298dcac8712d4035ddb1d1768142350ca3c495bcf5adb1e516da5fa0bdc6670b128572e03d25955db7e69f26223bac2d73edb8ef4d09d3b
6
+ metadata.gz: b1b79117a905e59537a7416529bf233c7e217bab49155bd9795315d7173bcaed1d46e3941ca87dd36fe07e3397df449d0b594adfa08bec519b8f1342ab185177
7
+ data.tar.gz: b3e28d794b74dae6e24039a19f81a6672ef3fd4e5fe4c131c1f40c82a56a27eb3ecda09032dd52c3d7dd5fe1cadd57b7a731de6ab257e1c2bdd5513baea87136
@@ -2,16 +2,19 @@ require 'rails/generators'
2
2
 
3
3
  module Openseadragon
4
4
  class Install < Rails::Generators::Base
5
- source_root File.expand_path('../templates', __FILE__)
5
+ source_root File.expand_path('templates', __dir__)
6
6
 
7
7
  def append_javascript
8
- run "yarn init -y"
9
- gsub_file "package.json", /\.internal_test_app/, "internal_test_app" # name beginning with a dot is illegal
10
- run "yarn add openseadragon-rails"
8
+ run 'yarn init -y'
9
+ gsub_file 'package.json', /\.internal_test_app/, 'internal_test_app' # name beginning with a dot is illegal
10
+ run 'yarn add openseadragon-rails'
11
+
12
+ run 'bin/importmap pin openseadragon' if File.exist?('bin/importmap')
11
13
 
12
14
  append_to_file 'app/javascript/application.js' do
13
15
  <<~CONTENT
14
16
 
17
+ import "openseadragon"
15
18
  import "openseadragon-rails"
16
19
 
17
20
  CONTENT
@@ -1,3 +1,3 @@
1
1
  module Openseadragon
2
- VERSION = '1.0.13'
2
+ VERSION = '1.0.14'
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openseadragon-rails",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Openseadragon support for Rails apps",
5
5
  "exports": {
6
6
  ".": "./app/javascript/openseadragon-rails/index.js",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openseadragon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-01-08 00:00:00.000000000 Z
13
+ date: 2025-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler