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 +4 -4
- data/lib/generators/openseadragon/install_generator.rb +7 -4
- data/lib/openseadragon/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2633984c526a853e90977d539a3cf82c8f8e28cc2c8881474e1096b28abf370e
|
4
|
+
data.tar.gz: '00548049217f4ff6eeb576ab6d142c9b503373bacb759d915307395085e05222'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
5
|
+
source_root File.expand_path('templates', __dir__)
|
6
6
|
|
7
7
|
def append_javascript
|
8
|
-
run
|
9
|
-
gsub_file
|
10
|
-
run
|
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
|
data/package.json
CHANGED
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.
|
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-
|
13
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|