hugo 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,5 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require 'spec/rake/spectask'
4
+
5
+ desc "Run all specs"
6
+ Spec::Rake::SpecTask.new('spec') do |t|
7
+ t.spec_files = FileList['spec/**/*.rb']
8
+ end
9
+
3
10
 
4
11
  begin
5
12
  require 'jeweler'
data/lib/hugo/aws/ec2.rb CHANGED
@@ -22,7 +22,7 @@ module Hugo
22
22
  if options["placement"] and options["placement"]["availabilityZone"]
23
23
  @zone = options["placement"]["availabilityZone"]
24
24
  elsif options[:zone]
25
- @zone = option[:zone]
25
+ @zone = options[:zone]
26
26
  else
27
27
  @zone = ZONE
28
28
  end
data/spec/spec_helper.rb CHANGED
@@ -1,11 +1,5 @@
1
+ require 'rubygems'
1
2
  require File.expand_path(File.dirname(__FILE__) + "/../lib/hugo")
2
- #
3
- # Bundler.require_env(:test) # get rspec and webrat in here
4
-
5
-
6
- # require 'rubygems'
7
- # require 'sinatra'
8
- #require 'rack/test'
9
3
  require 'spec'
10
4
  require 'spec/autorun'
11
5
  require 'spec/interop/test'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hugo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-07 00:00:00 -05:00
13
+ date: 2010-02-18 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -129,6 +129,5 @@ test_files:
129
129
  - spec/lib/hugo/aws/rds_spec.rb
130
130
  - spec/lib/hugo/balancer_spec.rb
131
131
  - spec/lib/hugo/database_spec.rb
132
- - spec/lib/hugo/dns_spec.rb
133
132
  - spec/lib/hugo_spec.rb
134
133
  - spec/spec_helper.rb
@@ -1,29 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
-
3
- describe "Hugo DNS" do
4
- it "should be valid" do
5
- zone = mock('Zerigo::DNS::Zone')
6
- zone.stub!(:id).and_return(1)
7
- Zerigo::DNS::Base.stub!(:user=)
8
- Zerigo::DNS::Base.stub!(:password=)
9
- Zerigo::DNS::Zone.stub!(:find_or_create).and_return(zone)
10
- Zerigo::DNS::Host.stub!(:update_or_create).and_return(mock('Zerigo::DNS::Host'))
11
-
12
- block = lambda do
13
- cloud "my_cloud" do
14
- dns "www" do
15
- domain "example.com"
16
- user "name@email.com"
17
- token "1e23fjsda"
18
- type "A"
19
- ttl 86400
20
- data "123.123.123.123"
21
- end
22
- end
23
- end
24
-
25
- lambda do
26
- Hugo &block
27
- end.should_not raise_error
28
- end
29
- end