linecache 0.43-mswin32 → 0.45-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,64 +1,362 @@
1
- 2008-06-12 00:04 rockyb
1
+ 2011-06-04 13:32 Rocky Bernstein
2
2
 
3
- * .: Look in lib as well as ext for trace_nums. Win32 puts it in
4
- lib.
3
+ * lib/linecache.rb: Was adding \n in lines for term highlighting.
5
4
 
6
- 2008-04-11 02:54 rockyb
5
+ 2011-06-04 12:28 Rocky Bernstein
7
6
 
8
- * .: Wasn't listing extension to for C compilation?
7
+ * ChangeLog, Rakefile, lib/linecache.rb: Add support for caching
8
+ script files and Ruby syntax highlighting.
9
9
 
10
- 2008-04-10 20:02 rockyb
10
+ 2011-02-11 21:38 Rocky Bernstein
11
11
 
12
- * .: Forgot to add test/data to the gem.
12
+ * Rakefile: Adding --verbose to test/unit has changed over the
13
+ years
13
14
 
14
- 2008-03-09 23:24 rockyb
15
+ 2010-11-26 04:31 Rocky Bernstein
15
16
 
16
- * .: Deal with Depricated win32.
17
+ * lib/linecache.rb: 44.git -> 44.dev
17
18
 
18
- 2008-02-10 13:59 rockyb
19
+ 2010-11-26 04:29 Rocky Bernstein
19
20
 
20
- * .: Go over Rakefile and doc for 0.3 release.
21
+ * lib/linecache.rb: Doc change
21
22
 
22
- 2008-01-28 15:35 rockyb
23
+ 2010-11-26 01:39 Rocky Bernstein
23
24
 
24
- * .: Change line number return from a Set to an Array.
25
+ * ChangeLog, Rakefile, VERSION, lib/linecache.rb: Pick up version #
26
+ from LineCache module. Add Rake install target.
25
27
 
26
- 2008-01-23 16:06 rockyb
28
+ 2010-11-26 01:17 Rocky Bernstein
27
29
 
28
- * .: Show add_lines level, nicer formatting including \n for end.
30
+ * lib/linecache.rb, test/test-linecache.rb: Add "\n" in calculation
31
+ of sha1
29
32
 
30
- 2008-01-20 16:31 rockyb
33
+ 2010-11-26 01:05 Rocky Bernstein
31
34
 
