adapter-cassanity 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0
4
+
5
+ * Updates for adapter 0.7.0.
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  * Added adapter options: :read, :write, :delete. These can be used to tune consistency and all other operation arguments.
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'adapter', '~> 0.6.3'
20
+ gem.add_dependency 'adapter', '~> 0.7.0'
21
21
  gem.add_dependency 'cassanity', '~> 0.2.1'
22
22
  end
@@ -15,12 +15,12 @@ module Adapter
15
15
  arguments = update_arguments(operation_options, adapter_options, options)
16
16
 
17
17
  rows = @client.select(arguments)
18
- rows.empty? ? nil : decode(rows.first)
18
+ rows.empty? ? nil : rows.first
19
19
  end
20
20
 
21
21
  # Public
22
22
  def write(key, attributes, options = nil)
23
- operation_options = {set: encode(attributes), where: where(key)}
23
+ operation_options = {set: attributes, where: where(key)}
24
24
  adapter_options = @options[:write]
25
25
  arguments = update_arguments(operation_options, adapter_options, options)
26
26
 
@@ -37,7 +37,7 @@ module Adapter
37
37
  end
38
38
 
39
39
  # Public
40
- def clear
40
+ def clear(options = nil)
41
41
  @client.truncate
42
42
  end
43
43
 
@@ -1,5 +1,5 @@
1
1
  module Adapter
2
2
  module Cassanity
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adapter-cassanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.3
21
+ version: 0.7.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.6.3
29
+ version: 0.7.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: cassanity
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  segments:
85
85
  - 0
86
- hash: 135504894243960004
86
+ hash: -116999635616245635
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  none: false
89
89
  requirements:
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: 135504894243960004
95
+ hash: -116999635616245635
96
96
  requirements: []
97
97
  rubyforge_project:
98
98
  rubygems_version: 1.8.23