markbates-gemstub 1.5.3.20090724143216 → 1.5.4.20090813155947
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gemstub.rb +4 -3
- metadata +4 -3
data/lib/gemstub.rb
CHANGED
@@ -61,6 +61,7 @@ module Gemstub
|
|
61
61
|
s.homepage = ""
|
62
62
|
s.files = FileList['lib/**/*.*', 'README', 'LICENSE', 'bin/**/*.*']
|
63
63
|
s.require_paths = ['lib']
|
64
|
+
s.bindir = 'bin'
|
64
65
|
s.extra_rdoc_files = ['README', 'LICENSE']
|
65
66
|
s.has_rdoc = true
|
66
67
|
yield s
|
@@ -124,21 +125,21 @@ module Gemstub
|
|
124
125
|
|
125
126
|
# txt.gsub!(/[\s](@\S+@)[\s]/, "<tt>#{$1}</tt>")
|
126
127
|
txt.scan(/[\s]@(\S+)@[\s|\.]/).flatten.each do |word|
|
127
|
-
puts "replacing: @#{word}@ w/ <tt>#{word}</tt>"
|
128
|
+
# puts "replacing: @#{word}@ w/ <tt>#{word}</tt>"
|
128
129
|
txt.gsub!("@#{word}@", "<tt>#{word}</tt>")
|
129
130
|
end
|
130
131
|
|
131
132
|
['h1', 'h2', 'h3'].each_with_index do |h, i|
|
132
133
|
txt.scan(/(#{h}.\s)/).flatten.each do |word|
|
133
134
|
eq = '=' * (i + 1)
|
134
|
-
puts "replacing: '#{word}' w/ #{eq}"
|
135
|
+
# puts "replacing: '#{word}' w/ #{eq}"
|
135
136
|
txt.gsub!(word, eq)
|
136
137
|
end
|
137
138
|
end
|
138
139
|
|
139
140
|
['<pre><code>', '</code></pre>'].each do |h|
|
140
141
|
txt.scan(/(#{h}.*$)/).flatten.each do |word|
|
141
|
-
puts "replacing: '#{word}' with nothing"
|
142
|
+
# puts "replacing: '#{word}' with nothing"
|
142
143
|
txt.gsub!(word, '')
|
143
144
|
end
|
144
145
|
end
|
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.4.20090813155947
|
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-
|
12
|
+
date: 2009-08-13 00:00:00 -07:00
|
13
13
|
default_executable: gemstub
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- bin/gemstub
|
69
69
|
has_rdoc: false
|
70
70
|
homepage: http://www.mackframework.com
|
71
|
+
licenses:
|
71
72
|
post_install_message:
|
72
73
|
rdoc_options: []
|
73
74
|
|
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
requirements: []
|
89
90
|
|
90
91
|
rubyforge_project: gemstub
|
91
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.3.5
|
92
93
|
signing_key:
|
93
94
|
specification_version: 3
|
94
95
|
summary: "Gemstub is a very simple tool for creating the stub code you need to build a gem. Usage: at a command prompt simply type: gemstub your_gem_name_here That's it, after that, you all you have to do is the actual coding of your gem! Enjoy!"
|