32
- * .: Add module TraceLineNumbers for extracting the stoppable lines
33
- in a
35
+ * Rakefile: Indentation
36
+
37
+ 2010-09-29 10:57 Rocky Bernstein
38
+
39
+ * Rakefile: Remove specious use of Rake test task.
40
+
41
+ 2009-08-05 05:04 mark-moseley
42
+
43
+ * ext/trace_nums.c, ext/trace_nums.h: minor cleanup
44
+
45
+ 2009-02-09 01:16 Rocky Bernstein
46
+
47
+ * test/test-linecache.rb: Another doc typo.
48
+
49
+ 2009-02-08 17:19 Rocky Bernstein
50
+
51
+ * README: Update doc.
52
+
53
+ 2009-02-08 02:07 Rocky Bernstein
54
+
55
+ * lib/linecache.rb: Comparing wrong fields in stat comparison.
56
+
57
+ 2009-02-07 09:21 Rocky Bernstein
58
+
59
+ * lib/linecache.rb: Another doc typo.
60
+
61
+ 2009-02-07 02:31 Rocky Bernstein
62
+
63
+ * lib/linecache.rb: Add ',' to doc comment.
64
+
65
+ 2009-02-06 04:47 Rocky Bernstein
66
+
67
+ * ., README, lib/linecache.rb: Update documentation.
68
+
69
+ 2009-02-02 11:24 Rocky Bernstein
70
+
71
+ * .: Move in the right trunk. Or perhaps we'll blow out everything?
72
+ Figers are crossed....
73
+
74
+ 2008-06-12 11:29 Rocky Bernstein
75
+
76
+ * 0.43 release - small change for MSwin32 - allow sfinding an
77
+ extension in lib rather than ext.
78
+
79
+ 2008-06-12 00:04 Rocky Bernstein
80
+
81
+ * Look in lib as well as ext for trace_nums. Win32 puts it in lib.
82
+
83
+ 2008-04-11 02:54 Rocky Bernstein
84
+
85
+ * Wasn't listing extension to for C compilation?
86
+
87
+ 2008-04-10 20:06 Rocky Bernstein
88
+
89
+ * What's new for 0.41.
90
+
91
+ 2008-04-10 20:02 Rocky Bernstein
92
+
93
+ * Forgot to add test/data to the gem.
94
+
95
+ 2008-04-10 02:15 Rocky Bernstein
96
+
97
+ *
98
+
99
+ 2008-03-28 15:04 Rocky Bernstein
100
+
101
+ * More if tests
102
+
103
+ 2008-03-09 23:24 Rocky Bernstein
104
+
105
+ * Deal with Depricated win32.
106
+
107
+ 2008-03-05 02:01 Rocky Bernstein
108
+
109
+ * Add rubyforge_upload task -- code from ruby-memory-profiler.
110
+
111
+ 2008-03-04 22:47 Rocky Bernstein
112
+
113
+ * Ooops - forgot to credit Ryan Davis and ParseTree.
114
+
115
+ 2008-02-10 13:59 Rocky Bernstein
116
+
117
+ * Go over Rakefile and doc for 0.3 release.
118
+
119
+ 2008-01-29 21:51 Rocky Bernstein
120
+
121
+ * Interface change. Don't know why this didn't get updated before.
122
+
123
+ 2008-01-28 15:35 Rocky Bernstein
124
+
125
+ * Change line number return from a Set to an Array.
126
+
127
+ 2008-01-27 11:24 Rocky Bernstein
128
+
129
+ * Handle defined? node. Add "if" weirdness test.
130
+
131
+ 2008-01-27 04:26 Rocky Bernstein
132
+
133
+ * Verify that the 'else' doesn't appear in a trace.
134
+
135
+ 2008-01-27 04:21 Rocky Bernstein
136
+
137
+ * Was not showing blocks after when's.
138
+
139
+ 2008-01-27 04:03 Rocky Bernstein
140
+
141
+ * trace_nums.c, block1.c, block2.c: bug in handling blocks
142
+ lnum-diag.rb: more graceful about not finding the source.
143
+ if4.rb: note weirdness in the way comparison works.
144
+
145
+ 2008-01-27 02:11 Rocky Bernstein
146
+
147
+ * Finish adding all tree nodes. Work on case nodes some more.
148
+ lnum-diag.rb: add options to turn on and off various parts.
149
+
150
+ 2008-01-26 11:12 Rocky Bernstein
151
+
152
+ * Add comment test and situation where no lines traced.
153
+
154
+ 2008-01-26 11:08 Rocky Bernstein
155
+
156
+ * Add class, scope and module nodes.
157
+
158
+ 2008-01-26 10:18 Rocky Bernstein
159
+
160
+ * Add more tree nodes.
161
+
162
+ 2008-01-26 02:09 Rocky Bernstein
163
+
164
+ * Add Debugger.init which intializes things that rdebug does. This
165
+ allows a restart even though rdebug wasn't called initially.
166
+
167
+ 2008-01-25 03:50 Rocky Bernstein
168
+
169
+ * Some code cleanup.
170
+
171
+ 2008-01-25 02:50 Rocky Bernstein
172
+
173
+ * Work over case, when and match3.
174
+
175
+ 2008-01-25 00:17 Rocky Bernstein
176
+
177
+ * Trace just line numbers for now until we get a better handle on
178
+ things.
179
+
180
+ 2008-01-24 13:36 Rocky Bernstein
181
+
182
+ * Need recursion in more places because of block continuation
183
+ nodes.
184
+ Add nodes needed so we don't complain about rcov-bug.rb:
185
+ NODE_MATCH3, NODE_LASN, and NODE_STR (and those similar to that).
186
+
187
+ 2008-01-24 04:09 Rocky Bernstein
188
+
189
+ * Fix bug if print_file == false
190
+
191
+ 2008-01-24 04:04 Rocky Bernstein
192
+
193
+ * Add more operatiors. Go over existing ones and add more tests of
194
+ them.
195
+
196
+ 2008-01-23 19:17 Rocky Bernstein
197
+
198
+ * What's up.
199
+
200
+ 2008-01-23 19:12 Rocky Bernstein
201
+
202
+ * Don't assume we have expected line numbers.
203
+
204
+ 2008-01-23 19:05 Rocky Bernstein
205
+
206
+ * A conversion-error bug.
207
+
208
+ 2008-01-23 19:04 Rocky Bernstein
209
+
210
+ * variable name typo.
211
+
212
+ 2008-01-23 19:03 Rocky Bernstein
213
+
214
+ * lnum-diag.rb and parse-show.rb - some diagnostic tools.
215
+
216
+ 2008-01-23 16:06 Rocky Bernstein
217
+
218
+ * Show add_lines level, nicer formatting including \n for end.
219
+
220
+ 2008-01-23 15:32 Rocky Bernstein
221
+
222
+ * Generalized routine to test everything in lnum-data
223
+
224
+ 2008-01-23 12:07 Rocky Bernstein
225
+
226
+ * ParseTree is broken for our purposes. Having custom code for
227
+ getting
228
+ the trace line numbers is going remove a lot of headaches down
229
+ the line.
230
+
231
+ 2008-01-20 21:37 Rocky Bernstein
232
+
233
+ * Add trace_line_numbers to save/get line numbers which we can set
234
+ breakpoints
235
+ on.
236
+
237
+ 2008-01-20 16:31 Rocky Bernstein
238
+
239
+ * Add module TraceLineNumbers for extracting the stoppable lines in
240
+ a
34
241
  Ruby program.
