unicorn-cuba-base 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/unicorn-cuba-base.rb +1 -0
- data/lib/unicorn-cuba-base/perf_stats.rb +18 -0
- data/unicorn-cuba-base.gemspec +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzE3ODM1NDM5Y2ZhODc5ZGE4OTU5ZTFhZDU4M2RmNTExYzM5ZjQ3NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGM3NTRmYTYzOTgxN2Q2ZmY2NDQ3NjIwZjRjNzU0NTNiNjZmMDZhYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTExZDAxOTVkZDExNTJhMjViZjliODE1NzIwNDVlODZkMTdlZjAyZjFjNDNk
|
10
|
+
OGQ4YzhkNjg4NGE2ODViZjg3NzI1YTk1NmZlOTVhN2E5ZDIwZTAzYTk2Nzdk
|
11
|
+
NzQ5MjM5NWE4NjQ0Zjg3MWJlOGU4ZjBiMTQ3YzIzMjA0Zjc1ZWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjliMzIwMTM1YmUzMzY2YzVlMTFiMGI3ZDY0MzljN2ZiMDI4NGZhMjQ0NGI2
|
14
|
+
ZTZiZWFjZTExZDUyODEyMjBlNTJmM2RlYjdkNjM1ZmRjZjcwNmI5OTUzM2Ux
|
15
|
+
MmNmOTVjOWIyMmVlMTkyYTNhOWQ4YTdmNTViMGExMjQxY2Q2ODM=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
data/lib/unicorn-cuba-base.rb
CHANGED
@@ -8,6 +8,7 @@ require 'ip'
|
|
8
8
|
|
9
9
|
require_relative 'unicorn-cuba-base/uri_ext'
|
10
10
|
require_relative 'unicorn-cuba-base/stats'
|
11
|
+
require_relative 'unicorn-cuba-base/perf_stats'
|
11
12
|
require_relative 'unicorn-cuba-base/root_logger'
|
12
13
|
require_relative 'unicorn-cuba-base/plugin/error_matcher'
|
13
14
|
require_relative 'unicorn-cuba-base/plugin/logging'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'benchmark'
|
2
|
+
|
3
|
+
$perf_stats_nest_level = -1
|
4
|
+
|
5
|
+
module PerfStats
|
6
|
+
def measure(name)
|
7
|
+
$perf_stats_nest_level += 1
|
8
|
+
ret = nil
|
9
|
+
took = Benchmark.measure do
|
10
|
+
ret = yield
|
11
|
+
end
|
12
|
+
log.info "[PERF] #{took.to_s.chomp} -#{'+' * $perf_stats_nest_level} #{name}"
|
13
|
+
ret
|
14
|
+
ensure
|
15
|
+
$perf_stats_nest_level -= 1
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
data/unicorn-cuba-base.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: unicorn-cuba-base 1.
|
5
|
+
# stub: unicorn-cuba-base 1.5.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "unicorn-cuba-base"
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.5.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Jakub Pastuszek"]
|
14
|
-
s.date = "2015-05-
|
14
|
+
s.date = "2015-05-13"
|
15
15
|
s.description = "web application base powered by Unicorn HTTP server and based on Cuba framework extended with additional Rack middleware and Cuba plugins"
|
16
16
|
s.email = "jpastuszek@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|
30
30
|
"lib/unicorn-cuba-base.rb",
|
31
31
|
"lib/unicorn-cuba-base/default_error_reporter.rb",
|
32
32
|
"lib/unicorn-cuba-base/memory_limit.rb",
|
33
|
+
"lib/unicorn-cuba-base/perf_stats.rb",
|
33
34
|
"lib/unicorn-cuba-base/plugin/error_matcher.rb",
|
34
35
|
"lib/unicorn-cuba-base/plugin/logging.rb",
|
35
36
|
"lib/unicorn-cuba-base/plugin/memory_limit.rb",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn-cuba-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Pastuszek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/unicorn-cuba-base.rb
|
183
183
|
- lib/unicorn-cuba-base/default_error_reporter.rb
|
184
184
|
- lib/unicorn-cuba-base/memory_limit.rb
|
185
|
+
- lib/unicorn-cuba-base/perf_stats.rb
|
185
186
|
- lib/unicorn-cuba-base/plugin/error_matcher.rb
|
186
187
|
- lib/unicorn-cuba-base/plugin/logging.rb
|
187
188
|
- lib/unicorn-cuba-base/plugin/memory_limit.rb
|