dumper 1.4.5 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/dumper/stack.rb +6 -1
- data/lib/dumper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16439142fa2a5ef2a1dec86b7eee1d15608d1c2
|
4
|
+
data.tar.gz: 0561661bc427fcf22528f477072a2997165a7c22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b9d2bcb26049fa2e3c4df9aaa9cfe3b97ce2a9b9fa085066f3496766e29e953bf36cb5d4a3013d4aae5225a217337733708eba356aa245ca5c41bb60d26a006
|
7
|
+
data.tar.gz: 97bb1279b84d2bafcc6fa84f191233acbd37d3d9d6e0bc34d2f2abdd56074cc046a270f9ed7b9a6adbf7b5ef439058a86046c008a01718651d9e88a3d6c7b424
|
data/README.md
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
## Supported Stacks
|
6
6
|
|
7
|
-
* Ruby 1.8.7
|
7
|
+
* Ruby 1.8.7 or later
|
8
8
|
* Rails 3.0 or later
|
9
9
|
* MySQL with ActiveRecord
|
10
10
|
* PostgreSQL with ActiveRecord
|
11
11
|
* MongoDB with Mongoid or MongoMapper
|
12
12
|
* Redis with the redis gem - **limitation: you must run agent on the Redis host**
|
13
|
-
* Agent runs inside [thin](http://code.macournoyer.com/thin/), [unicorn](http://unicorn.bogomips.org/), [passenger](http://www.modrails.com/) or [resque](https://github.com/defunkt/resque) (mongrel and webrick are also supported for development)
|
13
|
+
* Agent runs inside [thin](http://code.macournoyer.com/thin/), [unicorn](http://unicorn.bogomips.org/), [passenger](http://www.modrails.com/), [puma](http://puma.io) or [resque](https://github.com/defunkt/resque) (mongrel and webrick are also supported for development)
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
data/lib/dumper/stack.rb
CHANGED
@@ -38,7 +38,7 @@ module Dumper
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# Which dispatcher?
|
41
|
-
[ :unicorn, :passenger, :thin, :mongrel, :webrick, :pow, :resque ].find do |name|
|
41
|
+
[ :puma, :unicorn, :passenger, :thin, :mongrel, :webrick, :pow, :resque ].find do |name|
|
42
42
|
@dispatcher = send("#{name}?") ? name : nil
|
43
43
|
end
|
44
44
|
end
|
@@ -59,6 +59,11 @@ module Dumper
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# Dispatcher
|
62
|
+
def puma?
|
63
|
+
defined?(::Puma::Server) && find_instance_in_object_space(::Puma::Server) ||
|
64
|
+
(@rackup && @rackup.server.to_s.demodulize == 'Puma')
|
65
|
+
end
|
66
|
+
|
62
67
|
def unicorn?
|
63
68
|
defined?(::Unicorn::HttpServer) && find_instance_in_object_space(::Unicorn::HttpServer)
|
64
69
|
end
|
data/lib/dumper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenn Ejima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|