capistrano-git-submodule-strategy 0.1.20 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +17 -15
- data/VERSION +1 -1
- data/capistrano-git-submodule-strategy.gemspec +7 -4
- data/lib/capistrano/git-submodule-strategy.rb +18 -7
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8cef1b1692241a363a6a8f7b14ff94f2c5a57f7
|
4
|
+
data.tar.gz: 834525893d26d21ae83760416de4e630ce027d74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd791fd79ddf554bc0217d94ad739feebab503bab60d819fdf268168af6acb2962f03d5909d7d20bd83d6eeb787b12a281396266c76b23edd20c0aed6a6b044b
|
7
|
+
data.tar.gz: 094a1c3d152af474fbddd89819f4eeb38c5f620d64003c619c8cdfcdaeff075de0930ec778257afde6705b2e46fcbb1f31931d00cc1ea08692567e2041491c3b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.2.
|
4
|
+
activesupport (4.2.6)
|
5
5
|
i18n (~> 0.7)
|
6
6
|
json (~> 1.7, >= 1.7.7)
|
7
7
|
minitest (~> 5.1)
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
docile (1.1.5)
|
15
15
|
faraday (0.9.2)
|
16
16
|
multipart-post (>= 1.2, < 3)
|
17
|
-
git (1.
|
17
|
+
git (1.3.0)
|
18
18
|
github_api (0.13.1)
|
19
19
|
addressable (~> 2.4.0)
|
20
20
|
descendants_tracker (~> 0.0.4)
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
hashie (>= 3.4)
|
23
23
|
multi_json (>= 1.7.5, < 2.0)
|
24
24
|
oauth2
|
25
|
-
hashie (3.4.
|
25
|
+
hashie (3.4.4)
|
26
26
|
highline (1.7.8)
|
27
27
|
i18n (0.7.0)
|
28
28
|
jeweler (2.0.1)
|
@@ -35,22 +35,23 @@ GEM
|
|
35
35
|
rake
|
36
36
|
rdoc
|
37
37
|
json (1.8.3)
|
38
|
-
jwt (1.5.
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
jwt (1.5.1)
|
39
|
+
mini_portile (0.6.2)
|
40
|
+
mini_portile2 (2.1.0)
|
41
|
+
minitest (5.9.0)
|
42
|
+
multi_json (1.12.0)
|
42
43
|
multi_xml (0.5.5)
|
43
44
|
multipart-post (2.0.0)
|
44
|
-
nokogiri (1.6.
|
45
|
-
|
46
|
-
oauth2 (1.
|
45
|
+
nokogiri (1.6.6.4)
|
46
|
+
mini_portile (~> 0.6.0)
|
47
|
+
oauth2 (1.1.0)
|
47
48
|
faraday (>= 0.8, < 0.10)
|
48
|
-
jwt (~> 1.0)
|
49
|
+
jwt (~> 1.0, < 1.5.2)
|
49
50
|
multi_json (~> 1.3)
|
50
51
|
multi_xml (~> 0.5)
|
51
|
-
rack (
|
52
|
+
rack (>= 1.2, < 3)
|
52
53
|
rack (1.6.4)
|
53
|
-
rake (
|
54
|
+
rake (11.1.2)
|
54
55
|
rdoc (3.12.2)
|
55
56
|
json (~> 1.4)
|
56
57
|
shoulda (3.5.0)
|
@@ -59,7 +60,7 @@ GEM
|
|
59
60
|
shoulda-context (1.2.1)
|
60
61
|
shoulda-matchers (2.8.0)
|
61
62
|
activesupport (>= 3.0.0)
|
62
|
-
simplecov (0.11.
|
63
|
+
simplecov (0.11.2)
|
63
64
|
docile (~> 1.1.0)
|
64
65
|
json (~> 1.8)
|
65
66
|
simplecov-html (~> 0.10.0)
|
@@ -74,9 +75,10 @@ PLATFORMS
|
|
74
75
|
DEPENDENCIES
|
75
76
|
bundler (~> 1.0)
|
76
77
|
jeweler (~> 2.0.1)
|
78
|
+
mini_portile2 (~> 2.1.0)
|
77
79
|
rdoc (~> 3.12)
|
78
80
|
shoulda
|
79
81
|
simplecov
|
80
82
|
|
81
83
|
BUNDLED WITH
|
82
|
-
1.
|
84
|
+
1.11.2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
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-git-submodule-strategy 0.1.
|
5
|
+
# stub: capistrano-git-submodule-strategy 0.1.22 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "capistrano-git-submodule-strategy"
|
9
|
-
s.version = "0.1.
|
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 = "2016-
|
14
|
+
s.date = "2016-05-30"
|
15
15
|
s.description = "Git submodule support for Capistrano 3"
|
16
16
|
s.email = "ekho@ekho.name"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
]
|
35
35
|
s.homepage = "http://github.com/ekho/capistrano-git-submodule-strategy"
|
36
36
|
s.licenses = ["MIT"]
|
37
|
-
s.rubygems_version = "2.
|
37
|
+
s.rubygems_version = "2.5.1"
|
38
38
|
s.summary = "Git submodule support for Capistrano 3"
|
39
39
|
|
40
40
|
if s.respond_to? :specification_version then
|
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
45
45
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
46
46
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
47
|
+
s.add_development_dependency(%q<mini_portile2>, ["~> 2.1.0"])
|
47
48
|
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
48
49
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
49
50
|
s.add_runtime_dependency(%q<capistrano>, ["~> 3.1"])
|
@@ -51,6 +52,7 @@ Gem::Specification.new do |s|
|
|
51
52
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
52
53
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
53
54
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
55
|
+
s.add_dependency(%q<mini_portile2>, ["~> 2.1.0"])
|
54
56
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
55
57
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
56
58
|
s.add_dependency(%q<capistrano>, ["~> 3.1"])
|
@@ -59,6 +61,7 @@ Gem::Specification.new do |s|
|
|
59
61
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
60
62
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
61
63
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
64
|
+
s.add_dependency(%q<mini_portile2>, ["~> 2.1.0"])
|
62
65
|
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
63
66
|
s.add_dependency(%q<simplecov>, [">= 0"])
|
64
67
|
s.add_dependency(%q<capistrano>, ["~> 3.1"])
|
@@ -35,15 +35,26 @@ class Capistrano::Git
|
|
35
35
|
# make sure the submodules are up-to-date
|
36
36
|
# and copy everything to the release path
|
37
37
|
def release
|
38
|
-
|
39
|
-
|
38
|
+
return if context.test(:test, '-e', release_path) && context.test("ls -A #{release_path} | read linevar")
|
39
|
+
|
40
|
+
git_version = context.capture(:git, '--version').strip.match('^git version (\d+(?:\.\d+)+)$')
|
41
|
+
|
42
|
+
if git_version.nil? || git_version[1] < '2.3.0'
|
43
|
+
git :clone, (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch), "file://#{repo_path}", release_path
|
40
44
|
context.within_only release_path do
|
41
|
-
git :
|
42
|
-
end
|
43
|
-
unless fetch(:git_keep_meta, false)
|
44
|
-
verbose = Rake.application.options.trace ? 'v' : ''
|
45
|
-
context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rf#{verbose} '{}'")
|
45
|
+
git :remote, 'set-url', 'origin', repo_url
|
46
46
|
end
|
47
|
+
else
|
48
|
+
git :clone, "--reference #{repo_path}", '--dissociate', (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch), repo_url, release_path
|
49
|
+
end
|
50
|
+
|
51
|
+
context.within_only release_path do
|
52
|
+
git :submodule, 'update', '--init', '--recursive'
|
53
|
+
end
|
54
|
+
|
55
|
+
unless fetch(:git_keep_meta, false)
|
56
|
+
verbose = Rake.application.options.trace ? 'v' : ''
|
57
|
+
context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rf#{verbose} '{}'")
|
47
58
|
end
|
48
59
|
end
|
49
60
|
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.
|
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: 2016-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mini_portile2
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.1.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.1.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: jeweler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
148
|
version: '0'
|
135
149
|
requirements: []
|
136
150
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.5.1
|
138
152
|
signing_key:
|
139
153
|
specification_version: 4
|
140
154
|
summary: Git submodule support for Capistrano 3
|