sessionm-cassandra_object 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/CHANGELOG +3 -0
- data/Gemfile +2 -0
- data/LICENSE +13 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +12 -0
- data/Rakefile +15 -0
- data/lib/cassandra_object/associations/one_to_many.rb +146 -0
- data/lib/cassandra_object/associations/one_to_one.rb +85 -0
- data/lib/cassandra_object/associations.rb +50 -0
- data/lib/cassandra_object/attributes.rb +97 -0
- data/lib/cassandra_object/base.rb +97 -0
- data/lib/cassandra_object/batches.rb +31 -0
- data/lib/cassandra_object/callbacks.rb +27 -0
- data/lib/cassandra_object/collection.rb +8 -0
- data/lib/cassandra_object/connection.rb +29 -0
- data/lib/cassandra_object/consistency.rb +31 -0
- data/lib/cassandra_object/cursor.rb +90 -0
- data/lib/cassandra_object/dirty.rb +32 -0
- data/lib/cassandra_object/errors.rb +10 -0
- data/lib/cassandra_object/finder_methods.rb +72 -0
- data/lib/cassandra_object/generators/migration_generator.rb +31 -0
- data/lib/cassandra_object/generators/templates/migration.rb.erb +11 -0
- data/lib/cassandra_object/identity/abstract_key_factory.rb +36 -0
- data/lib/cassandra_object/identity/custom_key_factory.rb +50 -0
- data/lib/cassandra_object/identity/hashed_natural_key_factory.rb +10 -0
- data/lib/cassandra_object/identity/key.rb +20 -0
- data/lib/cassandra_object/identity/natural_key_factory.rb +51 -0
- data/lib/cassandra_object/identity/uuid_key_factory.rb +39 -0
- data/lib/cassandra_object/identity.rb +52 -0
- data/lib/cassandra_object/log_subscriber.rb +37 -0
- data/lib/cassandra_object/migrations/migration.rb +15 -0
- data/lib/cassandra_object/migrations.rb +66 -0
- data/lib/cassandra_object/mocking.rb +15 -0
- data/lib/cassandra_object/persistence.rb +138 -0
- data/lib/cassandra_object/railtie.rb +11 -0
- data/lib/cassandra_object/schema/migration.rb +106 -0
- data/lib/cassandra_object/schema/migration_proxy.rb +25 -0
- data/lib/cassandra_object/schema/migrator.rb +213 -0
- data/lib/cassandra_object/schema.rb +37 -0
- data/lib/cassandra_object/serialization.rb +6 -0
- data/lib/cassandra_object/tasks/column_family.rb +90 -0
- data/lib/cassandra_object/tasks/keyspace.rb +89 -0
- data/lib/cassandra_object/tasks/ks.rake +121 -0
- data/lib/cassandra_object/timestamps.rb +19 -0
- data/lib/cassandra_object/type.rb +19 -0
- data/lib/cassandra_object/types/array_type.rb +16 -0
- data/lib/cassandra_object/types/boolean_type.rb +23 -0
- data/lib/cassandra_object/types/date_type.rb +20 -0
- data/lib/cassandra_object/types/float_type.rb +19 -0
- data/lib/cassandra_object/types/hash_type.rb +16 -0
- data/lib/cassandra_object/types/integer_type.rb +19 -0
- data/lib/cassandra_object/types/set_type.rb +22 -0
- data/lib/cassandra_object/types/string_type.rb +16 -0
- data/lib/cassandra_object/types/time_type.rb +27 -0
- data/lib/cassandra_object/types/time_with_zone_type.rb +18 -0
- data/lib/cassandra_object/types/utf8_string_type.rb +18 -0
- data/lib/cassandra_object/types.rb +11 -0
- data/lib/cassandra_object/validations.rb +46 -0
- data/lib/cassandra_object.rb +49 -0
- data/sessionm-cassandra_object.gemspec +26 -0
- data/test/active_model_test.rb +9 -0
- data/test/base_test.rb +28 -0
- data/test/batches_test.rb +30 -0
- data/test/connection_test.rb +28 -0
- data/test/consistency_test.rb +20 -0
- data/test/finder_methods_test.rb +49 -0
- data/test/identity_test.rb +30 -0
- data/test/persistence_test.rb +84 -0
- data/test/test_helper.rb +31 -0
- data/test/timestamps_test.rb +27 -0
- data/test/types/array_type_test.rb +15 -0
- data/test/types/boolean_type_test.rb +23 -0
- data/test/types/date_type_test.rb +4 -0
- data/test/types/float_type_test.rb +4 -0
- data/test/types/hash_type_test.rb +4 -0
- data/test/types/integer_type_test.rb +18 -0
- data/test/types/set_type_test.rb +17 -0
- data/test/types/string_type_test.rb +4 -0
- data/test/types/time_type_test.rb +4 -0
- data/test/types/utf8_string_type_test.rb +4 -0
- data/test/validations_test.rb +15 -0
- metadata +183 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::ConnectionTest < CassandraObject::TestCase
|
4
|
+
class TestObject < CassandraObject::Base
|
5
|
+
end
|
6
|
+
|
7
|
+
test 'establish_connection' do
|
8
|
+
TestObject.establish_connection(
|
9
|
+
keyspace: 'place_directory_development',
|
10
|
+
servers: '192.168.0.100:9160',
|
11
|
+
thrift: {'timeout' => 10}
|
12
|
+
)
|
13
|
+
|
14
|
+
assert_not_equal CassandraObject::Base.connection, TestObject.connection
|
15
|
+
assert_equal 'place_directory_development', TestObject.connection.keyspace
|
16
|
+
assert_equal ["192.168.0.100:9160"], TestObject.connection.servers
|
17
|
+
assert_equal 10, TestObject.connection.thrift_client_options[:timeout]
|
18
|
+
end
|
19
|
+
|
20
|
+
test 'establish_connection defaults' do
|
21
|
+
TestObject.establish_connection(
|
22
|
+
keyspace: 'place_directory_development'
|
23
|
+
)
|
24
|
+
|
25
|
+
assert_equal 'place_directory_development', TestObject.connection.keyspace
|
26
|
+
assert_equal ["127.0.0.1:9160"], TestObject.connection.servers
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::ConsistencyTest < CassandraObject::TestCase
|
4
|
+
class TestModel < CassandraObject::Base
|
5
|
+
end
|
6
|
+
|
7
|
+
test 'consistency_levels' do
|
8
|
+
assert_equal [:one, :quorum, :all].to_set, TestModel.consistency_levels.to_set
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'thrift_write_consistency' do
|
12
|
+
TestModel.write_consistency = :all
|
13
|
+
assert_equal Cassandra::Consistency::ALL, TestModel.thrift_write_consistency
|
14
|
+
end
|
15
|
+
|
16
|
+
test 'thrift_read_consistency' do
|
17
|
+
TestModel.read_consistency = :all
|
18
|
+
assert_equal Cassandra::Consistency::ALL, TestModel.thrift_read_consistency
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::FinderMethodsTest < CassandraObject::TestCase
|
4
|
+
test 'find' do
|
5
|
+
persisted_issue = Issue.create
|
6
|
+
found_issue = Issue.find(persisted_issue.id)
|
7
|
+
|
8
|
+
assert_equal persisted_issue, found_issue
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'find missing record' do
|
12
|
+
assert_raise CassandraObject::RecordNotFound do
|
13
|
+
Issue.find('what')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'all' do
|
18
|
+
first_issue = Issue.create
|
19
|
+
second_issue = Issue.create
|
20
|
+
|
21
|
+
assert_equal [first_issue, second_issue].to_set, Issue.all.to_set
|
22
|
+
end
|
23
|
+
|
24
|
+
test 'first' do
|
25
|
+
first_issue = Issue.create
|
26
|
+
second_issue = Issue.create
|
27
|
+
|
28
|
+
assert [first_issue, second_issue].include?(Issue.first)
|
29
|
+
end
|
30
|
+
|
31
|
+
test 'find_with_ids' do
|
32
|
+
first_issue = Issue.create
|
33
|
+
second_issue = Issue.create
|
34
|
+
third_issue = Issue.create
|
35
|
+
|
36
|
+
assert_equal [], Issue.find_with_ids([])
|
37
|
+
assert_equal first_issue, Issue.find_with_ids(first_issue.key)
|
38
|
+
assert_equal [first_issue, second_issue].to_set, Issue.find_with_ids(first_issue.key, second_issue.key).to_set
|
39
|
+
assert_equal [first_issue, second_issue].to_set, Issue.find_with_ids([first_issue.key, second_issue.key]).to_set
|
40
|
+
end
|
41
|
+
|
42
|
+
# test 'find single id' do
|
43
|
+
# created_issue = Issue.create
|
44
|
+
#
|
45
|
+
# found_issue = Issue.find(created_issue.id)
|
46
|
+
#
|
47
|
+
# assert_equal created_issue, found_issue
|
48
|
+
# end
|
49
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::IdentityTest < CassandraObject::TestCase
|
4
|
+
test 'parse_key' do
|
5
|
+
assert_kind_of(
|
6
|
+
CassandraObject::Identity::UUIDKeyFactory::UUID,
|
7
|
+
Issue.parse_key('bb4cbbbc-b7c7-11e0-9ca2-732604ff41fe')
|
8
|
+
)
|
9
|
+
|
10
|
+
assert_nil Issue.parse_key('fail')
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'id' do
|
14
|
+
issue = Issue.create
|
15
|
+
|
16
|
+
assert_equal issue.key.to_s, issue.id
|
17
|
+
end
|
18
|
+
|
19
|
+
test 'equality of new records' do
|
20
|
+
assert_not_equal Issue.new, Issue.new
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'equality' do
|
24
|
+
first_issue = Issue.create
|
25
|
+
second_issue = Issue.create
|
26
|
+
|
27
|
+
assert_equal first_issue, first_issue
|
28
|
+
assert_not_equal first_issue, second_issue
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::PersistenceTest < CassandraObject::TestCase
|
4
|
+
test 'persistance inquiries' do
|
5
|
+
issue = Issue.new
|
6
|
+
assert issue.new_record?
|
7
|
+
assert !issue.persisted?
|
8
|
+
|
9
|
+
issue.save
|
10
|
+
assert issue.persisted?
|
11
|
+
assert !issue.new_record?
|
12
|
+
end
|
13
|
+
|
14
|
+
test 'save' do
|
15
|
+
issue = Issue.new
|
16
|
+
issue.save
|
17
|
+
|
18
|
+
assert_equal issue, Issue.find(issue.id)
|
19
|
+
end
|
20
|
+
|
21
|
+
test 'save!' do
|
22
|
+
begin
|
23
|
+
Issue.validates(:description, presence: true)
|
24
|
+
|
25
|
+
issue = Issue.new(description: 'bad')
|
26
|
+
issue.save!
|
27
|
+
|
28
|
+
issue = Issue.new
|
29
|
+
assert_raise(CassandraObject::RecordInvalid) { issue.save! }
|
30
|
+
ensure
|
31
|
+
Issue.reset_callbacks(:validate)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
test 'destroy' do
|
36
|
+
issue = Issue.create
|
37
|
+
issue.destroy
|
38
|
+
|
39
|
+
assert issue.destroyed?
|
40
|
+
assert !issue.persisted?
|
41
|
+
assert !issue.new_record?
|
42
|
+
end
|
43
|
+
|
44
|
+
test 'update_attribute' do
|
45
|
+
issue = Issue.create
|
46
|
+
issue.update_attribute(:description, 'lol')
|
47
|
+
|
48
|
+
assert !issue.changed?
|
49
|
+
assert_equal 'lol', issue.description
|
50
|
+
end
|
51
|
+
|
52
|
+
test 'update_attributes' do
|
53
|
+
issue = Issue.create
|
54
|
+
issue.update_attributes(description: 'lol')
|
55
|
+
|
56
|
+
assert !issue.changed?
|
57
|
+
assert_equal 'lol', issue.description
|
58
|
+
end
|
59
|
+
|
60
|
+
test 'update_attributes!' do
|
61
|
+
begin
|
62
|
+
Issue.validates(:description, presence: true)
|
63
|
+
|
64
|
+
issue = Issue.new(description: 'bad')
|
65
|
+
issue.save!
|
66
|
+
|
67
|
+
assert_raise CassandraObject::RecordInvalid do
|
68
|
+
issue.update_attributes! description: ''
|
69
|
+
end
|
70
|
+
ensure
|
71
|
+
Issue.reset_callbacks(:validate)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
test 'reload' do
|
76
|
+
persisted_issue = Issue.create
|
77
|
+
fresh_issue = Issue.find(persisted_issue.id)
|
78
|
+
fresh_issue.update_attribute(:description, 'say what')
|
79
|
+
|
80
|
+
assert_nil persisted_issue.description
|
81
|
+
persisted_issue.reload
|
82
|
+
assert_equal 'say what', persisted_issue.description
|
83
|
+
end
|
84
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")
|
2
|
+
# $:.unshift(lib) unless $:.include?('lib') || $:.include?(lib)
|
3
|
+
# require File.expand_path('../../lib/cassandra_object', __FILE__)
|
4
|
+
require 'cassandra/0.8'
|
5
|
+
require 'cassandra_object'
|
6
|
+
require 'rails/test_help'
|
7
|
+
|
8
|
+
class Issue < CassandraObject::Base
|
9
|
+
key :uuid
|
10
|
+
attribute :description, type: :string
|
11
|
+
end
|
12
|
+
|
13
|
+
module CassandraObject
|
14
|
+
class TestCase < ActiveSupport::TestCase
|
15
|
+
setup do
|
16
|
+
CassandraObject::Base.establish_connection(
|
17
|
+
keyspace: 'place_directory_development',
|
18
|
+
# servers: '192.168.0.100:9160'
|
19
|
+
servers: '127.0.0.1:9160'
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
teardown do
|
24
|
+
Issue.delete_all
|
25
|
+
end
|
26
|
+
|
27
|
+
def connection
|
28
|
+
CassandraObject::Base.connection
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::TimestampsTest < CassandraObject::TestCase
|
4
|
+
test 'timestamps set on create' do
|
5
|
+
issue = Issue.create
|
6
|
+
|
7
|
+
assert_in_delta Time.now.to_i, issue.created_at.to_i, 3
|
8
|
+
assert_in_delta Time.now.to_i, issue.updated_at.to_i, 3
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'updated_at set on change' do
|
12
|
+
issue = Issue.create
|
13
|
+
|
14
|
+
issue.updated_at = nil
|
15
|
+
issue.description = 'lol'
|
16
|
+
issue.save
|
17
|
+
|
18
|
+
assert_in_delta Time.now.to_i, issue.updated_at.to_i, 3
|
19
|
+
end
|
20
|
+
|
21
|
+
test 'created_at sets only if nil' do
|
22
|
+
time = 5.days.ago
|
23
|
+
issue = Issue.create created_at: time
|
24
|
+
|
25
|
+
assert_equal time, issue.created_at
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::Types::ArrayTypeTest < CassandraObject::TestCase
|
4
|
+
test 'encode' do
|
5
|
+
assert_equal ['1', '2'].to_json, CassandraObject::Types::ArrayType.encode(['1', '2'])
|
6
|
+
|
7
|
+
assert_raise ArgumentError do
|
8
|
+
CassandraObject::Types::ArrayType.encode('wtf')
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
test 'decode' do
|
13
|
+
assert_equal ['1', '2'], CassandraObject::Types::ArrayType.decode(['1', '2'].to_json)
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::Types::BooleanTypeTest < CassandraObject::TestCase
|
4
|
+
test 'encode' do
|
5
|
+
assert_equal '1', CassandraObject::Types::BooleanType.encode(true)
|
6
|
+
assert_equal '1', CassandraObject::Types::BooleanType.encode('true')
|
7
|
+
assert_equal '1', CassandraObject::Types::BooleanType.encode('1')
|
8
|
+
|
9
|
+
assert_equal '0', CassandraObject::Types::BooleanType.encode(false)
|
10
|
+
assert_equal '0', CassandraObject::Types::BooleanType.encode('false')
|
11
|
+
assert_equal '0', CassandraObject::Types::BooleanType.encode('0')
|
12
|
+
assert_equal '0', CassandraObject::Types::BooleanType.encode('')
|
13
|
+
|
14
|
+
assert_raise ArgumentError do
|
15
|
+
CassandraObject::Types::BooleanType.encode('wtf')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
test 'decode' do
|
20
|
+
assert_equal true, CassandraObject::Types::BooleanType.decode('1')
|
21
|
+
assert_equal false, CassandraObject::Types::BooleanType.decode('0')
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::Types::IntegerTypeTest < CassandraObject::TestCase
|
4
|
+
test 'encode' do
|
5
|
+
assert_equal '3', CassandraObject::Types::IntegerType.encode(3)
|
6
|
+
assert_equal '-3', CassandraObject::Types::IntegerType.encode(-3)
|
7
|
+
|
8
|
+
assert_raise ArgumentError do
|
9
|
+
CassandraObject::Types::BooleanType.encode('xx')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'decode' do
|
14
|
+
assert_nil CassandraObject::Types::IntegerType.decode('')
|
15
|
+
assert_equal 3, CassandraObject::Types::IntegerType.decode('3')
|
16
|
+
assert_equal -3, CassandraObject::Types::IntegerType.decode('-3')
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::Types::SetTypeTest < CassandraObject::TestCase
|
4
|
+
test 'encode' do
|
5
|
+
assert_equal ['1', '2'].to_json, CassandraObject::Types::SetType.encode(['1', '2'].to_set)
|
6
|
+
assert_equal ['1', '2'].to_json, CassandraObject::Types::SetType.encode(['1', '2', '2'])
|
7
|
+
|
8
|
+
assert_raise ArgumentError do
|
9
|
+
CassandraObject::Types::SetType.encode('wtf')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'decode' do
|
14
|
+
assert_equal ['1', '2'], CassandraObject::Types::SetType.decode(['1', '2'].to_set)
|
15
|
+
assert_equal ['1', '2'], CassandraObject::Types::SetType.decode(['1', '2'].to_json)
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class CassandraObject::ValidationsTest < CassandraObject::TestCase
|
4
|
+
test 'create!' do
|
5
|
+
begin
|
6
|
+
Issue.validates(:description, presence: true)
|
7
|
+
|
8
|
+
Issue.create!(description: 'lol')
|
9
|
+
|
10
|
+
assert_raise(CassandraObject::RecordInvalid) { Issue.create!(description: '') }
|
11
|
+
ensure
|
12
|
+
Issue.reset_callbacks(:validate)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sessionm-cassandra_object
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.6
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michael Koziarski
|
9
|
+
- gotime
|
10
|
+
- sessionm
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2011-08-01 00:00:00.000000000Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rails
|
18
|
+
requirement: &70162359838280 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '3.0'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: *70162359838280
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cassandra
|
29
|
+
requirement: &70162359837820 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.11.3
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: *70162359837820
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: bundler
|
40
|
+
requirement: &70162359837360 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.0
|
46
|
+
type: :development
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: *70162359837360
|
49
|
+
description: Cassandra ActiveModel
|
50
|
+
email: klange@sessionm.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files:
|
54
|
+
- README.markdown
|
55
|
+
files:
|
56
|
+
- .gitignore
|
57
|
+
- CHANGELOG
|
58
|
+
- Gemfile
|
59
|
+
- LICENSE
|
60
|
+
- MIT-LICENSE
|
61
|
+
- README.markdown
|
62
|
+
- Rakefile
|
63
|
+
- lib/cassandra_object.rb
|
64
|
+
- lib/cassandra_object/associations.rb
|
65
|
+
- lib/cassandra_object/associations/one_to_many.rb
|
66
|
+
- lib/cassandra_object/associations/one_to_one.rb
|
67
|
+
- lib/cassandra_object/attributes.rb
|
68
|
+
- lib/cassandra_object/base.rb
|
69
|
+
- lib/cassandra_object/batches.rb
|
70
|
+
- lib/cassandra_object/callbacks.rb
|
71
|
+
- lib/cassandra_object/collection.rb
|
72
|
+
- lib/cassandra_object/connection.rb
|
73
|
+
- lib/cassandra_object/consistency.rb
|
74
|
+
- lib/cassandra_object/cursor.rb
|
75
|
+
- lib/cassandra_object/dirty.rb
|
76
|
+
- lib/cassandra_object/errors.rb
|
77
|
+
- lib/cassandra_object/finder_methods.rb
|
78
|
+
- lib/cassandra_object/generators/migration_generator.rb
|
79
|
+
- lib/cassandra_object/generators/templates/migration.rb.erb
|
80
|
+
- lib/cassandra_object/identity.rb
|
81
|
+
- lib/cassandra_object/identity/abstract_key_factory.rb
|
82
|
+
- lib/cassandra_object/identity/custom_key_factory.rb
|
83
|
+
- lib/cassandra_object/identity/hashed_natural_key_factory.rb
|
84
|
+
- lib/cassandra_object/identity/key.rb
|
85
|
+
- lib/cassandra_object/identity/natural_key_factory.rb
|
86
|
+
- lib/cassandra_object/identity/uuid_key_factory.rb
|
87
|
+
- lib/cassandra_object/log_subscriber.rb
|
88
|
+
- lib/cassandra_object/migrations.rb
|
89
|
+
- lib/cassandra_object/migrations/migration.rb
|
90
|
+
- lib/cassandra_object/mocking.rb
|
91
|
+
- lib/cassandra_object/persistence.rb
|
92
|
+
- lib/cassandra_object/railtie.rb
|
93
|
+
- lib/cassandra_object/schema.rb
|
94
|
+
- lib/cassandra_object/schema/migration.rb
|
95
|
+
- lib/cassandra_object/schema/migration_proxy.rb
|
96
|
+
- lib/cassandra_object/schema/migrator.rb
|
97
|
+
- lib/cassandra_object/serialization.rb
|
98
|
+
- lib/cassandra_object/tasks/column_family.rb
|
99
|
+
- lib/cassandra_object/tasks/keyspace.rb
|
100
|
+
- lib/cassandra_object/tasks/ks.rake
|
101
|
+
- lib/cassandra_object/timestamps.rb
|
102
|
+
- lib/cassandra_object/type.rb
|
103
|
+
- lib/cassandra_object/types.rb
|
104
|
+
- lib/cassandra_object/types/array_type.rb
|
105
|
+
- lib/cassandra_object/types/boolean_type.rb
|
106
|
+
- lib/cassandra_object/types/date_type.rb
|
107
|
+
- lib/cassandra_object/types/float_type.rb
|
108
|
+
- lib/cassandra_object/types/hash_type.rb
|
109
|
+
- lib/cassandra_object/types/integer_type.rb
|
110
|
+
- lib/cassandra_object/types/set_type.rb
|
111
|
+
- lib/cassandra_object/types/string_type.rb
|
112
|
+
- lib/cassandra_object/types/time_type.rb
|
113
|
+
- lib/cassandra_object/types/time_with_zone_type.rb
|
114
|
+
- lib/cassandra_object/types/utf8_string_type.rb
|
115
|
+
- lib/cassandra_object/validations.rb
|
116
|
+
- sessionm-cassandra_object.gemspec
|
117
|
+
- test/active_model_test.rb
|
118
|
+
- test/base_test.rb
|
119
|
+
- test/batches_test.rb
|
120
|
+
- test/connection_test.rb
|
121
|
+
- test/consistency_test.rb
|
122
|
+
- test/finder_methods_test.rb
|
123
|
+
- test/identity_test.rb
|
124
|
+
- test/persistence_test.rb
|
125
|
+
- test/test_helper.rb
|
126
|
+
- test/timestamps_test.rb
|
127
|
+
- test/types/array_type_test.rb
|
128
|
+
- test/types/boolean_type_test.rb
|
129
|
+
- test/types/date_type_test.rb
|
130
|
+
- test/types/float_type_test.rb
|
131
|
+
- test/types/hash_type_test.rb
|
132
|
+
- test/types/integer_type_test.rb
|
133
|
+
- test/types/set_type_test.rb
|
134
|
+
- test/types/string_type_test.rb
|
135
|
+
- test/types/time_type_test.rb
|
136
|
+
- test/types/utf8_string_type_test.rb
|
137
|
+
- test/validations_test.rb
|
138
|
+
homepage: http://github.com/sessionm/cassandra_object
|
139
|
+
licenses: []
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 1.9.2
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 1.3.5
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 1.8.6
|
159
|
+
signing_key:
|
160
|
+
specification_version: 3
|
161
|
+
summary: Cassandra ActiveModel
|
162
|
+
test_files:
|
163
|
+
- test/active_model_test.rb
|
164
|
+
- test/base_test.rb
|
165
|
+
- test/batches_test.rb
|
166
|
+
- test/connection_test.rb
|
167
|
+
- test/consistency_test.rb
|
168
|
+
- test/finder_methods_test.rb
|
169
|
+
- test/identity_test.rb
|
170
|
+
- test/persistence_test.rb
|
171
|
+
- test/test_helper.rb
|
172
|
+
- test/timestamps_test.rb
|
173
|
+
- test/types/array_type_test.rb
|
174
|
+
- test/types/boolean_type_test.rb
|
175
|
+
- test/types/date_type_test.rb
|
176
|
+
- test/types/float_type_test.rb
|
177
|
+
- test/types/hash_type_test.rb
|
178
|
+
- test/types/integer_type_test.rb
|
179
|
+
- test/types/set_type_test.rb
|
180
|
+
- test/types/string_type_test.rb
|
181
|
+
- test/types/time_type_test.rb
|
182
|
+
- test/types/utf8_string_type_test.rb
|
183
|
+
- test/validations_test.rb
|