learn_duplicate 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/learn_duplicate +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 266556086de7e42a49f18dfbc79d114dc8eebd13c654ce8c47b98bf3c3ad3114
|
4
|
+
data.tar.gz: 0501e81825b21b26081cf4a0832105709aef7fd9792ee980b3ee42b3cf6a06e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c73c0a5fda1bd889cb80bc7d5c3bfbfd1a2eb0791e1f3e7cd7039b41b0339cfd6c2cd3715ede1f81fcbf3d3671eef1afdc42e94c0963f3554c437e7b356fd352
|
7
|
+
data.tar.gz: fa202db6205cc4e5c52d1183baca77ae7a46e05f12722c8fb39552355566d8173d8edc3250cd37ee04aa56d4ca3ded59c02076af8470f002d122a950b588465a
|
data/bin/learn_duplicate
CHANGED
@@ -77,7 +77,7 @@ if options[:ni]
|
|
77
77
|
raise ArgumentError, "If you have trimprefix you want newprefix as well"
|
78
78
|
end
|
79
79
|
|
80
|
-
trimmed_base = source_name.slice(options[:trimprefix].length
|
80
|
+
trimmed_base = source_name.slice(options[:trimprefix].length..source_name.length)
|
81
81
|
destination = String(options[:newprefix]) + trimmed_base
|
82
82
|
|
83
83
|
puts "Trimmed base: #{trimmed_base}" if VERBOSE_FLAG
|