hb-runner 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
- .DS_STORE
1
+ .DS*
2
2
  ._*
3
3
  output.txt
4
4
  HandBrakeCLI
5
5
  test.*
6
+ pkg/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/hb-runner.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hb-runner}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["BM5k"]
12
- s.date = %q{2010-01-21}
12
+ s.date = %q{2010-02-28}
13
13
  s.description = %q{Batch encode files with the HandBrakeCLI.}
14
14
  s.email = %q{me@bm5k.com}
15
15
  s.executables = ["hb-info", "hb-runner"]
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
27
27
  "bin/hb-runner",
28
28
  "config/example_config.yml",
29
29
  "config/example_queue.yml",
30
- "hb-runner-0.0.2.gem",
31
30
  "hb-runner.gemspec",
32
31
  "lib/hb-runner.rb",
33
32
  "lib/hb-runner/hb_config.rb",
@@ -44,7 +43,7 @@ Gem::Specification.new do |s|
44
43
  s.homepage = %q{http://github.com/BM5k/hb-runner}
45
44
  s.rdoc_options = ["--charset=UTF-8"]
46
45
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.3.5}
46
+ s.rubygems_version = %q{1.3.6}
48
47
  s.summary = %q{Proof of concept HandBrakeCLI automation}
49
48
  s.test_files = [
50
49
  "spec/hb_config_spec.rb",
@@ -15,19 +15,20 @@ class HBQueue < YAMLConfig
15
15
 
16
16
  def run
17
17
  queue.each do |q|
18
- q['input'] = File.expand_path(q['input']) if q['input']
19
- q['output'] = File.expand_path(q['output']) if q['output']
20
-
21
18
  markers = q.delete 'markers'
22
- marker_options = if markers and markers == true
23
- ' --markers'
24
- else
25
- " --markers=#{ markers }"
26
- end
27
19
 
28
- item_options = q.map { |k,v| "--#{k} #{v.inspect}" }.join(' ').gsub('true', '') + marker_options
20
+ q['input'] = File.expand_path q['input'] if q['input']
21
+ q['output'] = File.expand_path q['output'] if q['output']
22
+
23
+ item_options = q.map { |k,v| "--#{k} #{v.inspect}" }.join(' ').gsub('true', '')
24
+
25
+ if markers and markers == true
26
+ item_options += ' --markers'
27
+ elsif markers
28
+ item_options += " --markers=#{ markers }"
29
+ end
29
30
 
30
- execute "#{executable} #{item_options} #{@options}"
31
+ execute "#{ executable } #{ item_options } #{ @options }"
31
32
  end
32
33
  end
33
34
 
Binary file
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hb-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - BM5k
@@ -9,29 +14,37 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-21 00:00:00 -07:00
17
+ date: 2010-02-28 00:00:00 -07:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 9
23
31
  version: 1.2.9
24
- version:
32
+ type: :development
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: open4
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 0
44
+ - 1
33
45
  version: 1.0.1
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  description: Batch encode files with the HandBrakeCLI.
36
49
  email: me@bm5k.com
37
50
  executables:
@@ -52,7 +65,6 @@ files:
52
65
  - bin/hb-runner
53
66
  - config/example_config.yml
54
67
  - config/example_queue.yml
55
- - hb-runner-0.0.2.gem
56
68
  - hb-runner.gemspec
57
69
  - lib/hb-runner.rb
58
70
  - lib/hb-runner/hb_config.rb
@@ -78,18 +90,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
90
  requirements:
79
91
  - - ">="
80
92
  - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
81
95
  version: "0"
82
- version:
83
96
  required_rubygems_version: !ruby/object:Gem::Requirement
84
97
  requirements:
85
98
  - - ">="
86
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
87
102
  version: "0"
88
- version:
89
103
  requirements: []
90
104
 
91
105
  rubyforge_project:
92
- rubygems_version: 1.3.5
106
+ rubygems_version: 1.3.6
93
107
  signing_key:
94
108
  specification_version: 3
95
109
  summary: Proof of concept HandBrakeCLI automation
data/hb-runner-0.0.2.gem DELETED
Binary file