simple-cli 0.4.0 → 0.4.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: dcf0aaedcec401d2a1d7b28d2463aa6b331626c3d75b22b9d8e2c9251c489370
4
- data.tar.gz: 7c45a6520ea7d7f8812e4f66a6acd2c57c107866527b578c279a06fb58ce0ed7
3
+ metadata.gz: f7c76281ec1c86003ccc81f754067a1ab6c1270c1252b49be9b2e77b5003b4f0
4
+ data.tar.gz: 13ee4536fab8272fdc833ea585ee324ec6fc7454939aef9fe4c762c168087001
5
5
  SHA512:
6
- metadata.gz: 65eb1d3681b02768d7f0b24805dd8f7c730cdb9cafefb9154b4990607b6d0760d671995fbedb27f36c411b7202a373036e6b09df55bbe6ff293757c1a98a1edf
7
- data.tar.gz: d67979bd430b4b2d7854e789029ef14dcc42138195d9b1520904a1ddf92bf2bfc1c21feec2bbbca3517ff6122f1a7cab98ea871a4e36d3d61d93ec3478ebf849
6
+ metadata.gz: 74f848f2d6fe96a2bb63ccae8fdd866a37d403162ecd7a2c595c87b3e6f3c7b2999f12a932892c658e9f754f7fc1918ca1d36889ff022162a10ac35948313624
7
+ data.tar.gz: f131ad6dfc56139703414dcb0d991425db604ede1efe4e5e12dd558f02a724603e46bddac93e79dcf3a6879d9cec5d08ec87b9061fbe4e2fd0ceabe29c8a9d49
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/simple/cli.rb CHANGED
@@ -87,8 +87,17 @@ module Simple::CLI
87
87
  # Run service.
88
88
  Runner.run! service, options.command, *args, verbose: options.verbose?
89
89
  rescue ::Simple::Service::ArgumentError
90
- STDERR.puts "#{$!}\n\n"
91
- Helper.help_on_command! service, options.command, verbose: false
90
+ STDERR.puts <<~MSG
91
+ #{$!}
92
+
93
+ You probably run the command with invalid arguments; to learn more run
94
+
95
+ #{$0} help #{options.command}
96
+
97
+ Error location:
98
+
99
+ - #{$!.backtrace[0,5].join("\n- ")}
100
+ MSG
92
101
  rescue StandardError => e
93
102
  on_exception(e)
94
103
  exit 3
data/simple-cli.gemspec CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |gem|
24
24
  # executables are used for development purposes only
25
25
  gem.executables = []
26
26
 
27
- gem.required_ruby_version = '~> 2.3'
27
+ gem.required_ruby_version = '>= 2.5'
28
28
 
29
29
  # optional gems (required by some of the parts)
30
- gem.add_dependency "simple-service", "~> 0.2.1"
30
+ gem.add_dependency "simple-service", "~> 0.2.2"
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-13 00:00:00.000000000 Z
12
+ date: 2022-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simple-service
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.2.1
20
+ version: 0.2.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.2.1
27
+ version: 0.2.2
28
28
  description: Simple CLI builder
29
29
  email: eno@radiospiel.org
30
30
  executables: []
@@ -73,9 +73,9 @@ require_paths:
73
73
  - lib
74
74
  required_ruby_version: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - "~>"
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
- version: '2.3'
78
+ version: '2.5'
79
79
  required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="