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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e1d6b4a7119ff70b65ce7a4ff5b655d4424e60b6f26401699bf620f1a0bb4d8
4
- data.tar.gz: c40bfbdba513354b6bcbcf2c1b23ee4fe53a5f2a30e8b1eb6862526adea58e28
3
+ metadata.gz: df17d1300df316cfc2f4a0e07ed0155f08e89fd09bd3bcc169c05b9b75b37fd7
4
+ data.tar.gz: cc004d428cc86c76811b47f9acbaffb150177bedd236edb550ad8bfdccf6eb7c
5
5
  SHA512:
6
- metadata.gz: 0e787ee415dae2fe4467709f1165500ada2e153f7c2f6662e712f6f3a22c59f4231c840ed8f862b60277000d9177466a2c5ff2c92aad6c953deaf3e9fc1eba95
7
- data.tar.gz: b266a0106389351d857e47f5a72497fdcda7bef9ca5989d3aa6e35a42e65a45ec5531ab0021ffb8b3ae892d81dc70f821edc9d2d7208160c1058287e3a037532
6
+ metadata.gz: 8859c403e3fe4163aca5716cc17828223f83a1f252d797babec3e2fb518ae35ce236ce126f37d78ca1e6a5321e8e31277eeafb45c8ddc6911215e2624f578de4
7
+ data.tar.gz: a67b6438563f13663db62ed7871db502ac7574a9c2ebe94863d6c476c01cc96b0e47c024e6611aa80bc028a335c2248da5f2cc27ddf4ae72712027ba1b13bd8d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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("../../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.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-08-24 00:00:00.000000000 Z
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: '0'
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.11
58
+ rubygems_version: 3.5.16
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: progress bar