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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/learn_duplicate +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4acf7ecc2189dbae649d6fff2ef038252fd117d1c699cc2990b803b7a27b9ac
4
- data.tar.gz: b1d1b110111b4dab13e98d9bfb1f61bba0770bbe89bc1d9e0665f85f042638d4
3
+ metadata.gz: 266556086de7e42a49f18dfbc79d114dc8eebd13c654ce8c47b98bf3c3ad3114
4
+ data.tar.gz: 0501e81825b21b26081cf4a0832105709aef7fd9792ee980b3ee42b3cf6a06e4
5
5
  SHA512:
6
- metadata.gz: 3774b275fa0a9f8bd34b00ce63bd5b77f4f79396a1334496d0087404a557b06f2ccc0246f83ba87475bdae59272cc170730ca2a2bcaafb67538c589e216a3273
7
- data.tar.gz: 3d6d86ee2c4638fe7f4fbb8f43b752791c02a19e22e9df24817e010f9dce4243b08be912533118c7349eacec150d9f086a73a78ac5022df04172490fc2f3df6b
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn_duplicate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - flatironschool