diff options
author | TAKATSU Tomonari <tota@FreeBSD.org> | 2012-03-05 15:41:48 +0000 |
---|---|---|
committer | TAKATSU Tomonari <tota@FreeBSD.org> | 2012-03-05 15:41:48 +0000 |
commit | 312c0ba846e22d39b07e29c8fd06464c74c699ab (patch) | |
tree | ec24fd6f69575df0e2a4fa75bd58534555613ffa /misc | |
parent | - Update to 1.1.4 (diff) |
- Update to 1.0.6
Notes
Notes:
svn path=/head/; revision=292749
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rabbit/Makefile | 2 | ||||
-rw-r--r-- | misc/rabbit/distinfo | 4 | ||||
-rw-r--r-- | misc/rabbit/files/patch-coderay.rb | 64 |
3 files changed, 3 insertions, 67 deletions
diff --git a/misc/rabbit/Makefile b/misc/rabbit/Makefile index f3f02fc14996..0e8e5359887e 100644 --- a/misc/rabbit/Makefile +++ b/misc/rabbit/Makefile @@ -6,7 +6,7 @@ # PORTNAME= rabbit -PORTVERSION= 1.0.5 +PORTVERSION= 1.0.6 CATEGORIES= misc ruby MASTER_SITES= http://rabbit-shockers.org/download/ \ LOCAL diff --git a/misc/rabbit/distinfo b/misc/rabbit/distinfo index f644545afd26..a8fbe2abdd05 100644 --- a/misc/rabbit/distinfo +++ b/misc/rabbit/distinfo @@ -1,2 +1,2 @@ -SHA256 (rabbit-1.0.5.tar.gz) = 8d10e8affbdf4507e1481f8409dceca3ee43b5ff1beb9476788594782576e44a -SIZE (rabbit-1.0.5.tar.gz) = 5886310 +SHA256 (rabbit-1.0.6.tar.gz) = 2413dd3679c4782204f45f19e98ed2f3d8e063a1e79f9d40fd36f56355382576 +SIZE (rabbit-1.0.6.tar.gz) = 5886935 diff --git a/misc/rabbit/files/patch-coderay.rb b/misc/rabbit/files/patch-coderay.rb deleted file mode 100644 index ce52bee2985f..000000000000 --- a/misc/rabbit/files/patch-coderay.rb +++ /dev/null @@ -1,64 +0,0 @@ ---- lib/rabbit/parser/ext/coderay.rb.orig 2011-07-16 05:59:37.000000000 +0900 -+++ lib/rabbit/parser/ext/coderay.rb 2012-02-05 11:24:16.000000000 +0900 -@@ -21,7 +21,7 @@ - def setup(options) - super - @out = SyntaxHighlightingBlock.new -- @elements = [@out] -+ @containers = [@out] - end - - def text_token(text, type=:plain) -@@ -29,36 +29,39 @@ - escaped_text = Escape.escape_meta_character(text) - text_element = SyntaxHighlightingText.new(Text.new(escaped_text)) - tag_name = type.to_s.gsub(/_/, '-') -- CustomTag.new("syntax-#{tag_name}", text_element) -+ tag = CustomTag.new("syntax-#{tag_name}", text_element) -+ current_container << tag - end - -- def open_token(kind) -- p [:open, kind] if Utils.syntax_highlighting_debug? -- @out = TextContainer.new -- @elements << @out -- CustomTag.new("syntax-#{kind}") -+ def begin_group(kind) -+ p [:begin_group, kind] if Utils.syntax_highlighting_debug? -+ @containers << TextContainer.new -+ tag = CustomTag.new("syntax-#{kind}") -+ current_container << tag - end - - def begin_line(kind) - p [:begin_line, kind] if Utils.syntax_highlighting_debug? -- nil - end - - def end_line(kind) - p [:end_line, kind] if Utils.syntax_highlighting_debug? -- nil - end - -- def close_token(kind) -- p [:close, kind] if Utils.syntax_highlighting_debug? -- block = @elements.pop -- @out = @elements.last -- block -+ def end_group(kind) -+ p [:end_group, kind] if Utils.syntax_highlighting_debug? -+ block = @containers.pop -+ current_container << block - end - - def finish(options) - super - end -+ -+ private -+ def current_container -+ @containers.last -+ end - end - end - end |