rails-console-tweaks 0.0.1 → 0.0.2

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.
@@ -1,10 +1,2 @@
1
1
  require "rails-console-tweaks/version"
2
2
  require 'rails-console-tweaks/engine'
3
-
4
- module Rails
5
- module Console
6
- module Tweaks
7
- # Your code goes here...
8
- end
9
- end
10
- end
@@ -1,15 +1,15 @@
1
+ require 'hirb'
2
+
1
3
  module Rails
2
- module Console
3
- module Tweaks
4
- class Engine < Rails::Engine
5
- initializer "rails-console-tweaks.initializer" do |app|
6
- if defined? Rails::Console
7
- # log sql statements to stdout
8
- ActiveRecord::Base.logger = Logger.new(STDOUT)
4
+ module ConsoleTweaks
5
+ class Engine < Rails::Engine
6
+ initializer "rails-console-tweaks.initializer" do |app|
7
+ if defined? ::Rails::Console
8
+ # log sql statements to stdout
9
+ ActiveRecord::Base.logger = Logger.new(STDOUT)
9
10
 
10
- # pretty print output of models
11
- Hirb.enable
12
- end
11
+ # pretty print output of models
12
+ ::Hirb.enable
13
13
  end
14
14
  end
15
15
  end
@@ -1,7 +1,5 @@
1
1
  module Rails
2
- module Console
3
- module Tweaks
4
- VERSION = "0.0.1"
5
- end
2
+ module ConsoleTweaks
3
+ VERSION = "0.0.2"
6
4
  end
7
5
  end
@@ -4,7 +4,7 @@ require "rails-console-tweaks/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rails-console-tweaks"
7
- s.version = Rails::Console::Tweaks::VERSION
7
+ s.version = Rails::ConsoleTweaks::VERSION
8
8
  s.authors = ["Ryan Sonnek"]
9
9
  s.email = ["ryan@socialcast.com"]
10
10
  s.homepage = "http://github.com/wireframe/rails-console-tweaks"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-console-tweaks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek