mister_bin 0.7.2 → 0.7.4

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: ddbb5dc8eedf74546e9ef64f0350f8d8c66dd54e3178add8b7a5df40f92661ed
4
- data.tar.gz: 785e3517267fa3d36d54fe0fab06eecb0b35067c11fed79a05183fd3352783ee
3
+ metadata.gz: f2096df3dcaec80c5e02c17abba74e3a14463bb605eb86cbe60a33599123a854
4
+ data.tar.gz: ca4801c9843d8a19d7ca8da621996cd6390c291fb3d74133ff33a79734edab96
5
5
  SHA512:
6
- metadata.gz: 698068f7f0fe7b8105d07e13ac6758f955ae16450fe27162bef782852dc1cbdfcce77bcd15ff9b3df5d9d1872c5d661773167e88af9c7adb3064650d658960c6
7
- data.tar.gz: 79d047bb38ca948ad5b548eb641f26e50b95064fbae0abb9d51fc7841d1a53538f15b770820d4bfa5bc725d6a7d581a42c64937f10cb6744fbfa3d49b29c37ff
6
+ metadata.gz: 355f4ac5e4a87abf6e1bd3f7be44dc48a53d74c42db3692c85a2e6faafcc0a40f02f8770abd86dc3e149d62de9d16024cc46617b787a8a2b3a5261550ededeee
7
+ data.tar.gz: b19e80921d188eec872f2b2e751289677f714bfd74097df6aa2d251e520f9b51377c4d525e0fd44940f2d30147ed4a6209f27c2bc31476f58e42b5426347ceda
@@ -7,6 +7,10 @@ module MisterBin
7
7
 
8
8
  attr_reader :args
9
9
 
10
+ def initialize(args = nil)
11
+ @args = args
12
+ end
13
+
10
14
  def execute(argv = [])
11
15
  @args = Docopt.docopt self.class.docopt, version: self.class.meta.version, argv: argv
12
16
  target = self.class.find_target_command self, args
@@ -46,7 +46,7 @@ module MisterBin
46
46
  if command
47
47
  command.execute argv
48
48
  else
49
- say "!txtred!Unknown command\n"
49
+ say "r`Unknown command`\n"
50
50
  show_subs
51
51
  end
52
52
  end
@@ -80,7 +80,7 @@ module MisterBin
80
80
  commands.each do |key, command|
81
81
  summary = command.meta.description
82
82
  summary = summary[0..max_summary_size].strip
83
- say " !bldgrn!#{key.ljust longest_key} !txtrst!#{summary}"
83
+ say " gb`#{key.ljust longest_key} `#{summary}"
84
84
  end
85
85
 
86
86
  say "\n#{footer}" if footer
@@ -103,7 +103,7 @@ module MisterBin
103
103
  meta = command.meta
104
104
  next unless meta.help || meta.summary
105
105
 
106
- say "!txtgrn!#{key}"
106
+ say "g`#{key}`"
107
107
  help = meta.help || meta.summary
108
108
  say word_wrap " #{help}"
109
109
  say ''
@@ -99,7 +99,7 @@ module MisterBin
99
99
  false
100
100
  rescue => e
101
101
  puts e.backtrace.reverse if ENV['DEBUG']
102
- say "!txtred!#{e.class}"
102
+ say "r`#{e.class}`"
103
103
  say e.message
104
104
  true
105
105
  # :nocov:
@@ -1,3 +1,3 @@
1
1
  module MisterBin
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.4'
3
3
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mister_bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-21 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.1
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.7'
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.8.1
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.7'
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: docopt
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -71,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
77
  - !ruby/object:Gem::Version
72
78
  version: '0'
73
79
  requirements: []
74
- rubygems_version: 3.3.14
80
+ rubygems_version: 3.4.5
75
81
  signing_key:
76
82
  specification_version: 4
77
83
  summary: Command line interface for your gems