35
242
 
36
- 2008-01-14 12:27 rockyb
243
+ 2008-01-19 15:55 Rocky Bernstein
244
+
245
+ * Allow nil to mean the same file. More tests.
246
+
247
+ 2008-01-19 15:45 Rocky Bernstein
248
+
249
+ * Start remap_file_lines: ability to remap file ranges.
250
+
251
+ 2008-01-17 22:25 Rocky Bernstein
252
+
253
+ * lines -> size. Add empty? Add remap_file.
37
254
 
38
- * .: Add parameter to getline and getlines to reload file on
39
- change. Add
255
+ 2008-01-17 20:05 Rocky Bernstein
256
+
257
+ * Add method to get the number of lines in a cached file.
258
+
259
+ 2008-01-17 19:42 Rocky Bernstein
260
+
261
+ * Add convenience method for testing presence in SCRIPT_LINES__.
262
+
263
+ 2008-01-17 07:30 Rocky Bernstein
264
+
265
+ * Add path method and test.
266
+
267
+ 2008-01-17 06:54 Rocky Bernstein
268
+
269
+ * Add @@full2file_cache_key. getlines wasn't returning the right
270
+ value sometimes.
271
+ Make return from checkcache meaningful. Change return value of
272
+ upate_cache().
273
+ test-linecache.rb: was testing for buggy behavior!
274
+ VERSION: now in 0.3 - hope we get it right this time.
275
+
276
+ 2008-01-16 12:51 Rocky Bernstein
277
+
278
+ * Add cached_files.
279
+
280
+ 2008-01-16 01:30 Rocky Bernstein
281
+
282
+ * Update news for 0.2 release.
283
+
284
+ 2008-01-15 22:43 Rocky Bernstein
285
+
286
+ * Remove debug line.
287
+
288
+ 2008-01-15 22:42 Rocky Bernstein
289
+
290
+ * Fix some syntax errors.
291
+
292
+ 2008-01-15 22:40 Rocky Bernstein
293
+
294
+ * Add routine to save and get SHA1.
295
+
296
+ 2008-01-15 22:16 Rocky Bernstein
297
+
298
+ * Add cached? and stat methods to determine in a file is cached and
299
+ get
300
+ File.stat from it.
301
+
302
+ 2008-01-15 08:49 Rocky Bernstein
303
+
304
+ * Don't ever modify SCRIPT_LINES__. And until SCRIPT_LINES__ is
305
+ fixed,
306
+ don't read from it. Corrections to comments.
307
+
308
+ 2008-01-14 12:27 Rocky Bernstein
309
+
310
+ * Add parameter to getline and getlines to reload file on change.
311
+ Add
40
312
  option on clear_file_cache to clear out SCRIPT_LINES__ as well.
41
313
  TESTS ARE NEEDED.
42
314
  Update to version 0.2.
43
315
 
44
- 2007-12-10 16:24 rockyb
316
+ 2008-01-14 03:41 Rocky Bernstein
317
+
318
+ * Use SCRIPT_LINES__ if we can.
319
+
320
+ 2007-12-10 16:24 Rocky Bernstein
321
+
322
+ * release 0.1
323
+
324
+ 2007-12-09 17:47 Rocky Bernstein
325
+
326
+ * lib/linecache.rb: Make Ruby 1.9 compatible.
327
+
328
+ 2007-12-09 17:17 Rocky Bernstein
329
+
330
+ * ChangeLog, Rakefile, lib/linecache.rb, test/test-linecache.rb:
331
+ Better tests mean more bugs found. "rake" defaults now to "test".
332
+
333
+ 2007-12-09 14:10 Rocky Bernstein
334
+
335
+ * Rakefile: Add VERSION to gem.
336
+
337
+ 2007-12-09 14:09 Rocky Bernstein
45
338
 
