extendi-cassandra_object 1.0.20 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b79056525450112d18320a3ff8a87e1e26d8a38d0b0ebd86332ff13086501fd6
4
- data.tar.gz: afc85567bbb06d06d31441c2a67a922d1cb3ed4310cf2dd2ec22bbb97629f076
3
+ metadata.gz: 3b509a1263a27a71b3d2630122bacca9ee3d368de35642199a684682ebcbd745
4
+ data.tar.gz: 7909952a2d8ea54ec11650ec998cf9791a351addc6a07d3ce93ff2057864770b
5
5
  SHA512:
6
- metadata.gz: ffd15d82f86c0099a656e5038cb330c146e04be8a5d5bcfbd69f86e516c03662de380f8f010023af7eda2d33c8ce01ec80c012deb6d3fab95b3fed3322a264a7
7
- data.tar.gz: 299e74d1ff2200be8bdf5347228fac47b763b74d7edcb200da5c97ef8b5e21ffb0bc81ac2af8835af590780f5cbf119452e3dd93409681a4c79649adf554908b
6
+ metadata.gz: 8b29fb05f1f56287337ae5569a5cbc5468c8c1a999cc34070a1f7c7448915c9f613abd659ef891e7b832f14aef0f6efa17c022e5795b8d85ed686d9122e2bde8
7
+ data.tar.gz: 4b86c92a501f97636a4a4e544683fddffcdeeddd27aa6c8395d670438e628100dd5825e2a7a2e542e2f37466010a747d6a9e4f29d8915db5146486260453ab92
@@ -1,16 +1,14 @@
1
+ dist: trusty
2
+
1
3
  language: ruby
2
4
  rvm:
3
5
  - 2.5.1
4
- - 2.6.1
5
- - 2.6.3
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
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## [1.1.0] - 2020-06-18
4
+ ### cHANGED
5
+ - load_balancing_policy now accept only Cassandra::LoadBalancing::Policies objects
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'extendi-cassandra_object'
5
- s.version = '1.0.20'
5
+ s.version = '1.1.0'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ['Duccio Giovannelli', 'gotime']
@@ -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,
@@ -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: 'RoundRobin',
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.20
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: 2019-09-01 00:00:00.000000000 Z
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.0.2
207
+ rubygems_version: 3.1.2
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Cassandra ActiveModel