nerdEd-visage 0.2.4 → 0.2.5

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.
Files changed (4) hide show
  1. data/VERSION.yml +1 -1
  2. data/Visage.gemspec +3 -4
  3. metadata +2 -3
  4. data/visage.rb +0 -59
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 4
2
+ :patch: 5
3
3
  :major: 0
4
4
  :minor: 2
data/Visage.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{visage}
5
- s.version = "0.2.4"
5
+ s.version = "0.2.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Ed Schmalzle", "Aaron Kuehler"]
9
- s.date = %q{2009-06-14}
9
+ s.date = %q{2009-06-15}
10
10
  s.default_executable = %q{visage}
11
11
  s.email = %q{Jonas714@gmail.com}
12
12
  s.executables = ["visage"]
@@ -22,8 +22,7 @@ Gem::Specification.new do |s|
22
22
  "bin/visage",
23
23
  "lib/visage.rb",
24
24
  "lib/visage/converter.rb",
25
- "lib/visage/iso.rb",
26
- "visage.rb"
25
+ "lib/visage/iso.rb"
27
26
  ]
28
27
  s.has_rdoc = true
29
28
  s.homepage = %q{http://github.com/nerdEd/visage}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nerdEd-visage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Schmalzle
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-06-14 00:00:00 -07:00
13
+ date: 2009-06-15 00:00:00 -07:00
14
14
  default_executable: visage
15
15
  dependencies: []
16
16
 
@@ -32,7 +32,6 @@ files:
32
32
  - lib/visage.rb
33
33
  - lib/visage/converter.rb
34
34
  - lib/visage/iso.rb
35
- - visage.rb
36
35
  has_rdoc: true
37
36
  homepage: http://github.com/nerdEd/visage
38
37
  post_install_message:
data/visage.rb DELETED
@@ -1,59 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'rubygems'
3
- require 'optiflag'
4
-
5
- #####################################################
6
- # Setup Command Line Options #
7
- #####################################################
8
- module VisageOptions extend OptiFlagSet
9
- optional_flag "source" do
10
- alternate_forms "s", "S"
11
- end
12
- optional_switch_flag "usage" do
13
- alternate_forms "u", "U"
14
- end
15
- and_process!
16
- end
17
-
18
- #####################################################
19
- # Define Visage Helper Class #
20
- #####################################################
21
- class Visage
22
- def Visage.display_help()
23
- puts "Visage is a simple utility to convert CD/DVD master images created from OS X's disk utility (.cdr) into .iso format.\n\n"
24
- puts "usage: ./visage.rb | Converts all .cdr images within the current directory to iso format."
25
- puts "usage: ./visage.rb [-s|-S|-source-dir] [path_to_dir] | Converts all .cdr images within the input source directory to iso format."
26
- end
27
- def Visage.cdr_to_iso( file )
28
- if( file.include? '.cdr' ) then
29
- file_name = file.chomp '.cdr'
30
- puts file + "--> " + file_name
31
- result = `hdiutil makehybrid -udf -udf-volume-name #{file_name} -o #{file_name} #{file}`
32
- end
33
- end
34
- def Visage.convert_all_in_dir( dir=Dir.open( Dir.pwd ) )
35
- puts "Converting in Directory: #{dir.path}"
36
- dir.entries.each do |file|
37
- cdr_to_iso( file )
38
- end
39
- end
40
- end
41
-
42
- #####################################################
43
- # Start Main Script Body #
44
- #####################################################
45
- if( ARGV.empty? )
46
- Visage.convert_all_in_dir()
47
- elsif( ARGV.flags.usage? )
48
- Visage.display_help()
49
- elsif( ARGV.flags.source? )
50
- start_dir = Dir.pwd
51
- target_dir = Dir.new( ARGV.flags.source )
52
- Dir.chdir( target_dir.path )
53
- Visage.convert_all_in_dir( target_dir )
54
- Dir.chdir( start_dir )
55
- end
56
-
57
-
58
-
59
-