killbill 8.3.5 → 8.3.6

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: 0feadd53142c721c9c1d4f1104e5f1fccf96a28c
4
- data.tar.gz: b0dae2773e4858d1f5a05486dbd1bf3cbb6c8983
3
+ metadata.gz: 71f7c71049d2c24991a8bfa9c1bee30d15730c2e
4
+ data.tar.gz: 04c231f3acf948fcb22cd5964c71b6456900b79f
5
5
  SHA512:
6
- metadata.gz: f0ddb8614065fe850c6861b64b34df56a4bdc71e5573ea7a8daaf7338a18e39c5b1e5a9aa5901270b98c88d0d85b62b8f8566878ba8a4e8e4acfb3bd7f44e5e0
7
- data.tar.gz: cc7eb2a3777464e2fc47a7226ef7435786d230960099a9469c2ff39f0fe6241a0dbbad269d3268a806f070075b1fef5ec50b7edb597adb97c9a00a980cc881ed
6
+ metadata.gz: 679de5fda1444f765e2855ab7a27b91ac41ff8370bb368896ffa6a25cc51eb7046d7fdc054bf0512fb49c1d80b86c883c7f562a88ee8f0a0dbb947234570bc82
7
+ data.tar.gz: 36918fd0773de1c854914902444269ac9e958ca0afb199b497b1b27c6822555c5d8232a0099f2f81aadb58bb7c0ccf85c43b00acfb1cc5412624a8eadf0464ee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill (8.3.5)
4
+ killbill (8.3.6)
5
5
  rack (>= 1.5.2)
6
6
  sinatra (~> 1.3.4)
7
7
  typhoeus (~> 0.6.9)
@@ -198,7 +198,7 @@ module Killbill
198
198
  pagination = ::Killbill::Plugin::Model::Pagination.new
199
199
  pagination.current_offset = offset
200
200
  pagination.total_nb_records = self.count_by_sql(self.search_query(search_key, kb_tenant_id))
201
- pagination.max_nb_records = self.where(:success => true).count
201
+ pagination.max_nb_records = self.max_nb_records
202
202
  pagination.next_offset = (!pagination.total_nb_records.nil? && offset + limit >= pagination.total_nb_records) ? nil : offset + limit
203
203
  # Reduce the limit if the specified value is larger than the number of records
204
204
  actual_limit = [pagination.max_nb_records, limit].min
@@ -218,6 +218,10 @@ module Killbill
218
218
  []
219
219
  end
220
220
 
221
+ def self.max_nb_records
222
+ self.where(:success => true).count
223
+ end
224
+
221
225
  # Override in your plugin if needed
222
226
  def txn_id
223
227
  authorization
@@ -1,3 +1,3 @@
1
1
  module Killbill
2
- VERSION = '8.3.5'
2
+ VERSION = '8.3.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.5
4
+ version: 8.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-10 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement