capistrano-scm-jenkins 0.2.1 → 0.3.1

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: 754fc4ed5d6ce641b20166bc4cb3497b409ddbad
4
- data.tar.gz: 607597397b72ac9614d6bcfeaac5e40a21e84ac3
3
+ metadata.gz: 00f398d02fd069c696c625df1b381ef1fc2fcb58
4
+ data.tar.gz: e1126418fc28676461c66263ef88c661782c1164
5
5
  SHA512:
6
- metadata.gz: 80ccb8abadb82e5b16102cce2a50e9358d0ad62bfec3e47e72d8a55b75b440180caf44b552996013c41e54ec9f8a1ee8df333a412f9f81f442780b9762e83762
7
- data.tar.gz: 1b8918813f604791304c265a3e4dd172b0f883c0228f712362c2a254e29dd6ed2569c74578603cf7a29102e2a122318f6d795fd0f2526eddc8e699e398d86e41
6
+ metadata.gz: d66de586fb5ddd31bb5902aa3ff655ea6df96e180c4001c3e0e094e17f65f4b549eda9fee0c245c77d0f0af784f0d66360382bf55573fa7622e64d905dd3d7b8
7
+ data.tar.gz: 87dce268ad42e6870c208f5dad00768d4ee4d31b2f0f8277fc302bd6e70adfb1a9a8d55c1ca95ed7de200a12ce70cf159e8e328678c7fbf398d95a9799f6d692
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-scm-jenkins (0.2.1)
5
- capistrano (~> 3.1, < 3.2)
4
+ capistrano-scm-jenkins (0.3.1)
5
+ capistrano (~> 3.2.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- capistrano (3.1.0)
10
+ capistrano (3.2.1)
11
11
  i18n
12
12
  rake (>= 10.0.0)
13
13
  sshkit (~> 1.3)
data/NEWS.md CHANGED
@@ -1,6 +1,10 @@
1
- ## 0.2.1 (2014-05-21)
1
+ ## 0.3.1 (2014-05-21)
2
2
 
3
- * Identical to 0.2.0, creating after accidentally yanking 0.2.0 from RubyGems
3
+ * Ensure gemspec dependencies are properly set for Cap ~> 3.2.1
4
+
5
+ ## 0.3.0 (2014-05-21) (unpublished)
6
+
7
+ * Refactor to be compatible with Capistrano ~> 3.2
4
8
 
5
9
  ## 0.2.0 (2014-03-06)
6
10
 
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Capistrano::Jenkins
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/lidaobing/capistrano-scm-jenkins.png?branch=master)](http://travis-ci.org/lidaobing/capistrano-scm-jenkins) [![Gem Version](https://badge.fury.io/rb/capistrano-scm-jenkins.png)](http://badge.fury.io/rb/capistrano-scm-jenkins)
3
+ [![Build Status](https://secure.travis-ci.org/lidaobing/capistrano-scm-jenkins.png?branch=master)](http://travis-ci.org/lidaobing/capistrano-scm-jenkins) [![Gem Version](https://badge.fury.io/rb/capistrano-scm-jenkins.png)](http://badge.fury.io/rb/capistrano-scm-jenkins) [![Dependency Status](https://gemnasium.com/lidaobing/capistrano-scm-jenkins.png)](https://gemnasium.com/lidaobing/capistrano-scm-jenkins)
4
+
4
5
 
5
6
  Allows Capistrano to treat Jenkins as an SCM, deploying artifacts from a specified job.
6
7
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
21
21
  s.require_paths = ['lib']
22
22
 
23
- s.add_dependency 'capistrano', '~> 3.1', '< 3.2'
23
+ s.add_dependency 'capistrano', '~> 3.2.1'
24
24
 
25
25
  s.add_development_dependency 'bundler', '~> 1.5'
26
26
  s.add_development_dependency 'rake'
@@ -1,3 +1,3 @@
1
1
  module CapistranoScmJenkins
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -106,8 +106,6 @@ class Capistrano::Jenkins < Capistrano::SCM
106
106
  res = jenkins_api_res
107
107
  build_status = res['result'].downcase
108
108
 
109
- set :current_revision, "build #{last_build_number}"
110
-
111
109
  if allowed_statuses.include? build_status
112
110
  true
113
111
  else
@@ -131,5 +129,9 @@ class Capistrano::Jenkins < Capistrano::SCM
131
129
  def release
132
130
  context.execute :cp, "#{fetch(:application)}#{artifact_ext}", release_path
133
131
  end
132
+
133
+ def fetch_revision
134
+ "build #{last_build_number}"
135
+ end
134
136
  end
135
137
  end
@@ -45,4 +45,13 @@ namespace :jenkins do
45
45
  end
46
46
  end
47
47
  end
48
+
49
+ desc 'Determine the revision that will be deployed'
50
+ task :set_current_revision do
51
+ on release_roles :all do
52
+ within repo_path do
53
+ set :current_revision, strategy.fetch_revision
54
+ end
55
+ end
56
+ end
48
57
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LI Daobing
@@ -17,20 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '3.1'
21
- - - "<"
22
- - !ruby/object:Gem::Version
23
- version: '3.2'
20
+ version: 3.2.1
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
25
  - - "~>"
29
26
  - !ruby/object:Gem::Version
30
- version: '3.1'
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '3.2'
27
+ version: 3.2.1
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: bundler
36
30
  requirement: !ruby/object:Gem::Requirement