Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates for adapter 0.7

  • Loading branch information...
commit 9bdd9d2045c766b5518f917a6a25f40a076138df 1 parent 4a7031f
@jnunemaker authored
View
4 Changelog.md
@@ -1,5 +1,9 @@
# Changelog
+## 0.3.0
+
+* Updates for adapter 0.7.0.
+
## 0.2.0
* Added adapter options: :read, :write, :delete. These can be used to tune consistency and all other operation arguments.
View
2  adapter-cassanity.gemspec
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
- gem.add_dependency 'adapter', '~> 0.6.3'
+ gem.add_dependency 'adapter', '~> 0.7.0'
gem.add_dependency 'cassanity', '~> 0.2.1'
end
View
6 lib/adapter/cassanity.rb
@@ -15,12 +15,12 @@ def read(key, options = nil)
arguments = update_arguments(operation_options, adapter_options, options)
rows = @client.select(arguments)
- rows.empty? ? nil : decode(rows.first)
+ rows.empty? ? nil : rows.first
end
# Public
def write(key, attributes, options = nil)
- operation_options = {set: encode(attributes), where: where(key)}
+ operation_options = {set: attributes, where: where(key)}
adapter_options = @options[:write]
arguments = update_arguments(operation_options, adapter_options, options)
@@ -37,7 +37,7 @@ def delete(key, options = nil)
end
# Public
- def clear
+ def clear(options = nil)
@client.truncate
end
Please sign in to comment.
Something went wrong with that request. Please try again.