rib 0.9.5.pre.1 → 0.9.5
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.
- data/.travis.yml +0 -3
- data/CHANGES.md +1 -1
- data/Gemfile +11 -0
- data/README.md +2 -1
- data/Rakefile +0 -6
- data/bin/rib-auto +3 -0
- data/bin/rib-rails +3 -0
- data/bin/rib-ramaze +3 -0
- data/lib/rib/app/rails.rb +1 -1
- data/lib/rib/shell.rb +4 -4
- data/lib/rib/version.rb +1 -1
- data/rib.gemspec +3 -21
- metadata +6 -72
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ be simple, lightweight and modular so that everyone could customize Rib.
|
|
23
23
|
|
24
24
|
## REQUIREMENTS:
|
25
25
|
|
26
|
-
* Tested with MRI 1.8.7, 1.9.2
|
26
|
+
* Tested with MRI (official CRuby) 1.8.7, 1.9.2, 1.9.3, Rubinius and JRuby
|
27
27
|
* All gem dependencies are optional, but it's highly recommended to use
|
28
28
|
Rib with [bond][] for tab completion.
|
29
29
|
|
@@ -184,6 +184,7 @@ starting from 1.
|
|
184
184
|
|
185
185
|
Whenever you called:
|
186
186
|
|
187
|
+
require 'rib/more/edit'
|
187
188
|
Rib.edit
|
188
189
|
|
189
190
|
Rib would open an editor according to $EDITOR (`ENV['EDITOR']`) for you.
|
data/Rakefile
CHANGED
data/bin/rib-auto
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
require 'rib/runner'
|
4
4
|
# create the shell before app to prvent your bundler (if any) kicks in
|
5
5
|
Rib.shell
|
6
|
+
# we need to require anything before loading the app,
|
7
|
+
# and both `rib auto` (true) and `rib-auto` (nil) should work
|
8
|
+
require 'rib/core' if Rib.config.delete(:mimic_irb) != false
|
6
9
|
require 'rib/app/auto'
|
7
10
|
# load the app
|
8
11
|
Rib::Auto.load
|
data/bin/rib-rails
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
require 'rib/runner'
|
4
4
|
# create the shell before app to prvent your bundler (if any) kicks in
|
5
5
|
Rib.shell
|
6
|
+
# we need to require anything before loading the app,
|
7
|
+
# and both `rib auto` (true) and `rib-auto` (nil) should work
|
8
|
+
require 'rib/core' if Rib.config.delete(:mimic_irb) != false
|
6
9
|
require 'rib/app/rails'
|
7
10
|
# load the app
|
8
11
|
Rib::Rails.load
|
data/bin/rib-ramaze
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
require 'rib/runner'
|
4
4
|
# create the shell before app to prvent your bundler (if any) kicks in
|
5
5
|
Rib.shell
|
6
|
+
# we need to require anything before loading the app,
|
7
|
+
# and both `rib auto` (true) and `rib-auto` (nil) should work
|
8
|
+
require 'rib/core' if Rib.config.delete(:mimic_irb) != false
|
6
9
|
require 'rib/app/ramaze'
|
7
10
|
# load the app
|
8
11
|
Rib::Ramaze.load
|
data/lib/rib/app/rails.rb
CHANGED
@@ -61,7 +61,7 @@ module Rib::Rails
|
|
61
61
|
options = {}
|
62
62
|
|
63
63
|
OptionParser.new do |opt|
|
64
|
-
opt.banner = "Usage:
|
64
|
+
opt.banner = "Usage: rib rails [environment] [options]"
|
65
65
|
opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |v| options[:sandbox] = v }
|
66
66
|
opt.on("--debugger", 'Enable ruby-debugging for the console.') { |v| options[:debugger] = v }
|
67
67
|
opt.parse!(ARGV)
|
data/lib/rib/shell.rb
CHANGED
@@ -13,10 +13,10 @@ class Rib::Shell
|
|
13
13
|
attr_reader :config
|
14
14
|
def initialize(config={})
|
15
15
|
self.config = {
|
16
|
-
:result_prompt => '=> '
|
17
|
-
:prompt => '>> '
|
18
|
-
:binding => TOPLEVEL_BINDING
|
19
|
-
:exit => [nil, 'exit', 'quit']
|
16
|
+
:result_prompt => '=> ' ,
|
17
|
+
:prompt => '>> ' ,
|
18
|
+
:binding => TOPLEVEL_BINDING ,
|
19
|
+
:exit => [nil, 'exit', 'quit'],
|
20
20
|
:line => 1
|
21
21
|
}.merge(config)
|
22
22
|
@running = false
|
data/lib/rib/version.rb
CHANGED
data/rib.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rib"
|
5
|
-
s.version = "0.9.5
|
5
|
+
s.version = "0.9.5"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Lin Jen-Shin (godfat)"]
|
9
|
-
s.date = "2011-09-
|
9
|
+
s.date = "2011-09-03"
|
10
10
|
s.description = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell\n\nRib is based on the design of [ripl][] and the work of [ripl-rc][], some of\nthe features are also inspired by [pry][]. The aim of Rib is to be fully\nfeatured and yet very easy to opt-out or opt-in other features. It shall\nbe simple, lightweight and modular so that everyone could customize Rib.\n\n[ripl]: https://github.com/cldwalker/ripl\n[ripl-rc]: https://github.com/godfat/ripl-rc\n[pry]: https://github.com/pry/pry"
|
11
11
|
s.email = ["godfat (XD) godfat.org"]
|
12
12
|
s.executables = [
|
@@ -100,26 +100,8 @@ Gem::Specification.new do |s|
|
|
100
100
|
s.specification_version = 3
|
101
101
|
|
102
102
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
103
|
-
s.add_development_dependency(%q<bond>, [">= 0"])
|
104
|
-
s.add_development_dependency(%q<hirb>, [">= 0"])
|
105
|
-
s.add_development_dependency(%q<readline_buffer>, [">= 0"])
|
106
|
-
s.add_development_dependency(%q<bacon>, [">= 0"])
|
107
|
-
s.add_development_dependency(%q<rr>, [">= 0"])
|
108
|
-
s.add_development_dependency(%q<rake>, [">= 0"])
|
109
103
|
else
|
110
|
-
s.add_dependency(%q<bond>, [">= 0"])
|
111
|
-
s.add_dependency(%q<hirb>, [">= 0"])
|
112
|
-
s.add_dependency(%q<readline_buffer>, [">= 0"])
|
113
|
-
s.add_dependency(%q<bacon>, [">= 0"])
|
114
|
-
s.add_dependency(%q<rr>, [">= 0"])
|
115
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
116
104
|
end
|
117
105
|
else
|
118
|
-
s.add_dependency(%q<bond>, [">= 0"])
|
119
|
-
s.add_dependency(%q<hirb>, [">= 0"])
|
120
|
-
s.add_dependency(%q<readline_buffer>, [">= 0"])
|
121
|
-
s.add_dependency(%q<bacon>, [">= 0"])
|
122
|
-
s.add_dependency(%q<rr>, [">= 0"])
|
123
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
124
106
|
end
|
125
107
|
end
|
metadata
CHANGED
@@ -1,82 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.5
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.5
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Lin Jen-Shin (godfat)
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: bond
|
16
|
-
requirement: &2154066420 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *2154066420
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: hirb
|
27
|
-
requirement: &2154065580 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *2154065580
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: readline_buffer
|
38
|
-
requirement: &2154064580 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ! '>='
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *2154064580
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: bacon
|
49
|
-
requirement: &2154063360 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *2154063360
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: rr
|
60
|
-
requirement: &2154061980 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ! '>='
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: '0'
|
66
|
-
type: :development
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *2154061980
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: &2154060200 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - ! '>='
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: *2154060200
|
12
|
+
date: 2011-09-03 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
80
14
|
description: ! 'Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|
81
15
|
|
82
16
|
|
@@ -183,9 +117,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
118
|
none: false
|
185
119
|
requirements:
|
186
|
-
- - ! '
|
120
|
+
- - ! '>='
|
187
121
|
- !ruby/object:Gem::Version
|
188
|
-
version:
|
122
|
+
version: '0'
|
189
123
|
requirements: []
|
190
124
|
rubyforge_project:
|
191
125
|
rubygems_version: 1.8.10
|