Skip to content

Commit

Permalink
Include a Mutex mashal hack for Ruby 1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed May 14, 2009
1 parent 72c77f7 commit 8f0ed3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/pdf/core_ext/mutex.rb
@@ -0,0 +1,11 @@

unless RUBY_VERSION < '1.9'
class ::Mutex
def marshal_dump
end unless method_defined?(:marshal_dump)
def marshal_load(data)
end unless method_defined?(:marshal_load)
end
end


1 change: 1 addition & 0 deletions lib/pdf/writer.rb
Expand Up @@ -12,6 +12,7 @@
require 'open-uri'

require 'transaction/simple'
require 'pdf/core_ext/mutex'
require 'color'

# A class to provide the core functionality to create a PDF document
Expand Down
2 changes: 2 additions & 0 deletions pdf-writer.gemspec
Expand Up @@ -23,6 +23,8 @@ Gem::Specification.new do |s|
"lib/pdf/charts",
"lib/pdf/charts/stddev.rb",
"lib/pdf/charts.rb",
"lib/pdf/core_ext",
"lib/pdf/core_ext/mutex.rb",
"lib/pdf/math.rb",
"lib/pdf/quickref.rb",
"lib/pdf/simpletable.rb",
Expand Down

0 comments on commit 8f0ed3f

Please sign in to comment.