makeup
Advanced tools
+1
-15
@@ -31,16 +31,2 @@ # encoding: utf-8 | ||
| module Makeup | ||
| # Ugly work-around to access GitHub::Markup's @@markups without | ||
| # monkey-patching the module. | ||
| module GitHubMarkupAccessor | ||
| include GitHub::Markup | ||
| def self.markups | ||
| @@supported ||= (@@markups.keys.map do |key| | ||
| key.to_s.match(/\(\?-mix:(.*)\)/)[1].split("|").map do |s| | ||
| { :suffix => "*.#{s}" } | ||
| end | ||
| end).flatten | ||
| end | ||
| end | ||
| class NoopHighlighter | ||
@@ -81,5 +67,5 @@ def highlight(path, code, options = {}) | ||
| def self.markups | ||
| GitHubMarkupAccessor.markups | ||
| GitHub::Markup.markups | ||
| end | ||
| end | ||
| end |
@@ -27,3 +27,3 @@ # encoding: utf-8 | ||
| module Makeup | ||
| VERSION = "0.4.3" | ||
| VERSION = "0.4.4" | ||
| end |
+3
-2
@@ -10,3 +10,4 @@ # -*- encoding: utf-8 -*- | ||
| s.email = ["christian@gitorious.org"] | ||
| s.homepage = "http://gitorious.org/gitorious/makeup" | ||
| s.homepage = "https://gitorious.org/gitorious/makeup" | ||
| s.license = "MIT" | ||
| s.summary = %q{Pretty markup} | ||
@@ -23,3 +24,3 @@ s.description = <<-DESC | ||
| s.add_dependency "github-linguist", "~>2.8" | ||
| s.add_dependency "github-markup", "~> 0.7" | ||
| s.add_dependency "github-markup", "~> 1.0" | ||
| s.add_dependency "htmlentities", "~> 4.3" | ||
@@ -26,0 +27,0 @@ s.add_dependency "loofah", "~> 1.2" |
@@ -138,5 +138,5 @@ # encoding: utf-8 | ||
| assert Array === markups | ||
| assert(markups.find { |m| m[:suffix] == "*.md" }) | ||
| assert(markups.find { |m| m.match?("*.md") }) | ||
| end | ||
| end | ||
| end |