gurke 3.3.3 → 3.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/gurke.gemspec +1 -1
- data/lib/gurke/cli.rb +5 -5
- data/lib/gurke/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c3045ca393b90c2aece99c8e8af8a9a203d07162fee704b3232daeff5c77da
|
4
|
+
data.tar.gz: be4a3e83f444b2febaf716150626047111ab2207010ba073bdbbbaafdb486f77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2ae469818d990f4b5bedcd6d5ecfed6df52544d3d20e498ae42a19a2f12d3acb7474f93b779ff3785b6b44a05e34b6ac5336a843fae558744dba3d64c5ee29b
|
7
|
+
data.tar.gz: d5b85b761c81e99c5a04fba6eb07f2faae55f8ff18c808b298b5272c69b42e98d6d6e1022cfae8c1e27f3d4be50a3c8c66048665ac04f83d697c273c42035923
|
data/CHANGELOG.md
CHANGED
data/gurke.gemspec
CHANGED
data/lib/gurke/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'optimist'
|
4
4
|
|
5
5
|
module Gurke
|
6
6
|
class CLI
|
@@ -11,11 +11,11 @@ module Gurke
|
|
11
11
|
#
|
12
12
|
def run(argv)
|
13
13
|
call parser.parse(argv), argv
|
14
|
-
rescue
|
14
|
+
rescue Optimist::VersionNeeded
|
15
15
|
print_version && exit
|
16
|
-
rescue
|
16
|
+
rescue Optimist::HelpNeeded
|
17
17
|
print_help && exit
|
18
|
-
rescue
|
18
|
+
rescue Optimist::CommandlineError => e
|
19
19
|
warn "Error: #{e}"
|
20
20
|
warn "Run with `-h' for more information on available arguments."
|
21
21
|
exit 255
|
@@ -56,7 +56,7 @@ module Gurke
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def parser
|
59
|
-
@parser ||=
|
59
|
+
@parser ||= Optimist::Parser.new do
|
60
60
|
opt :help, 'Print this help.'
|
61
61
|
opt :version, 'Show program version information.'
|
62
62
|
opt :backtrace, 'Show full error backtraces.'
|
data/lib/gurke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gurke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: optimist
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '3.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|