dorian-progress 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/progress +1 -1
- data/lib/dorian/progress.rb +5 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362ada2fc7a332a2fac625ac93c7dffd3461a89f2b0b4ccd3c463748ab81f34a
|
4
|
+
data.tar.gz: 89cfa8742b82131ed797e8372358addbe1ad7563faea6e674286c8e5a0e0af4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87ff468c6c5c00448d2ee749bcb1954dca7817930fab92672e2589ded21bc320989c2c3daf9c061c80eecfe650b8220dc00928ac5ed2a241ea251b69e1737824
|
7
|
+
data.tar.gz: 9125f19ac8666df34492678c1e1d5406c41a1fc3d45e31b3a6799e5877f2da399a260edb08f41f98cb1d162adfc6265e1d87c9ba0bc0b0d5e7325105724882b3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/bin/progress
CHANGED
@@ -6,7 +6,7 @@ require "dorian/arguments"
|
|
6
6
|
parsed = Dorian::Arguments.parse(version: { alias: :v }, help: { alias: :h })
|
7
7
|
|
8
8
|
if parsed.options.version
|
9
|
-
abort File.read(File.expand_path("
|
9
|
+
abort File.read(File.expand_path("../VERSION", __dir__))
|
10
10
|
else
|
11
11
|
abort parsed.help
|
12
12
|
end
|
data/lib/dorian/progress.rb
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "ruby-progressbar"
|
2
4
|
|
3
5
|
class Dorian
|
4
6
|
class Progress
|
5
|
-
FORMATS = {
|
6
|
-
full: "%a |%b%i| %p%% %t | %c/%C | %e",
|
7
|
-
minimal: nil
|
8
|
-
}
|
7
|
+
FORMATS = { full: "%a |%b%i| %p%% %t | %c/%C | %e", minimal: nil }.freeze
|
9
8
|
|
10
|
-
def self.create(total: nil, format:
|
11
|
-
format = FORMATS.fetch(format.to_sym) if format
|
9
|
+
def self.create(total: nil, format: nil, output: nil)
|
10
|
+
format = FORMATS.fetch((format || :full).to_sym) if format
|
12
11
|
ProgressBar.create(total:, format:, output:)
|
13
12
|
end
|
14
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-progress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Marié
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-progressbar
|
@@ -46,9 +46,9 @@ require_paths:
|
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - '='
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 3.3.4
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ">="
|