dorian-progress 1.0.1 → 1.1.1
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 +3 -4
- 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: df17d1300df316cfc2f4a0e07ed0155f08e89fd09bd3bcc169c05b9b75b37fd7
|
4
|
+
data.tar.gz: cc004d428cc86c76811b47f9acbaffb150177bedd236edb550ad8bfdccf6eb7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8859c403e3fe4163aca5716cc17828223f83a1f252d797babec3e2fb518ae35ce236ce126f37d78ca1e6a5321e8e31277eeafb45c8ddc6911215e2624f578de4
|
7
|
+
data.tar.gz: a67b6438563f13663db62ed7871db502ac7574a9c2ebe94863d6c476c01cc96b0e47c024e6611aa80bc028a335c2248da5f2cc27ddf4ae72712027ba1b13bd8d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.1
|
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,11 +1,10 @@
|
|
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
9
|
def self.create(total: nil, format: nil, output: nil)
|
11
10
|
format = FORMATS.fetch((format || :full).to_sym) if format
|
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.1
|
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-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-progressbar
|
@@ -48,14 +48,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
48
|
requirements:
|
49
49
|
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: '
|
51
|
+
version: '3'
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
rubygems_version: 3.5.
|
58
|
+
rubygems_version: 3.5.16
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: progress bar
|