cybrid_api_organization_ruby 0.62.65 → 0.62.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +5 -5
- data/cybrid_api_organization_ruby.gemspec +1 -1
- data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
- data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
- data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
- data/lib/cybrid_api_organization_ruby/version.rb +2 -2
- data/lib/cybrid_api_organization_ruby.rb +1 -1
- data/spec/api/organizations_organization_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_response_organization_model_spec.rb +1 -1
- data/spec/models/organization_organization_model_spec.rb +1 -1
- data/spec/models/patch_organization_organization_model_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.12.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/base.rb +36 -24
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/calculators/length.rb +0 -2
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb +9 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/components/percentage.rb +1 -3
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/components/rate.rb +3 -7
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/components/time.rb +27 -29
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/format/formatter.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/molecule.rb +61 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/format/string.rb +2 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/output.rb +3 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/progress.rb +21 -9
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/time.rb +3 -5
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/timer.rb +6 -0
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/version.rb +3 -0
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar.rb +12 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{ruby-progressbar-1.11.0.gemspec → ruby-progressbar-1.12.0.gemspec} +6 -6
- metadata +30 -32
- data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.11.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb +0 -9
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components.rb +0 -5
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb +0 -60
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/version.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar.rb +0 -22
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/LICENSE.txt +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/README.md +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/components/bar.rb +22 -22
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/components/title.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/errors/invalid_progress_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/outputs/non_tty.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/outputs/null.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/outputs/tty.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/refinements/enumerator.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/refinements.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/lib/ruby-progressbar/throttle.rb +0 -0
@@ -2,23 +2,17 @@ class ProgressBar
|
|
2
2
|
module Components
|
3
3
|
class Rate
|
4
4
|
attr_accessor :rate_scale,
|
5
|
-
:started_at,
|
6
|
-
:stopped_at,
|
7
5
|
:timer,
|
8
6
|
:progress
|
9
7
|
|
10
8
|
def initialize(options = {})
|
11
9
|
self.rate_scale = options[:rate_scale] || lambda { |x| x }
|
12
|
-
self.started_at = nil
|
13
|
-
self.stopped_at = nil
|
14
10
|
self.timer = options[:timer]
|
15
11
|
self.progress = options[:progress]
|
16
12
|
end
|
17
13
|
|
18
|
-
private
|
19
|
-
|
20
14
|
def rate_of_change(format_string = '%i')
|
21
|
-
return 0
|
15
|
+
return '0' if elapsed_seconds <= 0
|
22
16
|
|
23
17
|
format_string % scaled_rate
|
24
18
|
end
|
@@ -27,6 +21,8 @@ class Rate
|
|
27
21
|
rate_of_change('%.2f')
|
28
22
|
end
|
29
23
|
|
24
|
+
private
|
25
|
+
|
30
26
|
def scaled_rate
|
31
27
|
rate_scale.call(base_rate)
|
32
28
|
end
|
@@ -12,60 +12,56 @@ class Time
|
|
12
12
|
NO_TIME_ELAPSED_TEXT = '--:--:--'.freeze
|
13
13
|
ESTIMATED_LABEL = ' ETA'.freeze
|
14
14
|
ELAPSED_LABEL = 'Time'.freeze
|
15
|
+
WALL_CLOCK_FORMAT = '%H:%M:%S'.freeze
|
15
16
|
OOB_TEXT_TO_FORMAT = {
|
16
17
|
:unknown => OOB_UNKNOWN_TIME_TEXT,
|
17
18
|
:friendly => OOB_FRIENDLY_TIME_TEXT
|
18
19
|
}.freeze
|
19
20
|
|
20
21
|
def initialize(options = {})
|
21
|
-
self.
|
22
|
-
self.
|
23
|
-
self.progress = options[:progress]
|
22
|
+
self.timer = options[:timer]
|
23
|
+
self.progress = options[:progress]
|
24
24
|
end
|
25
25
|
|
26
|
-
def estimated_with_label
|
27
|
-
"#{ESTIMATED_LABEL}: #{estimated}"
|
26
|
+
def estimated_with_label(out_of_bounds_time_format = nil)
|
27
|
+
"#{ESTIMATED_LABEL}: #{estimated(out_of_bounds_time_format)}"
|
28
28
|
end
|
29
29
|
|
30
30
|
def elapsed_with_label
|
31
31
|
"#{ELAPSED_LABEL}: #{elapsed}"
|
32
32
|
end
|
33
33
|
|
34
|
-
protected
|
35
|
-
|
36
34
|
def estimated_with_no_oob
|
37
|
-
|
38
|
-
|
39
|
-
estimated_with_elapsed_fallback
|
35
|
+
estimated_with_elapsed_fallback(nil)
|
40
36
|
end
|
41
37
|
|
42
38
|
def estimated_with_unknown_oob
|
43
|
-
|
44
|
-
|
45
|
-
estimated_with_elapsed_fallback
|
39
|
+
estimated_with_elapsed_fallback(:unknown)
|
46
40
|
end
|
47
41
|
|
48
42
|
def estimated_with_friendly_oob
|
49
|
-
|
50
|
-
|
51
|
-
estimated_with_elapsed_fallback
|
43
|
+
estimated_with_elapsed_fallback(:friendly)
|
52
44
|
end
|
53
45
|
|
54
|
-
|
55
|
-
|
56
|
-
|
46
|
+
def estimated_wall_clock
|
47
|
+
return timer.stopped_at.strftime(WALL_CLOCK_FORMAT) if progress.finished?
|
48
|
+
return NO_TIME_ELAPSED_TEXT unless timer.started?
|
57
49
|
|
58
|
-
|
59
|
-
unless
|
60
|
-
fail StandardError, "Invalid Out Of Bounds time format. Valid formats are #{OOB_TIME_FORMATS.inspect}"
|
61
|
-
end
|
50
|
+
memo_estimated_seconds_remaining = estimated_seconds_remaining
|
51
|
+
return NO_TIME_ELAPSED_TEXT unless memo_estimated_seconds_remaining
|
62
52
|
|
63
|
-
|
53
|
+
(timer.now + memo_estimated_seconds_remaining).
|
54
|
+
strftime(WALL_CLOCK_FORMAT)
|
64
55
|
end
|
65
56
|
|
57
|
+
protected
|
58
|
+
|
59
|
+
attr_accessor :timer,
|
60
|
+
:progress
|
61
|
+
|
66
62
|
private
|
67
63
|
|
68
|
-
def estimated
|
64
|
+
def estimated(out_of_bounds_time_format)
|
69
65
|
memo_estimated_seconds_remaining = estimated_seconds_remaining
|
70
66
|
|
71
67
|
return OOB_UNKNOWN_TIME_TEXT unless memo_estimated_seconds_remaining
|
@@ -73,7 +69,7 @@ class Time
|
|
73
69
|
hours, minutes, seconds = timer.divide_seconds(memo_estimated_seconds_remaining)
|
74
70
|
|
75
71
|
if hours > OOB_LIMIT_IN_HOURS && out_of_bounds_time_format
|
76
|
-
OOB_TEXT_TO_FORMAT
|
72
|
+
OOB_TEXT_TO_FORMAT.fetch(out_of_bounds_time_format)
|
77
73
|
else
|
78
74
|
TIME_FORMAT % [hours, minutes, seconds]
|
79
75
|
end
|
@@ -87,14 +83,16 @@ class Time
|
|
87
83
|
TIME_FORMAT % [hours, minutes, seconds]
|
88
84
|
end
|
89
85
|
|
90
|
-
def estimated_with_elapsed_fallback
|
91
|
-
progress.finished?
|
86
|
+
def estimated_with_elapsed_fallback(out_of_bounds_time_format)
|
87
|
+
return elapsed_with_label if progress.finished?
|
88
|
+
|
89
|
+
estimated_with_label(out_of_bounds_time_format)
|
92
90
|
end
|
93
91
|
|
94
92
|
def estimated_seconds_remaining
|
95
93
|
return if progress.unknown? || progress.none? || timer.stopped? || timer.reset?
|
96
94
|
|
97
|
-
(timer.elapsed_seconds * (progress.total / progress.running_average - 1)).round
|
95
|
+
(timer.elapsed_seconds * ((progress.total / progress.running_average) - 1)).round
|
98
96
|
end
|
99
97
|
end
|
100
98
|
end
|
@@ -13,7 +13,7 @@ class Formatter
|
|
13
13
|
bar_length = max_length -
|
14
14
|
processed_string.displayable_length +
|
15
15
|
format_string.bar_molecule_placeholder_length
|
16
|
-
bar_length =
|
16
|
+
bar_length = 0 if bar_length < 0
|
17
17
|
|
18
18
|
format_string.bar_molecules.each do |molecule|
|
19
19
|
processed_string.gsub!(molecule.full_key,
|
data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/molecule.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
class ProgressBar
|
2
|
+
module Format
|
3
|
+
class Molecule
|
4
|
+
MOLECULES = {
|
5
|
+
:t => [:title_component, :title],
|
6
|
+
:T => [:title_component, :title],
|
7
|
+
:c => [:progressable, :progress],
|
8
|
+
:C => [:progressable, :total],
|
9
|
+
:u => [:progressable, :total_with_unknown_indicator],
|
10
|
+
:p => [:percentage_component, :percentage],
|
11
|
+
:P => [:percentage_component, :percentage_with_precision],
|
12
|
+
:j => [:percentage_component, :justified_percentage],
|
13
|
+
:J => [:percentage_component, :justified_percentage_with_precision],
|
14
|
+
:a => [:time_component, :elapsed_with_label],
|
15
|
+
:e => [:time_component, :estimated_with_unknown_oob],
|
16
|
+
:E => [:time_component, :estimated_with_friendly_oob],
|
17
|
+
:f => [:time_component, :estimated_with_no_oob],
|
18
|
+
:l => [:time_component, :estimated_wall_clock],
|
19
|
+
:B => [:bar_component, :complete_bar],
|
20
|
+
:b => [:bar_component, :bar],
|
21
|
+
:W => [:bar_component, :complete_bar_with_percentage],
|
22
|
+
:w => [:bar_component, :bar_with_percentage],
|
23
|
+
:i => [:bar_component, :incomplete_space],
|
24
|
+
:r => [:rate_component, :rate_of_change],
|
25
|
+
:R => [:rate_component, :rate_of_change_with_precision]
|
26
|
+
}.freeze
|
27
|
+
|
28
|
+
BAR_MOLECULES = %w{W w B b i}.freeze
|
29
|
+
|
30
|
+
attr_accessor :key,
|
31
|
+
:method_name
|
32
|
+
|
33
|
+
def initialize(letter)
|
34
|
+
self.key = letter
|
35
|
+
self.method_name = MOLECULES.fetch(key.to_sym)
|
36
|
+
end
|
37
|
+
|
38
|
+
def bar_molecule?
|
39
|
+
BAR_MOLECULES.include? key
|
40
|
+
end
|
41
|
+
|
42
|
+
def non_bar_molecule?
|
43
|
+
!bar_molecule?
|
44
|
+
end
|
45
|
+
|
46
|
+
def full_key
|
47
|
+
"%#{key}"
|
48
|
+
end
|
49
|
+
|
50
|
+
def lookup_value(environment, length = 0)
|
51
|
+
component = environment.__send__(method_name[0])
|
52
|
+
|
53
|
+
if bar_molecule?
|
54
|
+
component.__send__(method_name[1], length).to_s
|
55
|
+
else
|
56
|
+
component.__send__(method_name[1]).to_s
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -1,21 +1,33 @@
|
|
1
1
|
require 'ruby-progressbar/errors/invalid_progress_error'
|
2
|
+
require 'ruby-progressbar/calculators/smoothed_average'
|
2
3
|
|
3
4
|
class ProgressBar
|
4
5
|
class Progress
|
5
|
-
DEFAULT_TOTAL
|
6
|
-
DEFAULT_BEGINNING_POSITION
|
7
|
-
|
6
|
+
DEFAULT_TOTAL = 100
|
7
|
+
DEFAULT_BEGINNING_POSITION = 0
|
8
|
+
DEFAULT_RUNNING_AVERAGE_RATE = 0.1
|
9
|
+
DEFAULT_RUNNING_AVERAGE_CALCULATOR = ProgressBar::Calculators::SmoothedAverage
|
10
|
+
|
11
|
+
RUNNING_AVERAGE_CALCULATOR_MAP = {
|
12
|
+
'smoothing' => ProgressBar::Calculators::SmoothedAverage
|
13
|
+
}.freeze
|
8
14
|
|
9
15
|
attr_reader :total,
|
10
16
|
:progress
|
11
17
|
|
12
18
|
attr_accessor :starting_position,
|
13
19
|
:running_average,
|
14
|
-
:
|
20
|
+
:running_average_calculator,
|
21
|
+
:running_average_rate
|
15
22
|
|
16
23
|
def initialize(options = {})
|
17
|
-
self.total
|
18
|
-
self.
|
24
|
+
self.total = options.fetch(:total, DEFAULT_TOTAL)
|
25
|
+
self.running_average_rate = options[:smoothing] ||
|
26
|
+
options[:running_average_rate] ||
|
27
|
+
DEFAULT_RUNNING_AVERAGE_RATE
|
28
|
+
self.running_average_calculator = RUNNING_AVERAGE_CALCULATOR_MAP.
|
29
|
+
fetch(options[:running_average_calculator],
|
30
|
+
DEFAULT_RUNNING_AVERAGE_CALCULATOR)
|
19
31
|
|
20
32
|
start :at => DEFAULT_BEGINNING_POSITION
|
21
33
|
end
|
@@ -66,9 +78,9 @@ class Progress
|
|
66
78
|
|
67
79
|
@progress = new_progress
|
68
80
|
|
69
|
-
self.running_average =
|
70
|
-
|
71
|
-
|
81
|
+
self.running_average = running_average_calculator.calculate(running_average,
|
82
|
+
absolute,
|
83
|
+
running_average_rate)
|
72
84
|
end
|
73
85
|
|
74
86
|
def total=(new_total)
|
@@ -17,11 +17,9 @@ class Time
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def unmocked_time_method
|
20
|
-
@unmocked_time_method ||=
|
21
|
-
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|
20
|
+
@unmocked_time_method ||= TIME_MOCKING_LIBRARY_METHODS.find do |method|
|
21
|
+
time.respond_to? method
|
22
|
+
end
|
25
23
|
end
|
26
24
|
|
27
25
|
protected
|
@@ -28,6 +28,10 @@ class Timer
|
|
28
28
|
start
|
29
29
|
end
|
30
30
|
|
31
|
+
def now
|
32
|
+
time.now
|
33
|
+
end
|
34
|
+
|
31
35
|
def started?
|
32
36
|
started_at
|
33
37
|
end
|
@@ -51,6 +55,8 @@ class Timer
|
|
51
55
|
end
|
52
56
|
|
53
57
|
def elapsed_seconds
|
58
|
+
return 0 unless started?
|
59
|
+
|
54
60
|
((stopped_at || time.now) - started_at)
|
55
61
|
end
|
56
62
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'ruby-progressbar/base'
|
4
|
+
require 'ruby-progressbar/refinements' if Module.
|
5
|
+
private_instance_methods.
|
6
|
+
include?(:using)
|
7
|
+
|
8
|
+
class ProgressBar
|
9
|
+
def self.create(*args)
|
10
|
+
ProgressBar::Base.new(*args)
|
11
|
+
end
|
12
|
+
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: ruby-progressbar 1.
|
2
|
+
# stub: ruby-progressbar 1.12.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "ruby-progressbar".freeze
|
6
|
-
s.version = "1.
|
6
|
+
s.version = "1.12.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
|
-
s.metadata = { "bug_tracker_uri" => "https://github.com/jfelchner/ruby-progressbar/issues", "changelog_uri" => "https://github.com/jfelchner/ruby-progressbar/blob/master/CHANGELOG.md", "documentation_uri" => "https://github.com/jfelchner/ruby-progressbar/tree/releases/v1.
|
9
|
+
s.metadata = { "bug_tracker_uri" => "https://github.com/jfelchner/ruby-progressbar/issues", "changelog_uri" => "https://github.com/jfelchner/ruby-progressbar/blob/master/CHANGELOG.md", "documentation_uri" => "https://github.com/jfelchner/ruby-progressbar/tree/releases/v1.12.0", "homepage_uri" => "https://github.com/jfelchner/ruby-progressbar", "source_code_uri" => "https://github.com/jfelchner/ruby-progressbar", "wiki_uri" => "https://github.com/jfelchner/ruby-progressbar/wiki" } if s.respond_to? :metadata=
|
10
10
|
s.require_paths = ["lib".freeze]
|
11
11
|
s.authors = ["thekompanee".freeze, "jfelchner".freeze]
|
12
|
-
s.cert_chain = ["-----BEGIN CERTIFICATE-----\
|
13
|
-
s.date = "
|
12
|
+
s.cert_chain = ["-----BEGIN CERTIFICATE-----\nMIIEdjCCAt6gAwIBAgIBATANBgkqhkiG9w0BAQsFADAyMTAwLgYDVQQDDCdhY2Nv\ndW50c19ydWJ5Z2Vtcy9EQz10aGVrb21wYW5lZS9EQz1jb20wHhcNMjMwMjI2MTcx\nMDI1WhcNMjYwMjI1MTcxMDI1WjAyMTAwLgYDVQQDDCdhY2NvdW50c19ydWJ5Z2Vt\ncy9EQz10aGVrb21wYW5lZS9EQz1jb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAw\nggGKAoIBgQCqhYn5ODEoLvuBIF2M1GzoaZU28+ntP5QApvDE0Te04n0JbBC1cNYH\nmr71neeSx7tlZ9w9kJ/8GNcY5bm7pNJqhyhfc+uG9M7FttcxM8AYXogjcdUDP234\n+TdmZIz20JxtWBgAZK2I3ktlgLFLC3Pxq63yzhJ75Xok07Wh+ypwjGzDNofPhz+y\nXR+UeUTp2UGe7kDVoqu/AwwPVhk1qUIRFLfC8SLDTD0CuNW3/AnkwQrKSm8vkiIn\nq9GCnOq0+jQly0b6a1Gi3ZDYEEswnTzziw2gotUZnQkF5bcOcxK1CB/Okk2jtG7i\nztMEU785tERbOSszZrz9rBS/+GnMxlD0pxy50zFfHX3jY1hwnwGjE8Gg+0iYr/tm\neysjhcbZfKrMynoqAioCSwstIwtYYYYpYzCPZzwaIBaBqQmUTkuMeiGbAdOdFOrR\nlOgl5jxCYbNOOTaXbm0nGBFaTucB88+JLbsNAuoNGUf/ybDcZ1zKRkMr2vtb+OtL\nGoP81fN6l88CAwEAAaOBljCBkzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV\nHQ4EFgQUL4eV4OM9h7fkM27qf9p4ragHi6AwLAYDVR0RBCUwI4EhYWNjb3VudHMr\ncnVieWdlbXNAdGhla29tcGFuZWUuY29tMCwGA1UdEgQlMCOBIWFjY291bnRzK3J1\nYnlnZW1zQHRoZWtvbXBhbmVlLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAD/tBN1cM\n8Qu6u+rPM3SEtlEK/ZdVY0IowXtXMskkderNBJ4HY+xBfIWyAXLTr3Fy6xscVZ95\nraFCiWHqvR577u3/BsVZ5BoQ0g25oY2bwoamQSdx71ygs25Q+UFbg6lHq6olszj0\nHqKXUy/iPFb+OzGq7NOtKOD5pHl3ew8H7U5tfh0kx6B5TdL9BZLurjskW0n2G+kY\nNSGCTGYU8wY4Bsk/AmfoFT/ATwmrf68CTD+IBY5yvt2DGvcyuSrX1RQP8Vk//0EP\nJ2ezTNGIBeQFcyyo09gMfy1yxv9XAvwmy6pAx7/m/F2XzTiXuzmJ7zJ6J0OaHUG4\nsvJgf3o9Eor2okQND60Qdpdl4qdSy3KaNqvQQbTRB96e/+K8ksz4rras5jPaAs0p\nDV37k4cni6c/jUm2CqepsJ/dbzeWdkhcuO6hwEQV0jvFky5C6d5hHcrbJwxl1sTL\nV+pWW6L9MSZzKkjWVJXD43B3tWBjIDthQVTzS4j90PUkUXgBXjS7Jxj/\n-----END CERTIFICATE-----\n".freeze]
|
13
|
+
s.date = "2023-03-01"
|
14
14
|
s.description = "Ruby/ProgressBar is an extremely flexible text progress bar library for Ruby. The output can be customized with a flexible formatting system including: percentage, bars of various formats, elapsed time and estimated time remaining.".freeze
|
15
15
|
s.email = ["support@thekompanee.com".freeze]
|
16
16
|
s.homepage = "https://github.com/jfelchner/ruby-progressbar".freeze
|
@@ -25,5 +25,5 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.7"])
|
26
26
|
s.add_development_dependency(%q<rspectacular>.freeze, ["~> 0.70.6"])
|
27
27
|
s.add_development_dependency(%q<fuubar>.freeze, ["~> 2.3"])
|
28
|
-
s.add_development_dependency(%q<timecop>.freeze, ["
|
28
|
+
s.add_development_dependency(%q<timecop>.freeze, ["~> 0.9"])
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cybrid_api_organization_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.62.
|
4
|
+
version: 0.62.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cybrid
|
@@ -114,7 +114,7 @@ files:
|
|
114
114
|
- vendor/bundle/ruby/3.2.0/cache/rspec-mocks-3.12.3.gem
|
115
115
|
- vendor/bundle/ruby/3.2.0/cache/rspec-support-3.12.0.gem
|
116
116
|
- vendor/bundle/ruby/3.2.0/cache/rubocop-0.66.0.gem
|
117
|
-
- vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.
|
117
|
+
- vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.12.0.gem
|
118
118
|
- vendor/bundle/ruby/3.2.0/cache/stringio-3.0.5.gem
|
119
119
|
- vendor/bundle/ruby/3.2.0/cache/typhoeus-1.4.0.gem
|
120
120
|
- vendor/bundle/ruby/3.2.0/cache/unicode-display_width-1.5.0.gem
|
@@ -2364,35 +2364,33 @@ files:
|
|
2364
2364
|
- vendor/bundle/ruby/3.2.0/gems/rubocop-0.66.0/lib/rubocop/version.rb
|
2365
2365
|
- vendor/bundle/ruby/3.2.0/gems/rubocop-0.66.0/lib/rubocop/warning.rb
|
2366
2366
|
- vendor/bundle/ruby/3.2.0/gems/rubocop-0.66.0/lib/rubocop/yaml_duplication_checker.rb
|
2367
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2368
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2369
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2370
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2371
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2372
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2373
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2374
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2375
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2376
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2377
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2378
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2379
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2380
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2381
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2382
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2383
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2384
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2385
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2386
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2387
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2388
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2389
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2390
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2391
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2392
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2393
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.
|
2394
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/timer.rb
|
2395
|
-
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/version.rb
|
2367
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/LICENSE.txt
|
2368
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/README.md
|
2369
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/Rakefile
|
2370
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar.rb
|
2371
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/base.rb
|
2372
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/length.rb
|
2373
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb
|
2374
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/components/bar.rb
|
2375
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/components/percentage.rb
|
2376
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/components/rate.rb
|
2377
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/components/time.rb
|
2378
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/components/title.rb
|
2379
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/errors/invalid_progress_error.rb
|
2380
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/formatter.rb
|
2381
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/molecule.rb
|
2382
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/string.rb
|
2383
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/output.rb
|
2384
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/outputs/non_tty.rb
|
2385
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/outputs/null.rb
|
2386
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/outputs/tty.rb
|
2387
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/progress.rb
|
2388
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/refinements.rb
|
2389
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/refinements/enumerator.rb
|
2390
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/throttle.rb
|
2391
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/time.rb
|
2392
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/timer.rb
|
2393
|
+
- vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/version.rb
|
2396
2394
|
- vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/README.md
|
2397
2395
|
- vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio/Makefile
|
2398
2396
|
- vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio/extconf.rb
|
@@ -2524,7 +2522,7 @@ files:
|
|
2524
2522
|
- vendor/bundle/ruby/3.2.0/specifications/rspec-mocks-3.12.3.gemspec
|
2525
2523
|
- vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.12.0.gemspec
|
2526
2524
|
- vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec
|
2527
|
-
- vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.
|
2525
|
+
- vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.12.0.gemspec
|
2528
2526
|
- vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.5.gemspec
|
2529
2527
|
- vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec
|
2530
2528
|
- vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec
|
Binary file
|
data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
class ProgressBar
|
2
|
-
module Format
|
3
|
-
class Molecule
|
4
|
-
MOLECULES = {
|
5
|
-
:t => [:title_comp, :title],
|
6
|
-
:T => [:title_comp, :title],
|
7
|
-
:c => [:progressable, :progress],
|
8
|
-
:C => [:progressable, :total],
|
9
|
-
:u => [:progressable, :total_with_unknown_indicator],
|
10
|
-
:p => [:percentage, :percentage],
|
11
|
-
:P => [:percentage, :percentage_with_precision],
|
12
|
-
:j => [:percentage, :justified_percentage],
|
13
|
-
:J => [:percentage, :justified_percentage_with_precision],
|
14
|
-
:a => [:time, :elapsed_with_label],
|
15
|
-
:e => [:time, :estimated_with_unknown_oob],
|
16
|
-
:E => [:time, :estimated_with_friendly_oob],
|
17
|
-
:f => [:time, :estimated_with_no_oob],
|
18
|
-
:B => [:bar, :complete_bar],
|
19
|
-
:b => [:bar, :bar],
|
20
|
-
:W => [:bar, :complete_bar_with_percentage],
|
21
|
-
:w => [:bar, :bar_with_percentage],
|
22
|
-
:i => [:bar, :incomplete_space],
|
23
|
-
:r => [:rate, :rate_of_change],
|
24
|
-
:R => [:rate, :rate_of_change_with_precision]
|
25
|
-
}.freeze
|
26
|
-
|
27
|
-
BAR_MOLECULES = %w{W w B b i}.freeze
|
28
|
-
|
29
|
-
attr_accessor :key,
|
30
|
-
:method_name
|
31
|
-
|
32
|
-
def initialize(letter)
|
33
|
-
self.key = letter
|
34
|
-
self.method_name = MOLECULES.fetch(key.to_sym)
|
35
|
-
end
|
36
|
-
|
37
|
-
def bar_molecule?
|
38
|
-
BAR_MOLECULES.include? key
|
39
|
-
end
|
40
|
-
|
41
|
-
def non_bar_molecule?
|
42
|
-
!bar_molecule?
|
43
|
-
end
|
44
|
-
|
45
|
-
def full_key
|
46
|
-
"%#{key}"
|
47
|
-
end
|
48
|
-
|
49
|
-
def lookup_value(environment, length = 0)
|
50
|
-
component = environment.__send__(method_name[0])
|
51
|
-
|
52
|
-
if bar_molecule?
|
53
|
-
component.__send__(method_name[1], length).to_s
|
54
|
-
else
|
55
|
-
component.__send__(method_name[1]).to_s
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'ruby-progressbar/output'
|
4
|
-
require 'ruby-progressbar/outputs/tty'
|
5
|
-
require 'ruby-progressbar/outputs/non_tty'
|
6
|
-
require 'ruby-progressbar/timer'
|
7
|
-
require 'ruby-progressbar/progress'
|
8
|
-
require 'ruby-progressbar/throttle'
|
9
|
-
require 'ruby-progressbar/calculators/length'
|
10
|
-
require 'ruby-progressbar/calculators/running_average'
|
11
|
-
require 'ruby-progressbar/components'
|
12
|
-
require 'ruby-progressbar/format'
|
13
|
-
require 'ruby-progressbar/base'
|
14
|
-
require 'ruby-progressbar/refinements' if Module.
|
15
|
-
private_instance_methods.
|
16
|
-
include?(:using)
|
17
|
-
|
18
|
-
class ProgressBar
|
19
|
-
def self.create(*args)
|
20
|
-
ProgressBar::Base.new(*args)
|
21
|
-
end
|
22
|
-
end
|
data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/LICENSE.txt
RENAMED
File without changes
|
data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/README.md
RENAMED
File without changes
|
data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/Rakefile
RENAMED
File without changes
|