3scale_client 2.8.0 → 2.8.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 +5 -1
- data/VERSION +1 -1
- data/lib/3scale/client.rb +5 -2
- data/lib/3scale/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a79b84280ee4de834649b3414dbbec268c2df8c
|
4
|
+
data.tar.gz: 2a97f59f1449f9fd7f9a44437827594b5d0ca342
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcc864a4ec5df888603e3976e75a639bbeb25dcb2e8870b23955c72317be63f6ba0ce6895a4680d4e64c5f1d3fec23c9c80ab5d3711c9494c469f0999cc7fef7
|
7
|
+
data.tar.gz: 502b0293a51d9d23be62d33365dc33d8aaac9a3ff79d53d8e47c5ce49aa714b2ec392ac9881476c6d7e184baa81bc51d684ddd44d2843ed1d58923610b5121af
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [2.8.1] - 2016-10-11
|
5
|
+
### Changed
|
6
|
+
- Improved parsing performance of the response of the authorize call.
|
7
|
+
|
4
8
|
## [2.8.0] - 2016-09-06
|
5
9
|
This version drops support for Ruby versions < 2.0.
|
6
10
|
|
@@ -12,7 +16,7 @@ This version drops support for Ruby versions < 2.0.
|
|
12
16
|
when calling the method using the old params.
|
13
17
|
- The two authorize calls `ThreeScale::Client#Authorize` and
|
14
18
|
`ThreeScale::Client#oauth_authorize` now accept an optional predicted
|
15
|
-
usage parameter.
|
19
|
+
usage parameter.
|
16
20
|
- It is now possible to specify a port different that the default
|
17
21
|
one for the API service management endpoint.
|
18
22
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.8.
|
1
|
+
2.8.1
|
data/lib/3scale/client.rb
CHANGED
@@ -352,10 +352,13 @@ module ThreeScale
|
|
352
352
|
response.plan = doc.at_css('plan').content.to_s.strip
|
353
353
|
|
354
354
|
doc.css('usage_reports usage_report').each do |node|
|
355
|
+
period_start = node.at('period_start')
|
356
|
+
period_end = node.at('period_end')
|
357
|
+
|
355
358
|
response.add_usage_report(:metric => node['metric'].to_s.strip,
|
356
359
|
:period => node['period'].to_s.strip.to_sym,
|
357
|
-
:period_start =>
|
358
|
-
:period_end =>
|
360
|
+
:period_start => period_start ? period_start.content : '',
|
361
|
+
:period_end => period_end ? period_end.content : '',
|
359
362
|
:current_value => node.at('current_value').content.to_i,
|
360
363
|
:max_value => node.at('max_value').content.to_i)
|
361
364
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 3scale_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Cichra
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|