cassandra 0.9.1 → 0.10.0

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.
Files changed (45) hide show
  1. data/CHANGELOG +12 -0
  2. data/Manifest +31 -12
  3. data/README.rdoc +3 -2
  4. data/Rakefile +53 -23
  5. data/cassandra.gemspec +6 -8
  6. data/conf/{cassandra.in.sh → 0.6/cassandra.in.sh} +0 -0
  7. data/conf/{log4j.properties → 0.6/log4j.properties} +0 -0
  8. data/conf/0.6/schema.json +48 -0
  9. data/conf/{storage-conf.xml → 0.6/storage-conf.xml} +5 -5
  10. data/conf/0.7/cassandra.in.sh +46 -0
  11. data/conf/0.7/cassandra.yaml +336 -0
  12. data/conf/0.7/log4j-server.properties +41 -0
  13. data/conf/0.7/schema.json +48 -0
  14. data/conf/0.7/schema.txt +56 -0
  15. data/conf/0.8/cassandra.in.sh +41 -0
  16. data/conf/0.8/cassandra.yaml +61 -0
  17. data/conf/0.8/log4j-server.properties +40 -0
  18. data/conf/0.8/schema.json +48 -0
  19. data/conf/0.8/schema.txt +56 -0
  20. data/lib/cassandra.rb +1 -1
  21. data/lib/cassandra/0.6/cassandra.rb +1 -0
  22. data/lib/cassandra/0.6/columns.rb +5 -7
  23. data/lib/cassandra/0.6/protocol.rb +1 -1
  24. data/lib/cassandra/0.7/cassandra.rb +5 -5
  25. data/lib/cassandra/0.7/columns.rb +5 -6
  26. data/lib/cassandra/0.7/protocol.rb +12 -3
  27. data/lib/cassandra/0.8.rb +7 -0
  28. data/lib/cassandra/0.8/cassandra.rb +272 -0
  29. data/lib/cassandra/0.8/column_family.rb +3 -0
  30. data/lib/cassandra/0.8/columns.rb +84 -0
  31. data/lib/cassandra/0.8/keyspace.rb +3 -0
  32. data/lib/cassandra/0.8/protocol.rb +120 -0
  33. data/lib/cassandra/cassandra.rb +6 -11
  34. data/lib/cassandra/helpers.rb +1 -0
  35. data/lib/cassandra/mock.rb +107 -64
  36. data/lib/cassandra/ordered_hash.rb +1 -6
  37. data/test/cassandra_mock_test.rb +7 -27
  38. data/test/cassandra_test.rb +41 -15
  39. data/test/eventmachine_test.rb +30 -30
  40. data/test/test_helper.rb +2 -1
  41. data/vendor/0.8/gen-rb/cassandra.rb +2215 -0
  42. data/vendor/0.8/gen-rb/cassandra_constants.rb +12 -0
  43. data/vendor/0.8/gen-rb/cassandra_types.rb +814 -0
  44. metadata +50 -27
  45. data/conf/cassandra.yaml +0 -113
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
- prerelease: false
4
+ hash: 55
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 9
9
- - 1
10
- version: 0.9.1
8
+ - 10
9
+ - 0
10
+ version: 0.10.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evan Weaver, Ryan King
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-06 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-04-28 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: thrift_client
@@ -85,21 +84,24 @@ executables:
85
84
  extensions: []
86
85
 
87
86
  extra_rdoc_files:
88
- - CHANGELOG
89
- - LICENSE
90
- - README.rdoc
91
87
  - bin/cassandra_helper
92
- - lib/cassandra.rb
93
- - lib/cassandra/0.6.rb
88
+ - CHANGELOG
94
89
  - lib/cassandra/0.6/cassandra.rb
95
90
  - lib/cassandra/0.6/columns.rb
96
91
  - lib/cassandra/0.6/protocol.rb
97
- - lib/cassandra/0.7.rb
92
+ - lib/cassandra/0.6.rb
98
93
  - lib/cassandra/0.7/cassandra.rb
99
94
  - lib/cassandra/0.7/column_family.rb
100
95
  - lib/cassandra/0.7/columns.rb
101
96
  - lib/cassandra/0.7/keyspace.rb
102
97
  - lib/cassandra/0.7/protocol.rb
