Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubinius Specs #418

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
appraise 'rails3' do
gem 'rails', '>= 3', '< 4'

gem 'rubysl', '~> 2.0', :platform => :rbx
gem 'rubinius-developer_tools', :platform => :rbx

end

appraise 'rails4' do
gem 'rails', '>= 4.0.0.beta', '< 5'

gem 'rubysl', '~> 2.0', :platform => :rbx
gem 'rubinius-developer_tools', :platform => :rbx
end
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ gem 'kgio', :platform => :mri
gem 'appraisal'
gem 'connection_pool'

gem 'rubysl', '~> 2.0', :platform => :rbx
gem 'rubinius-developer_tools', :platform => :rbx

group :test do
gem 'simplecov'
end
3 changes: 3 additions & 0 deletions gemfiles/rails3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ gem "kgio", :platform=>:mri
gem "appraisal"
gem "rails", ">= 3", "< 4"

gem 'rubysl', '~> 2.0', :platform => :rbx
gem 'rubinius-developer_tools', :platform => :rbx

gemspec :path=>"../"
3 changes: 3 additions & 0 deletions gemfiles/rails4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ gem "kgio", :platform=>:mri
gem "appraisal"
gem "rails", ">= 4.0.0.beta", "< 5"

gem 'rubysl', '~> 2.0', :platform => :rbx
gem 'rubinius-developer_tools', :platform => :rbx

gemspec :path=>"../"
4 changes: 4 additions & 0 deletions lib/dalli/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def request(op, *args)
raise Dalli::NetworkError, "#{hostname}:#{port} is down: #{@error} #{@msg}. If you are sure it is running, ensure memcached version is > 1.4." unless alive?
begin
send(op, *args)
rescue Timeout::Error
raise
rescue Dalli::NetworkError
raise
rescue Dalli::MarshalError => ex
Expand Down Expand Up @@ -391,6 +393,8 @@ def serialize(key, value, options=nil)
marshalled = true
begin
self.serializer.dump(value)
rescue Timeout::Error
raise
rescue => ex
# Marshalling can throw several different types of generic Ruby exceptions.
# Convert to a specific exception so we can special case it higher up the stack.
Expand Down
3 changes: 1 addition & 2 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
$TESTING = true
require 'rubygems'
# require 'simplecov'
# SimpleCov.start
require 'minitest/pride'
require 'minitest/autorun'
# require 'minitest/pride'
require 'mocha/setup'
require 'memcached_mock'

Expand Down