capistrano-scm-local 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGRmNTY3NzdhM2NlMDczMTRjYjYxOWViMDUyZTI1Y2Q0MGJhY2NmMg==
4
+ YjMwYmYyYzg0NjlkMmI1ZjQzN2IzZTdiZGRkYWI1ZTZlNDQ4NTNiYQ==
5
5
  data.tar.gz: !binary |-
6
- YTRlNzhjY2NmMTU2YjQ1MmY0ZmFjYWQ3MzMwMDg1ZTc5YTQ4ZDFkYQ==
6
+ ZTA3Y2U5ODEwZjg2YzYwZTc0NmIzNzkzYTJjOThiMTc0YzVlMTk1Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWNiMzg5MDJiMDc1ZGE0MzY2YThkNDBjYzA0YzMxYTdkMWQxMmU2Yzk3MDdm
10
- OTk1OTI3MGEyMzcyOTRiMzQwOWY1MWFkYzhkNTYzYzYwZjAzZDE0YmVmN2Q2
11
- ZTg5YTRmYjZkMWE0Mjg1NGM4MDg0NmRjMzY4ZmE1MTI0ODIzM2E=
9
+ NTRiZjBmOTg1MWViNGU3MzhkMzIyZjU5Y2Y5ZjI5YzJiODAzMTY1Zjc5MjZi
10
+ YTk2YjdkMTJiZTRlOTkxYTFhMWRlODI0Nzg2ZDg0OTYzM2ZkZGNmMWU1ZGI1
11
+ MDk2ZWMwODA4ZmNmNzg1MjBmYjNiOTM4NDg0NzgwYWYzZGYxOTg=
12
12
  data.tar.gz: !binary |-
13
- NWFlODUyYjk3NWRlOTZhYjdiNTRjMGM4NmRmZDRlZGQ1NjZjZDAyMGQ0OTRl
14
- YTg3YWZkMTU4NTc4NWRiMzU0ZmU0ZDJjNGY2ZmE2MTg0YTlhMDRjNTgyNDU2
15
- NzRjMTQ1NjUzMGQwODZkNzAyNDAxZDRlMGZlNDA4MmJiYTUxZWY=
13
+ MjUzZmQ4M2YyM2M1M2M1MjVjOTkyMjM0MzAzZTQ5MjUwMjAwZmU4OGVhMDU4
14
+ MTI3MzRkZjJlYjk3NzBhYzY1NDA1Mzg3MWNmZWJjMjUyYzJhODc4NjUyODU0
15
+ OTBhMjFlYzFlZTg0YWUzYTRmMjIwNjE3MmVjZjllZGQ5NzgxYjU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.21
1
+ 0.1.22
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: capistrano-scm-local 0.1.21 ruby lib
5
+ # stub: capistrano-scm-local 0.1.22 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-scm-local"
9
- s.version = "0.1.21"
9
+ s.version = "0.1.22"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Boris Gorbylev"]
14
- s.date = "2015-03-03"
14
+ s.date = "2015-04-02"
15
15
  s.description = "Capistrano extension for deploying form local directory"
16
16
  s.email = "ekho@ekho.name"
17
17
  s.extra_rdoc_files = [
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  ]
38
38
  s.homepage = "http://github.com/ekho/capistrano-scm-local"
39
39
  s.licenses = ["MIT"]
40
- s.rubygems_version = "2.4.5"
40
+ s.rubygems_version = "2.4.6"
41
41
  s.summary = "Capistrano SCM Local - Deploy from local copy"
42
42
 
43
43
  if s.respond_to? :specification_version then
@@ -47,10 +47,11 @@ class Capistrano::Local < Capistrano::SCM
47
47
  # preparing archive
48
48
  run_locally do
49
49
  archive = fetch(:tmp_dir, Dir::tmpdir()) + '/capistrano/' + fetch(:application, 'distr') + "-#{fetch(:current_revision, 'UNKNOWN').strip}#{archive_extension}"
50
+ archive_sha1 = "#{archive}.sha1"
50
51
  debug "Archiving #{repo_url} to #{archive}"
51
52
  execute :mkdir, '-p', File.dirname(archive)
52
53
 
53
- if File.exists?(archive) && !test(:tar, 'tzf', archive)
54
+ if File.exists?(archive) && (!File.exists?(archive_sha1) || !test(:shasum, '-s', '-c', archive_sha1))
54
55
  execute :rm, '-f', archive
55
56
  end
56
57
 
@@ -60,6 +61,7 @@ class Capistrano::Local < Capistrano::SCM
60
61
  execute :tar, "c#{compression_flag}f", archive, '-C', repo_url, '.'
61
62
  end
62
63
  execute :tar, "t#{compression_flag}f", archive unless fetch(:scm_local_skip_tar_check, false)
64
+ execute :shasum, archive, '>', archive_sha1
63
65
  else
64
66
  execute :cp, repo_url, archive
65
67
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-local
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Gorbylev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.4.5
154
+ rubygems_version: 2.4.6
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Capistrano SCM Local - Deploy from local copy