openseadragon 1.0.13 → 1.0.15

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: f4aac7d093e88b64486949bdbff2cd0a7a3242dbff6c7256909d8391ac3845e4
4
+ data.tar.gz: ec7ccd99a5d1611070e26d6e1521738068ff81e742832d72e0d25f2ab8462460
5
5
  SHA512:
6
- metadata.gz: 897f64693c7132f82b82cb19f8e06f9a2569451bbce1e2ef93719f9e9e272bd53ed2eb5c933b2af80103d8358b465d56b95ee148c7b381a493c6b2da2e4eaf89
7
- data.tar.gz: 0f4321f01d2c48fb0298dcac8712d4035ddb1d1768142350ca3c495bcf5adb1e516da5fa0bdc6670b128572e03d25955db7e69f26223bac2d73edb8ef4d09d3b
6
+ metadata.gz: 7e7b34cf47a15292a567c807ed7ca2f09bf6d50b11c40713e2ddf2fc3a7856a45acf3202fafd2b9d0c8e19a28bf7fc3a1d66e334067f7834dff43650a54d3c6c
7
+ data.tar.gz: 7a49c4fb48cc9501ea0e5ef2f0fdbfdbe1956344571d21ff0b9d0b1412ec5e9663c3cfe41ca0a2c141bbb62e4bbbf030bea5be7353ae07d686bb32e6d53f2ea8
@@ -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.15'
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.15",
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.15
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-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -131,7 +131,6 @@ files:
131
131
  - app/assets/javascripts/openseadragon-rails/index.esm.js.map
132
132
  - app/assets/javascripts/openseadragon-rails/index.js
133
133
  - app/assets/javascripts/openseadragon-rails/index.js.map
134
- - app/assets/javascripts/openseadragon.js
135
134
  - app/assets/stylesheets/openseadragon/openseadragon.css
136
135
  - app/helpers/openseadragon/openseadragon_helper.rb
137
136
  - app/javascript/openseadragon-rails/dom.js
@@ -1,2 +0,0 @@
1
- //= require openseadragon/openseadragon
2
- //= require openseadragon/rails