capistrano-git-submodule-strategy 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
- = capistrano-git-submodule-strategy
1
+ # capistrano-git-submodule-strategy
2
2
 
3
3
  Git submodule support for Capistrano 3 [![Gem Version](https://badge.fury.io/rb/capistrano-git-submodule-strategy.svg)](http://badge.fury.io/rb/capistrano-git-submodule-strategy)
4
4
 
5
- == Using
5
+ ## Using
6
6
 
7
7
  Capfile
8
8
  ```ruby
@@ -20,7 +20,7 @@ set :scm, :git
20
20
  set :git_strategy, Capistrano::Git::SubmoduleStrategy
21
21
  ```
22
22
 
23
- == Contributing to capistrano-git-submodule-strategy
23
+ ## Contributing to capistrano-git-submodule-strategy
24
24
 
25
25
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
26
26
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -0,0 +1,66 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "capistrano-git-submodule-strategy"
8
+ s.version = "0.1.8"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Boris Gorbylev"]
12
+ s.date = "2014-08-25"
13
+ s.description = "Git submodule support for Capistrano 3"
14
+ s.email = "ekho@ekho.name"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "capistrano-git-submodule-strategy.gemspec",
28
+ "lib/capistrano-git-submodule-strategy.rb",
29
+ "lib/capistrano/git-submodule-strategy.rb",
30
+ "test/helper.rb",
31
+ "test/test_capistrano-git-local.rb"
32
+ ]
33
+ s.homepage = "http://github.com/i-ekho/capistrano-git-submodule-strategy"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.23"
37
+ s.summary = "Git submodule support for Capistrano 3"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
44
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
45
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
46
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
47
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
48
+ s.add_runtime_dependency(%q<capistrano>, ["~> 3.1"])
49
+ else
50
+ s.add_dependency(%q<shoulda>, [">= 0"])
51
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
54
+ s.add_dependency(%q<simplecov>, [">= 0"])
55
+ s.add_dependency(%q<capistrano>, ["~> 3.1"])
56
+ end
57
+ else
58
+ s.add_dependency(%q<shoulda>, [">= 0"])
59
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
61
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
62
+ s.add_dependency(%q<simplecov>, [">= 0"])
63
+ s.add_dependency(%q<capistrano>, ["~> 3.1"])
64
+ end
65
+ end
66
+
@@ -35,8 +35,10 @@ 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
- git :clone, '--depth=1', '--recursive', '-b', fetch(:branch), "file://#{repo_path}", release_path
39
- context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rfv {}")
38
+ unless context.test(:test, '-e', release_path) && context.test(:ls, '-A', release_path)
39
+ git :clone, '--depth=1', '--recursive', '-b', fetch(:branch), "file://#{repo_path}", release_path
40
+ context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rfv {}")
41
+ end
40
42
  end
41
43
  end
42
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-submodule-strategy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-25 00:00:00.000000000 Z
12
+ date: 2014-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -113,15 +113,16 @@ executables: []
113
113
  extensions: []
114
114
  extra_rdoc_files:
115
115
  - LICENSE
116
- - README.rdoc
116
+ - README.md
117
117
  files:
118
118
  - .document
119
119
  - Gemfile
120
120
  - Gemfile.lock
121
121
  - LICENSE
122
- - README.rdoc
122
+ - README.md
123
123
  - Rakefile
124
124
  - VERSION
125
+ - capistrano-git-submodule-strategy.gemspec
125
126
  - lib/capistrano-git-submodule-strategy.rb
126
127
  - lib/capistrano/git-submodule-strategy.rb
127
128
  - test/helper.rb
@@ -141,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
142
  version: '0'
142
143
  segments:
143
144
  - 0
144
- hash: 2895338497601771786
145
+ hash: -2207720581908679873
145
146
  required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  none: false
147
148
  requirements: