virb 0.0.9 → 0.1.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.
- data/lib/virb.rb +0 -1
- data/lib/virb/railtie.rb +7 -9
- data/lib/virb/version.rb +1 -1
- metadata +2 -2
data/lib/virb.rb
CHANGED
data/lib/virb/railtie.rb
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
module Virb
|
|
4
4
|
class Railtie < Rails::Railtie
|
|
5
5
|
if ENV['VIRB'] == 'pry'
|
|
6
|
-
require 'pry'
|
|
7
|
-
require 'virb/pry'
|
|
8
6
|
console do
|
|
7
|
+
require 'pry'
|
|
8
|
+
require 'virb/pry'
|
|
9
9
|
if Rails::VERSION::MAJOR == 3
|
|
10
10
|
Rails::Console::IRB = Virb::Pry
|
|
11
11
|
unless defined? Virb::Pry::ExtendCommandBundle
|
|
@@ -21,16 +21,14 @@ module Virb
|
|
|
21
21
|
require 'rails/console/helpers'
|
|
22
22
|
TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods
|
|
23
23
|
end
|
|
24
|
+
# do this to prevent the sql output from going to vim interactive buffer
|
|
25
|
+
STDERR.reopen("/dev/null")
|
|
26
|
+
require "virb/pry_commands"
|
|
27
|
+
::Pry.commands.import PryRails::Commands
|
|
24
28
|
end
|
|
25
|
-
require "virb/pry_commands"
|
|
26
|
-
::Pry.commands.import PryRails::Commands
|
|
27
|
-
|
|
28
|
-
# do this to prevent the sql output from going to vim interactive buffer
|
|
29
|
-
STDERR.reopen("/dev/null")
|
|
30
|
-
|
|
31
29
|
else
|
|
32
|
-
require 'virb/default'
|
|
33
30
|
console do
|
|
31
|
+
require 'virb/default'
|
|
34
32
|
if Rails::VERSION::MAJOR == 3
|
|
35
33
|
Rails::Console::IRB = IRB
|
|
36
34
|
end
|
data/lib/virb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: virb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-01-
|
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: A Vim shell for irb and rails console
|
|
15
15
|
email:
|