46
- * : release 0.1
339
+ * test/test-linecache.rb: Change classname to something more
340
+ appropriate.
47
341
 
48
- 2007-12-09 17:17 rockyb
342
+ 2007-12-09 13:41 Rocky Bernstein
49
343
 
50
- * : Better tests mean more bugs found. "rake" defaults now to
51
- "test".
344
+ * ., Rakefile: . : ignore doc and pkg
345
+ Rakefile: clean now does clobber_rdoc and clobber_package, i.e.
346
+ removes
347
+ the doc and pkg directories.
52
348
 
53
- 2007-12-09 13:15 rockyb
349
+ 2007-12-09 13:15 Rocky Bernstein
54
350
 
55
- * : NEWS, README, linecache.rb: Add $Id$ line
351
+ * ChangeLog, NEWS, README, Rakefile, lib/linecache.rb,
352
+ test/test-linecache.rb: NEWS, README, linecache.rb: Add $Id$ line
56
353
  test-linecache.rb: make executable
57
354
  Rakefile: Correct documentation
58
355
 
59
- 2007-12-09 12:58 rockyb
356
+ 2007-12-09 12:58 Rocky Bernstein
60
357
 
61
- * : Initial import of LineCache, a module for reading and caching
62
- lines.
358
+ * ., AUTHORS, COPYING, ChangeLog, NEWS, README, Rakefile, VERSION,
359
+ lib, lib/linecache.rb, test, test/test-linecache.rb: Initial
360
+ import of LineCache, a module for reading and caching lines.
63
361
  This time to trunk.
64
362
 
data/NEWS CHANGED
@@ -1,5 +1,11 @@
1
+ 0.45
2
+ 06-12-11
3
+ - Support for syntax highlighting and caching eval strings. The former
4
+ is used in rb8-trepanning.
5
+
1
6
  0.43
2
- - add test/data/* to gem.
7
+ 06-12-08
8
+ - tolerance for finding windows extension in lib rather than ext.
3
9
 
4
10
  0.41
5
11
  - add test/data/* to gem.
@@ -25,4 +31,4 @@
25
31
 
26
32
  - Initial release of LineCache, a module for reading and caching lines.
27
33
 
28
- $Id: NEWS 119 2008-04-10 20:06:39Z rockyb $
34
+ $Id: NEWS 265 2011-06-09 21:51:21Z rockyb $
data/README CHANGED
@@ -1,4 +1,16 @@
1
- = LineCache - Module to read and cache lines of a file
1
+ = LineCache - A module to read and cache file information of a Ruby program.
2
+
3
+ == SYNOPSIS
4
+
5
+ The LineCache module allows one to get any line from any file, caching
6
+ the lines and file information on first access to the file. Although
7
+ the file may be any file, the common use is when the file is a Ruby
8
+ script since parsing of the file is done to figure out where the
9
+ statement boundaries are.
10
+
11
+ The routines here may be is useful when a small random sets of lines
12
+ are read from a single file, in particular in a debugger to show
13
+ source lines.
2
14
 
3
15
  == Summary
4
16
 
@@ -35,4 +47,4 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
35
47
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
48
  GNU General Public License for more details.
37
49
 
38
- $Id: README 63 2008-03-04 22:47:26Z rockyb $
50
+ $Id: README 169 2009-02-08 17:19:33Z rockyb $
data/Rakefile CHANGED
@@ -5,12 +5,12 @@ require 'rake/gempackagetask'
5
5
  require 'rake/rdoctask'
6
6
  require 'rake/testtask'
7
7
 
8
- SO_NAME = "trace_nums.so"
8
+ SO_NAME = 'trace_nums.so'
9
9
 
10
- # ------- Default Package ----------
11
- PKG_VERSION = open(File.join(File.dirname(__FILE__), 'VERSION')) do
12
- |f| f.readlines[0].chomp
13
- end
10
+ ROOT_DIR = File.dirname(__FILE__)
11
+ load File.join %W(#{ROOT_DIR} lib version.rb)
12
+
13
+ PKG_VERSION = LineCache::VERSION
14
14
  PKG_NAME = 'linecache'
15
15
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
16
16
  RUBY_FORGE_PROJECT = 'rocky-hacks'
@@ -23,7 +23,6 @@ FILES = FileList[
23
23
  'NEWS',
24
24
  'README',
25
25
  'Rakefile',
26
- 'VERSION',
27
26
  'ext/trace_nums.c',
28
27
  'ext/trace_nums.h',
29
28
  'ext/extconf.rb',
@@ -33,36 +32,38 @@ FILES = FileList[
33
32
  'test/short-file'
34
33
  ]
35
34
 
36
- desc "Test everything."
37
- test_task = task :test => :lib do
38
- Rake::TestTask.new(:test) do |t|
39
- t.pattern = 'test/test-*.rb'
40
- t.verbose = true
41
- end
35
+ desc 'Test everything'
36
+ Rake::TestTask.new(:test) do |t|
37
+ t.libs << './lib'
38
+ t.pattern = 'test/test-*.rb'
39
+ t.options = '--verbose' if $VERBOSE
42
40
  end
41
+ task :test => :lib
43
42
 
44
- desc "Create the core ruby-debug shared library extension"
43
+ desc 'Create the core ruby-debug shared library extension'
45
44
  task :lib do
46
- Dir.chdir("ext") do
45
+ Dir.chdir('ext') do
47
46
  system("#{Gem.ruby} extconf.rb && make")
48
47
  end
49
48
  end
50
49
 
51
50
 
52
- desc "Test everything - same as test."
51
+ desc 'Test everything - same as test.'
53
52
  task :check => :test
54
53
 
55
- desc "Create a GNU-style ChangeLog via svn2cl"
54
+ desc 'Create a GNU-style ChangeLog via svn2cl'
56
55
  task :ChangeLog do
57
- system("svn2cl --authors=svn2cl_usermap")
56
+ system('svn2cl --authors=svn2cl_usermap')
58
57
  end
59
58
 
59
+ gem_file = nil
60
+
60
61
  # Base GEM Specification
61
62
  default_spec = Gem::Specification.new do |spec|
62
- spec.name = "linecache"
63
+ spec.name = 'linecache'
63
64
 
64
- spec.homepage = "http://rubyforge.org/projects/rocky-hacks/linecache"
65
- spec.summary = "Read file with caching"
65
+ spec.homepage = 'http://rubyforge.org/projects/rocky-hacks/linecache'
66
+ spec.summary = 'Read file with caching'
66
67
  spec.description = <<-EOF
67
68
  LineCache is a module for reading and caching lines. This may be useful for
68
69
  example in a debugger where the same lines are shown many times.
@@ -70,12 +71,12 @@ EOF
70
71
 
71
72
  spec.version = PKG_VERSION
72
73
 
73
- spec.author = "R. Bernstein"
74
- spec.email = "rockyb@rubyforge.net"
74
+ spec.author = 'R. Bernstein'
75
+ spec.email = 'rockyb@rubyforge.net'
75
76
  spec.platform = Gem::Platform::RUBY
76
- spec.require_path = "lib"
77
+ spec.require_path = 'lib'
77
78
  spec.files = FILES.to_a
78
- spec.extensions = ["ext/extconf.rb"]
79
+ spec.extensions = ['ext/extconf.rb']
79
80
 
80
81
  spec.required_ruby_version = '>= 1.8.2'
81
82
  spec.date = Time.now
@@ -86,10 +87,12 @@ EOF
86
87
  spec.extra_rdoc_files = ['README', 'lib/linecache.rb', 'lib/tracelines.rb']
87
88
 
88
89
  spec.test_files = FileList['test/*.rb']
90
+ gem_file = "#{spec.name}-#{spec.version}.gem"
91
+
89
92
  end
90
93
 
91
94
  # Rake task to build the default package
92
- Rake::GemPackageTask.new(default_spec) do |pkg|
95
+ Rake::GemPackageTask.new(default_spec) do |pkg|
93
96
  pkg.need_tar = true
94
97
  end
95
98
 
@@ -102,12 +105,12 @@ win_spec.extensions = []
102
105
  win_spec.platform = 'mswin32'
103
106
  win_spec.files += ["lib/#{SO_NAME}"]
104
107
 
105
- desc "Create Windows Gem"
108
+ desc 'Create Windows Gem'
106
109
  task :win32_gem do
107
110
  # Copy the win32 extension the top level directory.
108
111
  current_dir = File.expand_path(File.dirname(__FILE__))
109
- source = File.join(current_dir, "ext", "win32", SO_NAME)
110
- target = File.join(current_dir, "lib", SO_NAME)
112
+ source = File.join(current_dir, 'ext', 'win32', SO_NAME)
113
+ target = File.join(current_dir, 'lib', SO_NAME)
111
114
  cp(source, target)
112
115
 
113
116
  # Create the gem, then move it to pkg.
@@ -119,37 +122,45 @@ task :win32_gem do
119
122
  rm(target)
120
123
  end
121
124
 
122
- desc "Publish linecache to RubyForge."
125
+ desc 'Publish linecache to RubyForge.'
123
126
  task :publish do
124
127
  require 'rake/contrib/sshpublisher'
125
128
 
126
129
  # Get ruby-debug path.
127
130
  ruby_debug_path = File.expand_path(File.dirname(__FILE__))
128
131
 
129
- publisher = Rake::SshDirPublisher.new("rockyb@rubyforge.org",
130
- "/var/www/gforge-projects/rocky-hacks/linecache", ruby_debug_path)
132
+ publisher = Rake::SshDirPublisher.new('rockyb@rubyforge.org',
133
+ '/var/www/gforge-projects/rocky-hacks/linecache', ruby_debug_path)
134
+ end
135
+
136
+ desc 'Remove residue from running patch'
137
+ task :rm_patch_residue do
138
+ FileUtils.rm_rf Dir.glob('**/*.{rej,orig}'), :verbose => true
131
139
  end
132
140
 
133
- desc "Remove built files"
134
- task :clean => [:clobber_package, :clobber_rdoc] do
135
- cd "ext" do
136
- if File.exists?("Makefile")
137
- sh "make clean"
138
- rm "Makefile"
141
+ desc 'Remove ~ backup files'
142
+ task :rm_tilde_backups do
143
+ FileUtils.rm_rf Dir.glob('**/*~'), :verbose => true
144
+ end
145
+
146
+ desc 'Remove built files'
147
+ task :clean => [:clobber_package, :clobber_rdoc, :rm_patch_residue,
148
+ :rm_tilde_backups] do
149
+ cd 'ext' do
150
+ if File.exists?('Makefile')
151
+ sh 'make clean'
152
+ rm 'Makefile'
139
153
  end
140
- derived_files = Dir.glob(".o") + Dir.glob("*.so")
154
+ derived_files = Dir.glob('.o') + Dir.glob('*.so')
141
155
  rm derived_files unless derived_files.empty?
142
156
  end
143
157
  end
144
158
 
145
159
  # --------- RDoc Documentation ------
146
- desc "Generate rdoc documentation"
147
- Rake::RDocTask.new("rdoc") do |rdoc|
160
+ desc 'Generate rdoc documentation'
161
+ Rake::RDocTask.new('rdoc') do |rdoc|
148
162
  rdoc.rdoc_dir = 'doc'
149
- rdoc.title = "linecache"
150
- # Show source inline with line numbers
151
- rdoc.options << "--inline-source" << "--line-numbers"
152
- # Make the readme file the start page for the generated html
163
+ rdoc.title = "linecache #{LineCache::VERSION} Documentation"
153
164
  rdoc.options << '--main' << 'README'
154
165
  rdoc.rdoc_files.include('ext/**/*.c',
155
166
  'lib/*.rb',
@@ -157,10 +168,18 @@ Rake::RDocTask.new("rdoc") do |rdoc|
157
168
  'COPYING')
158
169
  end
159
170
 
160
- desc "Publish the release files to RubyForge."
171
+ desc 'Publish the release files to RubyForge.'
161
172
  task :rubyforge_upload do
162
173
  `rubyforge login`
163
174
  release_command = "rubyforge add_release #{PKG_NAME} #{PKG_NAME} '#{PKG_NAME}-#{PKG_VERSION}' pkg/#{PKG_NAME}-#{PKG_VERSION}.gem"
164
175
  puts release_command
165
176
  system(release_command)
166
177
  end
178
+
179
+ desc 'Install the gem locally'
180
+ task :install => :gem do
181
+ Dir.chdir(ROOT_DIR) do
182
+ sh %{gem install --local pkg/#{gem_file}}
183
+ end
184
+ end
185
+