Skip to content

Commit

Permalink
fix ruby 1.8.7 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Oct 1, 2011
1 parent a6f1731 commit 092faa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ruby-protoc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ descriptor_set.file.each do |file_descriptor|


if ruby_out if ruby_out
path = File.join(ruby_out,File.dirname(fullpath),File.basename(file_descriptor.name, ".proto") + ".pb.rb") 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| File.open(path, "wb") do |file|
dumper = FileDescriptorToRuby.new(file_descriptor) dumper = FileDescriptorToRuby.new(file_descriptor)
dumper.write(file) dumper.write(file)
Expand Down

0 comments on commit 092faa1

Please sign in to comment.