hu 2.0.24 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hu.gemspec +1 -0
- data/lib/hu/scale.rb +3 -3
- data/lib/hu/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef35acb141cf349673d4799f2ff577a8a5efdf26fdddf43f74936167b043009
|
4
|
+
data.tar.gz: '088b4e4534a62f3e35bf88e17d9180c79c8c46f69271ac2a1a8670b21fcc52fd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278827d8509efd6999b24704be77eaf3e87a0f3b0a536b62c8fb64fdbd1df6effeff2de488ed5b35e3b03bcf03f52811c250184609443733d02822426e9ea2af
|
7
|
+
data.tar.gz: c0550c95650ccfebb7867acdb343d8cc844f32f3cd4f26593b8d17781452417a5e036020a4eef6b802514a4c7f9dff4191a73c769ab4fe9f4bea0c9131661f76
|
data/hu.gemspec
CHANGED
@@ -49,6 +49,7 @@ Gem::Specification.new do |spec|
|
|
49
49
|
spec.add_dependency 'config'
|
50
50
|
spec.add_dependency 'awesome_print'
|
51
51
|
spec.add_dependency 'necromancer', '~> 0.4.0'
|
52
|
+
spec.add_dependency 'webrick'
|
52
53
|
# spec.add_dependency 'notifier'
|
53
54
|
# spec.add_dependency 'terminal-notifier'
|
54
55
|
end
|
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: '
|
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: '
|
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 }
|
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
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:
|
4
|
+
version: 3.0.0
|
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-
|
11
|
+
date: 2022-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -402,6 +402,20 @@ dependencies:
|
|
402
402
|
- - "~>"
|
403
403
|
- !ruby/object:Gem::Version
|
404
404
|
version: 0.4.0
|
405
|
+
- !ruby/object:Gem::Dependency
|
406
|
+
name: webrick
|
407
|
+
requirement: !ruby/object:Gem::Requirement
|
408
|
+
requirements:
|
409
|
+
- - ">="
|
410
|
+
- !ruby/object:Gem::Version
|
411
|
+
version: '0'
|
412
|
+
type: :runtime
|
413
|
+
prerelease: false
|
414
|
+
version_requirements: !ruby/object:Gem::Requirement
|
415
|
+
requirements:
|
416
|
+
- - ">="
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
405
419
|
description: Heroku Utility.
|
406
420
|
email:
|
407
421
|
- moe@busyloop.net
|
@@ -430,7 +444,7 @@ homepage: https://github.com/busyloop/hu
|
|
430
444
|
licenses:
|
431
445
|
- MIT
|
432
446
|
metadata: {}
|
433
|
-
post_install_message:
|
447
|
+
post_install_message:
|
434
448
|
rdoc_options: []
|
435
449
|
require_paths:
|
436
450
|
- lib
|
@@ -445,8 +459,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
445
459
|
- !ruby/object:Gem::Version
|
446
460
|
version: '0'
|
447
461
|
requirements: []
|
448
|
-
rubygems_version: 3.
|
449
|
-
signing_key:
|
462
|
+
rubygems_version: 3.1.2
|
463
|
+
signing_key:
|
450
464
|
specification_version: 4
|
451
465
|
summary: Heroku Utility.
|
452
466
|
test_files: []
|