extendi-cassandra_object 1.0.19 → 1.0.20

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: db5689a9457f279a1fbe638e83d899b6ca640563b7d1332e8d741fc6afb5834e
4
- data.tar.gz: f9d9ad2c05797b892f79c5e57953e20be272b85905365d86a4d62ae793d3e6f4
3
+ metadata.gz: b79056525450112d18320a3ff8a87e1e26d8a38d0b0ebd86332ff13086501fd6
4
+ data.tar.gz: afc85567bbb06d06d31441c2a67a922d1cb3ed4310cf2dd2ec22bbb97629f076
5
5
  SHA512:
6
- metadata.gz: f64fad5dbbce31d041661b7033dfd967f576e54f0a9a2375784183622bb24c9ee671c43fc5839e91bd289954441060ec2a96304663354f07abf6f499fa8d97ac
7
- data.tar.gz: a410cfabfafa3dee262fa0fa20f4e5670f7306f6691ca4bcb4b21cb8e04c5bb488ab3ff8aa8c61fb5ab33bc805f5a377c3bc823169099f49a697f1b325b5aa2f
6
+ metadata.gz: ffd15d82f86c0099a656e5038cb330c146e04be8a5d5bcfbd69f86e516c03662de380f8f010023af7eda2d33c8ce01ec80c012deb6d3fab95b3fed3322a264a7
7
+ data.tar.gz: 299e74d1ff2200be8bdf5347228fac47b763b74d7edcb200da5c97ef8b5e21ffb0bc81ac2af8835af590780f5cbf119452e3dd93409681a4c79649adf554908b
data/.gitignore CHANGED
@@ -4,3 +4,7 @@ Gemfile.lock
4
4
  .byebug_history
5
5
  .ruby-version
6
6
  TAGS
7
+ .editorconfig
8
+ .rubocop.yml
9
+ .prettierrc.js
10
+ .eslintrc.js
@@ -2,6 +2,8 @@ language: ruby
2
2
  rvm:
3
3
  - 2.5.1
4
4
  - 2.6.1
5
+ - 2.6.3
6
+ - 2.6.4
5
7
  env:
6
8
  - SCYLLA_VERSION=3.0.2
7
9
  - CASSANDRA_VERSION=3.0.10
@@ -25,11 +27,11 @@ before_install:
25
27
 
26
28
  install:
27
29
  - |
28
- if [ -n "$CASSANDRA_VERSION" ];then
29
- ccm create -n 1 -v $CASSANDRA_VERSION -i 127.0.0. -s -b test-cluster;
30
+ if [ -n "$CASSANDRA_VERSION" ];then
31
+ ccm create -n 1 -v $CASSANDRA_VERSION -i 127.0.0. -s -b test-cluster;
30
32
  ccm start;
31
33
  fi
32
- if [ -n "$SCYLLA_VERSION" ];then
34
+ if [ -n "$SCYLLA_VERSION" ];then
33
35
  SCYLLA_IMAGE=scylladb/scylla:$SCYLLA_VERSION
34
36
  docker pull $SCYLLA_IMAGE
35
37
  docker run --name cassandra_test -d -p "9042:9042" -p "9160:9160" $SCYLLA_IMAGE
@@ -38,7 +40,7 @@ install:
38
40
  echo "waiting..."
39
41
  done
40
42
  fi
41
- if [ -n "$ACTIVEMODEL_VERSION" ];then
42
- bundle add activemodel --version "$ACTIVEMODEL_VERSION";
43
+ if [ -n "$ACTIVEMODEL_VERSION" ];then
44
+ bundle add activemodel --version "$ACTIVEMODEL_VERSION";
43
45
  fi
44
46
  bundle install
@@ -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.19'
5
+ s.version = '1.0.20'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ['Duccio Giovannelli', 'gotime']
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test}/*`.split("\n")
18
18
  s.require_paths = ['lib']
19
19
 
20
- s.add_runtime_dependency('activemodel', '>= 4.2.0', '< 6.0.0')
20
+ s.add_runtime_dependency('activemodel', '>= 4.2.0', '< 7.0.0')
21
21
  s.add_runtime_dependency('cassandra-driver', '>= 3.2.3')
22
22
  s.add_runtime_dependency('lz4-ruby', '>= 0.3.3')
23
23
 
@@ -48,13 +48,12 @@ class CassandraObject::FinderMethodsTest < CassandraObject::TestCase
48
48
 
49
49
  test 'IssueSchemaCk: find with ids sorted' do
50
50
  ids = (0..999).to_a.map(&:to_s)
51
- time = Time.now - 10.years
52
51
  ids.each do |i|
53
- IssueSchemaCk.create(id: i, type: 'first', date: time, value: 1.to_f)
54
- IssueSchemaCk.create(id: i, type: 'first', date: Time.now, value: 1.to_f)
52
+ IssueSchemaCk.create(id: i, type: 'first', date: Date.yesterday.to_time, value: 1.0)
53
+ IssueSchemaCk.create(id: i, type: 'first', date: Date.today.to_time, value: 2.0)
55
54
  end
56
55
  ids_to_find = ids.sample(10)
57
- assert_equal ids_to_find.size * 2, IssueSchemaCk.find(ids_to_find).map(&:id).size
56
+ assert_equal ids_to_find.size * 2, IssueSchemaCk.find(ids_to_find).size
58
57
  assert_equal ids_to_find, IssueSchemaCk.find(ids_to_find).map(&:id).uniq
59
58
  IssueSchemaCk.delete_all
60
59
  end
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.19
4
+ version: 1.0.20
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-02-22 00:00:00.000000000 Z
12
+ date: 2019-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 4.2.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: 6.0.0
23
+ version: 7.0.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 4.2.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.0.0
33
+ version: 7.0.0
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: cassandra-driver
36
36
  requirement: !ruby/object:Gem::Requirement