Skip to content

Commit

Permalink
Merge pull request #8 from dpaleino/master
Browse files Browse the repository at this point in the history
Code fixes for ruby 1.9
  • Loading branch information
joto committed Jul 4, 2012
2 parents 8f8b7bd + 3fd9102 commit 6e7eac0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/lib/javascript.rb
Expand Up @@ -6,7 +6,7 @@ def javascript(url=nil, &block)
end

def javascript_tags
@javascript.map{ |js| js.to_html }
@javascript.map{ |js| js.to_html }.join("\n")
end

class Javascript
Expand All @@ -23,9 +23,9 @@ def initialize(file)

def to_html
if @file.nil?
%Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>\n}
%Q{ <script type="text/javascript">//<![CDATA[\n#{ @content }//]]></script>}
else
%Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>\n}
%Q{ <script type="text/javascript" src="/js/#{ @file }.js"></script>}
end
end

Expand Down
2 changes: 2 additions & 0 deletions web/taginfo.rb
Expand Up @@ -27,6 +27,8 @@
#
#------------------------------------------------------------------------------

$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rubygems'
require 'json'
require 'sqlite3'
Expand Down

0 comments on commit 6e7eac0

Please sign in to comment.