Skip to content

Instantly share code, notes, and snippets.

Dirkjan Bussink dbussink

Block or report user

Report or block dbussink

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am dbussink on github.
  • I am dbussink (https://keybase.io/dbussink) on keybase.
  • I have a public key whose fingerprint is 87E1 5CE5 1C79 6545 3596 A397 F157 3D8E 8357 53FD

To claim this, I am signing this object:

View gist:314884
diff --git a/lib/rbconfig.rb b/lib/rbconfig.rb
index 98456ce..ed99d89 100644
--- a/lib/rbconfig.rb
+++ b/lib/rbconfig.rb
@@ -107,7 +107,7 @@ module Config
CONFIG["MANTYPE"] = "doc"
CONFIG["MAKEFILES"] = "Makefile"
# compile tools flags
- CONFIG["CFLAGS"] = "-ggdb3 -O2"
+ CONFIG["CFLAGS"] = "-ggdb3 -O2 -fPIC"
View gist:314389
diff --git a/lib/ext/openssl/ossl_x509name.c b/lib/ext/openssl/ossl_x509name.c
index ae50dc0..9348421 100644
--- a/lib/ext/openssl/ossl_x509name.c
+++ b/lib/ext/openssl/ossl_x509name.c
@@ -141,7 +141,7 @@ ossl_x509name_initialize(int argc, VALUE *argv, VALUE self)
unsigned char *p;
VALUE str = ossl_to_der_if_possible(arg);
StringValue(str);
- p = RSTRING_PTR(str);
+ p = (unsigned char*) RSTRING_PTR(str);
View gist:314387
diff --git a/lib/rbconfig.rb b/lib/rbconfig.rb
index 98456ce..ed99d89 100644
--- a/lib/rbconfig.rb
+++ b/lib/rbconfig.rb
@@ -107,7 +107,7 @@ module Config
CONFIG["MANTYPE"] = "doc"
CONFIG["MAKEFILES"] = "Makefile"
# compile tools flags
- CONFIG["CFLAGS"] = "-ggdb3 -O2"
+ CONFIG["CFLAGS"] = "-ggdb3 -O2 -fPIC"
View gist:265648
>> h = Hash.new
=> {}
>> i = Hash.new
=> {}
>> {i => 1, h => 2}
=> {{}=>2}
>>
>> test = Struct.new("Test")
View gist:265589
dirkjan@nvc1372 ~/Documents/projects/do/data_objects master $ ../../rubinius/bin/rbx -S rake spec
(in /Users/dirkjan/Documents/projects/do/data_objects)
/Users/dirkjan/Documents/projects/rubinius/bin/rbx -I"lib:lib:spec" "/Users/dirkjan/Documents/projects/rubinius/gems/rubinius/preinstalled/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "spec/command_spec.rb" "spec/connection_spec.rb" "spec/pooling_spec.rb" "spec/reader_spec.rb" "spec/result_spec.rb" "spec/transaction_spec.rb" "spec/uri_spec.rb"
An exception occurred running /Users/dirkjan/Documents/projects/rubinius/gems/rubinius/preinstalled/gems/rake-0.8.7/lib/rake/rake_test_loader.rb
Tried to use object of type Object (43) as type String (48) (TypeError)
Backtrace:
main.__script__ at lib/data_objects/uri.rb:1
Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
Requirer::Utils.single_load at kernel/delta/requirer.rb:251
View gist:223539
#!/usr/bin/env ruby -Ku
# encoding: utf-8
require 'rubygems'
require 'dm-core'
require 'pp'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup(:default, 'sqlite3:memory:')
View gist:205323
diff --git a/kernel/common/compiled_method.rb b/kernel/common/compiled_method.rb
index 4828aeb..11b3ca1 100644
--- a/kernel/common/compiled_method.rb
+++ b/kernel/common/compiled_method.rb
@@ -274,7 +274,7 @@ module Rubinius
i += 2
end
- return -1
+ -1
View gist:205273
dirkjan@nvc1372 ~/Documents/projects/rubinius master $ rake
(in /Users/dirkjan/Documents/projects/rubinius)
/Users/dirkjan/Documents/projects/rubinius/rakelib/kernel.rake:83: warning: shadowing outer local variable - rb
unknown: warning: instance variable @suffix_pattern not initialized
unknown: warning: global variable `$TESTING' not initialized
unknown: warning: instance variable @opcode_ids not initialized
unknown: warning: instance variable @opcodes not initialized
unknown: warning: instance variable @opcodes_map not initialized
unknown: warning: nested repeat operator + and ? was replaced with '*': /__(?:(?:\w|_)+)?block__/
unrecognized defined? arg: 47 (NODE_YIELD)Abort trap
You can’t perform that action at this time.