auger 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
  gem 'host_range'
3
3
  gem 'rainbow'
4
+ gem 'cassandra'
4
5
  gem 'cassandra-cql'
5
6
  gem 'net-dns'
6
7
  gem 'redis'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.2
@@ -21,6 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_dependency('net-dns' , '>= 0.7.1')
22
22
  gem.add_dependency('rainbow' , '>=1.1.4')
23
23
  gem.add_dependency('host_range' , '>=0.0.1')
24
+ gem.add_dependency('cassandra' , '>=0.12.1')
24
25
  gem.add_dependency('cassandra-cql' , '>= 1.0.4')
25
26
  end
26
27
 
@@ -1,7 +1,7 @@
1
1
  module Auger
2
2
 
3
3
  class Request
4
- attr_accessor :tests, :before_tests_proc, :response, :arg
4
+ attr_accessor :tests, :before_tests_proc, :arg
5
5
 
6
6
  def self.load(arg, &block)
7
7
  request = new(arg)
@@ -0,0 +1,46 @@
1
+ require 'cassandra'
2
+
3
+ module Auger
4
+
5
+ class Project
6
+ def cassandra(port = 9160, &block)
7
+ @connections << Cassandra.load(port, &block)
8
+ end
9
+ end
10
+
11
+ class Cassandra < Auger::Connection
12
+ def open(host, options)
13
+ ::Cassandra.new(options[:keyspace], "#{host}:#{options[:port]}")
14
+ end
15
+
16
+ def close(cassandra)
17
+ cassandra.disconnect!
18
+ end
19
+
20
+ def cluster_name(&block)
21
+ @requests << Class.new(Auger::Request) do
22
+ def run(cassandra)
23
+ cassandra.cluster_name
24
+ end
25
+ end.load(nil, &block)
26
+ end
27
+
28
+ def ring(&block)
29
+ @requests << Class.new(Auger::Request) do
30
+ def run(cassandra)
31
+ cassandra.ring
32
+ end
33
+ end.load(nil, &block)
34
+ end
35
+
36
+ def schema_agreement?(&block)
37
+ @requests << Class.new(Auger::Request) do
38
+ def run(cassandra)
39
+ cassandra.schema_agreement?
40
+ end
41
+ end.load(nil, &block)
42
+ end
43
+
44
+ end
45
+
46
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-05 00:00:00.000000000 Z
13
+ date: 2012-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -92,6 +92,22 @@ dependencies:
92
92
  - - ! '>='
93
93
  - !ruby/object:Gem::Version
94
94
  version: 0.0.1
95
+ - !ruby/object:Gem::Dependency
96
+ name: cassandra
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: 0.12.1
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 0.12.1
95
111
  - !ruby/object:Gem::Dependency
96
112
  name: cassandra-cql
97
113
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +154,7 @@ files:
138
154
  - lib/auger/server.rb
139
155
  - lib/auger/test.rb
140
156
  - lib/auger/version.rb
157
+ - lib/plugins/cassandra.rb
141
158
  - lib/plugins/cql.rb
142
159
  - lib/plugins/dns.rb
143
160
  - lib/plugins/http.rb
@@ -164,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
181
  version: '0'
165
182
  requirements: []
166
183
  rubyforge_project:
167
- rubygems_version: 1.8.23
184
+ rubygems_version: 1.8.22
168
185
  signing_key:
169
186
  specification_version: 3
170
187
  summary: App && infrastructure testing DSL