yabeda-puma 1.0.0 → 1.1.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 +4 -4
- data/Gemfile.lock +43 -0
- data/README.md +1 -11
- data/lib/yabeda/puma.rb +2 -2
- data/lib/yabeda/puma/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64b4efb8f44963c0f8f4baedfed0bca7245f41eac1b6332809577dc7e5a5124e
|
|
4
|
+
data.tar.gz: 599980fad59ff51414498d1eea88c062acdb9ca166716dd1898a436a721b2f7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0148e28648378e39fbcf257b787a2b16010205b5e9d295654f60ca8b5ff7d2fd326eacab1edd534385e8bc880573c98e7236a19563787df6f20f0b274800798
|
|
7
|
+
data.tar.gz: 31426046b85dad25dc1b02040c62db2635f37c12e2af48aa8de4234ca8f88ad1cd753ff5cf60865d17d6fbe93f91d826ac76b9730f6e60a1fc4b62e254f3bad2
|
data/Gemfile.lock
ADDED
|
@@ -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
|
-
|
|
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
|
|
data/lib/yabeda/puma.rb
CHANGED
|
@@ -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'])
|
data/lib/yabeda/puma/version.rb
CHANGED
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.
|
|
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-
|
|
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
|