Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix ruby 1.8.7 compat

  • Loading branch information...
commit 092faa12006e307f4b6ef3cb1eff45bfc4f072b8 1 parent a6f1731
@codekitchen codekitchen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/ruby-protoc
View
2  bin/ruby-protoc
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.