Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/prawn/js.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ def aa
# See section 3.6.3 and table 3.28 in the PDF spec.
#
def javascript
names.data[:JavaScript] ||= ref!(Prawn::NameTree::Node.new(self, NAME_TREE_CHILDREN_LIMIT))
if defined? Prawn::NameTree
names.data[:JavaScript] ||= ref!(Prawn::NameTree::Node.new(self, NAME_TREE_CHILDREN_LIMIT))
else
names.data[:JavaScript] ||= ref!(Prawn::Core::NameTree::Node.new(self, NAME_TREE_CHILDREN_LIMIT))
end
end

end
Expand Down
4 changes: 2 additions & 2 deletions prawn-js.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Gem::Specification.new do |s|
s.version = "0.7.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["James Healy"]
s.authors = ["James Healy","Nick Gorbikof"]
s.date = %q{2009-06-18}
s.description = %q{A small extension to prawn that simplifies embedding JavaScript in your PDF files}
s.email = %q{pat@freelancing-gods.com}
Expand All @@ -18,5 +18,5 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubyforge_project = %q{prawn}
s.summary = %q{A small extension to prawn that makes it possible to embed JavaScript fragment in your document that respond to events.}
s.add_dependency('prawn-core', '>=0.6.1')
s.add_dependency('prawn', '>=0.12.0')
end