slowpoke 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 848181e682892057fb1b8a40498d2562833c54a1
4
- data.tar.gz: 5ba28d18bf0779ab97772728f84a791e7c514733
3
+ metadata.gz: e62e08d7c8f539d12950be20902c145e767abb5f
4
+ data.tar.gz: 83c6b4664e69bd932397535fc92aa4b06b1c130b
5
5
  SHA512:
6
- metadata.gz: df33f6fe3b6749485130421582cf3597e5a210c9284ff352c67698698d49196f848b2681ca946dda98bb9f624ef724474b4ee2cde64314b59d710c7afb975317
7
- data.tar.gz: 6b4ae4e0ef05f9a600cfaa1e8c32186d1b803e624b42b870ad8f6d9e5abfc6ca4bfd41353c1741419590e04bef0640037b365e814f331677c591b1138e842425
6
+ metadata.gz: 4cda167ed1ea7d119fcb1ff9838a28b10985bf7062b00c10797cc9798748aacbd72129e709b1b95f44e2af4f5c92212bae1fb1296d140ce1f39d97719da7ac3e
7
+ data.tar.gz: 8af57026d56a44421b8a1865c42fe70c8f15b52c1fd14f8d528924e16108a953561eb3fa9d46df51d3ecf379f4125ec5945008d955cfc6fc1e0189c06f923a01
@@ -1,3 +1,3 @@
1
1
  module Slowpoke
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/slowpoke.rb CHANGED
@@ -6,7 +6,6 @@ require "slowpoke/postgres"
6
6
  require "slowpoke/railtie"
7
7
  require "action_dispatch/middleware/exception_wrapper"
8
8
  require "action_controller/base"
9
- require "active_record/connection_adapters/postgresql_adapter"
10
9
 
11
10
  module Slowpoke
12
11
  ENV_KEY = "slowpoke.timed_out".freeze
@@ -56,5 +55,8 @@ end
56
55
  # bubble exceptions for error reporting libraries
57
56
  ActionController::Base.send(:include, Slowpoke::Controller)
58
57
 
59
- # database timeout
60
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, Slowpoke::Postgres)
58
+ if defined?(PG)
59
+ require "active_record/connection_adapters/postgresql_adapter"
60
+ # database timeout
61
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send(:include, Slowpoke::Postgres)
62
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slowpoke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-01 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-timeout
@@ -106,8 +106,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.2
109
+ rubygems_version: 2.4.5
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Timeouts made easy
113
113
  test_files: []
114
+ has_rdoc: