linecache 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/NEWS +4 -1
  2. data/Rakefile +15 -3
  3. data/VERSION +1 -1
  4. data/lib/linecache.rb +1 -1
  5. metadata +2 -2
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 0.4
2
+ - Credit Ryan Davis and ParseTree.
3
+
1
4
  0.3
2
5
  - Add tracelines: get line numbers that can be stopped at.
3
6
 
@@ -16,4 +19,4 @@
16
19
 
17
20
  - Initial release of LineCache, a module for reading and caching lines.
18
21
 
19
- $Id: NEWS 43 2008-01-23 19:17:26Z rockyb $
22
+ $Id: NEWS 117 2008-04-10 02:15:32Z rockyb $
data/Rakefile CHANGED
@@ -8,9 +8,13 @@ require 'rake/testtask'
8
8
  SO_NAME = "trace_nums.so"
9
9
 
10
10
  # ------- Default Package ----------
11
- PACKAGE_VERSION = open(File.join(File.dirname(__FILE__), 'VERSION')) do
11
+ PKG_VERSION = open(File.join(File.dirname(__FILE__), 'VERSION')) do
12
12
  |f| f.readlines[0].chomp
13
13
  end
14
+ PKG_NAME = 'linecache'
15
+ PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
16
+ RUBY_FORGE_PROJECT = 'rocky-hacks'
17
+ RUBY_FORGE_USER = 'rockyb'
14
18
 
15
19
  FILES = FileList[
16
20
  'AUTHORS',
@@ -62,7 +66,7 @@ LineCache is a module for reading and caching lines. This may be useful for
62
66
  example in a debugger where the same lines are shown many times.
63
67
  EOF
64
68
 
65
- spec.version = PACKAGE_VERSION
69
+ spec.version = PKG_VERSION
66
70
 
67
71
  spec.author = "R. Bernstein"
68
72
  spec.email = "rockyb@rubyforge.net"
@@ -89,7 +93,8 @@ task :default => [:test]
89
93
  # Windows specification
90
94
  win_spec = default_spec.clone
91
95
  win_spec.extensions = []
92
- win_spec.platform = Gem::Platform::WIN32
96
+ ## win_spec.platform = Gem::Platform::WIN32 # deprecated
97
+ win_spec.platform = 'mswin32'
93
98
  win_spec.files += ["lib/#{SO_NAME}"]
94
99
 
95
100
  desc "Create Windows Gem"
@@ -147,3 +152,10 @@ Rake::RDocTask.new("rdoc") do |rdoc|
147
152
  'COPYING')
148
153
  end
149
154
 
155
+ desc "Publish the release files to RubyForge."
156
+ task :rubyforge_upload do
157
+ `rubyforge login`
158
+ release_command = "rubyforge add_release #{PKG_NAME} #{PKG_NAME} '#{PKG_NAME}-#{PKG_VERSION}' pkg/#{PKG_NAME}-#{PKG_VERSION}.gem"
159
+ puts release_command
160
+ system(release_command)
161
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3
1
+ 0.4
data/lib/linecache.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # $Id: linecache.rb 59 2008-01-28 15:35:34Z rockyb $
2
+ # $Id: linecache.rb 69 2008-03-09 23:24:25Z rockyb $
3
3
  #
4
4
  # Copyright (C) 2007, 2008 Rocky Bernstein <rockyb@rubyforge.net>
5
5
  #
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: linecache
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.3"
7
- date: 2008-03-04 00:00:00 -05:00
6
+ version: "0.4"
7
+ date: 2008-04-10 00:00:00 -04:00
8
8
  summary: Read file with caching
9
9
  require_paths:
10
10
  - lib