capistrano-rsync-scm 0.0.4 → 0.0.5

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: 6f17d25c7791b7d0d69a00417664cdc994b3cbab
4
- data.tar.gz: 6aff9e57d14d52b666aae701cce47db35c9cfdaf
3
+ metadata.gz: 57affc3ad592f4de57f795783dae4a284482e31a
4
+ data.tar.gz: c64147337e35febb19d08cde9faa7601b5209d55
5
5
  SHA512:
6
- metadata.gz: 499ddf95535676fbc59021348bdef7c0106993c638826102bea724bf284b00e8495f298dc86e0479d82e905847a60e0a171085299f0208025aa0630b2dc32456
7
- data.tar.gz: 6779f9fc499e0692a706422c45dbf52bb5661db47bcfca4a9ff4a720bd441ba1707a12f7c4146639c0b955f89ef9f2d32a49c50a856281dfc977b91b30c1a85e
6
+ metadata.gz: a3d052b3ca301fbe9b278a2a2be117d4242e52f914361988aa3ab2760a56961ebf90cdaab02220ecde60cb32c6888b05ba841f5046ee4bc7fe849b4f710ba620
7
+ data.tar.gz: 1506a483e84d11741814378b3578d5f1867f3970927ab0fb4a9cebbd3148547ff41128a89495688f77dd46006828db9bfd4056046c513d85a4308bc5d834304a
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-rsync-scm"
7
- spec.version = '0.0.4'
7
+ spec.version = '0.0.5'
8
8
  spec.authors = ["Olli Helenius"]
9
9
  spec.email = ["olli.helenius@onesto.fi"]
10
10
  spec.summary = %q{Rsync-based deployment strategy}
@@ -10,7 +10,7 @@ class Capistrano::RsyncScm < Capistrano::SCM
10
10
  # The Capistrano default strategy for git. You should want to use this.
11
11
  module GitStrategy
12
12
  def check
13
- File.exists?(File.join('.git', 'refs', 'heads', fetch(:branch).to_s))
13
+ `git ls-remote #{fetch(:repo_url)} refs/heads/#{fetch(:branch)} || true`.lines.any?
14
14
  end
15
15
 
16
16
  def with_clone(&block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rsync-scm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olli Helenius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.5.2
90
+ rubygems_version: 2.6.4
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Rsync-based deployment strategy