virb 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/virb.rb CHANGED
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  if defined?(Rails)
4
3
  require 'virb/railtie'
5
4
  end
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
@@ -1,3 +1,3 @@
1
1
  module Virb
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
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.9
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-08 00:00:00.000000000 Z
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: