capistrano_deploy_lock 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWVmOTJlNzg5NjYzZTY0NzJiOGViMzBiZDFhYzk0ODhmYjQ0OTE5OA==
4
+ OTYzYjUxMGJjZWEwZjUwN2ZjMjg0MTM3ODYyZjViNTRkYTBiNDhmNA==
5
5
  data.tar.gz: !binary |-
6
- MDEzMjM3MDBmMTU1ZjBhZTI3OGM3YTlhNjNhMGZmNGEzNTU1MzVlMQ==
6
+ ZDM5MjQ3YzUzYmJhMjhlMTAxMWM1MmYyZjRlYjY0NDAzZWE3OWM5NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjMyYTFhN2U5OTE2MjI1MDlmYjg2NzYyN2NkODhiNzM4Y2M1MDA5YmYzYmU5
10
- MGJmYzQ0MmQ1MWRlODFhOTA3MWUzYmE4YjE0NDQ3NTQ4ZDgwYjg4ZTU3MGMx
11
- YjE5YTdiZjI1ZTk2YmQwODQwOWM3YTExN2MyODA1ZTk1MmRjMzY=
9
+ MmY5YTA4MTIxZTliMTYxYzg4YTExNWViZGMwNGFjN2Q0MTJlZDY3ZmQwYWI4
10
+ NjdlMGUxMDEyMWY3Y2MyODE5OWQ5NzJmMDc2NjNiYmFkYWViYThjNDBkNWVl
11
+ Y2JlM2MwNmZjZGVhYmFiNDRkYzVjMDZkZDkzZjIwODkyOTliODI=
12
12
  data.tar.gz: !binary |-
13
- ODgzNjA2NzlhMGIwZTllOTYyN2NmNzg0ZWM5Y2IxNzEyZjIyNmU5YjJjYjNm
14
- MWMyNGU2NTM1YWJiZTE1YmJmMzk4ZDBlYjE2MjBmYWZiMTEyOTUyNGIyN2Mz
15
- Nzc5NmQwZGMzZDdjZjE2NzI5OWVkOThkYzIzNWIzMDJmZDMwOWM=
13
+ NjRmOGM2M2UwNjlmZGI5OTQxM2M3NTdjZWI0OTU2YjQ0YzBhNGQ4MGM2ODFk
14
+ ZTg1ZjI5ODYzMTNhZDJiYzhhYTY0NGEwOWZmOTFhNDRkOTk1YjdmNDMwMTE1
15
+ MGE3NjcxYmViY2VkMWRhYjAzZGZkN2FjM2ExMDdkNDgwNjQyZDg=
@@ -3,6 +3,7 @@ Capistrano::Configuration.instance(:must_exist).load do
3
3
  before "deploy:update_code", "deploy:refresh_lock"
4
4
  before "deploy:update_code", "deploy:create_lock"
5
5
  after "deploy:create_symlink", "deploy:unlock"
6
+ after "deploy:rollback", "deploy:unlock"
6
7
 
7
8
  # Default lock expiry of 10 minutes (in case deploy crashes or is interrupted)
8
9
  _cset :default_lock_expiry, (10 * 60)
@@ -90,7 +91,7 @@ Capistrano::Configuration.instance(:must_exist).load do
90
91
  :created_at => Time.now.utc,
91
92
  :username => ENV['USER'],
92
93
  :expire_at => self[:lock_expiry],
93
- :message => self[:lock_message],
94
+ :message => self[:lock_message].to_s, # .to_s makes a String out of Highline::String
94
95
  :custom => !!self[:custom_deploy_lock]
95
96
  }
96
97
  write_deploy_lock(deploy_lock_data)
@@ -1,3 +1,3 @@
1
1
  module CapistranoDeployLock
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_deploy_lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Broadbent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-12 00:00:00.000000000 Z
11
+ date: 2013-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Lock a server during deploy, to prevent people from deploying at the
14
14
  same time.