rails-console-tweaks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/rails-console-tweaks.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
+
require 'hirb'
|
2
|
+
|
1
3
|
module Rails
|
2
|
-
module
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
11
|
-
|
12
|
-
end
|
11
|
+
# pretty print output of models
|
12
|
+
::Hirb.enable
|
13
13
|
end
|
14
14
|
end
|
15
15
|
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::
|
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:
|
4
|
+
hash: 27
|
5
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
|
- Ryan Sonnek
|