engineyard-serverside-adapter 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,6 +11,12 @@ task :release do
11
11
  system("git commit -am 'Bump to engineyard-serverside version #{new_version}'") &&
12
12
  system("git tag v#{new_version}") &&
13
13
  system("gem build engineyard-serverside-adapter.gemspec"))
14
+
15
+ puts '********************************************************************************'
16
+ puts
17
+ puts "Don't forget to `gem push` and `git push --tags`!"
18
+ puts
19
+ puts '********************************************************************************'
14
20
  end
15
21
 
16
22
  def bump_to_latest_serverside
@@ -24,7 +24,7 @@ module EY
24
24
 
25
25
  instances.each do |instance|
26
26
  unless instance.respond_to?(:[]) && instance[:hostname] && instance[:roles]
27
- raise ArgumentError, "Malformed instance #{instance}; it must have both [:hostname] and [:roles]"
27
+ raise ArgumentError, "Malformed instance #{instance.inspect}; it must have both [:hostname] and [:roles]"
28
28
  end
29
29
  end
30
30
 
@@ -1,7 +1,7 @@
1
1
  module EY
2
2
  module Serverside
3
3
  class Adapter
4
- VERSION = "1.3.5"
4
+ VERSION = "1.3.6"
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe EY::Serverside::Adapter::Arguments do
4
- def raises_argument_error(&block)
4
+ def raises_argument_error(message = nil, &block)
5
5
  lambda {
6
6
  block.call(described_class.new)
7
- }.should raise_error(ArgumentError)
7
+ }.should raise_error(ArgumentError, message)
8
8
  end
9
9
 
10
10
  it "raises an ArgumentError immediately when instances is empty" do
@@ -20,7 +20,7 @@ describe EY::Serverside::Adapter::Arguments do
20
20
  end
21
21
 
22
22
  it "raises an ArgumentError immediately when instances contains something totally silly" do
23
- raises_argument_error do |arguments|
23
+ raises_argument_error(/Malformed instance nil/) do |arguments|
24
24
  arguments.instances = [nil]
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside-adapter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 5
10
- version: 1.3.5
9
+ - 6
10
+ version: 1.3.6
11
11
  platform: ruby
12
12
  authors: []
13
13
 
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-15 00:00:00 -07:00
18
+ date: 2010-11-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency