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 +4 -4
- data/lib/slowpoke/version.rb +1 -1
- data/lib/slowpoke.rb +5 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e62e08d7c8f539d12950be20902c145e767abb5f
|
4
|
+
data.tar.gz: 83c6b4664e69bd932397535fc92aa4b06b1c130b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cda167ed1ea7d119fcb1ff9838a28b10985bf7062b00c10797cc9798748aacbd72129e709b1b95f44e2af4f5c92212bae1fb1296d140ce1f39d97719da7ac3e
|
7
|
+
data.tar.gz: 8af57026d56a44421b8a1865c42fe70c8f15b52c1fd14f8d528924e16108a953561eb3fa9d46df51d3ecf379f4125ec5945008d955cfc6fc1e0189c06f923a01
|
data/lib/slowpoke/version.rb
CHANGED
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
|
-
|
60
|
-
|
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
|
+
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:
|
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.
|
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:
|