linecache 0.46-java → 1.3.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog +0 -620
- data/NEWS +11 -6
- data/README.md +34 -0
- data/Rakefile +28 -54
- data/lib/linecache.rb +65 -78
- data/lib/linecache/trace_nums.rb +1 -1
- data/lib/linecache/version.rb +1 -1
- metadata +83 -94
- data/README +0 -50
data/lib/linecache/trace_nums.rb
CHANGED
data/lib/linecache/version.rb
CHANGED
metadata
CHANGED
@@ -1,109 +1,98 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: linecache
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: "0.46"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
6
5
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
6
|
+
authors:
|
7
|
+
- R. Bernstein
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-10-06 00:00:00 -07:00
|
14
|
-
default_executable:
|
11
|
+
date: 2015-09-20 00:00:00.000000000 Z
|
15
12
|
dependencies: []
|
16
|
-
|
17
13
|
description: |
|
18
14
|
LineCache is a module for reading and caching lines. This may be useful for
|
19
15
|
example in a debugger where the same lines are shown many times.
|
20
|
-
|
21
16
|
email: rockyb@rubyforge.net
|
22
17
|
executables: []
|
23
|
-
|
24
18
|
extensions: []
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
- test/short-file
|
75
|
-
has_rdoc: true
|
19
|
+
extra_rdoc_files:
|
20
|
+
- README.md
|
21
|
+
- lib/linecache.rb
|
22
|
+
- lib/linecache/tracelines.rb
|
23
|
+
files:
|
24
|
+
- AUTHORS
|
25
|
+
- COPYING
|
26
|
+
- ChangeLog
|
27
|
+
- NEWS
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- lib/linecache.rb
|
31
|
+
- lib/linecache/trace_nums.rb
|
32
|
+
- lib/linecache/tracelines.rb
|
33
|
+
- lib/linecache/version.rb
|
34
|
+
- test/data/begin1.rb
|
35
|
+
- test/data/begin2.rb
|
36
|
+
- test/data/begin3.rb
|
37
|
+
- test/data/block1.rb
|
38
|
+
- test/data/block2.rb
|
39
|
+
- test/data/case1.rb
|
40
|
+
- test/data/case2.rb
|
41
|
+
- test/data/case3.rb
|
42
|
+
- test/data/case4.rb
|
43
|
+
- test/data/case5.rb
|
44
|
+
- test/data/class1.rb
|
45
|
+
- test/data/comments1.rb
|
46
|
+
- test/data/def1.rb
|
47
|
+
- test/data/each1.rb
|
48
|
+
- test/data/end.rb
|
49
|
+
- test/data/for1.rb
|
50
|
+
- test/data/if1.rb
|
51
|
+
- test/data/if2.rb
|
52
|
+
- test/data/if3.rb
|
53
|
+
- test/data/if4.rb
|
54
|
+
- test/data/if5.rb
|
55
|
+
- test/data/if6.rb
|
56
|
+
- test/data/if7.rb
|
57
|
+
- test/data/match.rb
|
58
|
+
- test/data/match3.rb
|
59
|
+
- test/data/match3a.rb
|
60
|
+
- test/data/not-lit.rb
|
61
|
+
- test/lnum-diag.rb
|
62
|
+
- test/parse-show.rb
|
63
|
+
- test/rcov-bug.rb
|
64
|
+
- test/short-file
|
65
|
+
- test/test-linecache.rb
|
66
|
+
- test/test-lnum.rb
|
67
|
+
- test/test-tracelines.rb
|
76
68
|
homepage: http://rubyforge.org/projects/rocky-hacks/linecache
|
77
|
-
licenses:
|
78
|
-
|
79
|
-
|
69
|
+
licenses:
|
70
|
+
- GPL2
|
71
|
+
metadata: {}
|
72
|
+
post_install_message:
|
80
73
|
rdoc_options: []
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: "0"
|
74
|
+
require_paths:
|
75
|
+
- lib
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 1.8.7
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
96
86
|
requirements: []
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
specification_version: 3
|
87
|
+
rubyforge_project:
|
88
|
+
rubygems_version: 2.4.8
|
89
|
+
signing_key:
|
90
|
+
specification_version: 4
|
102
91
|
summary: Read file with caching
|
103
|
-
test_files:
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
92
|
+
test_files:
|
93
|
+
- test/lnum-diag.rb
|
94
|
+
- test/parse-show.rb
|
95
|
+
- test/rcov-bug.rb
|
96
|
+
- test/test-linecache.rb
|
97
|
+
- test/test-lnum.rb
|
98
|
+
- test/test-tracelines.rb
|
data/README
DELETED
@@ -1,50 +0,0 @@
|
|
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.
|
14
|
-
|
15
|
-
== Summary
|
16
|
-
|
17
|
-
require 'linecache'
|
18
|
-
lines = LineCache::getlines('/tmp/myruby.rb')
|
19
|
-
# The following lines have same effect as the above.
|
20
|
-
$: << '/tmp'
|
21
|
-
Dir.chdir('/tmp') {lines = LineCache::getlines('myruby.rb')
|
22
|
-
|
23
|
-
line = LineCache::getline('/tmp/myruby.rb', 6)
|
24
|
-
# Note lines[6] == line (if /tmp/myruby.rb has 6 lines)
|
25
|
-
|
26
|
-
LineCache::clear_file_cache
|
27
|
-
LineCache::clear_file_cache('/tmp/myruby.rb')
|
28
|
-
LineCache::update_cache # Check for modifications of all cached files.
|
29
|
-
|
30
|
-
== Credits
|
31
|
-
|
32
|
-
This is a port of the module of the same name from the Python distribution.
|
33
|
-
|
34
|
-
The idea for how TraceLineNumbers works, and some code was taken
|
35
|
-
from ParseTree by Ryan Davis.
|
36
|
-
|
37
|
-
== Other stuff
|
38
|
-
|
39
|
-
Author:: Rocky Bernstein <rockyb@rubyforge.net>
|
40
|
-
License:: Copyright (c) 2007, 2008 Rocky Bernstein
|
41
|
-
Released under the GNU GPL 2 license
|
42
|
-
|
43
|
-
== Warranty
|
44
|
-
|
45
|
-
This program is distributed in the hope that it will be useful,
|
46
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
47
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
48
|
-
GNU General Public License for more details.
|
49
|
-
|
50
|
-
$Id$
|