extendi-cassandra_object 1.0.11 → 1.0.12

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
  SHA1:
3
- metadata.gz: 7f1757c6507b3cd8dee7f2abc12f0477c9c7d215
4
- data.tar.gz: d0ddfe7860fee792792e11aaf1c73cf652fbb594
3
+ metadata.gz: 1c9dfc74fd091d8d2e83dfabb869854132f012fe
4
+ data.tar.gz: d2b1e0dc324516e1267335e6dfcdec347fd2bda8
5
5
  SHA512:
6
- metadata.gz: 3b1a201f73f65278f1ec3b4ced3bbcd3839e4ff66e3ccb1e276e4394905d66a582897c72e34609f024737a740b18144322ca02d91459668e256a1b6f68cdfc3c
7
- data.tar.gz: 947cb0f41a9908b036277d49b05c59fc71138bb6f20bdf27297b1ba16d6fe79568465416fba631b179f46ec693e2c235e6b545ed43e700977c265c49a4aaf3ec
6
+ metadata.gz: d0342e1f211afaaedccc4c4febbb74c5c14189cbd4b3cfab2ab5ccfc96aa96d7df4cf3b25c814607d16f1c40c5d89091fe6caca3038467b403878b8251ad3e26
7
+ data.tar.gz: 6b0d0901229064ac42e43646c0e50f0846057197f3fe7a51220578f53a68f47f9241ea6204a474d28b159b43b6ea9d7db873b5a366caad880f1f89c543fb6e20
@@ -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.11'
5
+ s.version = '1.0.12'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ['Duccio Giovannelli', 'gotime']
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ['lib']
19
19
 
20
20
  s.add_runtime_dependency('activemodel', '<= 5.2')
21
- s.add_runtime_dependency('cassandra-driver', '>= 3.1.0')
21
+ s.add_runtime_dependency('cassandra-driver', '>= 3.2.2')
22
22
  s.add_runtime_dependency('lz4-ruby', '>= 0.3.3')
23
23
 
24
24
  s.platform = Gem::Platform::RUBY
@@ -71,4 +71,5 @@ module CassandraObject
71
71
  end
72
72
  end
73
73
 
74
+ require 'initializers/reconnection'
74
75
  require 'cassandra_object/railtie' if defined?(Rails)
@@ -6,7 +6,6 @@ module CassandraObject
6
6
  module Adapters
7
7
  class CassandraSchemalessAdapter < AbstractAdapter
8
8
  class QueryBuilder
9
-
10
9
  def initialize(adapter, scope)
11
10
  @adapter = adapter
12
11
  @scope = scope
@@ -193,7 +192,7 @@ module CassandraObject
193
192
  new_next_cursor = item.paging_state unless item.last_page?
194
193
  item.rows.each{ |x| records << x }
195
194
  end
196
- return {results: records, new_next_cursor: new_next_cursor}
195
+ {results: records, new_next_cursor: new_next_cursor}
197
196
  end
198
197
 
199
198
  def insert(table, id, attributes, ttl = nil)
@@ -1,7 +1,4 @@
1
1
  module CassandraObject
2
- ###
3
- # Force reconnection in test
4
- ##
5
2
  module AdapterExtension
6
3
  def execute(*args)
7
4
  retries = 0
data/test/test_helper.rb CHANGED
@@ -5,7 +5,6 @@ require 'rails/test_help'
5
5
  require 'mocha/setup'
6
6
 
7
7
  require 'cassandra_object'
8
- require 'support/reconnection'
9
8
  require 'support/cassandra'
10
9
  require 'support/issue'
11
10
  require 'support/issue_dynamic'
@@ -17,7 +16,6 @@ require 'support/issue_schema_ck'
17
16
 
18
17
  module CassandraObject
19
18
  class TestCase < ActiveSupport::TestCase
20
-
21
19
  def temp_object(&block)
22
20
  Class.new(CassandraObject::Base) do
23
21
  self.column_family = 'Issues'
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.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duccio Giovannelli
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 3.1.0
34
+ version: 3.2.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 3.1.0
41
+ version: 3.2.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: lz4-ruby
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +133,7 @@ files:
133
133
  - lib/cassandra_object/types/type_helper.rb
134
134
  - lib/cassandra_object/validations.rb
135
135
  - lib/initializers/cassandra.rb
136
+ - lib/initializers/reconnection.rb
136
137
  - test/support/cassandra.rb
137
138
  - test/support/issue.rb
138
139
  - test/support/issue_custom_config.rb
@@ -141,7 +142,6 @@ files:
141
142
  - test/support/issue_schema_child.rb
142
143
  - test/support/issue_schema_ck.rb
143
144
  - test/support/issue_schema_father.rb
144
- - test/support/reconnection.rb
145
145
  - test/test_helper.rb
146
146
  - test/unit/active_model_test.rb
147
147
  - test/unit/adapters/adapter_test.rb