silent-postgres 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- if %w(test development).include?(ENV["RAILS_ENV"])
1
+ if %w(test development).include?(Rails.respond_to?(:env) ? Rails.env : ENV["RAILS_ENV"])
2
2
 
3
3
  require "silent-postgres/railtie"
4
4
 
@@ -1,6 +1,5 @@
1
1
  module SilentPostgres
2
2
  def self.init!
3
- puts "Silencing Postgres"
4
3
  ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, SilentPostgres)
5
4
  end
6
5
 
@@ -1,6 +1,8 @@
1
+ # coding: utf-8
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = %q{silent-postgres}
3
- s.version = "0.0.4"
5
+ s.version = "0.0.5"
4
6
  s.summary = %q{Rails plugin that silences Postgresql connection adapter verbose output}
5
7
  s.email = ['bragi@ragnarson.com', 'dolzenko@gmail.com']
6
8
  s.homepage = %q{http://github.com/dolzenko/silent-postgres}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silent-postgres
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - "\xC5\x81ukasz Piestrzeniewicz"
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-09-22 00:00:00 -07:00
19
+ date: 2010-11-05 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies: []
22
22