98
+ - lib/cassandra/0.7.rb
99
+ - lib/cassandra/0.8/cassandra.rb
100
+ - lib/cassandra/0.8/column_family.rb
101
+ - lib/cassandra/0.8/columns.rb
102
+ - lib/cassandra/0.8/keyspace.rb
103
+ - lib/cassandra/0.8/protocol.rb
104
+ - lib/cassandra/0.8.rb
103
105
  - lib/cassandra/array.rb
104
106
  - lib/cassandra/cassandra.rb
105
107
  - lib/cassandra/columns.rb
@@ -111,28 +113,42 @@ extra_rdoc_files:
111
113
  - lib/cassandra/mock.rb
112
114
  - lib/cassandra/ordered_hash.rb
113
115
  - lib/cassandra/time.rb
114
- files:
115
- - CHANGELOG
116
+ - lib/cassandra.rb
116
117
  - LICENSE
117
- - Manifest
118
118
  - README.rdoc
119
- - Rakefile
119
+ files:
120
120
  - bin/cassandra_helper
121
- - conf/cassandra.in.sh
122
- - conf/cassandra.yaml
123
- - conf/log4j.properties
124
- - conf/storage-conf.xml
125
- - lib/cassandra.rb
126
- - lib/cassandra/0.6.rb
121
+ - CHANGELOG
122
+ - conf/0.6/cassandra.in.sh
123
+ - conf/0.6/log4j.properties
124
+ - conf/0.6/schema.json
125
+ - conf/0.6/storage-conf.xml
126
+ - conf/0.7/cassandra.in.sh
127
+ - conf/0.7/cassandra.yaml
128
+ - conf/0.7/log4j-server.properties
129
+ - conf/0.7/schema.json
130
+ - conf/0.7/schema.txt
131
+ - conf/0.8/cassandra.in.sh
132
+ - conf/0.8/cassandra.yaml
133
+ - conf/0.8/log4j-server.properties
134
+ - conf/0.8/schema.json
135
+ - conf/0.8/schema.txt
127
136
  - lib/cassandra/0.6/cassandra.rb
128
137
  - lib/cassandra/0.6/columns.rb
129
138
  - lib/cassandra/0.6/protocol.rb
130
- - lib/cassandra/0.7.rb
139
+ - lib/cassandra/0.6.rb
131
140
  - lib/cassandra/0.7/cassandra.rb
132
141
  - lib/cassandra/0.7/column_family.rb
133
142
  - lib/cassandra/0.7/columns.rb
134
143
  - lib/cassandra/0.7/keyspace.rb
135
144
  - lib/cassandra/0.7/protocol.rb
145
+ - lib/cassandra/0.7.rb
146
+ - lib/cassandra/0.8/cassandra.rb
147
+ - lib/cassandra/0.8/column_family.rb
148
+ - lib/cassandra/0.8/columns.rb
149
+ - lib/cassandra/0.8/keyspace.rb
150
+ - lib/cassandra/0.8/protocol.rb
151
+ - lib/cassandra/0.8.rb
136
152
  - lib/cassandra/array.rb
137
153
  - lib/cassandra/cassandra.rb
138
154
  - lib/cassandra/columns.rb
@@ -144,6 +160,11 @@ files:
144
160
  - lib/cassandra/mock.rb
145
161
  - lib/cassandra/ordered_hash.rb
146
162
  - lib/cassandra/time.rb
163
+ - lib/cassandra.rb
164
+ - LICENSE
165
+ - Manifest
166
+ - Rakefile
167
+ - README.rdoc
147
168
  - test/cassandra_client_test.rb
148
169
  - test/cassandra_mock_test.rb
149
170
  - test/cassandra_test.rb
@@ -157,9 +178,11 @@ files:
157
178
  - vendor/0.7/gen-rb/cassandra.rb
158
179
  - vendor/0.7/gen-rb/cassandra_constants.rb
159
180
  - vendor/0.7/gen-rb/cassandra_types.rb
181
+ - vendor/0.8/gen-rb/cassandra.rb
182
+ - vendor/0.8/gen-rb/cassandra_constants.rb
183
+ - vendor/0.8/gen-rb/cassandra_types.rb
160
184
  - cassandra.gemspec
161
- has_rdoc: true
162
- homepage: ""
185
+ homepage: http://fauna.github.com/fauna/cassandra/
163
186
  licenses: []
164
187
 
165
188
  post_install_message:
@@ -194,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
217
  requirements: []
195
218
 
196
219
  rubyforge_project: fauna
197
- rubygems_version: 1.3.7
220
+ rubygems_version: 1.7.2
198
221
  signing_key:
