Skip to content

Commit

Permalink
Fix load paths for FFI::Generator::Task
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed May 17, 2019
1 parent 423082a commit 17e13e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
3 changes: 3 additions & 0 deletions lib/ffi/tools/generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'ffi/tools/struct_generator'
require 'ffi/tools/const_generator'

module FFI

# @private
Expand Down
13 changes: 1 addition & 12 deletions lib/ffi/tools/generator_task.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
begin
require 'ffi/struct_generator'
require 'ffi/const_generator'
require 'ffi/generator'
rescue LoadError
# from Rakefile
require 'lib/ffi/struct_generator'
require 'lib/ffi/const_generator'
require 'lib/ffi/generator'
end

require 'ffi/tools/generator'
require 'rake'
require 'rake/tasklib'
require 'tempfile'

##
# Rake task that calculates C structs for FFI::Struct.
Expand Down

0 comments on commit 17e13e2

Please sign in to comment.