linecache 0.46-java → 1.3.1-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ module TraceLineNumbers
4
4
 
5
5
  # Trivial implementation allowing to stop on every line.
6
6
  def lnums_for_str(code)
7
- (1..code.entries.size).to_a
7
+ (1..code.lines.count).to_a
8
8
  end
9
9
  module_function :lnums_for_str
10
10
 
@@ -1,3 +1,3 @@
1
1
  module LineCache
2
- VERSION = '0.46'
2
+ VERSION = '1.3.1'
3
3
  end
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
- prerelease:
5
- version: "0.46"
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
6
5
  platform: java
7
- authors:
8
- - R. Bernstein
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
- extra_rdoc_files:
27
- - README
28
- - lib/linecache.rb
29
- - lib/linecache/tracelines.rb
30
- files:
31
- - AUTHORS
32
- - COPYING
33
- - ChangeLog
34
- - NEWS
35
- - README
36
- - Rakefile
37
- - lib/linecache.rb
38
- - lib/linecache/trace_nums.rb
39
- - lib/linecache/tracelines.rb
40
- - lib/linecache/version.rb
41
- - test/lnum-diag.rb
42
- - test/parse-show.rb
43
- - test/rcov-bug.rb
44
- - test/test-linecache.rb
45
- - test/test-lnum.rb
46
- - test/test-tracelines.rb
47
- - test/data/begin1.rb
48
- - test/data/begin2.rb
49
- - test/data/begin3.rb
50
- - test/data/block1.rb
51
- - test/data/block2.rb
52
- - test/data/case1.rb
53
- - test/data/case2.rb
54
- - test/data/case3.rb
55
- - test/data/case4.rb
56
- - test/data/case5.rb
57
- - test/data/class1.rb
58
- - test/data/comments1.rb
59
- - test/data/def1.rb
60
- - test/data/each1.rb
61
- - test/data/end.rb
62
- - test/data/for1.rb
63
- - test/data/if1.rb
64
- - test/data/if2.rb
65
- - test/data/if3.rb
66
- - test/data/if4.rb
67
- - test/data/if5.rb
68
- - test/data/if6.rb
69
- - test/data/if7.rb
70
- - test/data/match.rb
71
- - test/data/match3.rb
72
- - test/data/match3a.rb
73
- - test/data/not-lit.rb
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
- post_install_message:
69
+ licenses:
70
+ - GPL2
71
+ metadata: {}
72
+ post_install_message:
80
73
  rdoc_options: []
81
-
82
- require_paths:
83
- - lib
84
- required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 1.8.7
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
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
- rubyforge_project: rocky-hacks
99
- rubygems_version: 1.5.1
100
- signing_key:
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
- - test/lnum-diag.rb
105
- - test/parse-show.rb
106
- - test/rcov-bug.rb
107
- - test/test-linecache.rb
108
- - test/test-lnum.rb
109
- - test/test-tracelines.rb
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$