datastax_rails 1.0.17.7 → 1.0.18.7
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/README.rdoc +0 -3
- data/config/solrconfig.xml +13 -155
- data/lib/datastax_rails/base.rb +6 -4
- data/lib/datastax_rails/cql/base.rb +1 -1
- data/lib/datastax_rails/persistence.rb +20 -14
- data/lib/datastax_rails/relation/search_methods.rb +24 -0
- data/lib/datastax_rails/relation/stats_methods.rb +69 -0
- data/lib/datastax_rails/relation.rb +29 -4
- data/lib/datastax_rails/tasks/column_family.rb +33 -0
- data/lib/datastax_rails/tasks/ds.rake +14 -2
- data/lib/datastax_rails/types/boolean_type.rb +1 -1
- data/lib/datastax_rails/types/float_type.rb +2 -2
- data/lib/datastax_rails/util/solr_repair.rb +14 -0
- data/lib/datastax_rails/version.rb +1 -1
- data/lib/datastax_rails.rb +5 -1
- data/lib/schema_migration.rb +4 -2
- data/spec/datastax_rails/types/float_type_spec.rb +35 -0
- data/spec/dummy/log/development.log +3 -0
- data/spec/dummy/log/test.log +525 -0
- data/spec/support/models.rb +5 -0
- metadata +8 -4
data/spec/support/models.rb
CHANGED
@@ -11,6 +11,7 @@ class Person < DatastaxRails::Base
|
|
11
11
|
string :nickname
|
12
12
|
timestamps
|
13
13
|
|
14
|
+
before_create :set_variable2
|
14
15
|
before_save :set_nickname
|
15
16
|
after_save :set_variable
|
16
17
|
|
@@ -23,6 +24,10 @@ class Person < DatastaxRails::Base
|
|
23
24
|
def set_variable
|
24
25
|
@after_save_ran = "yup"
|
25
26
|
end
|
27
|
+
|
28
|
+
def set_variable2
|
29
|
+
@before_create_ran = "yup"
|
30
|
+
end
|
26
31
|
end
|
27
32
|
|
28
33
|
class Car < DatastaxRails::Base
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datastax_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 18
|
10
10
|
- 7
|
11
|
-
version: 1.0.
|
11
|
+
version: 1.0.18.7
|
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: 2013-
|
19
|
+
date: 2013-05-13 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -179,10 +179,12 @@ files:
|
|
179
179
|
- lib/datastax_rails/base.rb
|
180
180
|
- lib/datastax_rails/grouped_collection.rb
|
181
181
|
- lib/datastax_rails/payload_model.rb
|
182
|
+
- lib/datastax_rails/relation/stats_methods.rb
|
182
183
|
- lib/datastax_rails/relation/search_methods.rb
|
183
184
|
- lib/datastax_rails/relation/finder_methods.rb
|
184
185
|
- lib/datastax_rails/relation/spawn_methods.rb
|
185
186
|
- lib/datastax_rails/relation/modification_methods.rb
|
187
|
+
- lib/datastax_rails/util/solr_repair.rb
|
186
188
|
- lib/datastax_rails/serialization.rb
|
187
189
|
- lib/datastax_rails/validations/uniqueness.rb
|
188
190
|
- lib/datastax_rails/timestamps.rb
|
@@ -209,6 +211,7 @@ files:
|
|
209
211
|
- spec/datastax_rails/cql/update_spec.rb
|
210
212
|
- spec/datastax_rails/cql/select_spec.rb
|
211
213
|
- spec/datastax_rails/types/integer_type_spec.rb
|
214
|
+
- spec/datastax_rails/types/float_type_spec.rb
|
212
215
|
- spec/datastax_rails/persistence_spec.rb
|
213
216
|
- spec/datastax_rails/associations/belongs_to_association_spec.rb
|
214
217
|
- spec/datastax_rails/associations/has_many_association_spec.rb
|
@@ -300,6 +303,7 @@ test_files:
|
|
300
303
|
- spec/datastax_rails/cql/update_spec.rb
|
301
304
|
- spec/datastax_rails/cql/select_spec.rb
|
302
305
|
- spec/datastax_rails/types/integer_type_spec.rb
|
306
|
+
- spec/datastax_rails/types/float_type_spec.rb
|
303
307
|
- spec/datastax_rails/persistence_spec.rb
|
304
308
|
- spec/datastax_rails/associations/belongs_to_association_spec.rb
|
305
309
|
- spec/datastax_rails/associations/has_many_association_spec.rb
|