googledocviewer 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 9b2847a7fef8f55628f911abd482bbb54b6289f4
4
- data.tar.gz: e1a49fd1e337e7092ffc94852f3356748afcd64f
3
+ metadata.gz: 4f59ccd843abbc313f245bfb962ae478a18a5e43
4
+ data.tar.gz: aebc627ad7e7f573b1313ed96086919212ade94c
5
5
  SHA512:
6
- metadata.gz: b21987cd258fde6c00d48cb53ad3bcef0f8f0b2317265072e78f415935f999b2deeee01afad59f65cf446d9ef7654f4bb4f55bfe502e57e74420a30734616108
7
- data.tar.gz: 65ef06815499593522476b5074861dc763856e669971838246067a4631bf98c5f34f824bccbfc2e175ed442ad06028d916cea0017da0c38c511a79b9ccf1ff74
6
+ metadata.gz: 8525a76174996bfde97d7e143136fd4658d2525bf4f42cf46ae24e8b60ba9046d3dca16ba2a54017052d3c974fb9b1a4bd0b5a2516dcd3c0f8f21d4ad50f73da
7
+ data.tar.gz: a978e9b0403af91a35c06876323cbfa1d44e6f9b00daacb59b1fdd92919d47bdc124640137dfb2c82e55ab0ce0749a69f90acc15a9c3ea9d5a31553455031dee
@@ -1,3 +1,3 @@
1
1
  module Googledocviewer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -27,7 +27,7 @@
27
27
  $(this).after(function () {
28
28
  var id = $(this).attr('id');
29
29
  var gdvId = (typeof id !== 'undefined' && id !== false) ? id + '-gdocsviewer' : '';
30
- return '<div id="' + gdvId + '" class="gdocsviewer"><iframe src="'settings.security + '://docs.google.com/viewer?embedded=true&url=' + encodeURIComponent(file) + '" width="' + settings.width + '" height="' + settings.height + '" style="border: none;"></iframe></div>';
30
+ return '<div id="' + gdvId + '" class="gdocsviewer"><iframe src="' + settings.security + '://docs.google.com/viewer?embedded=true&url=' + encodeURIComponent(file) + '" width="' + settings.width + '" height="' + settings.height + '" style="border: none;"></iframe></div>';
31
31
  })
32
32
  }
33
33
  });
@@ -6,4 +6,4 @@
6
6
  * @author Jawish Hameed
7
7
  * @version 1.0
8
8
  */
9
- (function(a){a.fn.gdocsViewer=function(b){var c={width:"600",height:"700"};if(b){a.extend(c,b)}return this.each(function(){var d=a(this).attr("href");var e=d.substring(d.lastIndexOf(".")+1);if(/^(tiff|pdf|ppt|pps|doc|docx)$/.test(e)){a(this).after(function(){var g=a(this).attr("id");var f=(typeof g!=="undefined"&&g!==false)?g+"-gdocsviewer":"";return'<div id="'+f+'" class="gdocsviewer"><iframe src="http://docs.google.com/viewer?embedded=true&url='+encodeURIComponent(d)+'" width="'+c.width+'" height="'+c.height+'" style="border: none;"></iframe></div>'})}})}})(jQuery);
9
+ (function(a){a.fn.gdocsViewer=function(b){var c={width:"600",height:"700", security:"http"};if(b){a.extend(c,b)}return this.each(function(){var d=a(this).attr("href");var e=d.substring(d.lastIndexOf(".")+1);if(/^(tiff|pdf|ppt|pps|doc|docx)$/.test(e)){a(this).after(function(){var g=a(this).attr("id");var f=(typeof g!=="undefined"&&g!==false)?g+"-gdocsviewer":"";return'<div id="'+f+'" class="gdocsviewer"><iframe src=' + settings.security + '"://docs.google.com/viewer?embedded=true&url='+encodeURIComponent(d)+'" width="'+c.width+'" height="'+c.height+'" style="border: none;"></iframe></div>'})}})}})(jQuery);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googledocviewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Mitchell