dietrb 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +16 -16
- data/TODO +1 -0
- data/dietrb.gemspec +2 -2
- data/lib/irb/ext/completion.rb +2 -0
- data/lib/irb/version.rb +1 -1
- data/spec/ext/completion_spec.rb +20 -19
- metadata +4 -4
data/Rakefile
CHANGED
@@ -53,20 +53,20 @@ namespace :macruby do
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
begin
|
57
|
-
require 'rubygems'
|
58
|
-
require 'jeweler'
|
59
|
-
require File.expand_path('../lib/irb/version', __FILE__)
|
60
|
-
Jeweler::Tasks.new do |gemspec|
|
61
|
-
gemspec.name = "dietrb"
|
62
|
-
gemspec.version = IRB::VERSION::STRING
|
63
|
-
gemspec.summary = gemspec.description = "IRB on a diet, for MacRuby / Ruby 1.9"
|
64
|
-
gemspec.email = "eloy.de.enige@gmail.com"
|
65
|
-
gemspec.homepage = "http://github.com/alloy/dietrb"
|
66
|
-
gemspec.authors = ["Eloy Duran"]
|
56
|
+
#begin
|
57
|
+
#require 'rubygems'
|
58
|
+
#require 'jeweler'
|
59
|
+
#require File.expand_path('../lib/irb/version', __FILE__)
|
60
|
+
#Jeweler::Tasks.new do |gemspec|
|
61
|
+
#gemspec.name = "dietrb"
|
62
|
+
#gemspec.version = IRB::VERSION::STRING
|
63
|
+
#gemspec.summary = gemspec.description = "IRB on a diet, for MacRuby / Ruby 1.9"
|
64
|
+
#gemspec.email = "eloy.de.enige@gmail.com"
|
65
|
+
#gemspec.homepage = "http://github.com/alloy/dietrb"
|
66
|
+
#gemspec.authors = ["Eloy Duran"]
|
67
67
|
|
68
|
-
gemspec.required_ruby_version = ::Gem::Requirement.new("~> 1.9")
|
69
|
-
gemspec.files.reject! { |file| file =~ /^(extensions|\.gitignore|\w+_prototype\.rb)/ }
|
70
|
-
end
|
71
|
-
rescue LoadError
|
72
|
-
end
|
68
|
+
#gemspec.required_ruby_version = ::Gem::Requirement.new("~> 1.9")
|
69
|
+
#gemspec.files.reject! { |file| file =~ /^(extensions|\.gitignore|\w+_prototype\.rb)/ }
|
70
|
+
#end
|
71
|
+
#rescue LoadError
|
72
|
+
#end
|
data/TODO
CHANGED
data/dietrb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dietrb}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Eloy Duran"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-05}
|
13
13
|
s.default_executable = %q{dietrb}
|
14
14
|
s.description = %q{IRB on a diet, for MacRuby / Ruby 1.9}
|
15
15
|
s.email = %q{eloy.de.enige@gmail.com}
|
data/lib/irb/ext/completion.rb
CHANGED
data/lib/irb/version.rb
CHANGED
data/spec/ext/completion_spec.rb
CHANGED
@@ -46,6 +46,26 @@ describe "IRB::Completion" do
|
|
46
46
|
it "quacks like a Proc" do
|
47
47
|
@completion.call('//.').should == imethods(Regexp, '//')
|
48
48
|
end
|
49
|
+
|
50
|
+
it "completes reserved words as variables or constants" do
|
51
|
+
(IRB::Completion::RESERVED_DOWNCASE_WORDS +
|
52
|
+
IRB::Completion::RESERVED_UPCASE_WORDS).each do |word|
|
53
|
+
complete(word[0..-2]).should include(word)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
it "completes file paths" do
|
58
|
+
complete("'/").should == Dir.glob('/*').sort.map { |f| "'#{f}" }
|
59
|
+
complete("'#{ROOT}/lib/../Ra").should == ["'#{File.join(ROOT, "Rakefile")}"]
|
60
|
+
complete("%{#{ROOT}/li").should == ['LICENSE', 'lib'].map { |f| "%{#{File.join(ROOT, f)}" }
|
61
|
+
complete("\"#{ROOT}/lib/").should == ['irb', 'irb.rb'].map { |f| "\"#{File.join(ROOT, 'lib', f)}" }
|
62
|
+
end
|
63
|
+
|
64
|
+
it "does not crash when trying to complete garbage" do
|
65
|
+
complete("").should == nil
|
66
|
+
complete("/").should == nil
|
67
|
+
complete("./Rake").should == nil
|
68
|
+
end
|
49
69
|
|
50
70
|
describe "when doing a method call on an explicit receiver," do
|
51
71
|
describe "and the source ends with a period," do
|
@@ -241,23 +261,4 @@ describe "IRB::Completion" do
|
|
241
261
|
complete("::CompletionSt").should == %w{ ::CompletionStub }
|
242
262
|
end
|
243
263
|
end
|
244
|
-
|
245
|
-
it "completes reserved words as variables or constants" do
|
246
|
-
(IRB::Completion::RESERVED_DOWNCASE_WORDS +
|
247
|
-
IRB::Completion::RESERVED_UPCASE_WORDS).each do |word|
|
248
|
-
complete(word[0..-2]).should include(word)
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|
252
|
-
it "completes file paths" do
|
253
|
-
complete("'/").should == Dir.glob('/*').sort.map { |f| "'#{f}" }
|
254
|
-
complete("'#{ROOT}/lib/../Ra").should == ["'#{File.join(ROOT, "Rakefile")}"]
|
255
|
-
complete("%{#{ROOT}/li").should == ['LICENSE', 'lib'].map { |f| "%{#{File.join(ROOT, f)}" }
|
256
|
-
complete("\"#{ROOT}/lib/").should == ['irb', 'irb.rb'].map { |f| "\"#{File.join(ROOT, 'lib', f)}" }
|
257
|
-
end
|
258
|
-
|
259
|
-
it "does not crash when trying to complete garbage" do
|
260
|
-
complete("/").should == nil
|
261
|
-
complete("./Rake").should == nil
|
262
|
-
end
|
263
264
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dietrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eloy Duran
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-05 00:00:00 +01:00
|
19
19
|
default_executable: dietrb
|
20
20
|
dependencies: []
|
21
21
|
|