pry-rails 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,26 @@
1
1
  require "pry-rails/version"
2
2
 
3
3
  module PryRails
4
- if(defined?(::Rails) and ::Rails::VERSION::MAJOR >= 3)
5
- class Railtie < ::Rails::Railtie
6
- silence_warnings do
7
- begin
8
- require 'pry'
9
- Rails::Console::IRB = Pry
4
+ begin
5
+ require 'pry'
6
+
7
+ if (defined?(::Rails::Console) and ::Rails::VERSION::MAJOR >= 3)
8
+ class Railtie < ::Rails::Railtie
9
+ silence_warnings do
10
+ ::Rails::Console::IRB = Pry
11
+
10
12
  unless defined?(Pry::ExtendCommandBundle)
11
13
  Pry::ExtendCommandBundle = Module.new
12
14
  end
15
+
13
16
  if ::Rails::VERSION::MINOR >= 2
14
17
  require "rails/console/app"
15
18
  require "rails/console/helpers"
16
- TOPLEVEL_BINDING.eval('self').extend Rails::ConsoleMethods
19
+ TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods
17
20
  end
18
- rescue LoadError
19
21
  end
20
22
  end
21
23
  end
24
+ rescue LoadError
22
25
  end
23
26
  end
@@ -1,3 +1,3 @@
1
1
  module PryRails
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-08 00:00:00.000000000Z
12
+ date: 2012-02-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
16
- requirement: &70256626849740 !ruby/object:Gem::Requirement
16
+ requirement: &70306781798900 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70256626849740
24
+ version_requirements: *70306781798900
25
25
  description:
26
26
  email:
27
27
  - robin@wenglewski.de