datastax_rails 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +62 -0
- data/Rakefile +34 -0
- data/config/schema.xml +266 -0
- data/config/schema.xml.erb +70 -0
- data/config/solrconfig.xml +1564 -0
- data/config/stopwords.txt +58 -0
- data/lib/datastax_rails/associations/association.rb +224 -0
- data/lib/datastax_rails/associations/association_scope.rb +25 -0
- data/lib/datastax_rails/associations/belongs_to_association.rb +64 -0
- data/lib/datastax_rails/associations/builder/association.rb +56 -0
- data/lib/datastax_rails/associations/builder/belongs_to.rb +30 -0
- data/lib/datastax_rails/associations/builder/collection_association.rb +48 -0
- data/lib/datastax_rails/associations/builder/has_and_belongs_to_many.rb +36 -0
- data/lib/datastax_rails/associations/builder/has_many.rb +54 -0
- data/lib/datastax_rails/associations/builder/has_one.rb +52 -0
- data/lib/datastax_rails/associations/builder/singular_association.rb +56 -0
- data/lib/datastax_rails/associations/collection_association.rb +274 -0
- data/lib/datastax_rails/associations/collection_proxy.rb +118 -0
- data/lib/datastax_rails/associations/has_and_belongs_to_many_association.rb +44 -0
- data/lib/datastax_rails/associations/has_many_association.rb +58 -0
- data/lib/datastax_rails/associations/has_one_association.rb +68 -0
- data/lib/datastax_rails/associations/singular_association.rb +58 -0
- data/lib/datastax_rails/associations.rb +86 -0
- data/lib/datastax_rails/attribute_methods/definition.rb +20 -0
- data/lib/datastax_rails/attribute_methods/dirty.rb +43 -0
- data/lib/datastax_rails/attribute_methods/typecasting.rb +50 -0
- data/lib/datastax_rails/attribute_methods.rb +104 -0
- data/lib/datastax_rails/base.rb +587 -0
- data/lib/datastax_rails/batches.rb +35 -0
- data/lib/datastax_rails/callbacks.rb +37 -0
- data/lib/datastax_rails/collection.rb +9 -0
- data/lib/datastax_rails/connection.rb +21 -0
- data/lib/datastax_rails/consistency.rb +33 -0
- data/lib/datastax_rails/cql/base.rb +15 -0
- data/lib/datastax_rails/cql/column_family.rb +38 -0
- data/lib/datastax_rails/cql/consistency.rb +13 -0
- data/lib/datastax_rails/cql/create_column_family.rb +63 -0
- data/lib/datastax_rails/cql/create_keyspace.rb +30 -0
- data/lib/datastax_rails/cql/delete.rb +41 -0
- data/lib/datastax_rails/cql/drop_column_family.rb +13 -0
- data/lib/datastax_rails/cql/drop_keyspace.rb +13 -0
- data/lib/datastax_rails/cql/insert.rb +53 -0
- data/lib/datastax_rails/cql/select.rb +51 -0
- data/lib/datastax_rails/cql/truncate.rb +13 -0
- data/lib/datastax_rails/cql/update.rb +68 -0
- data/lib/datastax_rails/cql/use_keyspace.rb +13 -0
- data/lib/datastax_rails/cql.rb +25 -0
- data/lib/datastax_rails/cursor.rb +90 -0
- data/lib/datastax_rails/errors.rb +16 -0
- data/lib/datastax_rails/identity/abstract_key_factory.rb +26 -0
- data/lib/datastax_rails/identity/custom_key_factory.rb +36 -0
- data/lib/datastax_rails/identity/hashed_natural_key_factory.rb +10 -0
- data/lib/datastax_rails/identity/natural_key_factory.rb +37 -0
- data/lib/datastax_rails/identity/uuid_key_factory.rb +23 -0
- data/lib/datastax_rails/identity.rb +53 -0
- data/lib/datastax_rails/log_subscriber.rb +37 -0
- data/lib/datastax_rails/migrations/migration.rb +15 -0
- data/lib/datastax_rails/migrations.rb +36 -0
- data/lib/datastax_rails/mocking.rb +15 -0
- data/lib/datastax_rails/persistence.rb +133 -0
- data/lib/datastax_rails/railtie.rb +20 -0
- data/lib/datastax_rails/reflection.rb +472 -0
- data/lib/datastax_rails/relation/finder_methods.rb +184 -0
- data/lib/datastax_rails/relation/modification_methods.rb +80 -0
- data/lib/datastax_rails/relation/search_methods.rb +349 -0
- data/lib/datastax_rails/relation/spawn_methods.rb +107 -0
- data/lib/datastax_rails/relation.rb +393 -0
- data/lib/datastax_rails/schema/migration.rb +106 -0
- data/lib/datastax_rails/schema/migration_proxy.rb +25 -0
- data/lib/datastax_rails/schema/migrator.rb +212 -0
- data/lib/datastax_rails/schema.rb +37 -0
- data/lib/datastax_rails/scoping.rb +394 -0
- data/lib/datastax_rails/serialization.rb +6 -0
- data/lib/datastax_rails/tasks/column_family.rb +162 -0
- data/lib/datastax_rails/tasks/ds.rake +63 -0
- data/lib/datastax_rails/tasks/keyspace.rb +57 -0
- data/lib/datastax_rails/timestamps.rb +19 -0
- data/lib/datastax_rails/type.rb +16 -0
- data/lib/datastax_rails/types/array_type.rb +77 -0
- data/lib/datastax_rails/types/base_type.rb +26 -0
- data/lib/datastax_rails/types/binary_type.rb +15 -0
- data/lib/datastax_rails/types/boolean_type.rb +22 -0
- data/lib/datastax_rails/types/date_type.rb +17 -0
- data/lib/datastax_rails/types/float_type.rb +18 -0
- data/lib/datastax_rails/types/integer_type.rb +18 -0
- data/lib/datastax_rails/types/string_type.rb +16 -0
- data/lib/datastax_rails/types/text_type.rb +16 -0
- data/lib/datastax_rails/types/time_type.rb +17 -0
- data/lib/datastax_rails/types.rb +9 -0
- data/lib/datastax_rails/validations/uniqueness.rb +119 -0
- data/lib/datastax_rails/validations.rb +48 -0
- data/lib/datastax_rails/version.rb +3 -0
- data/lib/datastax_rails.rb +87 -0
- data/lib/solr_no_escape.rb +28 -0
- data/spec/datastax_rails/associations/belongs_to_association_spec.rb +7 -0
- data/spec/datastax_rails/associations/has_many_association_spec.rb +37 -0
- data/spec/datastax_rails/associations_spec.rb +22 -0
- data/spec/datastax_rails/attribute_methods_spec.rb +23 -0
- data/spec/datastax_rails/base_spec.rb +15 -0
- data/spec/datastax_rails/cql/select_spec.rb +12 -0
- data/spec/datastax_rails/cql/update_spec.rb +0 -0
- data/spec/datastax_rails/relation/finder_methods_spec.rb +54 -0
- data/spec/datastax_rails/relation/modification_methods_spec.rb +41 -0
- data/spec/datastax_rails/relation/search_methods_spec.rb +117 -0
- data/spec/datastax_rails/relation/spawn_methods_spec.rb +28 -0
- data/spec/datastax_rails/relation_spec.rb +130 -0
- data/spec/datastax_rails/validations/uniqueness_spec.rb +41 -0
- data/spec/datastax_rails_spec.rb +5 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +47 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/datastax.yml +18 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config/sunspot.yml +17 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/ks/migrate/20111117224534_models.rb +20 -0
- data/spec/dummy/ks/schema.json +180 -0
- data/spec/dummy/log/development.log +298 -0
- data/spec/dummy/log/production.log +0 -0
- data/spec/dummy/log/test.log +20307 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec.opts +5 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/datastax_test_hook.rb +14 -0
- data/spec/support/models.rb +72 -0
- metadata +353 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
|
7
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.before(:each) do
|
15
|
+
DatastaxRails::Base.recorded_classes = {}
|
16
|
+
end
|
17
|
+
|
18
|
+
config.after(:each) do
|
19
|
+
DatastaxRails::Base.recorded_classes.keys.each do |klass|
|
20
|
+
DatastaxRails::Cql::Truncate.new(klass).execute
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# config.after(:all) do
|
25
|
+
# DatastaxRails::Base.models.each do |m|
|
26
|
+
# DatastaxRails::Cql::Truncate.new(m).execute
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'active_support'
|
2
|
+
require 'datastax_rails'
|
3
|
+
require 'datastax_rails/base'
|
4
|
+
module DatastaxRails
|
5
|
+
class Base
|
6
|
+
class_attribute :recorded_classes
|
7
|
+
|
8
|
+
def save_with_record_class(*args)
|
9
|
+
DatastaxRails::Base.recorded_classes[self.class] = nil
|
10
|
+
save_without_record_class(*args)
|
11
|
+
end
|
12
|
+
alias_method_chain :save, :record_class
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
class Person < DatastaxRails::Base
|
2
|
+
self.column_family = "people"
|
3
|
+
|
4
|
+
has_one :job
|
5
|
+
has_many :cars, :dependent => :destroy
|
6
|
+
has_and_belongs_to_many :hobbies
|
7
|
+
|
8
|
+
key :uuid
|
9
|
+
text :name, :sortable => true
|
10
|
+
date :birthdate
|
11
|
+
string :nickname
|
12
|
+
timestamps
|
13
|
+
|
14
|
+
before_save :set_nickname
|
15
|
+
after_save :set_variable
|
16
|
+
|
17
|
+
validates :name, :presence => true, :uniqueness => :true
|
18
|
+
|
19
|
+
def set_nickname
|
20
|
+
self.nickname ||= self.name
|
21
|
+
end
|
22
|
+
|
23
|
+
def set_variable
|
24
|
+
@after_save_ran = "yup"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class Car < DatastaxRails::Base
|
29
|
+
self.column_family = "cars"
|
30
|
+
|
31
|
+
belongs_to :person
|
32
|
+
|
33
|
+
key :uuid
|
34
|
+
string :name
|
35
|
+
string :person_id
|
36
|
+
timestamps
|
37
|
+
end
|
38
|
+
|
39
|
+
class Job < DatastaxRails::Base
|
40
|
+
self.column_family = "jobs"
|
41
|
+
|
42
|
+
belongs_to :person
|
43
|
+
|
44
|
+
key :uuid
|
45
|
+
string :title
|
46
|
+
integer :position_number
|
47
|
+
string :person_id
|
48
|
+
timestamps
|
49
|
+
|
50
|
+
validates :position_number, :uniqueness => true, :allow_blank => true
|
51
|
+
end
|
52
|
+
|
53
|
+
class Boat < DatastaxRails::Base
|
54
|
+
self.column_family = "boats"
|
55
|
+
|
56
|
+
key :uuid
|
57
|
+
string :name
|
58
|
+
timestamps
|
59
|
+
|
60
|
+
validates :name, :uniqueness => true
|
61
|
+
end
|
62
|
+
|
63
|
+
class Hobby < DatastaxRails::Base
|
64
|
+
self.column_family = "hobbies"
|
65
|
+
|
66
|
+
has_and_belongs_to_many :people
|
67
|
+
|
68
|
+
key :uuid
|
69
|
+
string :name
|
70
|
+
float :complexity
|
71
|
+
timestamps
|
72
|
+
end
|
metadata
ADDED
@@ -0,0 +1,353 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: datastax_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Jason M. Kusar
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-07-09 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rails
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 13
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 2
|
32
|
+
- 1
|
33
|
+
version: 3.2.1
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: cassandra-cql
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rsolr
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ~>
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 25
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 0
|
62
|
+
- 7
|
63
|
+
version: 1.0.7
|
64
|
+
type: :runtime
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rspec-rails
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 43
|
75
|
+
segments:
|
76
|
+
- 2
|
77
|
+
- 9
|
78
|
+
- 0
|
79
|
+
version: 2.9.0
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: ruby-debug
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
type: :development
|
95
|
+
version_requirements: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rcov
|
98
|
+
prerelease: false
|
99
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
type: :development
|
109
|
+
version_requirements: *id006
|
110
|
+
description: A Ruby-on-Rails interface to Datastax Enterprise. Intended for use with the DSE search nodes.
|
111
|
+
email:
|
112
|
+
- jason@kusar.net
|
113
|
+
executables: []
|
114
|
+
|
115
|
+
extensions: []
|
116
|
+
|
117
|
+
extra_rdoc_files: []
|
118
|
+
|
119
|
+
files:
|
120
|
+
- config/stopwords.txt
|
121
|
+
- config/schema.xml.erb
|
122
|
+
- config/schema.xml
|
123
|
+
- config/solrconfig.xml
|
124
|
+
- lib/datastax_rails/schema/migration_proxy.rb
|
125
|
+
- lib/datastax_rails/schema/migration.rb
|
126
|
+
- lib/datastax_rails/schema/migrator.rb
|
127
|
+
- lib/datastax_rails/batches.rb
|
128
|
+
- lib/datastax_rails/scoping.rb
|
129
|
+
- lib/datastax_rails/callbacks.rb
|
130
|
+
- lib/datastax_rails/cql.rb
|
131
|
+
- lib/datastax_rails/schema.rb
|
132
|
+
- lib/datastax_rails/cursor.rb
|
133
|
+
- lib/datastax_rails/associations.rb
|
134
|
+
- lib/datastax_rails/log_subscriber.rb
|
135
|
+
- lib/datastax_rails/mocking.rb
|
136
|
+
- lib/datastax_rails/identity.rb
|
137
|
+
- lib/datastax_rails/cql/use_keyspace.rb
|
138
|
+
- lib/datastax_rails/cql/column_family.rb
|
139
|
+
- lib/datastax_rails/cql/create_column_family.rb
|
140
|
+
- lib/datastax_rails/cql/consistency.rb
|
141
|
+
- lib/datastax_rails/cql/update.rb
|
142
|
+
- lib/datastax_rails/cql/insert.rb
|
143
|
+
- lib/datastax_rails/cql/drop_column_family.rb
|
144
|
+
- lib/datastax_rails/cql/base.rb
|
145
|
+
- lib/datastax_rails/cql/select.rb
|
146
|
+
- lib/datastax_rails/cql/truncate.rb
|
147
|
+
- lib/datastax_rails/cql/create_keyspace.rb
|
148
|
+
- lib/datastax_rails/cql/drop_keyspace.rb
|
149
|
+
- lib/datastax_rails/cql/delete.rb
|
150
|
+
- lib/datastax_rails/attribute_methods.rb
|
151
|
+
- lib/datastax_rails/connection.rb
|
152
|
+
- lib/datastax_rails/consistency.rb
|
153
|
+
- lib/datastax_rails/reflection.rb
|
154
|
+
- lib/datastax_rails/identity/custom_key_factory.rb
|
155
|
+
- lib/datastax_rails/identity/uuid_key_factory.rb
|
156
|
+
- lib/datastax_rails/identity/hashed_natural_key_factory.rb
|
157
|
+
- lib/datastax_rails/identity/abstract_key_factory.rb
|
158
|
+
- lib/datastax_rails/identity/natural_key_factory.rb
|
159
|
+
- lib/datastax_rails/collection.rb
|
160
|
+
- lib/datastax_rails/relation.rb
|
161
|
+
- lib/datastax_rails/type.rb
|
162
|
+
- lib/datastax_rails/railtie.rb
|
163
|
+
- lib/datastax_rails/types/date_type.rb
|
164
|
+
- lib/datastax_rails/types/boolean_type.rb
|
165
|
+
- lib/datastax_rails/types/integer_type.rb
|
166
|
+
- lib/datastax_rails/types/time_type.rb
|
167
|
+
- lib/datastax_rails/types/base_type.rb
|
168
|
+
- lib/datastax_rails/types/array_type.rb
|
169
|
+
- lib/datastax_rails/types/string_type.rb
|
170
|
+
- lib/datastax_rails/types/binary_type.rb
|
171
|
+
- lib/datastax_rails/types/text_type.rb
|
172
|
+
- lib/datastax_rails/types/float_type.rb
|
173
|
+
- lib/datastax_rails/validations.rb
|
174
|
+
- lib/datastax_rails/migrations.rb
|
175
|
+
- lib/datastax_rails/associations/builder/association.rb
|
176
|
+
- lib/datastax_rails/associations/builder/singular_association.rb
|
177
|
+
- lib/datastax_rails/associations/builder/has_many.rb
|
178
|
+
- lib/datastax_rails/associations/builder/has_and_belongs_to_many.rb
|
179
|
+
- lib/datastax_rails/associations/builder/collection_association.rb
|
180
|
+
- lib/datastax_rails/associations/builder/belongs_to.rb
|
181
|
+
- lib/datastax_rails/associations/builder/has_one.rb
|
182
|
+
- lib/datastax_rails/associations/has_one_association.rb
|
183
|
+
- lib/datastax_rails/associations/has_and_belongs_to_many_association.rb
|
184
|
+
- lib/datastax_rails/associations/association.rb
|
185
|
+
- lib/datastax_rails/associations/belongs_to_association.rb
|
186
|
+
- lib/datastax_rails/associations/singular_association.rb
|
187
|
+
- lib/datastax_rails/associations/association_scope.rb
|
188
|
+
- lib/datastax_rails/associations/has_many_association.rb
|
189
|
+
- lib/datastax_rails/associations/collection_association.rb
|
190
|
+
- lib/datastax_rails/associations/collection_proxy.rb
|
191
|
+
- lib/datastax_rails/errors.rb
|
192
|
+
- lib/datastax_rails/base.rb
|
193
|
+
- lib/datastax_rails/relation/search_methods.rb
|
194
|
+
- lib/datastax_rails/relation/finder_methods.rb
|
195
|
+
- lib/datastax_rails/relation/spawn_methods.rb
|
196
|
+
- lib/datastax_rails/relation/modification_methods.rb
|
197
|
+
- lib/datastax_rails/serialization.rb
|
198
|
+
- lib/datastax_rails/validations/uniqueness.rb
|
199
|
+
- lib/datastax_rails/timestamps.rb
|
200
|
+
- lib/datastax_rails/migrations/migration.rb
|
201
|
+
- lib/datastax_rails/tasks/column_family.rb
|
202
|
+
- lib/datastax_rails/tasks/keyspace.rb
|
203
|
+
- lib/datastax_rails/tasks/ds.rake
|
204
|
+
- lib/datastax_rails/attribute_methods/definition.rb
|
205
|
+
- lib/datastax_rails/attribute_methods/dirty.rb
|
206
|
+
- lib/datastax_rails/attribute_methods/typecasting.rb
|
207
|
+
- lib/datastax_rails/types.rb
|
208
|
+
- lib/datastax_rails/persistence.rb
|
209
|
+
- lib/datastax_rails/version.rb
|
210
|
+
- lib/datastax_rails.rb
|
211
|
+
- lib/solr_no_escape.rb
|
212
|
+
- MIT-LICENSE
|
213
|
+
- Rakefile
|
214
|
+
- README.rdoc
|
215
|
+
- spec/support/models.rb
|
216
|
+
- spec/support/datastax_test_hook.rb
|
217
|
+
- spec/datastax_rails/attribute_methods_spec.rb
|
218
|
+
- spec/datastax_rails/cql/update_spec.rb
|
219
|
+
- spec/datastax_rails/cql/select_spec.rb
|
220
|
+
- spec/datastax_rails/associations/belongs_to_association_spec.rb
|
221
|
+
- spec/datastax_rails/associations/has_many_association_spec.rb
|
222
|
+
- spec/datastax_rails/relation_spec.rb
|
223
|
+
- spec/datastax_rails/associations_spec.rb
|
224
|
+
- spec/datastax_rails/relation/search_methods_spec.rb
|
225
|
+
- spec/datastax_rails/relation/spawn_methods_spec.rb
|
226
|
+
- spec/datastax_rails/relation/modification_methods_spec.rb
|
227
|
+
- spec/datastax_rails/relation/finder_methods_spec.rb
|
228
|
+
- spec/datastax_rails/base_spec.rb
|
229
|
+
- spec/datastax_rails/validations/uniqueness_spec.rb
|
230
|
+
- spec/spec_helper.rb
|
231
|
+
- spec/datastax_rails_spec.rb
|
232
|
+
- spec/spec.opts
|
233
|
+
- spec/dummy/script/rails
|
234
|
+
- spec/dummy/config/environment.rb
|
235
|
+
- spec/dummy/config/datastax.yml
|
236
|
+
- spec/dummy/config/environments/development.rb
|
237
|
+
- spec/dummy/config/environments/test.rb
|
238
|
+
- spec/dummy/config/environments/production.rb
|
239
|
+
- spec/dummy/config/routes.rb
|
240
|
+
- spec/dummy/config/database.yml
|
241
|
+
- spec/dummy/config/application.rb
|
242
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
243
|
+
- spec/dummy/config/initializers/mime_types.rb
|
244
|
+
- spec/dummy/config/initializers/session_store.rb
|
245
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
246
|
+
- spec/dummy/config/initializers/inflections.rb
|
247
|
+
- spec/dummy/config/initializers/secret_token.rb
|
248
|
+
- spec/dummy/config/locales/en.yml
|
249
|
+
- spec/dummy/config/sunspot.yml
|
250
|
+
- spec/dummy/config/boot.rb
|
251
|
+
- spec/dummy/Rakefile
|
252
|
+
- spec/dummy/ks/migrate/20111117224534_models.rb
|
253
|
+
- spec/dummy/ks/schema.json
|
254
|
+
- spec/dummy/public/favicon.ico
|
255
|
+
- spec/dummy/public/422.html
|
256
|
+
- spec/dummy/public/500.html
|
257
|
+
- spec/dummy/public/404.html
|
258
|
+
- spec/dummy/config.ru
|
259
|
+
- spec/dummy/app/assets/javascripts/application.js
|
260
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
261
|
+
- spec/dummy/app/helpers/application_helper.rb
|
262
|
+
- spec/dummy/app/controllers/application_controller.rb
|
263
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
264
|
+
- spec/dummy/log/development.log
|
265
|
+
- spec/dummy/log/test.log
|
266
|
+
- spec/dummy/log/production.log
|
267
|
+
homepage: https://github.com/jasonmk/datastax_rails
|
268
|
+
licenses: []
|
269
|
+
|
270
|
+
post_install_message:
|
271
|
+
rdoc_options: []
|
272
|
+
|
273
|
+
require_paths:
|
274
|
+
- lib
|
275
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
276
|
+
none: false
|
277
|
+
requirements:
|
278
|
+
- - ">="
|
279
|
+
- !ruby/object:Gem::Version
|
280
|
+
hash: 3
|
281
|
+
segments:
|
282
|
+
- 0
|
283
|
+
version: "0"
|
284
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
285
|
+
none: false
|
286
|
+
requirements:
|
287
|
+
- - ">="
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
hash: 3
|
290
|
+
segments:
|
291
|
+
- 0
|
292
|
+
version: "0"
|
293
|
+
requirements: []
|
294
|
+
|
295
|
+
rubyforge_project:
|
296
|
+
rubygems_version: 1.8.12
|
297
|
+
signing_key:
|
298
|
+
specification_version: 3
|
299
|
+
summary: A Ruby-on-Rails interface to Datastax Enterprise
|
300
|
+
test_files:
|
301
|
+
- spec/support/models.rb
|
302
|
+
- spec/support/datastax_test_hook.rb
|
303
|
+
- spec/datastax_rails/attribute_methods_spec.rb
|
304
|
+
- spec/datastax_rails/cql/update_spec.rb
|
305
|
+
- spec/datastax_rails/cql/select_spec.rb
|
306
|
+
- spec/datastax_rails/associations/belongs_to_association_spec.rb
|
307
|
+
- spec/datastax_rails/associations/has_many_association_spec.rb
|
308
|
+
- spec/datastax_rails/relation_spec.rb
|
309
|
+
- spec/datastax_rails/associations_spec.rb
|
310
|
+
- spec/datastax_rails/relation/search_methods_spec.rb
|
311
|
+
- spec/datastax_rails/relation/spawn_methods_spec.rb
|
312
|
+
- spec/datastax_rails/relation/modification_methods_spec.rb
|
313
|
+
- spec/datastax_rails/relation/finder_methods_spec.rb
|
314
|
+
- spec/datastax_rails/base_spec.rb
|
315
|
+
- spec/datastax_rails/validations/uniqueness_spec.rb
|
316
|
+
- spec/spec_helper.rb
|
317
|
+
- spec/datastax_rails_spec.rb
|
318
|
+
- spec/spec.opts
|
319
|
+
- spec/dummy/script/rails
|
320
|
+
- spec/dummy/config/environment.rb
|
321
|
+
- spec/dummy/config/datastax.yml
|
322
|
+
- spec/dummy/config/environments/development.rb
|
323
|
+
- spec/dummy/config/environments/test.rb
|
324
|
+
- spec/dummy/config/environments/production.rb
|
325
|
+
- spec/dummy/config/routes.rb
|
326
|
+
- spec/dummy/config/database.yml
|
327
|
+
- spec/dummy/config/application.rb
|
328
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
329
|
+
- spec/dummy/config/initializers/mime_types.rb
|
330
|
+
- spec/dummy/config/initializers/session_store.rb
|
331
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
332
|
+
- spec/dummy/config/initializers/inflections.rb
|
333
|
+
- spec/dummy/config/initializers/secret_token.rb
|
334
|
+
- spec/dummy/config/locales/en.yml
|
335
|
+
- spec/dummy/config/sunspot.yml
|
336
|
+
- spec/dummy/config/boot.rb
|
337
|
+
- spec/dummy/Rakefile
|
338
|
+
- spec/dummy/ks/migrate/20111117224534_models.rb
|
339
|
+
- spec/dummy/ks/schema.json
|
340
|
+
- spec/dummy/public/favicon.ico
|
341
|
+
- spec/dummy/public/422.html
|
342
|
+
- spec/dummy/public/500.html
|
343
|
+
- spec/dummy/public/404.html
|
344
|
+
- spec/dummy/config.ru
|
345
|
+
- spec/dummy/app/assets/javascripts/application.js
|
346
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
347
|
+
- spec/dummy/app/helpers/application_helper.rb
|
348
|
+
- spec/dummy/app/controllers/application_controller.rb
|
349
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
350
|
+
- spec/dummy/log/development.log
|
351
|
+
- spec/dummy/log/test.log
|
352
|
+
- spec/dummy/log/production.log
|
353
|
+
has_rdoc:
|