rubber 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a078638f1d84a5dda8e80d2276dac5c6351bea83
4
- data.tar.gz: 54de9550eefdde6a4529336615d37f6eba5860be
3
+ metadata.gz: 62f1c83f794e79e016feb8710ab271980a85ab60
4
+ data.tar.gz: 0c300423e3fbfaea269f3a78461873a4fdfc1f0c
5
5
  SHA512:
6
- metadata.gz: 689ed2c04caacc4448c02da2ed3bf1605de897709bc3391d393a611d41ce626165f6cb3149975aad7ba26f689936aca98a01989bc81f5dbb1dc7e23fe7f13202
7
- data.tar.gz: a6f0cce4b68dcce1a2473806211c5953e6f0910defa0a2b3a236b4e77352b4abdae978b6012228329064af799349ceea22e10c2428cb8fc827aef5c14d994c27
6
+ metadata.gz: 1054053c44ae3c830e37f39de2d39e26693eed0095043662a2b5bf3e962ec35386d222b13b929d45f226fa114491c1ae9e3731f1b1732f5dcf5c8798d51cc04b
7
+ data.tar.gz: 21381ae46616fe1fd9f5d32d76e2f220e96782a45d827e5bf635b9803a159fd481dfcdef170597fed0e034507ec007bcfaced14e2361ae45a0fac4f788aa35f7
data/.travis.yml CHANGED
@@ -3,6 +3,7 @@ rvm:
3
3
  - 1.8.7
4
4
  - 1.9.2
5
5
  - 1.9.3
6
+ - 2.0.0
6
7
  - ruby-head
7
8
  - jruby-18mode
8
9
  - jruby-19mode
data/CHANGELOG CHANGED
@@ -1,3 +1,13 @@
1
+ 2.4.1 (05/30/2013)
2
+ ------------------
3
+
4
+ Bug Fixes:
5
+ =========
6
+
7
+ [core] Fixed a problem with transforming templates that reference the "current" directory as part of a deploy <21e3b92>
8
+ [sidekiq] Only try to silence sidekiq if current_path actually exists <f20bd94>
9
+
10
+
1
11
  2.4.0 (05/24/2013)
2
12
  ------------------
3
13
 
@@ -103,7 +103,12 @@ module Rubber
103
103
  raise "a key is required" unless key && key.size > 0
104
104
 
105
105
  if block_given?
106
- @directory.files.get(key, opts, &block)
106
+ # TODO (nirvdrum 05/24/13) Remove when https://github.com/fog/fog/issues/1832 is fixed.
107
+ begin
108
+ @directory.files.get(key, opts, &block)
109
+ rescue Excon::Errors::NotFound
110
+ nil
111
+ end
107
112
  else
108
113
  Rubber::Util.retry_on_failure(*RETRYABLE_EXCEPTIONS) do
109
114
  begin
@@ -24,7 +24,7 @@ namespace :rubber do
24
24
  task :post_stop do
25
25
  end
26
26
 
27
- after "deploy:update_code", "rubber:config"
27
+ after "deploy:symlink", "rubber:config"
28
28
  after "deploy:rollback_code", "rubber:config"
29
29
 
30
30
  desc <<-DESC
@@ -1,3 +1,3 @@
1
1
  module Rubber
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
@@ -10,7 +10,7 @@ namespace :rubber do
10
10
 
11
11
  desc "Quiet sidekiq (stop accepting new work)"
12
12
  task :quiet, :roles => :sidekiq do
13
- rsudo "cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi", :as => rubber_env.app_user
13
+ rsudo "if [ -d #{current_path} ]; then cd #{current_path} && if [ -f #{current_path}/tmp/pids/sidekiq.pid ]; then bundle exec sidekiqctl quiet #{current_path}/tmp/pids/sidekiq.pid ; fi; fi", :as => rubber_env.app_user
14
14
  end
15
15
 
16
16
  desc "Stop sidekiq"
@@ -26,7 +26,7 @@ class AwsTest < Test::Unit::TestCase
26
26
  end
27
27
 
28
28
  should "create instance" do
29
- assert @cloud.create_instance('', '', '', '', '')
29
+ assert @cloud.create_instance('', '', '', '', '', '')
30
30
  end
31
31
 
32
32
  end
@@ -19,12 +19,12 @@ class DigitalOceanTest < Test::Unit::TestCase
19
19
 
20
20
  context '#create_instance' do
21
21
  should 'create instance' do
22
- assert @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'New York 1')
22
+ assert @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'New York 1')
23
23
  end
24
24
 
25
25
  should 'raise error if invalid region' do
26
26
  begin
27
- @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'Mars 1')
27
+ @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'Mars 1')
28
28
  rescue => e
29
29
  assert_equal 'Invalid region for DigitalOcean: Mars 1', e.message
30
30
  else
@@ -34,7 +34,7 @@ class DigitalOceanTest < Test::Unit::TestCase
34
34
 
35
35
  should 'raise an error if invalid image type' do
36
36
  begin
37
- @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', 'm1.small', [], 'New York 1')
37
+ @cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', 'm1.small', [], '', 'New York 1')
38
38
  rescue => e
39
39
  assert_equal 'Invalid image type for DigitalOcean: m1.small', e.message
40
40
  else
@@ -44,7 +44,7 @@ class DigitalOceanTest < Test::Unit::TestCase
44
44
 
45
45
  should 'raise an error if invalid image name' do
46
46
  begin
47
- @cloud.create_instance('my-instance', 'Windows Server 2003', '512MB', [], 'New York 1')
47
+ @cloud.create_instance('my-instance', 'Windows Server 2003', '512MB', [], '', 'New York 1')
48
48
  rescue => e
49
49
  assert_equal 'Invalid image name for DigitalOcean: Windows Server 2003', e.message
50
50
  else
@@ -58,7 +58,7 @@ class DigitalOceanTest < Test::Unit::TestCase
58
58
  env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
59
59
  cloud = Rubber::Cloud::DigitalOcean.new(env, nil)
60
60
 
61
- cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], 'New York 1')
61
+ cloud.create_instance('my-instance', 'Ubuntu 12.04 x64 Server', '512MB', [], '', 'New York 1')
62
62
  rescue => e
63
63
  assert_equal 'Missing key_file for DigitalOcean', e.message
64
64
  else
@@ -29,7 +29,7 @@ class FogTest < Test::Unit::TestCase
29
29
  end
30
30
 
31
31
  should "create instance" do
32
- assert @cloud.create_instance('', '', '', '', '')
32
+ assert @cloud.create_instance('', '', '', '', '', '')
33
33
  end
34
34
 
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Conway
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
12
+ date: 2013-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano