hu 2.0.25 → 3.0.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: 2d5d7512f4a0af297c2552cf42f8e84065fd71025fae92117442888282fd59a3
4
- data.tar.gz: baedf47c708fbd04f14c23b1152f077eb7615e74eefae18ffd617450c6b2e467
3
+ metadata.gz: b3bf6da56d2f8b74f3512c0f56657df6d9817c949c184d1b7ad6676e246299b5
4
+ data.tar.gz: 91310826ee0f57fe74e03042eb5250918bdb28d8bb34532c500ecd48049cde58
5
5
  SHA512:
6
- metadata.gz: 3a490b244aafd1459317be746c47c1242ce65ff8a2b738664795ed4b9bdc775eb0fecd4b3b70aa4bdb1e534ba9eafa8b4da807b28925496d8a1bafe73d90bfe8
7
- data.tar.gz: ada9265b5d0efe9da499948d01cdf1f7f13de661397878bf8219ed217b7ed30649afbca25ed8e21ed460f01dec12251373626b46f1c5161f6ac62bf6f5f51c96
6
+ metadata.gz: 8e08d7b4af5b27bbdbb1c2cf9349dcdfd46bde1592e270597ed98798c8e239da56cba99243df55a6b49622a067ba0fb10a765afa8e6bea4c1d6c08e7563aca9d
7
+ data.tar.gz: 3bcccd5d42a9d3ac7a6fc362f35551086d8702185bd69adb6257e69e3b922753c91779846d75cea838af6c03aeddfb5aa6ded589df0372482b589a5ea5e94ff3
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.1.2
data/lib/hu/deploy.rb CHANGED
@@ -1062,7 +1062,7 @@ EOF
1062
1062
  opts[:quiet] = true if line == ':quiet'
1063
1063
  opts[:failfast] = false if line == ':return'
1064
1064
  opts[:failquiet] = true if line == ':failquiet'
1065
- opts[:spinner] = false if line == ':nospinner'
1065
+ opts[:spinner] = false if (line == ':nospinner' || ENV['HU_RAINBOW_CURSOR'].nil?)
1066
1066
  if line == ':stream'
1067
1067
  opts[:stream] = true
1068
1068
  opts[:quiet] = false
@@ -1077,6 +1077,7 @@ EOF
1077
1077
  @minispin_disable = false
1078
1078
  @minispin_last_char_at = Time.now
1079
1079
  @tspin ||= Thread.new do
1080
+ next if ENV['HU_RAINBOW_CURSOR'].nil?
1080
1081
  i = 0
1081
1082
  loop do
1082
1083
  break if @minispin_last_char_at == :end || @shutdown
data/lib/hu/scale.rb CHANGED
@@ -6,7 +6,7 @@ module Hu
6
6
  class Scale < Optix::Cli
7
7
  DYNO_TYPES = [
8
8
  {
9
- id: 'free',
9
+ id: 'eco',
10
10
  sleeps: true,
11
11
  pro: false,
12
12
  ram: 512,
@@ -17,7 +17,7 @@ module Hu
17
17
  color: "\e[0;32;1m",
18
18
  },
19
19
  {
20
- id: 'hobby',
20
+ id: 'basic',
21
21
  sleeps: false,
22
22
  pro: false,
23
23
  ram: 512,
@@ -137,7 +137,7 @@ module Hu
137
137
  row['fH12ML'][idx] = 'fH12ML'[idx]
138
138
  end
139
139
  row['formation'] += " #{dyno_type_str}" + '='.color(:black).bright + quant_colon_type.to_s
140
- cost += DYNO_TYPES.find { |e| e[:id] == dyno_type }[:usd] * dyno[:quantity]
140
+ cost += (DYNO_TYPES.find { |e| e[:id] == dyno_type }&.fetch(:usd, 0) || 0) * dyno[:quantity]
141
141
  end
142
142
  end
143
143
  new_row = ''.dup
data/lib/hu/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hu
3
- VERSION = '2.0.25'
3
+ VERSION = '3.0.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.25
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - moe
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-23 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -427,6 +427,8 @@ files:
427
427
  - ".gitignore"
428
428
  - ".rubocop.yml"
429
429
  - ".rubocop_todo.yml"
430
+ - ".ruby-version"
431
+ - ".tool-versions"
430
432
  - Gemfile
431
433
  - LICENSE.txt
432
434
  - README.md
@@ -444,7 +446,7 @@ homepage: https://github.com/busyloop/hu
444
446
  licenses:
445
447
  - MIT
446
448
  metadata: {}
447
- post_install_message:
449
+ post_install_message:
448
450
  rdoc_options: []
449
451
  require_paths:
450
452
  - lib
@@ -459,8 +461,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
461
  - !ruby/object:Gem::Version
460
462
  version: '0'
461
463
  requirements: []
462
- rubygems_version: 3.1.2
463
- signing_key:
464
+ rubygems_version: 3.3.7
465
+ signing_key:
464
466
  specification_version: 4
465
467
  summary: Heroku Utility.
466
468
  test_files: []