199
222
  specification_version: 3
200
223
  summary: A Ruby client for the Cassandra distributed database.
data/conf/cassandra.yaml DELETED
@@ -1,113 +0,0 @@
1
- # Cassandra YAML generated from previous config
2
- # Configuration wiki: http://wiki.apache.org/cassandra/StorageConfiguration
3
-
4
- cluster_name: Test
5
-
6
- listen_address: localhost
7
- storage_port: 7000
8
- rpc_port: 9160
9
- seeds:
10
- - 127.0.0.1
11
- data_file_directories:
12
- - data/cassandra/data
13
- commitlog_directory: data/cassandra/commitlog
14
- auto_bootstrap: false
15
- partitioner: org.apache.cassandra.dht.RandomPartitioner
16
- authenticator: org.apache.cassandra.auth.AllowAllAuthenticator
17
-
18
- binary_memtable_throughput_in_mb: 256
19
- column_index_size_in_kb: 64
20
- commitlog_rotation_threshold_in_mb: 128
21
- commitlog_sync: periodic
22
- commitlog_sync_period_in_ms: 10000
23
- concurrent_reads: 8
24
- concurrent_writes: 32
25
- disk_access_mode: auto
26
- dynamic_snitch: false
27
- hinted_handoff_enabled: true
28
- in_memory_compaction_limit_in_mb: 256
29
- memtable_flush_after_mins: 60
30
- memtable_operations_in_millions: 0.3
31
- memtable_throughput_in_mb: 64
32
- phi_convict_threshold: 8
33
- rpc_timeout_in_ms: 5000
34
- sliced_buffer_size_in_kb: 64
35
- snapshot_before_compaction: false
36
- thrift_framed_transport_size_in_mb: 15
37
- thrift_max_message_length_in_mb: 16
38
-
39
-
40
- keyspaces:
41
-
42
- - name: Twitter
43
- replication_factor: 1
44
- replica_placement_strategy: org.apache.cassandra.locator.RackUnawareStrategy
45
- column_families:
46
- - name: Users
47
- compare_with: UTF8Type
48
- - name: UserAudits
49
- compare_with: UTF8Type
50
- - name: UserRelationships
51
- compare_with: UTF8Type
52
- column_type: Super
53
- compare_subcolumns_with: TimeUUIDType
54
- - name: Usernames
55
- compare_with: UTF8Type
56
- - name: Statuses
57
- compare_with: UTF8Type
58
- - name: StatusAudits
59
- compare_with: UTF8Type
60
- - name: StatusRelationships
61
- compare_with: UTF8Type
62
- column_type: Super
63
- compare_subcolumns_with: TimeUUIDType
64
- - name: Index
65
- compare_with: UTF8Type
66
- column_type: Super
67
- - name: TimelinishThings
68
- compare_with: BytesType
69
- column_type: Standard
70
-
71
- - name: Multiblog
72
- replication_factor: 1
73
- replica_placement_strategy: org.apache.cassandra.locator.RackUnawareStrategy
74
- column_families:
75
- - name: Blogs
76
- compare_with: TimeUUIDType
77
- - name: Comments
78
- compare_with: TimeUUIDType
79
-
80
- - name: MultiblogLong
81
- replication_factor: 1
82
- replica_placement_strategy: org.apache.cassandra.locator.RackUnawareStrategy
83
- column_families:
84
- - name: Blogs
85
- compare_with: LongType
86
- - name: Comments
87
- compare_with: LongType
88
-
89
- - name: CassandraObject
90
- replication_factor: 1
91
- replica_placement_strategy: org.apache.cassandra.locator.RackUnawareStrategy
92
- column_families:
93
- - name: Customers
94
- compare_with: UTF8Type
95
- - name: CustomerRelationships
96
- compare_with: UTF8Type
97
- column_type: Super
98
- compare_subcolumns_with: TimeUUIDType
99
- - name: CustomersByLastName
100
- compare_with: TimeUUIDType
101
- - name: Invoices
102
- compare_with: UTF8Type
103
- - name: InvoiceRelationships
104
- compare_with: UTF8Type
105
- column_type: Super
106
- compare_subcolumns_with: TimeUUIDType
107
- - name: InvoicesByNumber
108
- compare_with: UTF8Type
109
- - name: Payments
110
- compare_with: UTF8Type
111
- - name: Appointments
112
- compare_with: UTF8Type
113
-