summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-08-17 17:23:49 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-08-19 00:25:26 -0400
commit597d0b832aef22fb895c98bcb3606f2748565129 (patch)
tree25f0e65a2f48fd8c9a15a0aca1cf133895537825 /spec/support
parenta12410d52bc3190c16965dfdfbfc703d0776b2ca (diff)
downloadbundler-597d0b832aef22fb895c98bcb3606f2748565129.tar.gz
Move cached extensions to cache/extensionsseg-globally-cache-built-extensions
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/builders.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb
index 93b173a5d0..e8208eacd9 100644
--- a/spec/support/builders.rb
+++ b/spec/support/builders.rb
@@ -566,7 +566,7 @@ module Spec
# exit 1 unless with_config("simple")
- extension_name = "very_simple_binary_c"
+ extension_name = "#{name}_c"
if extra_lib_dir = with_config("ext-lib")
# add extra libpath if --with-ext-lib is
# passed in as a build_arg
@@ -576,11 +576,11 @@ module Spec
end
create_makefile extension_name
RUBY
- write "ext/very_simple_binary.c", <<-C
+ write "ext/#{name}.c", <<-C
#include "ruby.h"
- void Init_very_simple_binary_c() {
- rb_define_module("VerySimpleBinaryInC");
+ void Init_#{name}_c() {
+ rb_define_module("#{Builders.constantize(name)}_IN_C");
}
C
end