capistrano-git-submodule-strategy 0.1.19 → 0.1.20

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 138b3353df19d2756c6c80fad790ceb60b10bd6f
4
- data.tar.gz: 856563220960927ef9bf9ec4eacea5996328ef9b
3
+ metadata.gz: a22f68ba979ebd34bb210eb2908ca1471717cc8b
4
+ data.tar.gz: f9321c10874ff77b9369c6c2df7cf0eee996da6c
5
5
  SHA512:
6
- metadata.gz: 86eb3b501157a09a4e68fb8e59562093217f02c69bec00144be6aeb8f296a8d4205b735a68bb83232b0029531ecf85173b7a7b5bb5e2a14a8f9880c432aded7a
7
- data.tar.gz: 4d855ea53521e24275cebf35077e6e167ecc2742dc536fee309963301b5c2bfc454a5b9c40ab8788458ce23a61175acb1111305c8dd7265bf9b2c3286125f7b7
6
+ metadata.gz: 3bd458b10de7fea86d8fefdfd5e7d73928ee630655a12eb4807dba670cace46fb92af0dcf1a4d57287786b864d840e96c650ee4419b5ddd889b63450a50eb6b3
7
+ data.tar.gz: 4989e7c3f0550f4503bcd91e080224f60017f082499bacad40d1c83d4094e5299d28824014f6ec867fc47b581eca821050c2b9c627d6359f102343d05a4e9f7e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.19
1
+ 0.1.20
@@ -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-git-submodule-strategy 0.1.19 ruby lib
5
+ # stub: capistrano-git-submodule-strategy 0.1.20 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-git-submodule-strategy"
9
- s.version = "0.1.19"
9
+ s.version = "0.1.20"
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 = "2016-01-27"
14
+ s.date = "2016-03-22"
15
15
  s.description = "Git submodule support for Capistrano 3"
16
16
  s.email = "ekho@ekho.name"
17
17
  s.extra_rdoc_files = [
@@ -36,15 +36,11 @@ class Capistrano::Git
36
36
  # and copy everything to the release path
37
37
  def release
38
38
  unless context.test(:test, '-e', release_path) && context.test("ls -A #{release_path} | read linevar")
39
- git :clone, (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch), "file://#{repo_path}", release_path
39
+ git :clone, "--reference #{repo_path}", (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch), repo_url, release_path
40
40
  context.within_only release_path do
41
41
  git :submodule, 'update', '--init', '--recursive'
42
42
  end
43
- if fetch(:git_keep_meta, false)
44
- context.within_only release_path do
45
- git :remote, 'set-url', 'origin', repo_url
46
- end
47
- else
43
+ unless fetch(:git_keep_meta, false)
48
44
  verbose = Rake.application.options.trace ? 'v' : ''
49
45
  context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rf#{verbose} '{}'")
50
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-submodule-strategy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Gorbylev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda