linecache 0.42-mswin32 → 0.43-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/ChangeLog +30 -296
  2. data/NEWS +3 -0
  3. data/VERSION +1 -1
  4. data/lib/trace_nums.so +0 -0
  5. data/lib/tracelines.rb +8 -3
  6. metadata +2 -2
data/ChangeLog CHANGED
@@ -1,330 +1,64 @@
1
- 2008-04-10 20:06 Rocky Bernstein
1
+ 2008-06-12 00:04 rockyb
2
2
 
3
- * NEWS: What's new for 0.41.
3
+ * .: Look in lib as well as ext for trace_nums. Win32 puts it in
4
+ lib.
4
5
 
5
- 2008-04-10 20:02 Rocky Bernstein
6
+ 2008-04-11 02:54 rockyb
6
7
 
7
- * ChangeLog, Rakefile, VERSION: Forgot to add test/data to the gem.
8
+ * .: Wasn't listing extension to for C compilation?
8
9
 
9
- 2008-04-10 02:15 Rocky Bernstein
10
+ 2008-04-10 20:02 rockyb
10
11
 
11
- * NEWS:
12
+ * .: Forgot to add test/data to the gem.
12
13
 
13
- 2008-03-28 15:04 Rocky Bernstein
14
+ 2008-03-09 23:24 rockyb
14
15
 
15
- * test/data/if6.rb, test/data/if7.rb: More if tests
16
+ * .: Deal with Depricated win32.
16
17
 
17
- 2008-03-09 23:24 Rocky Bernstein
18
+ 2008-02-10 13:59 rockyb
18
19
 
19
- * ChangeLog, Rakefile, VERSION, lib/linecache.rb: Deal with
20
- Depricated win32.
20
+ * .: Go over Rakefile and doc for 0.3 release.
21
21
 
22
- 2008-03-05 02:01 Rocky Bernstein
22
+ 2008-01-28 15:35 rockyb
23
23
 
24
- * Rakefile: Add rubyforge_upload task -- code from
25
- ruby-memory-profiler.
24
+ * .: Change line number return from a Set to an Array.
26
25
 
27
- 2008-03-04 22:47 Rocky Bernstein
26
+ 2008-01-23 16:06 rockyb
28
27
 
29
- * README: Ooops - forgot to credit Ryan Davis and ParseTree.
28
+ * .: Show add_lines level, nicer formatting including \n for end.
30
29
 
31
- 2008-02-10 13:59 Rocky Bernstein
30
+ 2008-01-20 16:31 rockyb
32
31
 
33
- * ChangeLog, Rakefile, ext/trace_nums.c, ext/win32, svn2cl_usermap:
34
- Go over Rakefile and doc for 0.3 release.
35
-
36
- 2008-01-29 21:51 Rocky Bernstein
37
-
38
- * test/test-linecache.rb: Interface change. Don't know why this
39
- didn't get updated before.
40
-
41
- 2008-01-28 15:35 Rocky Bernstein
42
-
43
- * ChangeLog, lib/linecache.rb: Change line number return from a Set
44
- to an Array.
45
-
46
- 2008-01-27 11:24 Rocky Bernstein
47
-
48
- * ext/trace_nums.c, ext/trace_nums.h, test/data/if5.rb: Handle
49
- defined? node. Add "if" weirdness test.
50
-
51
- 2008-01-27 04:26 Rocky Bernstein
52
-
53
- * test/data/case5.rb: Verify that the 'else' doesn't appear in a
54
- trace.
55
-
56
- 2008-01-27 04:21 Rocky Bernstein
57
-
58
- * ext/trace_nums.c, test/data/block1.rb, test/data/block2.rb,
59
- test/data/case1.rb, test/data/case2.rb, test/data/case3.rb,
60
- test/data/case4.rb, test/data/case5.rb, test/data/def1.rb,
61
- test/data/each1.rb, test/data/for1.rb, test/data/if3.rb,
62
- test/data/if4.rb, test/data/match3.rb, test/data/match3a.rb,
63
- test/data/not-lit.rb: Was not showing blocks after when's.
64
-
65
- 2008-01-27 04:03 Rocky Bernstein
66
-
67
- * ext/trace_nums.c, test/data/block1.rb, test/data/block2.rb,
68
- test/data/if4.rb, test/lnum-diag.rb: trace_nums.c, block1.c,
69
- block2.c: bug in handling blocks
70
- lnum-diag.rb: more graceful about not finding the source.
71
- if4.rb: note weirdness in the way comparison works.
72
-
73
- 2008-01-27 02:11 Rocky Bernstein
74
-
75
- * ext/trace_nums.c, ext/trace_nums.h, test/data/case4.rb,
76
- test/data/def1.rb, test/data/if3.rb, test/lnum-diag.rb: Finish
77
- adding all tree nodes. Work on case nodes some more.
78
- lnum-diag.rb: add options to turn on and off various parts.
79
-
80
- 2008-01-26 11:12 Rocky Bernstein
81
-
82
- * test/data/comments1.rb: Add comment test and situation where no
83
- lines traced.
84
-
85
- 2008-01-26 11:08 Rocky Bernstein
86
-
87
- * ext/trace_nums.c, test/data/class1.rb: Add class, scope and
88
- module nodes.
89
-
90
- 2008-01-26 10:18 Rocky Bernstein
91
-
92
- * ext/trace_nums.c, test/rcov-bug.rb, test/test-linecache.rb,
93
- test/test-tracelines.rb: Add more tree nodes.
94
-
95
- 2008-01-26 02:09 Rocky Bernstein
96
-
97
- * test/data/each1.rb, test/data/for1.rb, test/data/if1.rb,
98
- test/data/if2.rb, test/test-lnum.rb: Add Debugger.init which
99
- intializes things that rdebug does. This
100
- allows a restart even though rdebug wasn't called initially.
101
-
102
- 2008-01-25 03:50 Rocky Bernstein
103
-
104
- * ext/trace_nums.c: Some code cleanup.
105
-
106
- 2008-01-25 02:50 Rocky Bernstein
107
-
108
- * ext/trace_nums.c, test/data/case1.rb, test/data/case2.rb,
109
- test/data/case3.rb, test/data/match3.rb, test/data/match3a.rb:
110
- Work over case, when and match3.
111
-
112
- 2008-01-25 00:17 Rocky Bernstein
113
-
114
- * ext/trace_nums.c, test/data, test/lnum-data, test/lnum-diag.rb,
115
- test/test-lnum.rb, test/test-tracelines.rb: Trace just line
116
- numbers for now until we get a better handle on things.
117
-
118
- 2008-01-24 13:36 Rocky Bernstein
119
-
120
- * test/lnum-diag.rb, test/rcov-bug.rb, test/test-linecache.rb,
121
- test/test-tracelines.rb: Need recursion in more places because of
122
- block continuation nodes.
123
- Add nodes needed so we don't complain about rcov-bug.rb:
124
- NODE_MATCH3, NODE_LASN, and NODE_STR (and those similar to that).
125
-
126
- 2008-01-24 04:09 Rocky Bernstein
127
-
128
- * test/lnum-diag.rb: Fix bug if print_file == false
129
-
130
- 2008-01-24 04:04 Rocky Bernstein
131
-
132
- * ext/trace_nums.c, test/lnum-data/begin3.rb,
133
- test/lnum-data/end.rb, test/lnum-data/match.rb,
134
- test/lnum-data/not-lit.rb, test/lnum-diag.rb: Add more
135
- operatiors. Go over existing ones and add more tests of them.
136
-
137
- 2008-01-23 19:17 Rocky Bernstein
138
-
139
- * NEWS: What's up.
140
-
141
- 2008-01-23 19:12 Rocky Bernstein
142
-
143
- * test/lnum-diag.rb: Don't assume we have expected line numbers.
144
-
145
- 2008-01-23 19:05 Rocky Bernstein
146
-
147
- * test/lnum-diag.rb: A conversion-error bug.
148
-
149
- 2008-01-23 19:04 Rocky Bernstein
150
-
151
- * test/lnum-diag.rb: variable name typo.
152
-
153
- 2008-01-23 19:03 Rocky Bernstein
154
-
155
- * ext, ext/trace_nums.c, test/lnum-diag.rb, test/parse-show.rb:
156
- lnum-diag.rb and parse-show.rb - some diagnostic tools.
157
-
158
- 2008-01-23 16:06 Rocky Bernstein
159
-
160
- * ChangeLog, ext/trace_nums.c: Show add_lines level, nicer
161
- formatting including \n for end.
162
-
163
- 2008-01-23 15:32 Rocky Bernstein
164
-
165
- * test/test-lnum.rb: Generalized routine to test everything in
166
- lnum-data
167
-
168
- 2008-01-23 12:07 Rocky Bernstein
169
-
170
- * Rakefile, ext, ext/extconf.rb, ext/trace_nums.c,
171
- ext/trace_nums.h, lib/linecache.rb, lib/tracelines.rb,
172
- test/lnum-data, test/lnum-data/begin1.rb,
173
- test/lnum-data/begin2.rb, test/lnum-data/begin3.rb,
174
- test/test-tracelines.rb: ParseTree is broken for our purposes.
175
- Having custom code for getting
176
- the trace line numbers is going remove a lot of headaches down
177
- the line.
178
-
179
- 2008-01-20 21:37 Rocky Bernstein
180
-
181
- * Rakefile, lib/linecache.rb, test/test-linecache.rb: Add
182
- trace_line_numbers to save/get line numbers which we can set
183
- breakpoints
184
- on.
185
-
186
- 2008-01-20 16:31 Rocky Bernstein
187
-
188
- * ChangeLog, Rakefile, lib/linecache.rb, lib/tracelines.rb,
189
- test/rcov-bug.rb, test/test-tracelines.rb: Add module
190
- TraceLineNumbers for extracting the stoppable lines in a
32
+ * .: Add module TraceLineNumbers for extracting the stoppable lines
33
+ in a
191
34
  Ruby program.
192
35
 
193
- 2008-01-19 15:55 Rocky Bernstein
194
-
195
- * lib/linecache.rb, test/test-linecache.rb: Allow nil to mean the
196
- same file. More tests.
197
-
198
- 2008-01-19 15:45 Rocky Bernstein
199
-
200
- * lib/linecache.rb, test/test-linecache.rb: Start remap_file_lines:
201
- ability to remap file ranges.
202
-
203
- 2008-01-17 22:25 Rocky Bernstein
204
-
205
- * lib/linecache.rb, test/test-linecache.rb: lines -> size. Add
206
- empty? Add remap_file.
207
-
208
- 2008-01-17 20:05 Rocky Bernstein
209
-
210
- * lib/linecache.rb, test/test-linecache.rb: Add method to get the
211
- number of lines in a cached file.
212
-
213
- 2008-01-17 19:42 Rocky Bernstein
214
-
215
- * lib/linecache.rb, test/short-file, test/test-linecache.rb: Add
216
- convenience method for testing presence in SCRIPT_LINES__.
217
-
218
- 2008-01-17 07:30 Rocky Bernstein
219
-
220
- * lib/linecache.rb, test/test-linecache.rb: Add path method and
221
- test.
222
-
223
- 2008-01-17 06:54 Rocky Bernstein
224
-
225
- * VERSION, lib/linecache.rb, test/test-linecache.rb: Add
226
- @@full2file_cache_key. getlines wasn't returning the right value
227
- sometimes.
228
- Make return from checkcache meaningful. Change return value of
229
- upate_cache().
230
- test-linecache.rb: was testing for buggy behavior!
231
- VERSION: now in 0.3 - hope we get it right this time.
232
-
233
- 2008-01-16 12:51 Rocky Bernstein
234
-
235
- * lib/linecache.rb: Add cached_files.
36
+ 2008-01-14 12:27 rockyb
236
37
 
237
- 2008-01-16 01:30 Rocky Bernstein
238
-
239
- * NEWS: Update news for 0.2 release.
240
-
241
- 2008-01-15 22:43 Rocky Bernstein
242
-
243
- * test/test-linecache.rb: Remove debug line.
244
-
245
- 2008-01-15 22:42 Rocky Bernstein
246
-
247
- * lib/linecache.rb: Fix some syntax errors.
248
-
249
- 2008-01-15 22:40 Rocky Bernstein
250
-
251
- * Rakefile, lib/linecache.rb, test/short-file,
252
- test/test-linecache.rb: Add routine to save and get SHA1.
253
-
254
- 2008-01-15 22:16 Rocky Bernstein
255
-
256
- * lib/linecache.rb, test/test-linecache.rb: Add cached? and stat
257
- methods to determine in a file is cached and get
258
- File.stat from it.
259
-
260
- 2008-01-15 08:49 Rocky Bernstein
261
-
262
- * lib/linecache.rb: Don't ever modify SCRIPT_LINES__. And until
263
- SCRIPT_LINES__ is fixed,
264
- don't read from it. Corrections to comments.
265
-
266
- 2008-01-14 12:27 Rocky Bernstein
267
-
268
- * ChangeLog, VERSION, lib/linecache.rb: Add parameter to getline
269
- and getlines to reload file on change. Add
38
+ * .: Add parameter to getline and getlines to reload file on
39
+ change. Add
270
40
  option on clear_file_cache to clear out SCRIPT_LINES__ as well.
271
41
  TESTS ARE NEEDED.
272
42
  Update to version 0.2.
273
43
 
