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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43f3f722bec1b3232c215e4e4778ad9aedec5102a62aa5bc68d4babb19e5b9dc
4
- data.tar.gz: 3b721f303eb08aa2ee4097da13cf8e13bae7ed81220a084710d1d7d085352d7a
3
+ metadata.gz: 878de3c5c0b5d23d08e6cfe44d511fd68b0e41493f44e056d2936e456f2d56cf
4
+ data.tar.gz: 69cabfc40adca2cc0a20a64dfe41f2feab5b892ad43dfe98ce84e3a60b21345d
5
5
  SHA512:
6
- metadata.gz: 033633a1f28f272ba3a9ef664694c6663c2485a1c7a46347673c775e4e18544fab3f2ed1cba602254e5b678a79ef3e1db772f7be46785001a1a738fa665fae41
7
- data.tar.gz: 1d9db70a801d71012dd44d435f21e48ede7d8d59f7a4de5be49079b4553e2476fc14cc0b2e13380588bce00d420a50f833382171832a0aa4ebc99be474137792
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 || caller[2]
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
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module CLI
3
- VERSION = "0.2.17"
3
+ VERSION = "0.2.18"
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.17
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-05-23 00:00:00.000000000 Z
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
- rubygems_version: 3.0.2
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