cobench 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03f64d2bab112d3e2663ce29f626720973a29b8441004e786e2f8f99c641d7ce
4
- data.tar.gz: 5174681a991740e8502d65b5c5ae25b1f8371390e0ce0eb381968f6424a8616e
3
+ metadata.gz: 47e7e1808f7761b20075db8ed5d56d765bb0643b52f60c4a94af97b595ef86bb
4
+ data.tar.gz: bd364af5463eeef8e4327d43b691c30dd80254db6245c431c32f6bceaafa39ca
5
5
  SHA512:
6
- metadata.gz: 1e685a2a0d1a9a58a06976ebb2df9bbf0a29a5e93a06c1b057f64b4b067c7a4a2d73b9fa9d8cdef6246ee829efbcc70fafc7febc5177e6e12cd04a5b5ea89d0b
7
- data.tar.gz: 51b84eb3a9436a79836a580c1579cb49cebc01062ab305fabe30c261ff0ca28324f26b84df3c39fc33859e3fb7f2f2eac8e20693fcfac379facd27d669adbbe4
6
+ metadata.gz: 17c1b0fd543b056c280772aad49d82067cab4f359cff8c38f4044639d44567cc7d690b704807406f55b46bcaabec3cedbcea3912c9a30774a0f5f4444a359d81
7
+ data.tar.gz: 76f716fee9458c5a153f0c373fde11645005c1361492758bdd3e71f7b853e27ceccbf7c582756dfa9ccc2481a8c12fe9c57aab75f7cb9d68d95dcf993fbc7e64
data/bin/cobench CHANGED
@@ -27,6 +27,7 @@ require 'octokit'
27
27
  require 'nokogiri'
28
28
  require 'backtrace'
29
29
  require 'fileutils'
30
+ require 'obk'
30
31
  require_relative '../lib/cobench/version'
31
32
 
32
33
  loog = Loog::REGULAR
@@ -89,6 +90,7 @@ begin
89
90
  loog.warn("Connecting to GitHub without a token, this may lead to errors, use --token")
90
91
  end
91
92
  api.auto_paginate = true
93
+ api = Obk.new(api, pause: 2000)
92
94
  opts[:coder].each do |u|
93
95
  loog.info("Scanning #{u}...")
94
96
  data[u] = {}
data/cobench.gemspec CHANGED
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.add_runtime_dependency 'iri', '~>0.5'
45
45
  s.add_runtime_dependency 'loog', '~>0.2'
46
46
  s.add_runtime_dependency 'nokogiri', '~>1.10'
47
+ s.add_runtime_dependency 'obk', '~>0.1'
47
48
  s.add_runtime_dependency 'octokit', '~>4.0'
48
49
  s.add_runtime_dependency 'rainbow', '~>3.0'
49
50
  s.add_runtime_dependency 'slop', '~>4.4'
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2022 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Cobench
26
- VERSION = '0.0.4'.freeze
26
+ VERSION = '0.0.5'.freeze
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-09 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: obk
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.1'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: octokit
71
85
  requirement: !ruby/object:Gem::Requirement