3scale_client 2.8.0 → 2.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 881aa442d660c091dadbbd20b2446d506343cf38
4
- data.tar.gz: 0a8d027ad84fda9f5f24a486124d2a003c3aa5ab
3
+ metadata.gz: 0a79b84280ee4de834649b3414dbbec268c2df8c
4
+ data.tar.gz: 2a97f59f1449f9fd7f9a44437827594b5d0ca342
5
5
  SHA512:
6
- metadata.gz: a2c751900a737e62312b0fd9dd530a6ac45a494eb46bf95e51fa8daed741f275a2e5c789b1b6477f79306490f9670d3c4f8ece97e21fdb28d9d0d23dcbfba26f
7
- data.tar.gz: 99fbf6a2bf089e96ba7df746e56a53b5543fe76b237eee230c151a5ca16327931d4b346632e47801a54b0f4898f413866515395a7c9d0d7f5939c60b39b0144f
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.0
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 => node.at('period_start') ? node.at('period_start').content : '' ,
358
- :period_end => node.at('period_end') ? node.at('period_end').content : '',
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
@@ -1,5 +1,5 @@
1
1
  module ThreeScale
2
2
  class Client
3
- VERSION = '2.8.0'
3
+ VERSION = '2.8.1'
4
4
  end
5
5
  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.0
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-09-06 00:00:00.000000000 Z
15
+ date: 2016-10-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler