apisonator 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.base +2 -2
- data/Gemfile.lock +9 -8
- data/Gemfile.on_prem.lock +9 -8
- data/lib/3scale/backend/rack/prometheus.rb +9 -1
- data/lib/3scale/backend/storage_async/client.rb +1 -1
- data/lib/3scale/backend/version.rb +1 -1
- data/licenses.xml +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d679cf1a4c4c0a5aac65b32fdfe2680621b404f07ec3079c2c58ecccd72bf7aa
|
4
|
+
data.tar.gz: 03aa0a028f26da2a168cc5c75a8303413cc8a839a21b2b18345ea03087c90dee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea513d0c1ec6728e7a0ee6159645a98854aca8247f01aecfe8c38459efa03fb4a37fe72a822acb894ec8a9d0afea5b5d48cf9f1182864dce63ea7386d8460a9
|
7
|
+
data.tar.gz: 5cc2a09921f3c2cf7afc16d673a77fc701cda7377e5ff9a063585d541c5363f29c9593dfb2f5fc100fc4d8e11d17812a6522344df269d5bb0a63d53d67e6d4ea
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
Notable changes to Apisonator will be tracked in this document.
|
4
4
|
|
5
|
+
## 3.0.1 - 2020-07-14
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- The Prometheus counter of "5xx" errors has been fixed
|
10
|
+
([#230](https://github.com/3scale/apisonator/pull/230)).
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
|
14
|
+
- Gem updates: rack to v2.1.4
|
15
|
+
([#228](https://github.com/3scale/apisonator/pull/228)) and async-redis to
|
16
|
+
v0.5.0 ([#229](https://github.com/3scale/apisonator/pull/229)).
|
17
|
+
|
18
|
+
|
5
19
|
## 3.0.0 - 2020-06-19
|
6
20
|
|
7
21
|
### Removed
|
data/Gemfile.base
CHANGED
@@ -53,13 +53,13 @@ gem 'rake', '~> 13.0'
|
|
53
53
|
gem 'builder', '= 3.2.3'
|
54
54
|
# Use a patched resque to allow reusing their Airbrake Failure class
|
55
55
|
gem 'resque', git: 'https://github.com/3scale/resque', branch: '3scale'
|
56
|
-
gem 'rack', '~> 2.
|
56
|
+
gem 'rack', '~> 2.1.4'
|
57
57
|
gem 'sinatra', '~> 2.0.3'
|
58
58
|
gem 'sinatra-contrib', '~> 2.0.3'
|
59
59
|
# Optional external error logging services
|
60
60
|
gem 'bugsnag', '~> 6', require: nil
|
61
61
|
gem 'yabeda-prometheus', '~> 0.5.0'
|
62
|
-
gem 'async-redis', '~> 0.
|
62
|
+
gem 'async-redis', '~> 0.5'
|
63
63
|
gem 'falcon', '~> 0.35'
|
64
64
|
|
65
65
|
# Use a patched redis-rb that fixes an issue when trying to connect with
|
data/Gemfile.lock
CHANGED
@@ -35,7 +35,7 @@ GIT
|
|
35
35
|
PATH
|
36
36
|
remote: .
|
37
37
|
specs:
|
38
|
-
apisonator (3.0.
|
38
|
+
apisonator (3.0.1)
|
39
39
|
|
40
40
|
GEM
|
41
41
|
remote: https://rubygems.org/
|
@@ -66,14 +66,15 @@ GEM
|
|
66
66
|
async-http-cache (0.1.5)
|
67
67
|
async-http
|
68
68
|
protocol-http (~> 0.14)
|
69
|
-
async-io (1.27.
|
69
|
+
async-io (1.27.7)
|
70
70
|
async (~> 1.14)
|
71
71
|
async-pool (0.2.0)
|
72
72
|
async (~> 1.8)
|
73
|
-
async-redis (0.
|
73
|
+
async-redis (0.5.0)
|
74
74
|
async (~> 1.8)
|
75
75
|
async-io (~> 1.10)
|
76
|
-
|
76
|
+
async-pool (~> 0.2)
|
77
|
+
protocol-redis (~> 0.5.0)
|
77
78
|
async-rspec (1.13.0)
|
78
79
|
rspec (~> 3.0)
|
79
80
|
rspec-files (~> 1.0)
|
@@ -161,7 +162,7 @@ GEM
|
|
161
162
|
protocol-http2 (0.11.6)
|
162
163
|
protocol-hpack (~> 1.4)
|
163
164
|
protocol-http (~> 0.15)
|
164
|
-
protocol-redis (0.
|
165
|
+
protocol-redis (0.5.0)
|
165
166
|
pry (0.11.3)
|
166
167
|
coderay (~> 1.1.0)
|
167
168
|
method_source (~> 0.9.0)
|
@@ -171,7 +172,7 @@ GEM
|
|
171
172
|
pry-doc (0.11.1)
|
172
173
|
pry (~> 0.9)
|
173
174
|
yard (~> 0.9)
|
174
|
-
rack (2.
|
175
|
+
rack (2.1.4)
|
175
176
|
rack-protection (2.0.3)
|
176
177
|
rack
|
177
178
|
rack-test (0.8.2)
|
@@ -266,7 +267,7 @@ PLATFORMS
|
|
266
267
|
DEPENDENCIES
|
267
268
|
airbrake (= 4.3.1)
|
268
269
|
apisonator!
|
269
|
-
async-redis (~> 0.
|
270
|
+
async-redis (~> 0.5)
|
270
271
|
async-rspec
|
271
272
|
aws-sdk (= 2.4.2)
|
272
273
|
benchmark-ips (~> 2.7.2)
|
@@ -286,7 +287,7 @@ DEPENDENCIES
|
|
286
287
|
pry-byebug (~> 3.5.1)
|
287
288
|
pry-doc (~> 0.11.1)
|
288
289
|
puma!
|
289
|
-
rack (~> 2.
|
290
|
+
rack (~> 2.1.4)
|
290
291
|
rack-test (~> 0.8.2)
|
291
292
|
rake (~> 13.0)
|
292
293
|
redis!
|
data/Gemfile.on_prem.lock
CHANGED
@@ -35,7 +35,7 @@ GIT
|
|
35
35
|
PATH
|
36
36
|
remote: .
|
37
37
|
specs:
|
38
|
-
apisonator (3.0.
|
38
|
+
apisonator (3.0.1)
|
39
39
|
|
40
40
|
GEM
|
41
41
|
remote: https://rubygems.org/
|
@@ -63,14 +63,15 @@ GEM
|
|
63
63
|
async-http-cache (0.1.5)
|
64
64
|
async-http
|
65
65
|
protocol-http (~> 0.14)
|
66
|
-
async-io (1.27.
|
66
|
+
async-io (1.27.7)
|
67
67
|
async (~> 1.14)
|
68
68
|
async-pool (0.2.0)
|
69
69
|
async (~> 1.8)
|
70
|
-
async-redis (0.
|
70
|
+
async-redis (0.5.0)
|
71
71
|
async (~> 1.8)
|
72
72
|
async-io (~> 1.10)
|
73
|
-
|
73
|
+
async-pool (~> 0.2)
|
74
|
+
protocol-redis (~> 0.5.0)
|
74
75
|
async-rspec (1.13.0)
|
75
76
|
rspec (~> 3.0)
|
76
77
|
rspec-files (~> 1.0)
|
@@ -149,7 +150,7 @@ GEM
|
|
149
150
|
protocol-http2 (0.11.6)
|
150
151
|
protocol-hpack (~> 1.4)
|
151
152
|
protocol-http (~> 0.15)
|
152
|
-
protocol-redis (0.
|
153
|
+
protocol-redis (0.5.0)
|
153
154
|
pry (0.11.3)
|
154
155
|
coderay (~> 1.1.0)
|
155
156
|
method_source (~> 0.9.0)
|
@@ -159,7 +160,7 @@ GEM
|
|
159
160
|
pry-doc (0.11.1)
|
160
161
|
pry (~> 0.9)
|
161
162
|
yard (~> 0.9)
|
162
|
-
rack (2.
|
163
|
+
rack (2.1.4)
|
163
164
|
rack-protection (2.0.3)
|
164
165
|
rack
|
165
166
|
rack-test (0.8.2)
|
@@ -249,7 +250,7 @@ PLATFORMS
|
|
249
250
|
|
250
251
|
DEPENDENCIES
|
251
252
|
apisonator!
|
252
|
-
async-redis (~> 0.
|
253
|
+
async-redis (~> 0.5)
|
253
254
|
async-rspec
|
254
255
|
benchmark-ips (~> 2.7.2)
|
255
256
|
bugsnag (~> 6)
|
@@ -267,7 +268,7 @@ DEPENDENCIES
|
|
267
268
|
pry-byebug (~> 3.5.1)
|
268
269
|
pry-doc (~> 0.11.1)
|
269
270
|
puma!
|
270
|
-
rack (~> 2.
|
271
|
+
rack (~> 2.1.4)
|
271
272
|
rack-test (~> 0.8.2)
|
272
273
|
rake (~> 13.0)
|
273
274
|
redis!
|
@@ -8,7 +8,15 @@ module ThreeScale
|
|
8
8
|
|
9
9
|
def call(env)
|
10
10
|
began_at = Time.now.getutc
|
11
|
-
|
11
|
+
|
12
|
+
begin
|
13
|
+
status, header, body = @app.call(env)
|
14
|
+
rescue Exception => e
|
15
|
+
ListenerMetrics.report_resp_code(env['REQUEST_PATH'], 500)
|
16
|
+
ListenerMetrics.report_response_time(env['REQUEST_PATH'], Time.now - began_at)
|
17
|
+
raise e
|
18
|
+
end
|
19
|
+
|
12
20
|
ListenerMetrics.report_resp_code(env['REQUEST_PATH'], status)
|
13
21
|
ListenerMetrics.report_response_time(env['REQUEST_PATH'], Time.now - began_at)
|
14
22
|
[status, header, body]
|
data/licenses.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
</dependency>
|
24
24
|
<dependency>
|
25
25
|
<packageName>apisonator</packageName>
|
26
|
-
<version>3.0.
|
26
|
+
<version>3.0.1</version>
|
27
27
|
<licenses>
|
28
28
|
<license>
|
29
29
|
<name>Apache 2.0</name>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</dependency>
|
74
74
|
<dependency>
|
75
75
|
<packageName>async-io</packageName>
|
76
|
-
<version>1.27.
|
76
|
+
<version>1.27.7</version>
|
77
77
|
<licenses>
|
78
78
|
<license>
|
79
79
|
<name>MIT</name>
|
@@ -93,7 +93,7 @@
|
|
93
93
|
</dependency>
|
94
94
|
<dependency>
|
95
95
|
<packageName>async-redis</packageName>
|
96
|
-
<version>0.
|
96
|
+
<version>0.5.0</version>
|
97
97
|
<licenses>
|
98
98
|
<license>
|
99
99
|
<name>MIT</name>
|
@@ -669,7 +669,7 @@
|
|
669
669
|
</dependency>
|
670
670
|
<dependency>
|
671
671
|
<packageName>protocol-redis</packageName>
|
672
|
-
<version>0.
|
672
|
+
<version>0.5.0</version>
|
673
673
|
<licenses>
|
674
674
|
<license>
|
675
675
|
<name>MIT</name>
|
@@ -719,7 +719,7 @@
|
|
719
719
|
</dependency>
|
720
720
|
<dependency>
|
721
721
|
<packageName>rack</packageName>
|
722
|
-
<version>2.
|
722
|
+
<version>2.1.4</version>
|
723
723
|
<licenses>
|
724
724
|
<license>
|
725
725
|
<name>MIT</name>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apisonator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Ciganek
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2020-
|
19
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
20
20
|
dependencies: []
|
21
21
|
description: This gem provides a daemon that handles authorization and reporting of
|
22
22
|
web services managed by 3scale.
|