sink3 0.0.7 → 0.0.8

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: c38fc1886885c4b540758bfe360fbb3b104e42a58cf09089665e070aa748c116
4
- data.tar.gz: df4199bae369d7186ba4337d0789e33a332c6ac925dcd3ae2d85ae9c4aa5df3c
3
+ metadata.gz: bf1b237eda4a1a43f23fbba25471c652201aa05392bc1e292812585f7a3fc5e2
4
+ data.tar.gz: e689696ad585165583c2c56a17d653071bec6f6b363b13db0d006f8908cd2e8f
5
5
  SHA512:
6
- metadata.gz: 61e0348ecb5cf342f3de7e69ff208fa6dc82f65a62572180cd157bc5a7cf910b9b176b66034e44815c0bc0574e9510484f9bd3a08c070d4fd3fb8f1b9d76c19f
7
- data.tar.gz: 435085e039823346909ae1494acc924024a525d4a2a99c3c02f3bb1bd198e75fb90e8128a6a1da4343983eed571adc9f533559623fb2b847037ab9acbcf34f8d
6
+ metadata.gz: cdf2ddf9eb3b8a056d2acf22481a64ef0e045579ad705ea219c4102b62f9a93a3b30f229776e85f662d715657b284f9361f1d7db4fd2ac8938247e9b0fd9a04a
7
+ data.tar.gz: 5052a3ad6ed84f10ba6a241cf506d0a7daa04ffc0a166710b2ea6db774becdc557d2ef4a8dd98c80512387499394defd18c1d0f906130bf46d23b5fc0767c240
data/lib/sink3/main.rb CHANGED
@@ -29,18 +29,13 @@ module Sink3
29
29
  prefix = nil
30
30
  [paths].flatten.each do |path|
31
31
  path = Pathname.new(path)
32
-
33
32
  raise "specified path does not exist" unless path.exist?
34
- unless Sink3.config.skip_full_path
35
- if (path.file?)
36
- prefix = path.realdirpath.parent
37
- puts "prefix is #{prefix}" if Sink3.config.verbose
38
- else
39
- prefix = path.realdirpath.parent.parent
40
- puts "prefix is not set" if Sink3.config.verbose
41
- end
42
- end
43
-
33
+
34
+ if path.relative? || Sink3.config.skip_full_path
35
+ prefix = nil
36
+ else
37
+ path = path.realdirpath
38
+ end
44
39
  Sink3::PathCrawler.new(path, prefix).start
45
40
  end
46
41
  end
data/lib/sink3/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sink3
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sink3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabrizio Regini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1