m3ugen 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/m3ugen +29 -0
- metadata +4 -5
data/bin/m3ugen
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
Dir["#{File.dirname(__FILE__)}/../lib/**/*.rb"].each {|f| require f}
|
3
|
+
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
|
8
|
+
optparse = OptionParser.new do|opts|
|
9
|
+
opts.banner = "Usage: m3ugen [options] "
|
10
|
+
|
11
|
+
options[:recursive] = false
|
12
|
+
opts.on( '-r', '--recursive', 'Generates one m3u file into every directory' ) do
|
13
|
+
options[:recursive] = true
|
14
|
+
end
|
15
|
+
|
16
|
+
opts.on( '-v', '--version', '' ) do
|
17
|
+
puts M3uGen::VERSION
|
18
|
+
exit
|
19
|
+
end
|
20
|
+
|
21
|
+
opts.on( '-h', '--help', 'Displays this screen' ) do
|
22
|
+
puts opts
|
23
|
+
exit
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
optparse.parse!
|
28
|
+
|
29
|
+
M3uGen::M3uGenerator.new.generate(options)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: m3ugen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- hbt
|
@@ -10,8 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-12-04 00:00:00
|
14
|
-
default_executable:
|
13
|
+
date: 2011-12-04 00:00:00 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: shoulda
|
@@ -84,6 +83,7 @@ files:
|
|
84
83
|
- LICENSE.txt
|
85
84
|
- README.rdoc
|
86
85
|
- Rakefile
|
86
|
+
- bin/m3ugen
|
87
87
|
- config/cucumber.yml
|
88
88
|
- features/generate_m3u.feature
|
89
89
|
- features/step_definitions/m3u_steps.rb
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- nbproject/project.xml
|
93
93
|
- notes.txt
|
94
94
|
- test_data/data.ser
|
95
|
-
has_rdoc: true
|
96
95
|
homepage: http://github.com/hbt/m3ugen
|
97
96
|
licenses:
|
98
97
|
- MIT
|
@@ -116,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
115
|
requirements: []
|
117
116
|
|
118
117
|
rubyforge_project:
|
119
|
-
rubygems_version: 1.
|
118
|
+
rubygems_version: 1.8.15
|
120
119
|
signing_key:
|
121
120
|
specification_version: 3
|
122
121
|
summary: Generates m3u file
|