extendi-cassandra_object 1.0.20 → 1.1.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b509a1263a27a71b3d2630122bacca9ee3d368de35642199a684682ebcbd745
|
|
4
|
+
data.tar.gz: 7909952a2d8ea54ec11650ec998cf9791a351addc6a07d3ce93ff2057864770b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b29fb05f1f56287337ae5569a5cbc5468c8c1a999cc34070a1f7c7448915c9f613abd659ef891e7b832f14aef0f6efa17c022e5795b8d85ed686d9122e2bde8
|
|
7
|
+
data.tar.gz: 4b86c92a501f97636a4a4e544683fddffcdeeddd27aa6c8395d670438e628100dd5825e2a7a2e542e2f37466010a747d6a9e4f29d8915db5146486260453ab92
|
data/.travis.yml
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
dist: trusty
|
|
2
|
+
|
|
1
3
|
language: ruby
|
|
2
4
|
rvm:
|
|
3
5
|
- 2.5.1
|
|
4
|
-
- 2.6.
|
|
5
|
-
- 2.
|
|
6
|
-
- 2.6.4
|
|
6
|
+
- 2.6.5
|
|
7
|
+
- 2.7.0
|
|
7
8
|
env:
|
|
8
9
|
- SCYLLA_VERSION=3.0.2
|
|
9
10
|
- CASSANDRA_VERSION=3.0.10
|
|
10
11
|
- CASSANDRA_VERSION=3.9
|
|
11
|
-
- SCYLLA_VERSION=3.0.2 ACTIVEMODEL_VERSION='< 5'
|
|
12
|
-
- CASSANDRA_VERSION=3.0.10 ACTIVEMODEL_VERSION='< 5'
|
|
13
|
-
- CASSANDRA_VERSION=3.9 ACTIVEMODEL_VERSION='< 5'
|
|
14
12
|
|
|
15
13
|
jdk:
|
|
16
14
|
- oraclejdk8
|
|
@@ -40,7 +38,4 @@ install:
|
|
|
40
38
|
echo "waiting..."
|
|
41
39
|
done
|
|
42
40
|
fi
|
|
43
|
-
if [ -n "$ACTIVEMODEL_VERSION" ];then
|
|
44
|
-
bundle add activemodel --version "$ACTIVEMODEL_VERSION";
|
|
45
|
-
fi
|
|
46
41
|
bundle install
|
data/CHANGELOG
CHANGED
|
@@ -87,7 +87,7 @@ module CassandraObject
|
|
|
87
87
|
])
|
|
88
88
|
|
|
89
89
|
{
|
|
90
|
-
load_balancing_policy: 'Cassandra::LoadBalancing::Policies::%s',
|
|
90
|
+
# load_balancing_policy: 'Cassandra::LoadBalancing::Policies::%s',
|
|
91
91
|
reconnection_policy: 'Cassandra::Reconnection::Policies::%s',
|
|
92
92
|
retry_policy: 'Cassandra::Retry::Policies::%s'
|
|
93
93
|
}.each do |policy_key, class_template|
|
|
@@ -100,7 +100,7 @@ module CassandraObject
|
|
|
100
100
|
])
|
|
101
101
|
|
|
102
102
|
{
|
|
103
|
-
load_balancing_policy: 'Cassandra::LoadBalancing::Policies::%s',
|
|
103
|
+
# load_balancing_policy: 'Cassandra::LoadBalancing::Policies::%s',
|
|
104
104
|
reconnection_policy: 'Cassandra::Reconnection::Policies::%s',
|
|
105
105
|
retry_policy: 'Cassandra::Retry::Policies::%s'
|
|
106
106
|
}.each do |policy_key, class_template|
|
|
@@ -113,7 +113,7 @@ module CassandraObject
|
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
# Setting defaults
|
|
118
118
|
cluster_options.merge!({
|
|
119
119
|
heartbeat_interval: cluster_options.keys.include?(:heartbeat_interval) ? cluster_options[:heartbeat_interval] : 30,
|
data/test/support/cassandra.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
Bundler.require :cassandra
|
|
2
4
|
|
|
3
5
|
CassandraObject::Base.config = {
|
|
@@ -13,7 +15,7 @@ CassandraObject::Base.config = {
|
|
|
13
15
|
connections_per_local_node: 4,
|
|
14
16
|
schema_refresh_delay: 0.1,
|
|
15
17
|
schema_refresh_timeout: 0.1,
|
|
16
|
-
load_balancing_policy:
|
|
18
|
+
load_balancing_policy: Cassandra::LoadBalancing::Policies::RoundRobin.new,
|
|
17
19
|
reconnection_policy: { policy: 'Constant', params: [5] },
|
|
18
20
|
retry_policy: 'Default',
|
|
19
21
|
# connections_per_remote_node: nil,
|
|
@@ -30,12 +32,12 @@ end
|
|
|
30
32
|
sleep 1
|
|
31
33
|
CassandraObject::Schema.create_keyspace 'cassandra_object_test'
|
|
32
34
|
CassandraObject::Schemaless.create_column_family 'Issues'
|
|
33
|
-
CassandraObject::Schema.create_column_family 'IssueSchemas', {attributes: 'id text, title text, description text, field float, intero int, created_at timestamp, updated_at timestamp, PRIMARY KEY (id)', options: {}}
|
|
34
|
-
CassandraObject::Schema.create_column_family 'IssueSchemaCks', {attributes: 'id text, type text, date timestamp, value float, PRIMARY KEY (id, type, date)', options: {}}
|
|
35
|
+
CassandraObject::Schema.create_column_family 'IssueSchemas', { attributes: 'id text, title text, description text, field float, intero int, created_at timestamp, updated_at timestamp, PRIMARY KEY (id)', options: {} }
|
|
36
|
+
CassandraObject::Schema.create_column_family 'IssueSchemaCks', { attributes: 'id text, type text, date timestamp, value float, PRIMARY KEY (id, type, date)', options: {} }
|
|
35
37
|
CassandraObject::Schemaless.create_column_family 'IssueDynamics'
|
|
36
38
|
CassandraObject::Schemaless.create_column_family 'IssuesCustomConfig'
|
|
37
|
-
CassandraObject::Schema.create_column_family 'IssueSchemaFathers', {attributes: 'id text, title text, field float, created_at timestamp, updated_at timestamp, PRIMARY KEY (id)', options: {}}
|
|
38
|
-
CassandraObject::Schema.create_column_family 'IssueSchemaChildren', {attributes: 'id text, title text, description text, field float, created_at timestamp, updated_at timestamp, issue_schema_father_id text, PRIMARY KEY (id)', options: {}}
|
|
39
|
+
CassandraObject::Schema.create_column_family 'IssueSchemaFathers', { attributes: 'id text, title text, field float, created_at timestamp, updated_at timestamp, PRIMARY KEY (id)', options: {} }
|
|
40
|
+
CassandraObject::Schema.create_column_family 'IssueSchemaChildren', { attributes: 'id text, title text, description text, field float, created_at timestamp, updated_at timestamp, issue_schema_father_id text, PRIMARY KEY (id)', options: {} }
|
|
39
41
|
CassandraObject::BaseSchemaless.adapter.consistency = :quorum
|
|
40
42
|
CassandraObject::BaseSchemalessDynamic.adapter.consistency = :quorum
|
|
41
43
|
CassandraObject::BaseSchema.adapter.consistency = :quorum
|
|
@@ -60,7 +62,6 @@ end
|
|
|
60
62
|
|
|
61
63
|
module ActiveSupport
|
|
62
64
|
class TestCase
|
|
63
|
-
|
|
64
65
|
self.test_order = :random
|
|
65
66
|
|
|
66
67
|
def after_setup
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: extendi-cassandra_object
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Duccio Giovannelli
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemodel
|
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
204
204
|
- !ruby/object:Gem::Version
|
|
205
205
|
version: 1.3.5
|
|
206
206
|
requirements: []
|
|
207
|
-
rubygems_version: 3.
|
|
207
|
+
rubygems_version: 3.1.2
|
|
208
208
|
signing_key:
|
|
209
209
|
specification_version: 4
|
|
210
210
|
summary: Cassandra ActiveModel
|