diskman 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/diskman +13 -3
  3. data/lib/diskman/version.rb +1 -1
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b601bff2adbe81099f2b8c279a9757a99d0afc8b62fbec38a8cff8140fb7b1f
4
- data.tar.gz: 12579cdae49bf6a812e0a415ab7bc273f0106dee52880e2a2850c4f1ea9ad680
3
+ metadata.gz: 356141ac045d586f1d8dec632762474496de583c2cd1f9199b392ad273baf123
4
+ data.tar.gz: '09057fecdaa82c8fddac9a7ed21c2d172f0cc1e342331d226967f908e0330906'
5
5
  SHA512:
6
- metadata.gz: 99c8eeb4df39180d09418c9b8707df8bb1413aaa4c6ec55a2f058a66ce017e1a2a51b12254a7461dbfc2215aa0138995fdcd7b179f7987116eed8826bd938ab5
7
- data.tar.gz: 05051535ce5c6007a5e6372e7c779b73b48e6ea920a16e7876533063b0d9ed754a21f2a1e1f5ace6b015eb01654230f78ec18e8e2684c4d13237f3790aa7947b
6
+ metadata.gz: 1c5c298f9849ef5e25d952b8bc782749c2b98075ef9289f2379f708932c4041bb301cb22dcbe0fa90337fae41103af8b8f9c0079ba7a414935222094b621ffc7
7
+ data.tar.gz: e840f6c4bb49c3a6f8559494986c082515d3ff8f8c9b705d9d4f9a32bd9794308e21d6044296a03c5dd8305f34a626ce10d2aeb7cfb488491c1931bc9da9d4cb
data/bin/diskman CHANGED
@@ -2,7 +2,17 @@
2
2
  require_relative '../lib/diskman'
3
3
  require 'docopt'
4
4
 
5
- include Diskman # rubocop:disable Style/MixinUsage
5
+ include Diskman
6
+
7
+ Params = Struct.new(
8
+ :version,
9
+ :list,
10
+ :write,
11
+ :fdisk,
12
+ :mkfs,
13
+ :file,
14
+ keyword_init: true,
15
+ )
6
16
 
7
17
  class Main
8
18
  def initialize(opts)
@@ -14,14 +24,14 @@ class Main
14
24
  end
15
25
 
16
26
  def params
17
- @params ||= OpenStruct.new({
27
+ @params ||= Params.new(
18
28
  version: @opts['--version'],
19
29
  list: @opts['--list'],
20
30
  write: @opts['write'],
21
31
  fdisk: @opts['fdisk'],
22
32
  mkfs: @opts['mkfs'],
23
33
  file: @opts['<file>'],
24
- })
34
+ )
25
35
  end
26
36
 
27
37
  def run
@@ -1,3 +1,3 @@
1
1
  module Diskman
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diskman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - crdx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-12 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -116,7 +116,8 @@ files:
116
116
  homepage: https://github.com/crdx/diskman
117
117
  licenses:
118
118
  - MIT
119
- metadata: {}
119
+ metadata:
120
+ rubygems_mfa_required: 'true'
120
121
  post_install_message:
121
122
  rdoc_options: []
122
123
  require_paths:
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  - !ruby/object:Gem::Version
133
134
  version: '0'
134
135
  requirements: []
135
- rubygems_version: 3.2.21
136
+ rubygems_version: 3.2.29
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: Interactive command line interface for safely managing disks