cap_blue_green_deploy 1.1.2 → 1.1.3

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: fa20269e6a8c4de8958b1c3721f9d193ea3ff175
4
- data.tar.gz: eaff10b27966ebfacf6307ee1b1b8c437c803656
3
+ metadata.gz: 3c157ae31f58a6f36e6a29c62855565b80a667cb
4
+ data.tar.gz: b97512640082fa7ca59fa9a1d97d81bb7eb3f5de
5
5
  SHA512:
6
- metadata.gz: 150eca98c881a67a552b0c3711118a584c8497f0b8a6c30cdc8578aa476420fa689b824126f5786dc0ab5f83cf6032f2e5a2992d7bbcc8c491f715c00587f67c
7
- data.tar.gz: 685d6ab431fc407be0364326f09b71ecae35868a695de054479da81847d783e63062ea23ca0a26b12cfd8e667d3eca8435a5db31e6e7ec59875a80783b0ac637
6
+ metadata.gz: f3bf5c4b63f66697bbfe5af1711f38da0f3a3c6e08887db4456db66873e87e7bec0499024d0d8a958a64b2f4bd2e0adf4182f1ca9f9c28bdf5e29ab4e927eba2
7
+ data.tar.gz: 93fb31bc90ba4781cd00fb37c1b159596673cc2e4892aac286cdd2e6ab12a6bc340f83d9636a71f574bb4a76d27c749d2eb4fa8aecb64b9fcfaaabb26bef45d9
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.3
4
+
5
+ Fixing application name error on multistage environment (issue #1)
6
+
3
7
  ## 1.1.2
4
8
 
5
9
  - Fixing blue_green_previous and blue_green_live custom variables new names under tasks
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cap_blue_green_deploy (1.1.2)
4
+ cap_blue_green_deploy (1.1.3)
5
5
  capistrano (>= 2.0.0, < 3.0.0)
6
6
 
7
7
  GEM
@@ -23,9 +23,9 @@ module CapBlueGreenDeploy::Tasks
23
23
 
24
24
  def self.load_variables config
25
25
  config.load do
26
- _cset :keep_releases, 5
27
- _cset :blue_green_live_dir, "#{deploy_to}/current_live"
28
- _cset :blue_green_previous_dir, "#{deploy_to}/previous_live"
26
+ _cset(:keep_releases) { 5 }
27
+ _cset(:blue_green_live_dir) { "#{deploy_to}/current_live" }
28
+ _cset(:blue_green_previous_dir) { "#{deploy_to}/previous_live" }
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module CapBlueGreenDeploy
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -106,17 +106,23 @@ describe CapBlueGreenDeploy::Tasks do
106
106
  end
107
107
 
108
108
  it "should set keep_releases variable" do
109
- expect(subject).to receive(:_cset).with(:keep_releases, 5)
109
+ expect(subject).to receive(:_cset).with(:keep_releases) do |&arg|
110
+ expect(arg.call).to eql 5
111
+ end
110
112
  subject.load_variables @config
111
113
  end
112
114
 
113
115
  it "should set blue_green_live_dir variable" do
114
- expect(subject).to receive(:_cset).with(:blue_green_live_dir, "#{deploy_to}/current_live")
116
+ expect(subject).to receive(:_cset).with(:blue_green_live_dir) do |&arg|
117
+ expect(arg.call).to eql "#{deploy_to}/current_live"
118
+ end
115
119
  subject.load_variables @config
116
120
  end
117
121
 
118
122
  it "should set blue_green_previous_dir variable" do
119
- expect(subject).to receive(:_cset).with(:blue_green_previous_dir, "#{deploy_to}/previous_live")
123
+ expect(subject).to receive(:_cset).with(:blue_green_previous_dir) do |&arg|
124
+ expect(arg.call).to eql "#{deploy_to}/previous_live"
125
+ end
120
126
  subject.load_variables @config
121
127
  end
122
128
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap_blue_green_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Biriba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2014-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano