simple-cli 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple/cli/logger/colored_logger.rb +7 -1
- data/lib/simple/cli/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 878de3c5c0b5d23d08e6cfe44d511fd68b0e41493f44e056d2936e456f2d56cf
|
4
|
+
data.tar.gz: 69cabfc40adca2cc0a20a64dfe41f2feab5b892ad43dfe98ce84e3a60b21345d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba516fa41c773609493db0b26aaca5074547e42c7b62db8aaf200165384c1134f25af92b08949dc4d945e5568b025db6ca0c25bea56b9497eaab6972e37d59d
|
7
|
+
data.tar.gz: 21c7e58196d8289c52119b32888bd505ceeef48b7233a8ed1b67f86963f5f2e713e3e0112b64943e2eacee425ee83f1dbedd74b3ba8c08e60681303290ebf72c
|
@@ -122,6 +122,12 @@ module Simple::CLI::Logger::ColoredLogger
|
|
122
122
|
# do well in most cases.
|
123
123
|
def source_from_caller
|
124
124
|
source = caller.find { |loc| loc !~ /simple-cli.*\/lib\/simple\/cli/ }
|
125
|
-
source
|
125
|
+
source ||= caller[2]
|
126
|
+
source = source[(wd.length + 1)..-1] if source.start_with?(wd)
|
127
|
+
source
|
128
|
+
end
|
129
|
+
|
130
|
+
def wd
|
131
|
+
@wd ||= Dir.getwd
|
126
132
|
end
|
127
133
|
end
|
data/lib/simple/cli/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.18
|
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: 2019-
|
12
|
+
date: 2019-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -113,7 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
116
|
+
rubyforge_project:
|
117
|
+
rubygems_version: 2.7.6
|
117
118
|
signing_key:
|
118
119
|
specification_version: 4
|
119
120
|
summary: Simple CLI builder for ruby
|