cequel 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ module Cequel
9
9
 
10
10
  attr_accessor :key, :default_scope
11
11
  attr_reader :columns, :associations, :index_preference
12
+ attr_writer :column_family_name
12
13
 
13
14
  def initialize(clazz)
14
15
  @clazz = clazz
@@ -37,6 +37,10 @@ module Cequel
37
37
  @_cequel.column_family_name
38
38
  end
39
39
 
40
+ def column_family_name=(name)
41
+ @_cequel.column_family_name = name
42
+ end
43
+
40
44
  def column_family
41
45
  keyspace[column_family_name]
42
46
  end
@@ -56,7 +60,7 @@ module Cequel
56
60
  end
57
61
 
58
62
  private
59
-
63
+
60
64
  def find_one(key)
61
65
  all.where!(key_alias => key).first.tap do |result|
62
66
  if result.nil?
@@ -1,3 +1,3 @@
1
1
  module Cequel
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-30 00:00:00.000000000 Z
14
+ date: 2012-11-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport