From 8a47c5b4c7425ea3f803116c2ce6a415b4e99cf6 Mon Sep 17 00:00:00 2001 From: deathowl Date: Fri, 29 Jan 2016 21:08:52 +0100 Subject: [PATCH 1/4] try new ffi version --- ceph-ruby.gemspec | 4 ++-- lib/ceph-ruby/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ceph-ruby.gemspec b/ceph-ruby.gemspec index 2a18f5c..ad9b9f9 100644 --- a/ceph-ruby.gemspec +++ b/ceph-ruby.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'ceph-ruby/version' Gem::Specification.new do |gem| - gem.name = "ceph-ruby" + gem.name = "ceph-ruby-ffi19" gem.version = CephRuby::VERSION gem.authors = ["Netskin GmbH", "Corin Langosch"] gem.email = ["info@netskin.com", "info@corinlangosch.com"] @@ -18,6 +18,6 @@ Gem::Specification.new do |gem| gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.add_dependency('ffi', '~> 1.1.5') + gem.add_dependency('ffi', '~> 1.9.10') gem.add_dependency('activesupport', '>= 3.0.0') end diff --git a/lib/ceph-ruby/version.rb b/lib/ceph-ruby/version.rb index 4c7d9ba..0d4a3d3 100644 --- a/lib/ceph-ruby/version.rb +++ b/lib/ceph-ruby/version.rb @@ -1,3 +1,3 @@ module CephRuby - VERSION = "1.1" + VERSION = "1.2" end From 7cda2d5fd1fb6d4d8ca00744821d5be7ebc09799 Mon Sep 17 00:00:00 2001 From: deathowl Date: Mon, 1 Feb 2016 03:40:57 +0100 Subject: [PATCH 2/4] interface of rados_write changed updating ruby wrapper --- lib/ceph-ruby/rados_object.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ceph-ruby/rados_object.rb b/lib/ceph-ruby/rados_object.rb index 405b067..8e9207b 100644 --- a/lib/ceph-ruby/rados_object.rb +++ b/lib/ceph-ruby/rados_object.rb @@ -23,7 +23,6 @@ def write(offset, data) log("write offset #{offset}, size #{size}") ret = Lib::Rados.rados_write(pool.handle, name, data, size, offset) raise SystemCallError.new("write of #{size} bytes to '#{name}' at #{offset} failed", -ret) if ret < 0 - raise Errno::EIO.new("wrote only #{ret} of #{size} bytes to '#{name}' at #{offset}") if ret < size end def read(offset, size) From 83a44f677e3500bbf7987e243b4ebb5b979223ca Mon Sep 17 00:00:00 2001 From: deathowl Date: Mon, 1 Feb 2016 03:54:24 +0100 Subject: [PATCH 3/4] update --- lib/ceph-ruby/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ceph-ruby/version.rb b/lib/ceph-ruby/version.rb index 0d4a3d3..793dbb6 100644 --- a/lib/ceph-ruby/version.rb +++ b/lib/ceph-ruby/version.rb @@ -1,3 +1,3 @@ module CephRuby - VERSION = "1.2" + VERSION = "1.3" end From c0207a895336c408c698b108537537044d8bbbd3 Mon Sep 17 00:00:00 2001 From: deathowl Date: Mon, 1 Feb 2016 12:54:59 +0100 Subject: [PATCH 4/4] get ready for pull request --- ceph-ruby.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-ruby.gemspec b/ceph-ruby.gemspec index ad9b9f9..58a960c 100644 --- a/ceph-ruby.gemspec +++ b/ceph-ruby.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'ceph-ruby/version' Gem::Specification.new do |gem| - gem.name = "ceph-ruby-ffi19" + gem.name = "ceph-ruby" gem.version = CephRuby::VERSION gem.authors = ["Netskin GmbH", "Corin Langosch"] gem.email = ["info@netskin.com", "info@corinlangosch.com"]