mdarby-scribd_fu 1.2.1 → 1.2.2

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.
@@ -35,11 +35,15 @@ module ScribdFuHelper
35
35
  alt_text = alt_text_if_paperclip
36
36
  end
37
37
 
38
- # Collect a set of addParam statements to set up JS parameters for the scribd document
39
- # (only if they are valid).
40
- param_includes = options[:params].collect do |param, value|
41
- "scribd_doc.addParam('#{param}', '#{value}');" if AVAILABLE_JS_PARAMS.include?(param)
42
- end.compact.join("\n")
38
+ begin
39
+ # Collect a set of addParam statements to set up JS parameters for the scribd document
40
+ # (only if they are valid).
41
+ param_includes = options[:params].collect do |param, value|
42
+ "scribd_doc.addParam('#{param}', '#{value}');" if AVAILABLE_JS_PARAMS.include?(param)
43
+ end.compact.join("\n")
44
+ rescue
45
+ # Where is 'options' coming from???
46
+ end
43
47
 
44
48
  <<-END
45
49
  <script type="text/javascript" src="http://www.scribd.com/javascripts/view.js"></script>
data/scribd_fu.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "scribd_fu"
3
- s.version = "1.2.1"
4
- s.date = "2009-01-01"
3
+ s.version = "1.2.2"
4
+ s.date = "2009-02-13"
5
5
  s.summary = "Quick and easy interactions with Scribd's iPaper service"
6
6
  s.email = "matt@matt-darby.com"
7
7
  s.homepage = "http://github.com/mdarby/scribd_fu/tree/master"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdarby-scribd_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Darby
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-01 00:00:00 -08:00
12
+ date: 2009-02-13 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency