Skip to content

Commit

Permalink
Simplified Ruby tools extension checking
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed May 2, 2016
1 parent 8cb5f2f commit edb8b76
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 61 deletions.
9 changes: 1 addition & 8 deletions src/ruby/tools/bin/protoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@

require 'rbconfig'

require_relative '../os_check'

protoc_name = case OS.os_name
when 'windows'
'protoc.exe'
else
'protoc'
end
protoc_name = 'protoc' + RbConfig::CONFIG['EXEEXT']

protoc_path = File.join(File.dirname(__FILE__),
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name,
Expand Down
9 changes: 1 addition & 8 deletions src/ruby/tools/bin/protoc_grpc_ruby_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@

require 'rbconfig'

require_relative '../os_check'

plugin_name = 'grpc_ruby_plugin' + case OS.os_name
when 'windows'
'.exe'
else
''
end
plugin_name = 'grpc_ruby_plugin' + RbConfig::CONFIG['EXEEXT']

plugin_path = File.join(File.dirname(__FILE__),
RbConfig::CONFIG['host_cpu'] + '-' + OS.os_name,
Expand Down
45 changes: 0 additions & 45 deletions src/ruby/tools/os_check.rb

This file was deleted.

0 comments on commit edb8b76

Please sign in to comment.