capistrano-scm-local 0.1.22 → 0.1.23

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
- YjMwYmYyYzg0NjlkMmI1ZjQzN2IzZTdiZGRkYWI1ZTZlNDQ4NTNiYQ==
4
+ ZjdjNjEzZmE2NTY5MzFjOTA4ZGExYjU0NjQwMWQ4NzRiMjMzYmZlOQ==
5
5
  data.tar.gz: !binary |-
6
- ZTA3Y2U5ODEwZjg2YzYwZTc0NmIzNzkzYTJjOThiMTc0YzVlMTk1Yw==
6
+ YWIxMThmOGQ5MTZhOWM5YTcxMWFhNzMzYmFhNzQzMWY1ZGY0MDcwMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTRiZjBmOTg1MWViNGU3MzhkMzIyZjU5Y2Y5ZjI5YzJiODAzMTY1Zjc5MjZi
10
- YTk2YjdkMTJiZTRlOTkxYTFhMWRlODI0Nzg2ZDg0OTYzM2ZkZGNmMWU1ZGI1
11
- MDk2ZWMwODA4ZmNmNzg1MjBmYjNiOTM4NDg0NzgwYWYzZGYxOTg=
9
+ ODcwNmQzNDJkYjA4OGVjMzVlMGIzNDgyNDdlYmZlZWNhYzIzYmQwNDQwY2M4
10
+ MzRmYWRhNDdkNTEwZjU1NGU2NDFkN2I3MjJhODZkOTczNjg1YmMwOTBkMmYw
11
+ YjVmNmE1ZTU3OTE0MzhhOTg4ZmMzZDlmMWYyMzFlNzQzZmI3MDQ=
12
12
  data.tar.gz: !binary |-
13
- MjUzZmQ4M2YyM2M1M2M1MjVjOTkyMjM0MzAzZTQ5MjUwMjAwZmU4OGVhMDU4
14
- MTI3MzRkZjJlYjk3NzBhYzY1NDA1Mzg3MWNmZWJjMjUyYzJhODc4NjUyODU0
15
- OTBhMjFlYzFlZTg0YWUzYTRmMjIwNjE3MmVjZjllZGQ5NzgxYjU=
13
+ NWNmYmIwNjlmOWUxNTRmMzdiMzEwZTc3ZWYyMjA4MjY3MGI3Y2Y0NGE5ZDk2
14
+ NjYyYTExYTkwMThhZjg3NWJlZGJiMDEwOGVhNDkyODIzM2NhOWI1NzE5MzE1
15
+ Y2YyYzRkYTNiZGM4NTgwODc5ODg2ODFjYzI0ODYwOWUzMzdkODU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.22
1
+ 0.1.23
@@ -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.22 ruby lib
5
+ # stub: capistrano-scm-local 0.1.23 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-scm-local"
9
- s.version = "0.1.22"
9
+ s.version = "0.1.23"
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-04-02"
14
+ s.date = "2015-04-03"
15
15
  s.description = "Capistrano extension for deploying form local directory"
16
16
  s.email = "ekho@ekho.name"
17
17
  s.extra_rdoc_files = [
@@ -51,7 +51,7 @@ class Capistrano::Local < Capistrano::SCM
51
51
  debug "Archiving #{repo_url} to #{archive}"
52
52
  execute :mkdir, '-p', File.dirname(archive)
53
53
 
54
- if File.exists?(archive) && (!File.exists?(archive_sha1) || !test(:shasum, '-s', '-c', archive_sha1))
54
+ if File.exists?(archive) && !fetch(:scm_local_skip_tar_check, false) && (!File.exists?(archive_sha1) || !test(:shasum, '-s', '-c', archive_sha1))
55
55
  execute :rm, '-f', archive
56
56
  end
57
57
 
@@ -60,8 +60,11 @@ class Capistrano::Local < Capistrano::SCM
60
60
  within repo_url do
61
61
  execute :tar, "c#{compression_flag}f", archive, '-C', repo_url, '.'
62
62
  end
63
- execute :tar, "t#{compression_flag}f", archive unless fetch(:scm_local_skip_tar_check, false)
64
- execute :shasum, archive, '>', archive_sha1
63
+
64
+ unless fetch(:scm_local_skip_tar_check, false)
65
+ execute :tar, "t#{compression_flag}f", archive
66
+ execute :shasum, archive, '>', archive_sha1
67
+ end
65
68
  else
66
69
  execute :cp, repo_url, archive
67
70
  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.22
4
+ version: 0.1.23
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-04-02 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda