capistrano-scm-jenkins 0.5.1 → 0.5.3

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: f0685ba86de5ac74e72dd11925266dfc0a85d487
4
- data.tar.gz: 603868cb5c5c02b57208fd019cd247dc8c7e7678
3
+ metadata.gz: 05b5dc0565fe5ea91daff6b8bed3aa24fbe4635f
4
+ data.tar.gz: 8900b19e755025dc8bf21e41a1eea43c133826e8
5
5
  SHA512:
6
- metadata.gz: 9e8ae7ff9c563bf3989d1923fe340b9703b57c6cad846d23a6263f274a972a87d48ae51468bfe7cc7028dc33e403451ce259b3e8908192cf62593654d87ce026
7
- data.tar.gz: b3cbe28831ba6e62eb6cf8cac2e9ea9c0e73cad7300b8e89e19a1ccd85a1d6539d341089bb7b70cbd8320453f3c6fe64ff2b1455fc2398462f51b3d322bf83b6
6
+ metadata.gz: 649222ff2fb1037779556829615220782b106a30dc8a83fe19f58d0a5e9c53a90855609f3c82b6dfe54be48dc9449c12fde26fd9240c06abc2e3282678037fc0
7
+ data.tar.gz: 30465130b4aad8b3564231cc458ae942f10b4b3491da45e929c5e0dbb8aa10415d6c12ad235e5bf4a4529c7477440bd126e03d9c0da300e4e542b43fc27e5825
@@ -0,0 +1,6 @@
1
+ LineLength:
2
+ Max: 100
3
+
4
+ # The default 10 lines limit is unrealistic.
5
+ MethodLength:
6
+ Max: 50
@@ -1,12 +1,10 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  branches:
3
4
  only:
4
5
  - master
5
6
  rvm:
6
- - 1.9.2
7
- - 1.9.3
8
- - 2.0.0
9
- - 2.1.0
10
- - jruby-19mode
7
+ - 2.0
8
+ - 2.1
9
+ - 2.2
11
10
  - rbx-2
12
- - ree
@@ -1,16 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-scm-jenkins (0.5.1)
4
+ capistrano-scm-jenkins (0.5.3)
5
5
  capistrano (~> 3.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- capistrano (3.4.0)
10
+ airbrussh (1.0.2)
11
+ sshkit (>= 1.6.1, != 1.7.0)
12
+ capistrano (3.5.0)
13
+ airbrussh (>= 1.0.0)
14
+ capistrano-harrow
11
15
  i18n
12
16
  rake (>= 10.0.0)
13
- sshkit (~> 1.3)
17
+ sshkit (>= 1.9.0)
18
+ capistrano-harrow (0.5.2)
14
19
  diff-lcs (1.2.5)
15
20
  i18n (0.7.0)
16
21
  metaclass (0.0.4)
@@ -18,7 +23,7 @@ GEM
18
23
  metaclass (~> 0.0.1)
19
24
  net-scp (1.2.1)
20
25
  net-ssh (>= 2.6.5)
21
- net-ssh (3.1.0)
26
+ net-ssh (3.2.0)
22
27
  rake (10.3.2)
23
28
  rspec (3.1.0)
24
29
  rspec-core (~> 3.1.0)
@@ -32,7 +37,7 @@ GEM
32
37
  rspec-mocks (3.1.3)
33
38
  rspec-support (~> 3.1.0)
34
39
  rspec-support (3.1.2)
35
- sshkit (1.9.0)
40
+ sshkit (1.11.1)
36
41
  net-scp (>= 1.1.2)
37
42
  net-ssh (>= 2.8.0)
38
43
 
@@ -48,4 +53,4 @@ DEPENDENCIES
48
53
  rspec
49
54
 
50
55
  BUNDLED WITH
51
- 1.11.2
56
+ 1.12.4
data/NEWS.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## 0.5.3 (2016-07-19)
2
+
3
+ * Try solving #24 using a janky `bash` based solution
4
+
5
+ ## 0.5.2 (2016-07-19)
6
+
7
+ ### YANKED
8
+
9
+ The Fix for #24 broke things
10
+
11
+ * Ensure we move hidden files from an unzipped archive (#24)
12
+ * Drop Travis tests on Ruby 1.9 versions
13
+ - The version of `net-ssh` that is installed requires Ruby >= 2.0.0
14
+ * Switch to container-based Travis tests
15
+ * RuboCop cleanup
16
+ - Whitespace, some unnecessary else clauses, add config to be more forgiving of line lengths
17
+
18
+ ## 0.5.1 (2016-03-22)
19
+
20
+ * Loosen Capistrano version pin
21
+
1
22
  ## 0.5.0 (2014-11-11)
2
23
 
3
24
  * Clean up some Ruby code, thanks to RuboCop
data/Rakefile CHANGED
@@ -2,4 +2,4 @@ require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new :spec
5
- task :default => :spec
5
+ task default: :spec
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.version = CapistranoScmJenkins::VERSION
9
9
  s.authors = ['LI Daobing', 'Jeff Byrnes']
10
10
  s.email = ['lidaobing@gmail.com', 'jeff@evertrue.com']
11
- s.summary = %q{Use Jenkins as a Capistrano 3.x SCM.}
12
- s.description = %q{Capistrano 3.x plugin to deploy Jenkins artifacts.}
11
+ s.summary = 'Use Jenkins as a Capistrano 3.x SCM.'
12
+ s.description = 'Capistrano 3.x plugin to deploy Jenkins artifacts.'
13
13
  s.homepage = "https://github.com/lidaobing/#{s.name}"
14
14
  s.license = 'MIT'
15
15
 
@@ -1,3 +1,3 @@
1
1
  module CapistranoScmJenkins
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.3'.freeze
3
3
  end
@@ -11,21 +11,13 @@ require 'json'
11
11
  class Capistrano::Jenkins < Capistrano::SCM
12
12
  def jenkins_user
13
13
  @jenkins_user ||= begin
14
- if fetch(:jenkins_user)
15
- fetch(:jenkins_user)
16
- else
17
- nil
18
- end
14
+ fetch(:jenkins_user) if fetch(:jenkins_user)
19
15
  end
20
16
  end
21
17
 
22
18
  def jenkins_pass
23
19
  @jenkins_pass ||= begin
24
- if fetch(:jenkins_pass)
25
- fetch(:jenkins_pass)
26
- else
27
- nil
28
- end
20
+ fetch(:jenkins_pass) if fetch(:jenkins_pass)
29
21
  end
30
22
  end
31
23
 
@@ -143,7 +135,7 @@ class Capistrano::Jenkins < Capistrano::SCM
143
135
  # is an archive - unpack and deploy
144
136
  context.execute :rm, '-rf', 'out'
145
137
  context.execute :unzip, fetch(:deployed_artifact_filename, artifact_filename), '-d', 'out/'
146
- context.execute :mv, "out/#{fetch(:jenkins_artifact_path, '*')}", release_path
138
+ context.execute :bash, "-c 'shopt -s dotglob; mv out/#{fetch(:jenkins_artifact_path, '*')} #{release_path}'"
147
139
  context.execute :rm, '-rf', 'out'
148
140
  else
149
141
  context.execute :cp, fetch(:deployed_artifact_filename, artifact_filename), release_path
@@ -1,5 +1,4 @@
1
1
  namespace :jenkins do
2
-
3
2
  def strategy
4
3
  @strategy ||= Capistrano::Jenkins.new(
5
4
  self,
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.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LI Daobing
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-22 00:00:00.000000000 Z
12
+ date: 2016-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -92,6 +92,7 @@ files:
92
92
  - ".editorconfig"
93
93
  - ".gitignore"
94
94
  - ".rspec"
95
+ - ".rubocop.yml"
95
96
  - ".travis.yml"
96
97
  - Gemfile
97
98
  - Gemfile.lock
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  requirements: []
126
127
  rubyforge_project: capistrano-scm-jenkins
127
- rubygems_version: 2.4.6
128
+ rubygems_version: 2.5.1
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: Use Jenkins as a Capistrano 3.x SCM.