cassandro 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yjk2MWQwNTM2MmRlZDcyOTAyNTQzZTc4NzAxODEzNTU2MWQ0MTJkNg==
4
+ ZjdiYjhlYzUyNGRhZjJhNzQ5Y2I5NWQ5Nzk0OTkzMTVjYzEzZDBiOA==
5
5
  data.tar.gz: !binary |-
6
- YTYwOTU3N2E2ODQ3NWIxNTU5MzI5ZTI0OWQ5ZDI2NzNkZmYyZTFhOA==
6
+ M2RjMGIxMWRiYzYxMDIxMTgxYjA5ODY5YmM0ZjQ5YzU2NGY5Y2JiNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTJkYjFlMDM4YmExYjYwMzJkMTYyZTkzYWJlN2Q4N2Q4NzhlM2IwYzcxZDc3
10
- OGFiMWFjZTY1NjUwMTdlOWM2N2Y5ZTkwM2E0OWU5NzhhZjJlNGUzZTI0NDFk
11
- NjFhYzJhNjM0YzViYWQ4OWQwMjVjY2I5NDlmYzM4MzczMmQ4YjQ=
9
+ MjZmMGE4NzA3ZDdlNDViYzI2M2IyM2I3NWYzY2Q3ZThjYzBjODk1Yzg1NThk
10
+ NTBjMjcyMDE4MTc2ZDhlZWU4YzNjMjhmM2VkOWMzMzY0MWRkNTEyOWY2YTFh
11
+ MDE1OTA3NzJkOGFjZGRkNGI3N2VkMDk4Mjk1MjUxZWFiZmQzNjY=
12
12
  data.tar.gz: !binary |-
13
- YjhiMThkNGYxNTM4YzczYzQxZTUyY2U4YThmYjNlZGEyZGYyMjA2MjI5NDJh
14
- YWY3ZmZmMjM5N2YwNzg4MTAxZjQ4MzAzZDkyMTJiNjZkZDE0NGQzMjI4M2Ux
15
- YTA0OTQ0M2Y5Y2FkMGRmNjY5MjJlYzZjM2ZmYzAyYmYzNTBkNjI=
13
+ ODE4YzQzY2IzMDI0NGM3MThhOTVkMzgxZmE4ODA5NDNiOGM2MmU3ZGU2Y2Y2
14
+ ZDA1NGUyMmRlYmI2MDQxNWJjMTYzYzY5MDY1OWQ3ZTVkZTlkZTY4ZGNlYTZl
15
+ MzVmNzYzMWEwZWY0YzU1MjdkNGY5ZWQyNTQ4NDkzY2EyMzI3ZTE=
data/.gems CHANGED
@@ -1 +1 @@
1
- cassandra-driver -v 1.0.0.beta.3
1
+ cassandra-driver -v 1.0.0.rc.1
data/cassandro.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "cassandro"
5
- s.version = "0.1.1"
5
+ s.version = "0.2.0"
6
6
  s.summary = "Ruby ORM for Apache Cassandra"
7
7
  s.license = "MIT"
8
8
  s.description = "Lightweight Apache Cassandra ORM for Ruby"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = ["orazile@gmail.com", "leonardomateo@gmail.com"]
11
11
  s.homepage = "https://github.com/tarolandia/cassandro"
12
12
  s.require_paths = ["lib"]
13
- s.add_dependency "cassandra-driver", '>= 1.0.0.beta.3'
13
+ s.add_dependency "cassandra-driver", '>= 1.0.0.rc.1'
14
14
  s.add_development_dependency "protest", '~> 0.5.3'
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
@@ -19,7 +19,7 @@ module Cassandro
19
19
 
20
20
  def self.connect(options = {})
21
21
  keyspace = options.delete(:keyspace)
22
- @@cluster = Cassandra.connect(options)
22
+ @@cluster = Cassandra.cluster(options)
23
23
  @@session = @@cluster.connect(keyspace || nil)
24
24
  end
25
25
 
@@ -13,7 +13,7 @@ Protest.describe "Cassandro Module" do
13
13
  test "creates new keyspace" do
14
14
  Cassandro.connect(hosts: ["127.0.0.1"])
15
15
  assert_equal Cassandra::Results::Void, Cassandro.create_keyspace("test_keyspace").class
16
- assert_equal NilClass, Cassandro.use("test_keyspace").class
16
+ assert_equal Cassandra::Results::Void, Cassandro.use("test_keyspace").class
17
17
  end
18
18
  end
19
19
 
data/test/helper.rb CHANGED
@@ -3,7 +3,7 @@ require 'protest'
3
3
 
4
4
  require_relative '../lib/cassandro'
5
5
 
6
- CASSANDRA = Cassandra.connect(hosts: ['127.0.0.1'])
6
+ CASSANDRA = Cassandra.cluster(hosts: ['127.0.0.1'])
7
7
  SESSION = CASSANDRA.connect
8
8
 
9
9
  keyspace_definition = <<-KSDEF
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lautaro Orazi
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.0.beta.3
20
+ version: 1.0.0.rc.1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.0.0.beta.3
27
+ version: 1.0.0.rc.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: protest
30
30
  requirement: !ruby/object:Gem::Requirement