rbx-linecache 1.0-universal-rubinius-1.2 → 1.1-universal-rubinius-1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +9 -0
- data/NEWS +3 -3
- data/Rakefile +10 -9
- data/lib/linecache.rb +1 -1
- metadata +40 -36
data/ChangeLog
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
2011-02-11 21:47 Rocky Bernstein
|
2
|
+
|
3
|
+
* Rakefile: Adding --verbose to test/unit has changed over the
|
4
|
+
years
|
5
|
+
|
6
|
+
2011-02-02 01:16 Rocky Bernstein
|
7
|
+
|
8
|
+
* ChangeLog, NEWS, lib/linecache.rb: Get ready for release
|
9
|
+
|
1
10
|
2011-01-18 20:02 Rocky Bernstein
|
2
11
|
|
3
12
|
* lib/linecache.rb: Was redoing highlighting incorrectly. Need to
|
data/NEWS
CHANGED
data/Rakefile
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
# Are we Rubinius
|
3
|
-
raise RuntimeError, 'This package is for Rubinius
|
2
|
+
# Are we Rubinius? We'll test by checking the specific function we need.
|
3
|
+
raise RuntimeError, 'This package is for Rubinius 1.2.x only!' unless
|
4
4
|
Object.constants.include?('Rubinius') &&
|
5
5
|
Rubinius.constants.include?('VM') &&
|
6
|
-
|
6
|
+
Rubinius::VERSION =~ /1\.2.+/
|
7
|
+
|
7
8
|
|
8
9
|
require 'rubygems'
|
9
10
|
require 'rake/gempackagetask'
|
@@ -11,20 +12,20 @@ require 'rake/rdoctask'
|
|
11
12
|
require 'rake/testtask'
|
12
13
|
|
13
14
|
ROOT_DIR = File.dirname(__FILE__)
|
15
|
+
Gemspec_filename = 'rbx-linecache.gemspec'
|
14
16
|
require File.join %W(#{ROOT_DIR} lib linecache)
|
15
17
|
|
16
18
|
def gemspec
|
17
|
-
@gemspec ||= eval(File.read(
|
19
|
+
@gemspec ||= eval(File.read(Gemspec_filename), binding, Gemspec_filename)
|
18
20
|
end
|
19
21
|
|
20
22
|
desc "Build the gem"
|
21
23
|
task :package=>:gem
|
22
24
|
task :gem=>:gemspec do
|
23
25
|
Dir.chdir(ROOT_DIR) do
|
24
|
-
sh "gem build
|
26
|
+
sh "gem build #{Gemspec_filename}"
|
25
27
|
FileUtils.mkdir_p 'pkg'
|
26
|
-
FileUtils.mv("#{gemspec.
|
27
|
-
"pkg/#{gemspec.name}-#{gemspec.version}-universal-rubinius-1.2.gem")
|
28
|
+
FileUtils.mv("#{gemspec.file_name}", "pkg/")
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
@@ -33,7 +34,7 @@ task :default => [:test]
|
|
33
34
|
desc 'Install the gem locally'
|
34
35
|
task :install => :package do
|
35
36
|
Dir.chdir(ROOT_DIR) do
|
36
|
-
sh %{gem install --local pkg/#{gemspec.
|
37
|
+
sh %{gem install --local pkg/#{gemspec.file_name}}
|
37
38
|
end
|
38
39
|
end
|
39
40
|
|
@@ -46,7 +47,7 @@ desc 'Test units - the smaller tests'
|
|
46
47
|
Rake::TestTask.new(:'test') do |t|
|
47
48
|
t.test_files = FileList['test/test-*.rb']
|
48
49
|
# t.pattern = 'test/**/*test-*.rb' # instead of above
|
49
|
-
t.
|
50
|
+
t.options = '--verbose' if $VERBOSE
|
50
51
|
end
|
51
52
|
|
52
53
|
desc "Generate the gemspec"
|
data/lib/linecache.rb
CHANGED
@@ -64,7 +64,7 @@ require_relative 'tracelines'
|
|
64
64
|
# = module LineCache
|
65
65
|
# A module to read and cache lines of a Ruby program.
|
66
66
|
module LineCache
|
67
|
-
VERSION = '1.
|
67
|
+
VERSION = '1.1'
|
68
68
|
LineCacheInfo = Struct.new(:stat, :line_numbers, :lines, :path, :sha1) unless
|
69
69
|
defined?(LineCacheInfo)
|
70
70
|
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbx-linecache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
8
|
+
- 1
|
9
|
+
version: "1.1"
|
10
10
|
platform: universal-rubinius-1.2
|
11
11
|
authors:
|
12
12
|
- R. Bernstein
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-23 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -32,8 +32,12 @@ dependencies:
|
|
32
32
|
type: :runtime
|
33
33
|
version_requirements: *id001
|
34
34
|
description: |
|
35
|
-
LineCache is a module for reading and caching lines.
|
36
|
-
|
35
|
+
LineCache is a module for reading and caching lines. It also provides
|
36
|
+
facility for remapping file names and line ranges within a file. If
|
37
|
+
coderay is installed, LineCache an colorize Ruby source code.
|
38
|
+
|
39
|
+
This may be useful for example in a debugger where the same lines are
|
40
|
+
shown many times.
|
37
41
|
|
38
42
|
email: rockyb@rubyforge.net
|
39
43
|
executables: []
|
@@ -51,41 +55,41 @@ files:
|
|
51
55
|
- NEWS
|
52
56
|
- README
|
53
57
|
- Rakefile
|
54
|
-
- lib/linecache.rb
|
55
58
|
- lib/tracelines.rb
|
56
|
-
-
|
57
|
-
- test/test-tracelines.rb
|
59
|
+
- lib/linecache.rb
|
58
60
|
- test/parse-show.rb
|
59
|
-
- test/test-linecache.rb
|
60
61
|
- test/lnum-diag.rb
|
61
62
|
- test/rcov-bug.rb
|
62
|
-
- test/
|
63
|
-
- test/
|
64
|
-
- test/
|
65
|
-
- test/data/
|
66
|
-
- test/data/
|
67
|
-
- test/data/
|
68
|
-
- test/data/case2.rb
|
63
|
+
- test/test-lnum.rb
|
64
|
+
- test/test-linecache.rb
|
65
|
+
- test/test-tracelines.rb
|
66
|
+
- test/data/if1.rb
|
67
|
+
- test/data/comments1.rb
|
68
|
+
- test/data/not-lit.rb
|
69
69
|
- test/data/begin2.rb
|
70
|
-
- test/data/
|
71
|
-
- test/data/
|
70
|
+
- test/data/block2.rb
|
71
|
+
- test/data/if6.rb
|
72
|
+
- test/data/end.rb
|
72
73
|
- test/data/case4.rb
|
73
|
-
- test/data/
|
74
|
-
- test/data/
|
74
|
+
- test/data/begin1.rb
|
75
|
+
- test/data/for1.rb
|
75
76
|
- test/data/match.rb
|
76
|
-
- test/data/def1.rb
|
77
|
-
- test/data/case1.rb
|
78
|
-
- test/data/case3.rb
|
79
77
|
- test/data/match3a.rb
|
80
|
-
- test/data/for1.rb
|
81
78
|
- test/data/class1.rb
|
82
|
-
- test/data/
|
83
|
-
- test/data/
|
84
|
-
- test/data/
|
79
|
+
- test/data/if3.rb
|
80
|
+
- test/data/if5.rb
|
81
|
+
- test/data/case1.rb
|
82
|
+
- test/data/def1.rb
|
83
|
+
- test/data/if7.rb
|
85
84
|
- test/data/block1.rb
|
86
|
-
- test/data/
|
85
|
+
- test/data/begin3.rb
|
86
|
+
- test/data/case3.rb
|
87
|
+
- test/data/case2.rb
|
88
|
+
- test/data/each1.rb
|
89
|
+
- test/data/if2.rb
|
87
90
|
- test/data/match3.rb
|
88
|
-
- test/data/
|
91
|
+
- test/data/if4.rb
|
92
|
+
- test/data/case5.rb
|
89
93
|
- test/short-file
|
90
94
|
- test/short-file2
|
91
95
|
has_rdoc: true
|
@@ -95,7 +99,7 @@ licenses:
|
|
95
99
|
post_install_message:
|
96
100
|
rdoc_options:
|
97
101
|
- --title
|
98
|
-
- LineCache 1.
|
102
|
+
- LineCache 1.1 Documentation
|
99
103
|
require_paths:
|
100
104
|
- lib
|
101
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -121,14 +125,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
125
|
requirements: []
|
122
126
|
|
123
127
|
rubyforge_project: rocky-hacks
|
124
|
-
rubygems_version: 1.
|
128
|
+
rubygems_version: 1.5.2
|
125
129
|
signing_key:
|
126
130
|
specification_version: 3
|
127
131
|
summary: Read file with caching
|
128
132
|
test_files:
|
129
|
-
- test/test-lnum.rb
|
130
|
-
- test/test-tracelines.rb
|
131
133
|
- test/parse-show.rb
|
132
|
-
- test/test-linecache.rb
|
133
134
|
- test/lnum-diag.rb
|
134
135
|
- test/rcov-bug.rb
|
136
|
+
- test/test-lnum.rb
|
137
|
+
- test/test-linecache.rb
|
138
|
+
- test/test-tracelines.rb
|