autogg 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -2,7 +2,7 @@ spec = Gem::Specification.new do |s|
2
2
  s.name = 'autogg'
3
3
  s.summary = 'converts a folder of flacs to ogg, preserving directory structure'
4
4
  s.requirements << 'oggenc must be installed on the base system'
5
- s.version = "0.2.3"
5
+ s.version = "0.2.4"
6
6
  s.author = 'Evan Simmons'
7
7
  s.email = 'esims89@gmail.com'
8
8
  s.homepage = 'https://github.com/estk/autogg'
@@ -12,6 +12,8 @@ module OggEncode
12
12
  Find.prune if File.basename( path )[0] == ?.
13
13
  elsif Flac.exists?( path ) and not Ogg.exists?( getoutpath(path) )
14
14
  encfile( path )
15
+ else
16
+ @log << [ File.basename(path), path ]
15
17
  end
16
18
  end
17
19
  Process.waitall ; @ps_hash = {} ; @pbar.finish
@@ -55,7 +57,10 @@ module OggEncode
55
57
  @paths = options.paths
56
58
  @oggargs = options.oggargs
57
59
  @ps_hash = SizedPsHash.new( options.max_procs )
60
+ @log = Logger.new(@paths.ogg)
58
61
  oggencdir
62
+ ensure
63
+ @log.close
59
64
  end
60
65
  end
61
66
 
@@ -27,4 +27,19 @@ module OggEncode
27
27
  super( ps.pid, path )
28
28
  end
29
29
  end
30
+
31
+ class Logger
32
+
33
+ def initialize(location)
34
+ @log = File.new("#{location}log.txt", "w+")
35
+ end
36
+
37
+ def <<(pushed)
38
+ @log.puts "#{pushed[0]} -- #{pushed[1]}"
39
+ end
40
+
41
+ def close
42
+ @log.close
43
+ end
44
+ end
30
45
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: autogg
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.3
5
+ version: 0.2.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Evan Simmons
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-21 00:00:00 Z
13
+ date: 2011-06-24 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description:
@@ -25,10 +25,8 @@ files:
25
25
  - README.textile
26
26
  - autogg.gemspec
27
27
  - LICENCE
28
- - autogg-0.2.1.gem
29
- - autogg-0.2.0.gem
28
+ - autogg-0.2.3.gem
30
29
  - bin/autogg
31
- - autogg-0.2.2.gem
32
30
  - lib/autogg/progressbar.rb
33
31
  - lib/autogg/runner.rb
34
32
  - lib/autogg/parser.rb
Binary file
Binary file
Binary file