capistrano-pending 0.1.1 → 0.2.0

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: 4ac2a49ffbd261466b5ba5b9ec788d9d0820b54d
4
- data.tar.gz: 6ff45d32bf7fc53c9fbf72a57f355ab29da3071c
3
+ metadata.gz: 9a0dd951478a724abf8f99ee449b16db1d377b5f
4
+ data.tar.gz: 4bf902b93a9d582e19fc101501c0d66934fdc6d3
5
5
  SHA512:
6
- metadata.gz: af6b8a0459a84b50f4d2bd78bf03af5d2afe92c5a4db723300b2120b2bab2a3edf1fcb25afb2692562f98a68a7a15e96fbcb081d021a3206e93a33fca9f5fe87
7
- data.tar.gz: a3b4bb329582e5782795bd8341757488b720dc7a35256ce283c5d2b0610049c8377971a0c9f48c966195e53172381b8b91dfb63ee2d0fbdba20054de88d5951f
6
+ metadata.gz: abaf121352a1295d77a26c0820d056142e8810be8cb6df722431c3f2f803dbaa073eb86ed1617ba78ca1984597a7ead1c8b03f9fb61a452794a3e152779e0afc
7
+ data.tar.gz: 385e7468166637fb2c49a930d622eb06796c9634598eb1457152215bd1b6bd635036e48e4ac194d41ec563be3c1696a75cac60913c3fdd3963d76179e8294973
@@ -8,8 +8,17 @@ namespace :deploy do
8
8
  task :pending => "deploy:pending:log"
9
9
 
10
10
  namespace :pending do
11
+ def _detect_scm
12
+ if defined?(Capistrano::SCM::Git)
13
+ "git"
14
+ elsif defined?(Capistrano::SCM::Svn)
15
+ "svn"
16
+ end
17
+ end
18
+
11
19
  def _scm
12
- Capistrano::Pending::SCM.load(fetch(:scm))
20
+ scm = fetch(:scm, _detect_scm)
21
+ Capistrano::Pending::SCM.load(scm)
13
22
  end
14
23
 
15
24
  def _log(from, to)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Pending
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-pending
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masato Ikeda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-30 00:00:00.000000000 Z
11
+ date: 2017-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -93,9 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.5.0
96
+ rubygems_version: 2.6.8
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Provide deploy:pending task to Capistrano 3.
100
100
  test_files: []
101
- has_rdoc: