simple-cli 0.2.16 → 0.2.17

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: 0e545c7742cb8610e3541375adab0e23da9eac8240b6749f8b1c8e85c9ef6a96
4
- data.tar.gz: 99ba56eb332c43f45dd3349fbfb77840d1cb36487a9dcbbc577c2c311ebd3803
3
+ metadata.gz: 43f3f722bec1b3232c215e4e4778ad9aedec5102a62aa5bc68d4babb19e5b9dc
4
+ data.tar.gz: 3b721f303eb08aa2ee4097da13cf8e13bae7ed81220a084710d1d7d085352d7a
5
5
  SHA512:
6
- metadata.gz: b3230d93d1103ef42b1abb50b1c60a5f337a9d0d8cdf5e7f75e5eef469a1b9850793a42f1f8a779041b488c7a686a900c64edc318bd4d8fb123c8dda7d648e29
7
- data.tar.gz: fdd502ef4276a17e5eba313de3a44d32e73803cddec71439173ddfcb29d06566c2a6c8788e45147159795f89dc777ac6b3bda2f23b4a30fed9f705a238532a1c
6
+ metadata.gz: 033633a1f28f272ba3a9ef664694c6663c2485a1c7a46347673c775e4e18544fab3f2ed1cba602254e5b678a79ef3e1db772f7be46785001a1a738fa665fae41
7
+ data.tar.gz: 1d9db70a801d71012dd44d435f21e48ede7d8d59f7a4de5be49079b4553e2476fc14cc0b2e13380588bce00d420a50f833382171832a0aa4ebc99be474137792
@@ -1,5 +1,7 @@
1
1
  # rubocop:disable Metrics/AbcSize
2
2
  # rubocop:disable Metrics/MethodLength
3
+ # rubocop:disable Metrics/CyclomaticComplexity
4
+ # rubocop:disable Metrics/PerceivedComplexity
3
5
 
4
6
  module Simple::CLI::Logger::ColoredLogger
5
7
  extend self
@@ -58,6 +60,22 @@ module Simple::CLI::Logger::ColoredLogger
58
60
  log :success, *args, &block
59
61
  end
60
62
 
63
+ def debug?
64
+ level <= REQUIRED_LOG_LEVELS[:debug]
65
+ end
66
+
67
+ def info?
68
+ level <= REQUIRED_LOG_LEVELS[:info]
69
+ end
70
+
71
+ def warn?
72
+ level <= REQUIRED_LOG_LEVELS[:warn]
73
+ end
74
+
75
+ def error?
76
+ level <= REQUIRED_LOG_LEVELS[:error]
77
+ end
78
+
61
79
  private
62
80
 
63
81
  REQUIRED_LOG_LEVELS = {
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module CLI
3
- VERSION = "0.2.16"
3
+ VERSION = "0.2.17"
4
4
  end
5
5
  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.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel