openseadragon 0.7.0 → 0.8.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: 39aab662d767f7253ab361fd872a045e8052d5adf007e7daa0a3bd2cb02b9e31
4
- data.tar.gz: 2b64d32f2c80655ac8e54cc413bbcfae54ecab8f8ead082ff4572b249a9997d6
3
+ metadata.gz: 8d2b4c84da4c039322fa16dd73d8c87f4036d7e16c32d73d42febf1721f309a8
4
+ data.tar.gz: 61aa2f0266974e33c7a047a79dda95ecb0636c67ab15f6083b8b96c71c9f14c4
5
5
  SHA512:
6
- metadata.gz: 864860428049aeb71b90f7c5f4b9f779c2861384ba26554acb23d2fbb26e70a42f59921e52b38c4de04f6be3561255ac6f8b3bf9b752f903ac7511c75c4a0a30
7
- data.tar.gz: e363a199c6c5dfe4fd23df36ba45a6cbb3c15d3aa31fff5d7d331c01f7866dc112afe02195fd02924d66560dc868b09c631a985e139165e8ef11ca0db207598a
6
+ metadata.gz: db5a685f62b18680bff97b257254a71ab37c2de16713e08add72e1ff327d2b982913ddaf7d0e03035cd2d4ef5ea2f1aa570eab80903ce8bae00a692e046b25a9
7
+ data.tar.gz: 7d5b4b98750b6aa36cecf7b82feb6660d7312d353770e23044243803f27d96dc9c0069112ad664b3425befc8367497cd62262cbe5af408601b92804c946b3bc6
@@ -2,12 +2,15 @@
2
2
 
3
3
  (function($) {
4
4
  function initOpenSeadragon() {
5
- $('picture[data-openseadragon]').openseadragon();
5
+ $('picture[data-openseadragon]:not(:has(.openseadragon-container))').openseadragon();
6
6
  }
7
7
 
8
8
  const jquery3 = parseInt($.fn.jquery.split('.')[0]) >= 3;
9
9
  let handler = 'ready';
10
- if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {
10
+
11
+ if (typeof Turbo !== 'undefined') {
12
+ handler = 'turbo:load turbo:frame-load';
13
+ } else if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {
11
14
  // Turbolinks 5
12
15
  if (Turbolinks.BrowserAdapter) {
13
16
  handler = 'turbolinks:load';
@@ -1,3 +1,3 @@
1
1
  module Openseadragon
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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: 0.7.0
4
+ version: 0.8.0
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: 2024-08-16 00:00:00.000000000 Z
13
+ date: 2024-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.5.15
212
+ rubygems_version: 3.4.19
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: OpenSeadragon assets and helpers for Rails. http://openseadragon.github.io/