capistrano-git-push 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a684c0b78c668d0a8762a34eb9e18197ef20608a
4
- data.tar.gz: cf03f35734f89f02506ca3d9407447a768fb969c
3
+ metadata.gz: 80a2b0ec39edf08126da805a9d3c08ffb9ceeef6
4
+ data.tar.gz: 09326f308473720abdd7003870a501e83c619fad
5
5
  SHA512:
6
- metadata.gz: 9732def59d8ea63f0323a8d9d3da4169920a7bc5bde3cfd40aa53af112046decd1c7c46060bd0d3c22bf2b9c4299472b4404423dab35ecca05501e4ce3911bfa
7
- data.tar.gz: 2c72f1d40975608fd912b9976f24bb1a3df348ab33f4c3f1032894c5dfaa4835ccb7ddc47a483ac96185c05dfe363c1c1ae4e6dd4aea138914a883a1894581d5
6
+ metadata.gz: fc8cd8a5a5725d08d2e7ffd0be03346b64162f1d4f12b260e94086d242f506af9308153b3a2c02b5ccf9cf4ba0579ad2e8274c0a6d1ef40d89ea977e36d80371
7
+ data.tar.gz: 3ca81d03431e586b93561f87c6fc582400cf52e47c832907d4d6b3672b46e6d4605c5c9a0d15d85d71b40468724410af2304b55e5fbdd1afa25032cc1e692e0c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.4
@@ -14,7 +14,7 @@ class Capistrano::Git < Capistrano::SCM
14
14
 
15
15
  def check
16
16
  run_locally do
17
- test 'git show-ref'
17
+ test "git show-ref --heads #{fetch(:branch)}"
18
18
  end
19
19
  end
20
20
 
@@ -21,7 +21,9 @@ module Capistrano
21
21
 
22
22
  describe '#check' do
23
23
  it 'should test the repo url' do
24
- run_locally.expects(:test).with('git show-ref')
24
+ run_locally.expects(:fetch).returns(:branch)
25
+
26
+ run_locally.expects(:test).with('git show-ref --heads branch')
25
27
 
26
28
  subject.check
27
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Lugrin