Permalink
Browse files

fix ruby 1.8.7 compat

  • Loading branch information...
1 parent a6f1731 commit 092faa12006e307f4b6ef3cb1eff45bfc4f072b8 @codekitchen codekitchen committed Oct 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/ruby-protoc
View
@@ -49,7 +49,7 @@ descriptor_set.file.each do |file_descriptor|
if ruby_out
path = File.join(ruby_out,File.dirname(fullpath),File.basename(file_descriptor.name, ".proto") + ".pb.rb")
- FileUtils.mkpath(File.dirname(path)) unless Dir.exists?(File.dirname(path))
+ FileUtils.mkpath(File.dirname(path)) unless File.directory?(File.dirname(path))
File.open(path, "wb") do |file|
dumper = FileDescriptorToRuby.new(file_descriptor)
dumper.write(file)

0 comments on commit 092faa1

Please sign in to comment.