testbot_cloud 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/CHANGELOG +1 -5
- data/Rakefile +3 -2
- data/lib/server/factory.rb +3 -11
- data/lib/testbot_cloud/version.rb +1 -1
- data/spec/server/factory_spec.rb +4 -1
- data/testbot_cloud.gemspec +1 -1
- metadata +4 -4
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -5,8 +5,9 @@ require 'rspec/core/rake_task'
|
|
5
5
|
|
6
6
|
Bundler::GemHelper.install_tasks
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
task :features do
|
9
|
+
puts
|
10
|
+
system("cucumber features --format progress") || exit(1)
|
10
11
|
end
|
11
12
|
|
12
13
|
desc "Run specs"
|
data/lib/server/factory.rb
CHANGED
@@ -1,14 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'fog/compute/models/bluebox/server'
|
5
|
-
rescue LoadError
|
6
|
-
# New style paths in fog master
|
7
|
-
require 'fog/brightbox/models/compute/server'
|
8
|
-
require 'fog/aws/models/compute/server'
|
9
|
-
require 'fog/bluebox/models/compute/server'
|
10
|
-
end
|
11
|
-
|
1
|
+
require 'fog/compute/models/slicehost/server'
|
2
|
+
require 'fog/compute/models/brightbox/server'
|
3
|
+
require 'fog/compute/models/aws/server'
|
12
4
|
require File.expand_path(File.join(File.dirname(__FILE__), 'brightbox.rb'))
|
13
5
|
require File.expand_path(File.join(File.dirname(__FILE__), 'aws.rb'))
|
14
6
|
|
data/spec/server/factory_spec.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper.rb'))
|
2
2
|
|
3
3
|
describe TestbotCloud::Server::Factory do
|
4
|
+
|
4
5
|
it "should create a server wrapper for Brightbox" do
|
5
6
|
server = TestbotCloud::Server::Factory.create(nil, nil, Fog::Brightbox::Compute::Server.new)
|
6
7
|
server.should be_instance_of(TestbotCloud::Server::Brightbox)
|
@@ -13,7 +14,9 @@ describe TestbotCloud::Server::Factory do
|
|
13
14
|
|
14
15
|
it "should raise an error when there is no server wrapper" do
|
15
16
|
expect {
|
16
|
-
TestbotCloud::Server::Factory.create(nil, nil, Fog::
|
17
|
+
TestbotCloud::Server::Factory.create(nil, nil, Fog::Slicehost::Compute::Server.new)
|
17
18
|
}.to raise_error(/Unsupported server type: /)
|
18
19
|
end
|
20
|
+
|
21
|
+
|
19
22
|
end
|
data/testbot_cloud.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
20
|
s.add_dependency "thor", ">0.14.5"
|
21
|
-
s.add_dependency "fog", "
|
21
|
+
s.add_dependency "fog", "=0.7.2"
|
22
22
|
s.add_dependency "activesupport", ">3.0.0"
|
23
23
|
s.add_dependency "rake"
|
24
24
|
s.add_development_dependency "bundler"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testbot_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- - "
|
43
|
+
- - "="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
hash: 7
|
46
46
|
segments:
|