fusion 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fusion.rb +6 -1
  2. metadata +3 -3
@@ -58,7 +58,12 @@ module Fusion
58
58
  if (config[:input_directory])
59
59
  directory = File.join(@bundle_options[:project_path],config[:input_directory])
60
60
 
61
- file_names = Dir.open(directory).entries.sort.find_all {|filename| filename.end_with?(".js") }
61
+ if Dir.exists?(directory)
62
+ file_names = Dir.open(directory).entries.sort.find_all {|filename| filename.end_with?(".js") }
63
+ else
64
+ raise Exception.new("Fusion bundle error. No such directory (#{directory})")
65
+ end
66
+
62
67
 
63
68
  input_files += file_names.collect do |file_name|
64
69
  File.join(directory, file_name)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sean Jezewski
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-06 00:00:00 -07:00
17
+ date: 2011-07-11 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency