rocco-obb 0.7 → 0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/rocco.rb +3 -3
  2. data/rocco.gemspec +1 -1
  3. metadata +3 -3
data/lib/rocco.rb CHANGED
@@ -108,10 +108,10 @@ class Rocco
108
108
  elsif @options[:language] != defaults[:language]
109
109
  @options[:comment_chars] = generate_comment_chars()
110
110
  end
111
- if !@options[:comment_chars][:single].kind_of?(String)
112
- @comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
111
+ if @options[:comment_chars][:multi].kind_of?(String)
112
+ @comment_pattern = Regexp.new("/#{@options[:comment_chars][:single]}|#{@options[:comment_chars][:multi]}/m")
113
113
  else
114
- @comment_pattern = Regexp.new("#{@options[:comment_chars][:single]}|#{@options[:comment_chars][:multi]}")
114
+ @comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars][:single]}\s?")
115
115
  end
116
116
 
117
117
  @sections = highlight(split(parse(@data)))
data/rocco.gemspec CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'rocco-obb'
6
- s.version = '0.7'
6
+ s.version = '0.71'
7
7
  s.date = '2010-09-10'
8
8
 
9
9
  s.description = "Docco in Ruby"
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocco-obb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 133
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 7
9
- version: "0.7"
8
+ - 71
9
+ version: "0.71"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Tomayko