dumper 1.4.5 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b5822e6cc0fc915d8e3131e899fc3fc8361d111
4
- data.tar.gz: b45d537685af89cb712fbe0d7684edf9cb911273
3
+ metadata.gz: b16439142fa2a5ef2a1dec86b7eee1d15608d1c2
4
+ data.tar.gz: 0561661bc427fcf22528f477072a2997165a7c22
5
5
  SHA512:
6
- metadata.gz: 2942e179860d77eb39f5939427caeb47bd035a608e1b107667ede2fe9f841142343e976baeda466f8128e37dcf406b5170037f4d01393ee54fe852def9aeb248
7
- data.tar.gz: 7d6294e1bf795652f9e2619e43e45b416609d7a75796ae073db1273ff0dc890d8c68fddb6a62721d904fc26f77785ef9e6ebbec72985ef59c26a8b7214ccd844
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, Ruby 1.9.2 or later
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dumper
2
- VERSION = '1.4.5'
2
+ VERSION = '1.5.0'
3
3
  end
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.5
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-02-26 00:00:00.000000000 Z
11
+ date: 2014-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json