datastax_rails 1.0.16.3 → 1.0.17.1

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/spec/spec_helper.rb CHANGED
@@ -18,7 +18,7 @@ RSpec.configure do |config|
18
18
 
19
19
  config.after(:each) do
20
20
  DatastaxRails::Base.recorded_classes.keys.each do |klass|
21
- DatastaxRails::Cql::Truncate.new(klass).execute
21
+ DatastaxRails::Base.connection.connection.truncate(klass.column_family.to_s)
22
22
  end
23
23
  end
24
24
 
@@ -33,10 +33,14 @@ class Car < DatastaxRails::Base
33
33
  key :uuid
34
34
  string :name
35
35
  string :person_id
36
- binary :picture
36
+ string :car_payload_id
37
37
  timestamps
38
38
  end
39
39
 
40
+ class CarPayload < DatastaxRails::PayloadModel
41
+ self.column_family = "car_payloads"
42
+ end
43
+
40
44
  class Job < DatastaxRails::Base
41
45
  self.column_family = "jobs"
42
46
 
@@ -70,4 +74,4 @@ class Hobby < DatastaxRails::Base
70
74
  string :name
71
75
  float :complexity
72
76
  timestamps
73
- end
77
+ end
metadata CHANGED
@@ -6,9 +6,9 @@ version: !ruby/object:Gem::Version
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 16
10
- - 3
11
- version: 1.0.16.3
9
+ - 17
10
+ - 1
11
+ version: 1.0.17.1
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jason M. Kusar
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-10-22 00:00:00 Z
19
+ date: 2012-11-12 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails
@@ -122,6 +122,7 @@ files:
122
122
  - lib/datastax_rails/mocking.rb
123
123
  - lib/datastax_rails/identity.rb
124
124
  - lib/datastax_rails/cql/use_keyspace.rb
125
+ - lib/datastax_rails/cql/alter_column_family.rb
125
126
  - lib/datastax_rails/cql/column_family.rb
126
127
  - lib/datastax_rails/cql/create_column_family.rb
127
128
  - lib/datastax_rails/cql/consistency.rb
@@ -177,6 +178,7 @@ files:
177
178
  - lib/datastax_rails/errors.rb
178
179
  - lib/datastax_rails/base.rb
179
180
  - lib/datastax_rails/grouped_collection.rb
181
+ - lib/datastax_rails/payload_model.rb
180
182
  - lib/datastax_rails/relation/search_methods.rb
181
183
  - lib/datastax_rails/relation/finder_methods.rb
182
184
  - lib/datastax_rails/relation/spawn_methods.rb