openseadragon 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e12e9c50a4a9023440e3b37865b4bf09048664dc
|
|
4
|
+
data.tar.gz: f07185164b09b31209832bac80e8eed41ae996bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 028ed72ab4f4c9d35552afc06d2e544be1640242c425ad56cd0013e09e647cdb8f7c17e16fbace4981de56b9710d50768200b7f150b245f2cdffd6cfea63154a
|
|
7
|
+
data.tar.gz: a5469f0c71b0ac59751474272bdceef7c00b6c17aefec9e35f7e3b35a4c51551622bf0973161e18aabc832c2c8d4c12bd7dfa0fbbf0688b9dd66237630440ea7
|
|
@@ -32,7 +32,7 @@ module Openseadragon
|
|
|
32
32
|
window.onload = initOpenSeadragon;
|
|
33
33
|
document.addEventListener("page:load", initOpenSeadragon); // Initialize when using turbolinks
|
|
34
34
|
EOF
|
|
35
|
-
|
|
35
|
+
content_tag(:div, '', html_options) + javascript_tag(js)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# converts a ruby hash to a javascript object without stringifying the raw_js_keys
|
|
@@ -55,7 +55,7 @@ module Openseadragon
|
|
|
55
55
|
if RUBY_VERSION < "2.0.0"
|
|
56
56
|
def json_dump(val)
|
|
57
57
|
case val
|
|
58
|
-
when String
|
|
58
|
+
when String, Integer, true, false
|
|
59
59
|
val.inspect
|
|
60
60
|
when Symbol
|
|
61
61
|
val.to_s.inspect
|
|
@@ -17,7 +17,7 @@ describe Openseadragon::OpenseadragonHelper do
|
|
|
17
17
|
|
|
18
18
|
it "should draw the single item viewer" do
|
|
19
19
|
out = openseadragon_viewer('world', image_host: '/foo', html: {class: 'stuff'})
|
|
20
|
-
out.should == '<div class="stuff" id="openseadragon1"
|
|
20
|
+
out.should == '<div class="stuff" id="openseadragon1"></div><script>
|
|
21
21
|
//<![CDATA[
|
|
22
22
|
function initOpenSeadragon() {
|
|
23
23
|
OpenSeadragon({
|
|
@@ -82,7 +82,7 @@ describe Openseadragon::OpenseadragonHelper do
|
|
|
82
82
|
extraOption: :some_stuff,
|
|
83
83
|
rawOption: "(1 + 1)",
|
|
84
84
|
options_with_raw_js: [:rawOption]})
|
|
85
|
-
out.should == '<div id="openseadragon1"
|
|
85
|
+
out.should == '<div id="openseadragon1"></div><script>
|
|
86
86
|
//<![CDATA[
|
|
87
87
|
function initOpenSeadragon() {
|
|
88
88
|
OpenSeadragon({
|