hb-runner 0.0.2 → 0.0.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.
@@ -0,0 +1,5 @@
1
+ .DS_STORE
2
+ ._*
3
+ output.txt
4
+ HandBrakeCLI
5
+ test.*
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 BM5k
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = 'hb-runner'
8
+ gem.summary = %Q{Proof of concept HandBrakeCLI automation}
9
+ gem.description = %Q{Batch encode files with the HandBrakeCLI.}
10
+ gem.email = 'me@bm5k.com'
11
+ gem.homepage = 'http://github.com/BM5k/hb-runner'
12
+ gem.authors = ['BM5k']
13
+ gem.add_development_dependency 'rspec', '>= 1.2.9'
14
+ gem.add_dependency 'open4', '>= 1.0.1'
15
+ end
16
+ Jeweler::GemcutterTasks.new
17
+ rescue LoadError
18
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19
+ end
20
+
21
+ require 'spec/rake/spectask'
22
+ Spec::Rake::SpecTask.new(:spec) do |spec|
23
+ spec.libs << 'lib' << 'spec'
24
+ spec.spec_files = FileList['spec/**/*_spec.rb']
25
+ end
26
+
27
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
28
+ spec.libs << 'lib' << 'spec'
29
+ spec.pattern = 'spec/**/*_spec.rb'
30
+ spec.rcov = true
31
+ end
32
+
33
+ task :spec => :check_dependencies
34
+
35
+ task :default => :spec
36
+
37
+ require 'rake/rdoctask'
38
+ Rake::RDocTask.new do |rdoc|
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
+
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = "hb-runner #{version}"
43
+ rdoc.rdoc_files.include('README*')
44
+ rdoc.rdoc_files.include('lib/**/*.rb')
45
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.3
@@ -0,0 +1,43 @@
1
+ #
2
+ # For the most part, the first level key names are arbitrary, they
3
+ # are to increase the human readability of the file, and are ignored
4
+ # when the file is processed
5
+ #
6
+ # The exception is that if you want to specify x264opts for the x264
7
+ # encoder, they must be nested under video (in this case, the video
8
+ # key IS required)
9
+ #
10
+
11
+ basics:
12
+ cpu: 1
13
+
14
+ video:
15
+ format: mp4
16
+ vb: 1500
17
+ maxHeight: 480
18
+ maxWidth: 640
19
+ denoise: medium
20
+ ipod-atom: true
21
+ markers: true
22
+ detelecine: true
23
+ two-pass: true
24
+ turbo: true
25
+
26
+ encoder: x264
27
+
28
+ x264opts:
29
+ me: umh
30
+ ref: 2
31
+ mixed_refs: 1
32
+ direct: auto
33
+ analyse: all
34
+ level: 30
35
+ cabac: 0
36
+ fast_pskip: 0
37
+
38
+ audio:
39
+ ab: 160
40
+ drc: 2.5
41
+ audio: "1,2"
42
+ arate: "48, 48"
43
+ mixdown: "dpl2, stereo"
@@ -0,0 +1,22 @@
1
+ #
2
+ # Input can be specified in the config file if all of the queue items
3
+ # use the same input.
4
+ #
5
+ # you can set longest: true or specify a title by number
6
+ # chapters are optional
7
+ # output file is required for each item in the queue.
8
+ #
9
+
10
+ - input: Disc 1.dvdmedia
11
+ title: 1
12
+ chapters: 1-4
13
+ output: One.m4v
14
+
15
+ - input: Disc 1.dvdmedia
16
+ title: 1
17
+ chapters: 5-8
18
+ output: Two.m4v
19
+
20
+ - input: Disc 1.dvdmedia
21
+ title: 1
22
+ output: Three.m4v
Binary file
@@ -0,0 +1,72 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{hb-runner}
8
+ s.version = "0.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["BM5k"]
12
+ s.date = %q{2010-01-21}
13
+ s.description = %q{Batch encode files with the HandBrakeCLI.}
14
+ s.email = %q{me@bm5k.com}
15
+ s.executables = ["hb-info", "hb-runner"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "bin/hb-info",
27
+ "bin/hb-runner",
28
+ "config/example_config.yml",
29
+ "config/example_queue.yml",
30
+ "hb-runner-0.0.2.gem",
31
+ "hb-runner.gemspec",
32
+ "lib/hb-runner.rb",
33
+ "lib/hb-runner/hb_config.rb",
34
+ "lib/hb-runner/hb_queue.rb",
35
+ "lib/hb-runner/yaml_config.rb",
36
+ "lib/parse.rb",
37
+ "pkg/hb-runner-0.0.3.gem",
38
+ "spec/hb_config_spec.rb",
39
+ "spec/hb_queue_spec.rb",
40
+ "spec/spec.opts",
41
+ "spec/spec_helper.rb",
42
+ "spec/yaml_config_spec.rb"
43
+ ]
44
+ s.homepage = %q{http://github.com/BM5k/hb-runner}
45
+ s.rdoc_options = ["--charset=UTF-8"]
46
+ s.require_paths = ["lib"]
47
+ s.rubygems_version = %q{1.3.5}
48
+ s.summary = %q{Proof of concept HandBrakeCLI automation}
49
+ s.test_files = [
50
+ "spec/hb_config_spec.rb",
51
+ "spec/hb_queue_spec.rb",
52
+ "spec/spec_helper.rb",
53
+ "spec/yaml_config_spec.rb"
54
+ ]
55
+
56
+ if s.respond_to? :specification_version then
57
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
58
+ s.specification_version = 3
59
+
60
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
61
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
62
+ s.add_runtime_dependency(%q<open4>, [">= 1.0.1"])
63
+ else
64
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
65
+ s.add_dependency(%q<open4>, [">= 1.0.1"])
66
+ end
67
+ else
68
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
69
+ s.add_dependency(%q<open4>, [">= 1.0.1"])
70
+ end
71
+ end
72
+
@@ -5,7 +5,7 @@ class HBQueue < YAMLConfig
5
5
  attr_accessor :queue
6
6
 
7
7
  def executable
8
- '/Volumes/Scratch/hb/HandBrakeCLI'
8
+ 'HandBrakeCLI'
9
9
  end
10
10
 
11
11
  def read
Binary file
@@ -0,0 +1,9 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe HBConfig do
4
+
5
+ it 'defines read'
6
+
7
+ it 'defines to_s'
8
+
9
+ end
@@ -0,0 +1,13 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe HBQueue do
4
+
5
+ it 'creates a queue' do
6
+ queue = HBQueue.new
7
+ end
8
+
9
+ it 'defines read'
10
+
11
+ it 'runs handbrake for each item in the queue'
12
+
13
+ end
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,5 @@
1
+ libdir = File.dirname(__FILE__) + '/../lib'
2
+
3
+ require libdir + '/hb/yaml_config'
4
+ require libdir + '/hb/hb_queue'
5
+ require libdir + '/hb/hb_config'
@@ -0,0 +1,15 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe YAMLConfig do
4
+
5
+ it 'takes a path and filename in the initializer'
6
+
7
+ it 'has a filename'
8
+
9
+ it 'returns the yaml data as a hash'
10
+
11
+ it 'raises an error if #read is not overridden'
12
+
13
+ it 'raises an error if #to_s is not overridden'
14
+
15
+ end
metadata CHANGED
@@ -1,41 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hb-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
- authors: []
7
-
6
+ authors:
7
+ - BM5k
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2010-01-21 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies: []
15
-
16
- description:
17
- email:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: open4
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.1
34
+ version:
35
+ description: Batch encode files with the HandBrakeCLI.
36
+ email: me@bm5k.com
18
37
  executables:
19
- - hb-runner
20
38
  - hb-info
39
+ - hb-runner
21
40
  extensions: []
22
41
 
23
42
  extra_rdoc_files:
43
+ - LICENSE
24
44
  - README.rdoc
25
45
  files:
46
+ - .gitignore
47
+ - LICENSE
48
+ - README.rdoc
49
+ - Rakefile
50
+ - VERSION
51
+ - bin/hb-info
52
+ - bin/hb-runner
53
+ - config/example_config.yml
54
+ - config/example_queue.yml
55
+ - hb-runner-0.0.2.gem
56
+ - hb-runner.gemspec
57
+ - lib/hb-runner.rb
26
58
  - lib/hb-runner/hb_config.rb
27
59
  - lib/hb-runner/hb_queue.rb
28
60
  - lib/hb-runner/yaml_config.rb
29
- - lib/hb-runner.rb
30
61
  - lib/parse.rb
31
- - README.rdoc
62
+ - pkg/hb-runner-0.0.3.gem
63
+ - spec/hb_config_spec.rb
64
+ - spec/hb_queue_spec.rb
65
+ - spec/spec.opts
66
+ - spec/spec_helper.rb
67
+ - spec/yaml_config_spec.rb
32
68
  has_rdoc: true
33
- homepage:
69
+ homepage: http://github.com/BM5k/hb-runner
34
70
  licenses: []
35
71
 
36
72
  post_install_message:
37
- rdoc_options: []
38
-
73
+ rdoc_options:
74
+ - --charset=UTF-8
39
75
  require_paths:
40
76
  - lib
41
77
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -56,6 +92,9 @@ rubyforge_project:
56
92
  rubygems_version: 1.3.5
57
93
  signing_key:
58
94
  specification_version: 3
59
- summary: HandbrakeCLI queue / config tool
60
- test_files: []
61
-
95
+ summary: Proof of concept HandBrakeCLI automation
96
+ test_files:
97
+ - spec/hb_config_spec.rb
98
+ - spec/hb_queue_spec.rb
99
+ - spec/spec_helper.rb
100
+ - spec/yaml_config_spec.rb