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: 558c2f7f01238ad9bc85916302c72d70a93a6c7f
4
- data.tar.gz: 677a7fb914d83d7bdb6d45a47de28128b43ea3f2
3
+ metadata.gz: e12e9c50a4a9023440e3b37865b4bf09048664dc
4
+ data.tar.gz: f07185164b09b31209832bac80e8eed41ae996bc
5
5
  SHA512:
6
- metadata.gz: b8decc05c8e265c74eee9bdf43e99bd4e3c4422599c65d0b690a30e0d0a95aa8dd3a24e9250ce1c1207a2bd22f466e5ee69920ad14017930705cad62db5ae92c
7
- data.tar.gz: 432b158a99c56418f4f41cb5079f4ae300615ab8aee1c60b399ff7486f4373e34db2d5c5ed36c6c12b7359d5fab2672c9feae35e671e7fe54cb4f27bf1bb04a6
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
- tag(:div, html_options) + javascript_tag(js)
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
@@ -1,3 +1,3 @@
1
1
  module Openseadragon
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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" /><script>
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" /><script>
85
+ out.should == '<div id="openseadragon1"></div><script>
86
86
  //<![CDATA[
87
87
  function initOpenSeadragon() {
88
88
  OpenSeadragon({
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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne