roto 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/roto.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1ed585bb9a71a90f338f0fcfc619ce256ed156c
4
- data.tar.gz: 7b81afcba54013ea31c010d02550999547b47bbe
3
+ metadata.gz: 566e106fe89e2adbd1fb3fa4b0252eef572708cc
4
+ data.tar.gz: a9e929557b7a08c9b0baa5e85413557073a890c1
5
5
  SHA512:
6
- metadata.gz: 8ff79fac9dcc45b3d2b035b1c5cec201c3717aa73b6c4868e0f71b0c009056f404f203be0ea6475c33c342f60944f02179b5b78672cc632e0ab4476151e699e1
7
- data.tar.gz: 3a8116768df2b6a175804fc39b9001831bc4ed4bd5c300ec56fe4c2103cf7844850ab86853ecd3464d2760b78a32da7f868ae5ad53f68b6acb097b36b42e306c
6
+ metadata.gz: 51e15bef86bbc359acd664c6295cf399c7e996a256cdc2f489a06928d59ecefc8f413a6eb85d086bfc2fc49b21d2088935702b479f07f97c75b38bceff644806
7
+ data.tar.gz: 1b34131efb8d7bd26d1085928be109bc61ad99de52954877e151d53bd56d0513cdb3faac9b2c132bc3492938e1a0462c115ee417e4610ad892b9079fe33b6441
data/lib/roto.rb CHANGED
@@ -9,7 +9,7 @@ class Roto
9
9
  def initialize
10
10
  @files = []
11
11
  @types = ['.mp4', '.mov', '.jpg', '.png', '.mts']
12
- @rename_duplicatees = true
12
+ @rename_duplicates = true
13
13
  @errors = {}
14
14
  end
15
15
 
@@ -27,7 +27,7 @@ class Roto
27
27
  progressbar = ProgressBar.create(total: @files.count, format: '%w')
28
28
  @files.each do |file|
29
29
  begin
30
- if @rename_duplicatees
30
+ if @rename_duplicates
31
31
  ext = File.ext(file); name = File.basename(file, ext)
32
32
  FileUtils.mv("#{file}", "#{destination}/#{name}_#{Time.now.to_i}#{ext}")
33
33
  else
@@ -44,7 +44,7 @@ class Roto
44
44
  progressbar = ProgressBar.create(total: @files.count, format: '%w')
45
45
  @files.each do |file|
46
46
  begin
47
- if @rename_duplicatees
47
+ if @rename_duplicates
48
48
  ext = File.ext(file); name = File.basename(file, ext)
49
49
  FileUtils.cp("#{file}", "#{destination}/#{name}_#{Time.now.to_i}#{ext}")
50
50
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Cottage