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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b09264766e7a9f12701fc2e46c60a83f4410fa26d70d8384ca8aadb5571e836
4
- data.tar.gz: f3e5194c2a5f9de502fedea912bf617e1865084ee988d454b72ec2c94192f430
3
+ metadata.gz: 362ada2fc7a332a2fac625ac93c7dffd3461a89f2b0b4ccd3c463748ab81f34a
4
+ data.tar.gz: 89cfa8742b82131ed797e8372358addbe1ad7563faea6e674286c8e5a0e0af4a
5
5
  SHA512:
6
- metadata.gz: b09213ca842e56b6c2eb96b7562b7081319f38cca5a34d5fb769ef2f0a94520c1c1444b284feeefec613b54a2246fbdb109e6d94394fffe50e642163d3fd8092
7
- data.tar.gz: d0e13786f7b9c46ec7c47846510ed8fa42084e15e856ea59d8fb425c87cc392e5bcae5988320b8552c29d89b7bcc8045991c1172cecd504b76f0d88a3f8a1293
6
+ metadata.gz: 87ff468c6c5c00448d2ee749bcb1954dca7817930fab92672e2589ded21bc320989c2c3daf9c061c80eecfe650b8220dc00928ac5ed2a241ea251b69e1737824
7
+ data.tar.gz: 9125f19ac8666df34492678c1e1d5406c41a1fc3d45e31b3a6799e5877f2da399a260edb08f41f98cb1d162adfc6265e1d87c9ba0bc0b0d5e7325105724882b3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
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("../../VERSION", __FILE__))
9
+ abort File.read(File.expand_path("../VERSION", __dir__))
10
10
  else
11
11
  abort parsed.help
12
12
  end
@@ -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: :full, output: nil)
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.0.0
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-24 00:00:00.000000000 Z
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: '0'
51
+ version: 3.3.4
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ">="