yabeda-puma 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 36ee7cc72932b2ac1d1e96118693849926e19335ec3620a8c34ed8fe4f20d825
4
- data.tar.gz: 67e41d5fac02a264ff119ae7926cb87485ecd1f3b925a9c64bfdc16cbe8fce61
3
+ metadata.gz: 64b4efb8f44963c0f8f4baedfed0bca7245f41eac1b6332809577dc7e5a5124e
4
+ data.tar.gz: 599980fad59ff51414498d1eea88c062acdb9ca166716dd1898a436a721b2f7d
5
5
  SHA512:
6
- metadata.gz: ab3f5a7c4971b2d5cd58cb99071ee330bddb3b317d12493cc874692013407c4f7c0ea2249666a4cfbc28b93d5c13ebe7b299decb475afd4c50bcb06405a0c170
7
- data.tar.gz: b4332790af89045e83014a971a4cfe18d754d4e4f98480387edb548379bcf545e32741c06c5c95aae50ce917a3e3f67948764184f21831a1e6185f162f1592dc
6
+ metadata.gz: f0148e28648378e39fbcf257b787a2b16010205b5e9d295654f60ca8b5ff7d2fd326eacab1edd534385e8bc880573c98e7236a19563787df6f20f0b274800798
7
+ data.tar.gz: 31426046b85dad25dc1b02040c62db2635f37c12e2af48aa8de4234ca8f88ad1cd753ff5cf60865d17d6fbe93f91d826ac76b9730f6e60a1fc4b62e254f3bad2
@@ -0,0 +1,43 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ yabeda-puma (1.0.0)
5
+ puma
6
+ yabeda
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ concurrent-ruby (1.1.4)
12
+ diff-lcs (1.3)
13
+ dry-initializer (2.5.0)
14
+ puma (3.12.0)
15
+ rake (10.5.0)
16
+ rspec (3.8.0)
17
+ rspec-core (~> 3.8.0)
18
+ rspec-expectations (~> 3.8.0)
19
+ rspec-mocks (~> 3.8.0)
20
+ rspec-core (3.8.0)
21
+ rspec-support (~> 3.8.0)
22
+ rspec-expectations (3.8.2)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.8.0)
25
+ rspec-mocks (3.8.0)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.8.0)
28
+ rspec-support (3.8.0)
29
+ yabeda (0.1.3)
30
+ concurrent-ruby
31
+ dry-initializer
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ bundler (~> 2.0)
38
+ rake (~> 10.0)
39
+ rspec (~> 3.0)
40
+ yabeda-puma!
41
+
42
+ BUNDLED WITH
43
+ 2.0.1
data/README.md CHANGED
@@ -10,17 +10,7 @@ Add this line to your application's Gemfile:
10
10
  gem 'yabeda-puma'
11
11
  ```
12
12
 
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install yabeda-puma
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
13
+ Unfortunately there is no easy way to detect whether process is running within Puma server. To enable exporter set either `PUMA_SERVER` or `YABEDA_PUMA_ENABLED` to any value.
24
14
 
25
15
  ## Development
26
16
 
@@ -26,7 +26,7 @@ module Yabeda
26
26
  end
27
27
 
28
28
  collect do
29
- Puma::Collector.new.collect_metrics
29
+ Yabeda::Puma::Collector.new.collect_metrics
30
30
  end
31
31
  end
32
32
  end
@@ -34,4 +34,4 @@ module Yabeda
34
34
  end
35
35
  end
36
36
 
37
- Yabeda::Puma.install! if defined?(::Puma)
37
+ Yabeda::Puma.install! if defined?(::Puma) && (ENV['YABEDA_PUMA_ENABLED'] || ENV['PUMA_SERVER'])
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Puma
5
- VERSION = '1.0.0'
5
+ VERSION = '1.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kruczjak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-22 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -92,6 +92,7 @@ files:
92
92
  - ".rubocop.yml"
93
93
  - ".travis.yml"
94
94
  - Gemfile
95
+ - Gemfile.lock
95
96
  - LICENSE.txt
96
97
  - README.md
97
98
  - Rakefile