richrc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +19 -0
- data/README.md +33 -0
- data/lib/richrc/version.rb +1 -1
- data/richrc.gemspec +1 -1
- metadata +8 -6
data/MIT-LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (C) 2011 by BigCat a.k.a. miaout17 (miaout17 at gmail dot com)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# RichRC
|
2
|
+
|
3
|
+
RichRC (Rich Rails Console) loads [hirb](https://github.com/cldwalker/hirb) and [wirble](http://pablotron.org/software/wirble/) in rails 3 console without editing files in rails app directory.
|
4
|
+
|
5
|
+
Hirb and wirble are excellent IRB-extension which makes data more readable. In rails 2, we can simply require gems in IRB and start using them. However, In Rails 3, it's needed to add gems into `Gemfile` before using it. Sometimes it doesn't make sense to add IRB-extension gems into rails app Gemfile (Maybe not all developers want hirb and wirble, and it's annoying to add the gems whenever cloning a project).
|
6
|
+
|
7
|
+
Inspired from [xdite's article](http://blog.xdite.net/?p=1839), the extra gems cloud be loaded before `Bundler.setup` is invoked. RichRC mimics the bootstrap process of rails console, loads and initializes extra gems, and starts console normally.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
$ gem install richrc hirb wirble
|
12
|
+
|
13
|
+
P.S. In RichRC's gemspec, it doesn't depend on hirb and wirble. If some of the gems are missing, RichRC simply ignore them.
|
14
|
+
|
15
|
+
## Running RichRC
|
16
|
+
|
17
|
+
$ cd railsapp
|
18
|
+
$ richrc # instead of `rails console`
|
19
|
+
|
20
|
+
That's all :)
|
21
|
+
|
22
|
+
The original rails console is not affected. If problems occured with RichRC, you can simply fallback to `rails console`.
|
23
|
+
|
24
|
+
## Possible Issues
|
25
|
+
|
26
|
+
* Theoretically, if hirb and wirble(and their dependent gems) conflict with gems in `Gemfile`, it may cause problems. However, I never encounter this situation. Hacking Bundler.setup might be a better way.
|
27
|
+
|
28
|
+
Fell free to report issues in Github's issue tracker.
|
29
|
+
|
30
|
+
## License
|
31
|
+
|
32
|
+
See MIT-LICENSE file for details.
|
33
|
+
|
data/lib/richrc/version.rb
CHANGED
data/richrc.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["miaout17"]
|
10
10
|
s.email = ["miaout17 at gmail.com"]
|
11
11
|
s.homepage = ""
|
12
|
-
s.summary = %q{
|
12
|
+
s.summary = %q{Rich Rails Console}
|
13
13
|
s.description = %q{Load Wirble and Hirb in Rails 3 without editing Gemfile}
|
14
14
|
|
15
15
|
s.rubyforge_project = "richrc"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: richrc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- miaout17
|
@@ -31,6 +31,8 @@ extra_rdoc_files: []
|
|
31
31
|
files:
|
32
32
|
- .gitignore
|
33
33
|
- Gemfile
|
34
|
+
- MIT-LICENSE
|
35
|
+
- README.md
|
34
36
|
- Rakefile
|
35
37
|
- bin/richrc
|
36
38
|
- lib/richrc.rb
|
@@ -68,9 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
70
|
requirements: []
|
69
71
|
|
70
72
|
rubyforge_project: richrc
|
71
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.4.1
|
72
74
|
signing_key:
|
73
75
|
specification_version: 3
|
74
|
-
summary:
|
76
|
+
summary: Rich Rails Console
|
75
77
|
test_files: []
|
76
78
|
|