Skip to content

Commit

Permalink
Fix remaining references to FFI::Inliner
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Nov 7, 2012
1 parent 610b5ff commit a40a8cf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -6,5 +6,5 @@ task :default => :test
task :test do
Dir.chdir 'spec'

sh 'rspec inliner_spec.rb --color --format doc'
sh 'rspec inline_spec.rb --color --format doc'
end
8 changes: 4 additions & 4 deletions lib/ffi/inline/compilers/gcc.rb
Expand Up @@ -3,7 +3,7 @@
# Version 2, December 2004
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
#++
Expand Down Expand Up @@ -40,17 +40,17 @@ def digest
end

def input
File.join(Inliner.directory, "#{digest}.c").tap {|path|
File.join(Inline.directory, "#{digest}.c").tap {|path|
File.open(path, 'w') { |f| f.write(@code) } unless File.exists?(path)
}
end

def output
File.join(Inliner.directory, "#{digest}.#{Compiler::Extension}")
File.join(Inline.directory, "#{digest}.#{Compiler::Extension}")
end

def log
File.join(Inliner.directory, "#{digest}.log")
File.join(Inline.directory, "#{digest}.log")
end

def ldshared
Expand Down
8 changes: 4 additions & 4 deletions lib/ffi/inline/compilers/tcc.rb
Expand Up @@ -3,7 +3,7 @@
# Version 2, December 2004
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#
# 0. You just DO WHAT THE FUCK YOU WANT TO.
#++
Expand Down Expand Up @@ -40,17 +40,17 @@ def digest
end

def input
File.join(Inliner.directory, "#{digest}.c").tap {|path|
File.join(Inline.directory, "#{digest}.c").tap {|path|
File.open(path, 'w') { |f| f.write(@code) } unless File.exists?(path)
}
end

def output
File.join(Inliner.directory, "#{digest}.#{Compiler::Extension}")
File.join(Inline.directory, "#{digest}.#{Compiler::Extension}")
end

def log
File.join(Inliner.directory, "#{digest}.log")
File.join(Inline.directory, "#{digest}.log")
end

def ldshared
Expand Down
10 changes: 5 additions & 5 deletions spec/inliner_spec.rb → spec/inline_spec.rb
@@ -1,9 +1,9 @@
require 'ffi/inliner'
require 'ffi/inline'

describe FFI::Inliner do
describe FFI::Inline do
before do
module Foo
extend FFI::Inliner
extend FFI::Inline
end
end

Expand Down Expand Up @@ -193,7 +193,7 @@ class MyStruct < FFI::Struct
:c, :pointer
end
module Foo
extend FFI::Inliner
extend FFI::Inline
inline do |builder|
builder.struct MyStruct
builder.code.should == <<EOC
Expand All @@ -213,7 +213,7 @@ module Foo
it 'should return the current compiler' do
module Foo
inline do |builder|
builder.compiler.should == FFI::Inliner::Compiler[:gcc]
builder.compiler.should == FFI::Inline::Compiler[:gcc]
end
end
end
Expand Down

0 comments on commit a40a8cf

Please sign in to comment.