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 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
@@ -1,3 +1,4 @@
1
+ * Make RVM's irbrc work
1
2
  * Write docs for using a as library. Probably right after creating a Cocoa client.
2
3
  * Write a not useless README.
3
4
  * Add specs for irb/driver/socket, and possibly for bin/dietrb.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dietrb}
8
- s.version = "0.6.0"
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-02}
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}
@@ -82,6 +82,8 @@ module IRB
82
82
  end
83
83
 
84
84
  def results
85
+ return if @source.strip.empty?
86
+
85
87
  source = @source
86
88
  filter = nil
87
89
 
@@ -9,7 +9,7 @@ module IRB
9
9
  NAME = 'DietRB'
10
10
  MAJOR = 0
11
11
  MINOR = 6
12
- TINY = 0
12
+ TINY = 1
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY].join('.')
15
15
  DESCRIPTION = "#{NAME} (#{STRING})"
@@ -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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
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-02 00:00:00 +01:00
18
+ date: 2010-11-05 00:00:00 +01:00
19
19
  default_executable: dietrb
20
20
  dependencies: []
21
21