irby 1.0.0

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.
Files changed (7) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +32 -0
  3. data/Rakefile +16 -0
  4. data/VERSION +1 -0
  5. data/lib/irby.rb +11 -0
  6. data/test.rb +9 -0
  7. metadata +61 -0
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 jugyo
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ IRBy
2
+ ======
3
+
4
+ The IRBy allows you to start irb super quickly.
5
+
6
+ Installation
7
+ ------------
8
+
9
+ gem install irby
10
+
11
+ Usage
12
+ ------------
13
+
14
+ require 'irby'
15
+
16
+ class Foo
17
+ def bar
18
+ irb
19
+ end
20
+ end
21
+
22
+ Foo.new.bar
23
+
24
+ Note
25
+ ------------
26
+
27
+ Inspired by http://d.hatena.ne.jp/ursm/20090625/1245951503
28
+
29
+ Copyright
30
+ ------------
31
+
32
+ Copyright (c) 2010 jugyo. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "irby"
8
+ gem.summary = %Q{IRBy is a super quick irb}
9
+ gem.description = %Q{The IRBy allows you to start irb super quickly.}
10
+ gem.email = "jugyo.org@gmail.com"
11
+ gem.homepage = "http://github.com/jugyo/irby"
12
+ gem.authors = ["jugyo"]
13
+ end
14
+ rescue LoadError
15
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
16
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
data/lib/irby.rb ADDED
@@ -0,0 +1,11 @@
1
+ module Kernel
2
+ def irb
3
+ require 'irb'
4
+ IRB.setup(nil)
5
+ irb = IRB::Irb.new(IRB::WorkSpace.new(binding))
6
+ IRB.conf[:MAIN_CONTEXT] = irb.context
7
+ catch(:IRB_EXIT) do
8
+ irb.eval_input
9
+ end
10
+ end
11
+ end
data/test.rb ADDED
@@ -0,0 +1,9 @@
1
+ require 'irby'
2
+
3
+ class Foo
4
+ def bar
5
+ irb
6
+ end
7
+ end
8
+
9
+ Foo.new.bar
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: irby
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - jugyo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-01-13 00:00:00 +09:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: The IRBy allows you to start irb super quickly.
17
+ email: jugyo.org@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.md
25
+ files:
26
+ - LICENSE
27
+ - README.md
28
+ - Rakefile
29
+ - VERSION
30
+ - lib/irby.rb
31
+ - test.rb
32
+ has_rdoc: true
33
+ homepage: http://github.com/jugyo/irby
34
+ licenses: []
35
+
36
+ post_install_message:
37
+ rdoc_options:
38
+ - --charset=UTF-8
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ version:
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ version:
53
+ requirements: []
54
+
55
+ rubyforge_project:
56
+ rubygems_version: 1.3.5
57
+ signing_key:
58
+ specification_version: 3
59
+ summary: IRBy is a super quick irb
60
+ test_files: []
61
+