diff -Naur hivex-1.3.2-r2.orig/work/hivex-1.3.2/ruby/ext/hivex/_hivex.c hivex-1.3.2-r2/work/hivex-1.3.2/ruby/ext/hivex/_hivex.c --- hivex-1.3.2-r2.orig/work/hivex-1.3.2/ruby/ext/hivex/_hivex.c 2013-10-25 09:27:51.000000000 +0200 +++ hivex-1.3.2-r2/work/hivex-1.3.2/ruby/ext/hivex/_hivex.c 2013-10-25 09:34:10.000000000 +0200 @@ -61,8 +61,8 @@ val->key = StringValueCStr (key); val->t = NUM2ULL (type); - val->len = RSTRING (value)->len; - val->value = RSTRING (value)->ptr; + val->len = RSTRING_LEN (value); + val->value = RSTRING_PTR (value); } static hive_set_value * diff -Naur hivex-1.3.2-r2.orig/work/hivex-1.3.2/ruby/Rakefile hivex-1.3.2-r2/work/hivex-1.3.2/ruby/Rakefile --- hivex-1.3.2-r2.orig/work/hivex-1.3.2/ruby/Rakefile 2013-10-25 09:27:51.000000000 +0200 +++ hivex-1.3.2-r2/work/hivex-1.3.2/ruby/Rakefile 2013-10-25 09:35:16.000000000 +0200 @@ -17,9 +17,9 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. require 'rake/clean' -require 'rake/rdoctask' +require 'rdoc/task' require 'rake/testtask' -require 'rake/gempackagetask' +require 'rake/packagetask' PKG_NAME='hivex' PKG_VERSION='1.3.2' @@ -66,13 +66,13 @@ "ext/**/*.[ch]" ] -Rake::RDocTask.new do |rd| +RDoc::Task.new do |rd| rd.main = "README.rdoc" rd.rdoc_dir = "doc/site/api" rd.rdoc_files.include(RDOC_FILES) end -Rake::RDocTask.new(:ri) do |rd| +RDoc::Task.new(:ri) do |rd| rd.main = "README.rdoc" rd.rdoc_dir = "doc/ri" rd.options << "--ri-system" @@ -108,7 +108,7 @@ EOF end -Rake::GemPackageTask.new(SPEC) do |pkg| +Rake::PackageTask.new(SPEC, PKG_VERSION) do |pkg| pkg.need_tar = true pkg.need_zip = true end