274
- 2008-01-14 03:41 Rocky Bernstein
275
-
276
- * lib/linecache.rb: Use SCRIPT_LINES__ if we can.
277
-
278
- 2007-12-10 16:24 Rocky Bernstein
279
-
280
- * linecache/linecache: release 0.1
281
-
282
- 2007-12-09 17:47 Rocky Bernstein
283
-
284
- * linecache/trunk/lib/linecache.rb: Make Ruby 1.9 compatible.
285
-
286
- 2007-12-09 17:17 Rocky Bernstein
287
-
288
- * linecache/trunk/ChangeLog, linecache/trunk/Rakefile,
289
- linecache/trunk/lib/linecache.rb,
290
- linecache/trunk/test/test-linecache.rb: Better tests mean more
291
- bugs found. "rake" defaults now to "test".
292
-
293
- 2007-12-09 14:10 Rocky Bernstein
294
-
295
- * linecache/trunk/Rakefile: Add VERSION to gem.
296
-
297
- 2007-12-09 14:09 Rocky Bernstein
44
+ 2007-12-10 16:24 rockyb
298
45
 
299
- * linecache/trunk/test/test-linecache.rb: Change classname to
300
- something more appropriate.
46
+ * : release 0.1
301
47
 
302
- 2007-12-09 13:41 Rocky Bernstein
48
+ 2007-12-09 17:17 rockyb
303
49
 
304
- * linecache/trunk, linecache/trunk/Rakefile: . : ignore doc and pkg
305
- Rakefile: clean now does clobber_rdoc and clobber_package, i.e.
306
- removes
307
- the doc and pkg directories.
50
+ * : Better tests mean more bugs found. "rake" defaults now to
51
+ "test".
308
52
 
309
- 2007-12-09 13:15 Rocky Bernstein
53
+ 2007-12-09 13:15 rockyb
310
54
 
311
- * linecache/trunk/ChangeLog, linecache/trunk/NEWS,
312
- linecache/trunk/README, linecache/trunk/Rakefile,
313
- linecache/trunk/lib/linecache.rb,
314
- linecache/trunk/test/test-linecache.rb: NEWS, README,
315
- linecache.rb: Add $Id$ line
55
+ * : NEWS, README, linecache.rb: Add $Id$ line
316
56
  test-linecache.rb: make executable
317
57
  Rakefile: Correct documentation
318
58
 
319
- 2007-12-09 12:58 Rocky Bernstein
59
+ 2007-12-09 12:58 rockyb
320
60
 
321
- * linecache, linecache/trunk, linecache/trunk/AUTHORS,
322
- linecache/trunk/COPYING, linecache/trunk/ChangeLog,
323
- linecache/trunk/NEWS, linecache/trunk/README,
324
- linecache/trunk/Rakefile, linecache/trunk/VERSION,
325
- linecache/trunk/lib, linecache/trunk/lib/linecache.rb,
326
- linecache/trunk/test, linecache/trunk/test/test-linecache.rb:
327
- Initial import of LineCache, a module for reading and caching
61
+ * : Initial import of LineCache, a module for reading and caching
328
62
  lines.
329
63
  This time to trunk.
330
64
 
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 0.43
2
+ - add test/data/* to gem.
3
+
1
4
  0.41
2
5
  - add test/data/* to gem.
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.42
1
+ 0.43
data/lib/trace_nums.so CHANGED
Binary file
data/lib/tracelines.rb CHANGED
@@ -1,11 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
- # $Id: tracelines.rb 36 2008-01-23 12:07:02Z rockyb $
2
+ # $Id: tracelines.rb 143 2008-06-12 00:04:43Z rockyb $
3
3
  begin require 'rubygems' rescue LoadError end
4
- # require 'ruby-debug' ; Debugger.start
4
+ # require 'ruby-debug' ; Debugger.start(:post-mortem => true)
5
5
 
6
6
  module TraceLineNumbers
7
7
  @@SRC_DIR = File.expand_path(File.dirname(__FILE__))
8
- require File.join(@@SRC_DIR, '..', 'ext', 'trace_nums')
8
+ begin
9
+ require File.join(@@SRC_DIR, '..', 'ext', 'trace_nums')
10
+ rescue LoadError
11
+ # MSWindows seems to put this in lib rather than ext.
12
+ require File.join(@@SRC_DIR, '..', 'lib', 'trace_nums')
13
+ end
9
14
 
10
15
  # Return an array of lines numbers that could be
11
16
  # stopped at given a file name of a Ruby program.
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.42"
7
- date: 2008-04-11 00:00:00 -04:00
6
+ version: "0.43"
7
+ date: 2008-06-12 00:00:00 -04:00
8
8
  summary: Read file with caching
9
9
  require_paths:
10
10
  - lib