cybrid_api_organization_ruby 0.62.65 → 0.62.66

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_organization_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
  6. data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
  7. data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
  8. data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
  9. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
  10. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
  11. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
  12. data/lib/cybrid_api_organization_ruby/version.rb +2 -2
  13. data/lib/cybrid_api_organization_ruby.rb +1 -1
  14. data/spec/api/organizations_organization_api_spec.rb +1 -1
  15. data/spec/api_client_spec.rb +1 -1
  16. data/spec/configuration_spec.rb +1 -1
  17. data/spec/models/error_response_organization_model_spec.rb +1 -1
  18. data/spec/models/organization_organization_model_spec.rb +1 -1
  19. data/spec/models/patch_organization_organization_model_spec.rb +1 -1
  20. data/spec/spec_helper.rb +1 -1
  21. data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.12.0.gem +0 -0
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.5/gem_make.out +5 -5
  27. 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
  28. 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
  29. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb +9 -0
  30. 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
  31. 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
  32. 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
  33. 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
  34. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/format/molecule.rb +61 -0
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/version.rb +3 -0
  41. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar.rb +12 -0
  42. data/vendor/bundle/ruby/3.2.0/specifications/{ruby-progressbar-1.11.0.gemspec → ruby-progressbar-1.12.0.gemspec} +6 -6
  43. metadata +30 -32
  44. data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.11.0.gem +0 -0
  45. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb +0 -9
  46. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components.rb +0 -5
  47. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb +0 -60
  48. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format.rb +0 -3
  49. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/version.rb +0 -3
  50. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar.rb +0 -22
  51. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/LICENSE.txt +0 -0
  52. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/README.md +0 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.11.0 → ruby-progressbar-1.12.0}/Rakefile +0 -0
  54. 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
  55. /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
  56. /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
  57. /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
  58. /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
  59. /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
  60. /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
  61. /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
  62. /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
@@ -7,10 +7,8 @@ class Percentage
7
7
  self.progress = options[:progress]
8
8
  end
9
9
 
10
- private
11
-
12
10
  def percentage
13
- progress.percentage_completed
11
+ progress.percentage_completed.to_s
14
12
  end
15
13
 
16
14
  def justified_percentage
@@ -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 unless elapsed_seconds > 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.out_of_bounds_time_format = options[:out_of_bounds_time_format]
22
- self.timer = options[:timer]
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
- self.out_of_bounds_time_format = nil
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
- self.out_of_bounds_time_format = :unknown
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
- self.out_of_bounds_time_format = :friendly
50
-
51
- estimated_with_elapsed_fallback
43
+ estimated_with_elapsed_fallback(:friendly)
52
44
  end
53
45
 
54
- attr_reader :out_of_bounds_time_format
55
- attr_accessor :timer,
56
- :progress
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
- def out_of_bounds_time_format=(format)
59
- unless OOB_TIME_FORMATS.include? format
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
- @out_of_bounds_time_format = format
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[out_of_bounds_time_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? ? elapsed_with_label : estimated_with_label
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 = (bar_length < 0) ? 0 : 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,
@@ -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,3 +1,5 @@
1
+ require 'ruby-progressbar/format/molecule'
2
+
1
3
  class ProgressBar
2
4
  module Format
3
5
  class String < ::String
@@ -1,3 +1,6 @@
1
+ require 'ruby-progressbar/calculators/length'
2
+ require 'ruby-progressbar/throttle'
3
+
1
4
  class ProgressBar
2
5
  class Output
3
6
  DEFAULT_OUTPUT_STREAM = $stdout
@@ -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 = 100
6
- DEFAULT_BEGINNING_POSITION = 0
7
- DEFAULT_SMOOTHING = 0.1
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
- :smoothing
20
+ :running_average_calculator,
21
+ :running_average_rate
15
22
 
16
23
  def initialize(options = {})
17
- self.total = options.fetch(:total, DEFAULT_TOTAL)
18
- self.smoothing = options[:smoothing] || DEFAULT_SMOOTHING
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 = Calculators::RunningAverage.calculate(running_average,
70
- absolute,
71
- smoothing)
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 ||= begin
21
- TIME_MOCKING_LIBRARY_METHODS.find do |method|
22
- time.respond_to? method
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,3 @@
1
+ class ProgressBar
2
+ VERSION = '1.12.0'.freeze
3
+ end
@@ -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.11.0 ruby lib
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.11.0"
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.11.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=
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-----\nMIIEGDCCAoCgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAyMTAwLgYDVQQDDCdhY2Nv\ndW50c19ydWJ5Z2Vtcy9EQz10aGVrb21wYW5lZS9EQz1jb20wHhcNMjAxMjI2MjIz\nMTE2WhcNMjExMjI2MjIzMTE2WjAyMTAwLgYDVQQDDCdhY2NvdW50c19ydWJ5Z2Vt\ncy9EQz10aGV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VHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV\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, ["= 0.6.0"])
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.65
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.11.0.gem
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.11.0/LICENSE.txt
2368
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/README.md
2369
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/Rakefile
2370
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar.rb
2371
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/base.rb
2372
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/length.rb
2373
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/calculators/running_average.rb
2374
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components.rb
2375
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/bar.rb
2376
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/percentage.rb
2377
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/rate.rb
2378
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/time.rb
2379
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/components/title.rb
2380
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/errors/invalid_progress_error.rb
2381
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format.rb
2382
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/formatter.rb
2383
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/molecule.rb
2384
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/format/string.rb
2385
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/output.rb
2386
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/non_tty.rb
2387
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/null.rb
2388
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/outputs/tty.rb
2389
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/progress.rb
2390
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements.rb
2391
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/refinements/enumerator.rb
2392
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/throttle.rb
2393
- - vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.11.0/lib/ruby-progressbar/time.rb
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.11.0.gemspec
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
@@ -1,9 +0,0 @@
1
- class ProgressBar
2
- module Calculators
3
- class RunningAverage
4
- def self.calculate(current_average, new_value_to_average, smoothing_factor)
5
- new_value_to_average * (1.0 - smoothing_factor) + current_average * smoothing_factor
6
- end
7
- end
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- require 'ruby-progressbar/components/bar'
2
- require 'ruby-progressbar/components/percentage'
3
- require 'ruby-progressbar/components/rate'
4
- require 'ruby-progressbar/components/time'
5
- require 'ruby-progressbar/components/title'
@@ -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,3 +0,0 @@
1
- require 'ruby-progressbar/format/molecule'
2
- require 'ruby-progressbar/format/formatter'
3
- require 'ruby-progressbar/format/string'
@@ -1,3 +0,0 @@
1
- class ProgressBar
2
- VERSION = '1.11.0'.freeze
3
- 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