roto 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/roto +4 -0
  3. data/lib/roto.rb +1 -1
  4. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c7f48dfee085457e4f251fe74482dbeb024de26
4
- data.tar.gz: 10dbe1510f7915bad3c5556a17cb8044542f6770
3
+ metadata.gz: 0e6bad1ca53e74db4b643f3249fa053935e58632
4
+ data.tar.gz: e0f9967f9b5ae05cbc4fe6737162dbbcd68cdc53
5
5
  SHA512:
6
- metadata.gz: 726cd06b17c8a377f4833459f1596be0d037c40e7e17b82c10ba382b617eb13e958e333a1542c91918c68097ae0edc63878fedd017f42a5bc2b76f9d0ddbceec
7
- data.tar.gz: ba7abc6469a6ca9e59e294064840b69cd4939841a6305ff887f06bcd109a831a33e2f03c392ccd927f11b1002ee01e75639caa2f361e792f2b2814e3b5eb80a5
6
+ metadata.gz: bdc646699ede7366d9b0f81802945f306437b736de84ff7fa5a9abc0d242d902610e22107b325b09922b9c333392149d4f26df0a862981114ffae677274914af
7
+ data.tar.gz: c99bbd84cf38da2a32cb68e32dc4b53d8f0587b9acbd068fd6fd9367d1122dd7f6d4ec521d0650bef6c38783320673150812ea018d53b7e9ddb985c9ffae2c6f
data/bin/roto ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'roto'
4
+ puts Roto.new.find_files(ARGV[0]).copy_files(ARGV[1])
data/lib/roto.rb CHANGED
@@ -13,7 +13,6 @@ class Roto
13
13
  Find.find(path).each do |file|
14
14
  if @types.include?(File.extname(file).downcase)
15
15
  @files << file
16
- puts "on file #{@files.index(file) + 1} of #{files.count}"
17
16
  end
18
17
  end
19
18
  end
@@ -27,6 +26,7 @@ class Roto
27
26
  def copy_files(destination)
28
27
  @files.each do |file|
29
28
  FileUtils.cp("#{file}", "#{destination}")
29
+ puts "on file #{@files.index(file) + 1} of #{files.count}"
30
30
  end
31
31
  end
32
32
  end
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.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Cottage
@@ -12,10 +12,12 @@ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem to find and move photos on your computer
14
14
  email: andcott@Gmail.com
15
- executables: []
15
+ executables:
16
+ - roto
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/roto
19
21
  - lib/roto.rb
20
22
  homepage: https://github.com/andrewcottage/roto
21
23
  licenses: