dorian-progress 1.0.1 → 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: 6e1d6b4a7119ff70b65ce7a4ff5b655d4424e60b6f26401699bf620f1a0bb4d8
4
- data.tar.gz: c40bfbdba513354b6bcbcf2c1b23ee4fe53a5f2a30e8b1eb6862526adea58e28
3
+ metadata.gz: 362ada2fc7a332a2fac625ac93c7dffd3461a89f2b0b4ccd3c463748ab81f34a
4
+ data.tar.gz: 89cfa8742b82131ed797e8372358addbe1ad7563faea6e674286c8e5a0e0af4a
5
5
  SHA512:
6
- metadata.gz: 0e787ee415dae2fe4467709f1165500ada2e153f7c2f6662e712f6f3a22c59f4231c840ed8f862b60277000d9177466a2c5ff2c92aad6c953deaf3e9fc1eba95
7
- data.tar.gz: b266a0106389351d857e47f5a72497fdcda7bef9ca5989d3aa6e35a42e65a45ec5531ab0021ffb8b3ae892d81dc70f821edc9d2d7208160c1058287e3a037532
6
+ metadata.gz: 87ff468c6c5c00448d2ee749bcb1954dca7817930fab92672e2589ded21bc320989c2c3daf9c061c80eecfe650b8220dc00928ac5ed2a241ea251b69e1737824
7
+ data.tar.gz: 9125f19ac8666df34492678c1e1d5406c41a1fc3d45e31b3a6799e5877f2da399a260edb08f41f98cb1d162adfc6265e1d87c9ba0bc0b0d5e7325105724882b3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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("../../VERSION", __FILE__))
9
+ abort File.read(File.expand_path("../VERSION", __dir__))
10
10
  else
11
11
  abort parsed.help
12
12
  end
@@ -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.0.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-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
  - - ">="