dry-cli 0.7.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +5 -4
- data/dry-cli.gemspec +15 -13
- data/lib/dry/cli/command.rb +5 -5
- data/lib/dry/cli/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d37c32bb092f046364d8537259aec4a8f3e233fe57167b8d19c667f8c3421a7
|
4
|
+
data.tar.gz: dcab3ac00499da55cad199c0ca98854e16109f23d0d257ffa9a0c826c765e476
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e29fb0c9aa6672108b1c4afc8629ab9274655675c95a04cf85503824c1565dcef22fe2da20f6ca8a6a65d8b4b07e626f3c793fbede40a10f7a645cfaf1f7421
|
7
|
+
data.tar.gz: 8d65f61919776a08c9d6519cf2e6d47c85ec5c4e723234dcee2159b5a3fa6c99d2ecb754299dcd74f9f767e3c0d9e710f099ed16b347571256af082967d8e5cb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
2
|
|
3
|
+
## 1.0.0 2022-11-05
|
4
|
+
|
5
|
+
|
6
|
+
### Changed
|
7
|
+
|
8
|
+
- Version bumped to 1.0.0 (@solnic)
|
9
|
+
|
10
|
+
[Compare v0.7.0...v1.0.0](https://github.com/dry-rb/dry-cli/compare/v0.7.0...v1.0.0)
|
11
|
+
|
3
12
|
## 0.7.0 2020-05-08
|
4
13
|
|
5
14
|
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
<!--- this file is synced from dry-rb/template-gem project -->
|
1
2
|
[gem]: https://rubygems.org/gems/dry-cli
|
2
3
|
[actions]: https://github.com/dry-rb/dry-cli/actions
|
3
4
|
[codacy]: https://www.codacy.com/gh/dry-rb/dry-cli
|
@@ -10,19 +11,19 @@
|
|
10
11
|
[![CI Status](https://github.com/dry-rb/dry-cli/workflows/ci/badge.svg)][actions]
|
11
12
|
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/61dd5d070fc74f0cacf575b19d4930e1)][codacy]
|
12
13
|
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/61dd5d070fc74f0cacf575b19d4930e1)][codacy]
|
13
|
-
[![Inline docs](http://inch-ci.org/github/dry-rb/dry-cli.svg?branch=
|
14
|
+
[![Inline docs](http://inch-ci.org/github/dry-rb/dry-cli.svg?branch=main)][inchpages]
|
14
15
|
|
15
16
|
## Links
|
16
17
|
|
17
|
-
* [User documentation](
|
18
|
+
* [User documentation](https://dry-rb.org/gems/dry-cli)
|
18
19
|
* [API documentation](http://rubydoc.info/gems/dry-cli)
|
19
20
|
|
20
21
|
## Supported Ruby versions
|
21
22
|
|
22
23
|
This library officially supports the following Ruby versions:
|
23
24
|
|
24
|
-
* MRI
|
25
|
-
* jruby
|
25
|
+
* MRI `>= 2.4.0`
|
26
|
+
* jruby `>= 9.3` (postponed until 2.7 is supported)
|
26
27
|
|
27
28
|
## License
|
28
29
|
|
data/dry-cli.gemspec
CHANGED
@@ -1,33 +1,35 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
# this file is managed by dry-rb/devtools project
|
3
2
|
|
4
|
-
|
3
|
+
# this file is synced from dry-rb/template-gem project
|
4
|
+
|
5
|
+
lib = File.expand_path("lib", __dir__)
|
5
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
require
|
7
|
+
require "dry/cli/version"
|
7
8
|
|
8
9
|
Gem::Specification.new do |spec|
|
9
|
-
spec.name =
|
10
|
+
spec.name = "dry-cli"
|
10
11
|
spec.authors = ["Luca Guidi"]
|
11
12
|
spec.email = ["me@lucaguidi.com"]
|
12
|
-
spec.license =
|
13
|
+
spec.license = "MIT"
|
13
14
|
spec.version = Dry::CLI::VERSION.dup
|
14
15
|
|
15
16
|
spec.summary = "Common framework to build command line interfaces with Ruby"
|
16
17
|
spec.description = spec.summary
|
17
|
-
spec.homepage =
|
18
|
+
spec.homepage = "https://dry-rb.org/gems/dry-cli"
|
18
19
|
spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "dry-cli.gemspec", "lib/**/*"]
|
19
|
-
spec.bindir =
|
20
|
+
spec.bindir = "bin"
|
20
21
|
spec.executables = []
|
21
|
-
spec.require_paths = [
|
22
|
+
spec.require_paths = ["lib"]
|
22
23
|
|
23
|
-
spec.metadata[
|
24
|
-
spec.metadata[
|
25
|
-
spec.metadata[
|
26
|
-
spec.metadata[
|
24
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
25
|
+
spec.metadata["changelog_uri"] = "https://github.com/dry-rb/dry-cli/blob/main/CHANGELOG.md"
|
26
|
+
spec.metadata["source_code_uri"] = "https://github.com/dry-rb/dry-cli"
|
27
|
+
spec.metadata["bug_tracker_uri"] = "https://github.com/dry-rb/dry-cli/issues"
|
27
28
|
|
28
|
-
spec.required_ruby_version = ">= 2.
|
29
|
+
spec.required_ruby_version = ">= 2.7.0"
|
29
30
|
|
30
31
|
# to update dependencies edit project.yml
|
32
|
+
|
31
33
|
spec.add_development_dependency "bundler", ">= 1.6", "< 3"
|
32
34
|
spec.add_development_dependency "rake", "~> 13.0"
|
33
35
|
spec.add_development_dependency "rspec", "~> 3.7"
|
data/lib/dry/cli/command.rb
CHANGED
@@ -213,7 +213,7 @@ module Dry
|
|
213
213
|
# require "dry/cli"
|
214
214
|
#
|
215
215
|
# class Console < Dry::CLI::Command
|
216
|
-
#
|
216
|
+
# option :engine
|
217
217
|
#
|
218
218
|
# def call(engine: nil, **)
|
219
219
|
# puts "starting console (engine: #{engine || :irb})"
|
@@ -230,7 +230,7 @@ module Dry
|
|
230
230
|
# require "dry/cli"
|
231
231
|
#
|
232
232
|
# class Console < Dry::CLI::Command
|
233
|
-
#
|
233
|
+
# option :engine, values: %w(irb pry ripl)
|
234
234
|
#
|
235
235
|
# def call(engine: nil, **)
|
236
236
|
# puts "starting console (engine: #{engine || :irb})"
|
@@ -250,7 +250,7 @@ module Dry
|
|
250
250
|
# require "dry/cli"
|
251
251
|
#
|
252
252
|
# class Console < Dry::CLI::Command
|
253
|
-
#
|
253
|
+
# option :engine, desc: "Force a console engine"
|
254
254
|
#
|
255
255
|
# def call(engine: nil, **)
|
256
256
|
# # ...
|
@@ -268,7 +268,7 @@ module Dry
|
|
268
268
|
# require "dry/cli"
|
269
269
|
#
|
270
270
|
# class Server < Dry::CLI::Command
|
271
|
-
#
|
271
|
+
# option :code_reloading, type: :boolean, default: true
|
272
272
|
#
|
273
273
|
# def call(code_reloading:, **)
|
274
274
|
# puts "staring server (code reloading: #{code_reloading})"
|
@@ -291,7 +291,7 @@ module Dry
|
|
291
291
|
# require "dry/cli"
|
292
292
|
#
|
293
293
|
# class Server < Dry::CLI::Command
|
294
|
-
#
|
294
|
+
# option :port, aliases: ["-p"]
|
295
295
|
#
|
296
296
|
# def call(options)
|
297
297
|
# puts "staring server (port: #{options.fetch(:port, 2300)})"
|
data/lib/dry/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,7 +115,7 @@ licenses:
|
|
115
115
|
- MIT
|
116
116
|
metadata:
|
117
117
|
allowed_push_host: https://rubygems.org
|
118
|
-
changelog_uri: https://github.com/dry-rb/dry-cli/blob/
|
118
|
+
changelog_uri: https://github.com/dry-rb/dry-cli/blob/main/CHANGELOG.md
|
119
119
|
source_code_uri: https://github.com/dry-rb/dry-cli
|
120
120
|
bug_tracker_uri: https://github.com/dry-rb/dry-cli/issues
|
121
121
|
post_install_message:
|
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
126
|
requirements:
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: 2.
|
129
|
+
version: 2.7.0
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
132
|
- - ">="
|