metanorma-release 0.2.16 → 0.2.17

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
  SHA256:
3
- metadata.gz: 316c3dd579fbcec744bfac95281515d974a5f794cc6d4f2a4516d6530f2640ca
4
- data.tar.gz: ff0c26dd38236ae94a2818739d63433e32d2c3e35ef906982cc032d7e1120c8a
3
+ metadata.gz: 451ad573064f8bf11e9510a801809cadbba75690f911107f2389b2c017870831
4
+ data.tar.gz: 346da71b64e6cb959d1b0e5a3d9418a98c8c270d2bc2723a61984a425fa6a87b
5
5
  SHA512:
6
- metadata.gz: 56717653c0118e56e7da787208adc47d22d6b4925cb001242bca31b1e45bd0aa224be70340bffeb67fff4020e38d28efc61acdcf3d5bb663349fb3a0c12d0464
7
- data.tar.gz: 4fe6ada79cccd8445be7d491a53f1d1221ed004de3c3994e19fb14be215254a9ed4f47f5bda1e0b8f59ee622c310d96af1eadea07f5bd39be97ccf7af622f99b
6
+ metadata.gz: 4ea1612695b7630cc615669f8b21a2589c2f97c63579915fd62f3ad51319d7d0c1674dbb7085fed4279a60f04b697b1934a19fd0a2951ed7b7a758a5cd6541fb
7
+ data.tar.gz: 27b56cd0802843834836d3e1e17c7d8e56433967b740df4bdd9bc195e54783b833f7441249c8ac0e746f2d5221c99ceb59ea024f837455b0ad6aa4639de395b0
@@ -16,8 +16,20 @@ module Metanorma
16
16
  def discover
17
17
  @organizations.flat_map do |org|
18
18
  query = "topic:#{@topic} org:#{org}"
19
- results = @client.search_repositories(query)
20
- results[:items].map do |repo|
19
+ all = []
20
+ page = 1
21
+ loop do
22
+ results = @client.search_repositories(query, per_page: 100,
23
+ page: page)
24
+ items = results[:items]
25
+ break if items.nil? || items.empty?
26
+
27
+ all.concat(items)
28
+ break if items.length < 100
29
+
30
+ page += 1
31
+ end
32
+ all.map do |repo|
21
33
  RepoRef.new(owner: org, repo: repo[:name])
22
34
  end
23
35
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Release
5
- VERSION = "0.2.16"
5
+ VERSION = "0.2.17"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.