argvise 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baf5e36d57cbce4d441556b353f25a40cccb258762496b029ea31931c5f0a9ce
4
- data.tar.gz: 6727e52bba5ce34e77e5649700c9c404fce0a66d7f7223f5a8f8e9e6abbfd21d
3
+ metadata.gz: 96b6f0c2b58c2c978c647f988896d96377fa798b5df00eb372d8f2c13de6d479
4
+ data.tar.gz: ebdd6ef0219a35ab0c585f9310be93ac6f8a22b6376289002b8c414e4ffa6b4e
5
5
  SHA512:
6
- metadata.gz: 97ad4a558c1b08ec2b64607e92761bb9ea1592cbfbb3d96fa9307179ae77e1123d6a2ef28725b36d77a2bd15d11dcf4a00cafe11868fab20adf3d73a926a9b3b
7
- data.tar.gz: 3de59adb8b956fdb71342fb84064ba9a5a0fcc6030bf5e83a17ba2512223cc4185685057c9e2bd18efa0fefd0e4485d165282fc33efca534b9f8059ceff95417
6
+ metadata.gz: 6124154af43827d0b5d65d5c086ecb0941daf7f5b56a35655072ee6ba75486340d0eede11aebeb29e95cf69540cd3932e41f0d498d578e68e8ea580abef9ece2
7
+ data.tar.gz: 82a72a33658ea1e190a6f16f181e2d4a9f4c6bad414aa815307e4118a45d53624685809488e276ab84609509467b9fa7e7cda4001e89cfb3a428b073de6247a4
data/docs/Readme.md CHANGED
@@ -158,8 +158,8 @@ gem install argvise
158
158
  require 'argvise'
159
159
 
160
160
  raw_cmd_hash = {
161
- docker: nil, #=> docker
162
- build: nil,
161
+ docker: (), #=> docker
162
+ build: (),
163
163
  push: true, #=> --push
164
164
  tag: ["ghcr.io/[user]/repo:latest", "ghcr.io/[user]/repo:v0.0.1"], #=> --tag ghcr... --tag ghcr..0.0.1
165
165
  platform: "wasi/wasm", #=> --platform wasi/wasm
@@ -168,7 +168,7 @@ raw_cmd_hash = {
168
168
  description: "A Docker build example"
169
169
  }, # => --label maintainer=user --label description=A..example
170
170
  file: "wasi.dockerfile",
171
- path: nil,
171
+ path: (),
172
172
  }
173
173
 
174
174
  Argvise.build(raw_cmd_hash)
@@ -181,7 +181,7 @@ Argvise.build(raw_cmd_hash)
181
181
  # ]
182
182
  ```
183
183
 
184
- ### Lambda Shortcut
184
+ ### Shortcut
185
185
 
186
186
  ```ruby
187
187
  { v: true, dir: '/path/to/dir' }.to_argv
@@ -214,6 +214,7 @@ raw_cmd = {
214
214
 
215
215
  p '----------------'
216
216
  p "GNU-style + kebab case flags=false"
217
+ # argvise: >= v0.0.4
217
218
  raw_cmd
218
219
  .then(&Argvise.new_proc)
219
220
  .with_bsd_style(false)
@@ -225,6 +226,7 @@ raw_cmd
225
226
 
226
227
  p '----------------'
227
228
  p 'GNU-style + kebab-case-flags=true'
229
+ # argvise: >= v0.0.6
228
230
  raw_cmd
229
231
  .to_argv
230
232
  .display
@@ -233,6 +235,7 @@ raw_cmd
233
235
 
234
236
  p '----------------'
235
237
  p 'BSD-style + kebab-case-flags=true'
238
+ # argvise: >= v0.0.4
236
239
  raw_cmd
237
240
  .then(&Argvise.new_proc)
238
241
  .with_bsd_style
@@ -277,6 +277,6 @@ class ::Hash # rubocop:disable Style/Documentation
277
277
  #
278
278
  # sig { params(opts: T.nilable(Hash)).returns(T::Array[String]) }
279
279
  def to_argv(opts = nil)
280
- Argvise.build(self, opts: opts)
280
+ Argvise.build(self, opts:)
281
281
  end
282
282
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  class Argvise
5
- VERSION = '0.0.7'
5
+ VERSION = '0.0.8'
6
6
  end
data/lib/argvise.rb CHANGED
@@ -2,4 +2,4 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require_relative 'argvise/version'
5
- require_relative 'core'
5
+ require_relative 'argvise/core'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argvise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - 2moe
@@ -23,8 +23,8 @@ files:
23
23
  - bin/console.rb
24
24
  - docs/Readme.md
25
25
  - lib/argvise.rb
26
+ - lib/argvise/core.rb
26
27
  - lib/argvise/version.rb
27
- - lib/core.rb
28
28
  - rbi/lib/argvise.rbi
29
29
  homepage: https://github.com/2moe/argvise-gem
30
30
  licenses: