markbates-gemstub 1.5.2.20090724142508 → 1.5.3.1.20090726193225
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.
- data/lib/gemstub.rb +5 -3
 - metadata +2 -2
 
    
        data/lib/gemstub.rb
    CHANGED
    
    | 
         @@ -124,21 +124,21 @@ module Gemstub 
     | 
|
| 
       124 
124 
     | 
    
         | 
| 
       125 
125 
     | 
    
         
             
                    # txt.gsub!(/[\s](@\S+@)[\s]/, "<tt>#{$1}</tt>")
         
     | 
| 
       126 
126 
     | 
    
         
             
                    txt.scan(/[\s]@(\S+)@[\s|\.]/).flatten.each do |word|
         
     | 
| 
       127 
     | 
    
         
            -
                      puts "replacing: @#{word}@ w/ <tt>#{word}</tt>"
         
     | 
| 
      
 127 
     | 
    
         
            +
                      # puts "replacing: @#{word}@ w/ <tt>#{word}</tt>"
         
     | 
| 
       128 
128 
     | 
    
         
             
                      txt.gsub!("@#{word}@", "<tt>#{word}</tt>")
         
     | 
| 
       129 
129 
     | 
    
         
             
                    end
         
     | 
| 
       130 
130 
     | 
    
         | 
| 
       131 
131 
     | 
    
         
             
                    ['h1', 'h2', 'h3'].each_with_index do |h, i|
         
     | 
| 
       132 
132 
     | 
    
         
             
                      txt.scan(/(#{h}.\s)/).flatten.each do |word|
         
     | 
| 
       133 
133 
     | 
    
         
             
                        eq = '=' * (i + 1)
         
     | 
| 
       134 
     | 
    
         
            -
                        puts "replacing: '#{word}' w/ #{eq}"
         
     | 
| 
      
 134 
     | 
    
         
            +
                        # puts "replacing: '#{word}' w/ #{eq}"
         
     | 
| 
       135 
135 
     | 
    
         
             
                        txt.gsub!(word, eq)
         
     | 
| 
       136 
136 
     | 
    
         
             
                      end
         
     | 
| 
       137 
137 
     | 
    
         
             
                    end
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
       139 
139 
     | 
    
         
             
                    ['<pre><code>', '</code></pre>'].each do |h|
         
     | 
| 
       140 
140 
     | 
    
         
             
                      txt.scan(/(#{h}.*$)/).flatten.each do |word|
         
     | 
| 
       141 
     | 
    
         
            -
                        puts "replacing: '#{word}' with nothing"
         
     | 
| 
      
 141 
     | 
    
         
            +
                        # puts "replacing: '#{word}' with nothing"
         
     | 
| 
       142 
142 
     | 
    
         
             
                        txt.gsub!(word, '')
         
     | 
| 
       143 
143 
     | 
    
         
             
                      end
         
     | 
| 
       144 
144 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -167,6 +167,8 @@ module Gemstub 
     | 
|
| 
       167 
167 
     | 
    
         
             
                    rd.title = "content_o_matic"
         
     | 
| 
       168 
168 
     | 
    
         
             
                    yield rd if block_given?
         
     | 
| 
       169 
169 
     | 
    
         
             
                  end
         
     | 
| 
      
 170 
     | 
    
         
            +
                  
         
     | 
| 
      
 171 
     | 
    
         
            +
                  task :doc => [:readme, :rerdoc]
         
     | 
| 
       170 
172 
     | 
    
         
             
                end
         
     | 
| 
       171 
173 
     | 
    
         | 
| 
       172 
174 
     | 
    
         
             
              end # class << self
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: markbates-gemstub
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.5. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.5.3.1.20090726193225
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Mark Bates
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2009-07- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2009-07-26 00:00:00 -07:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: gemstub
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |