capistrano-scm-jenkins 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-18mode
9
+ - rbx-19mode
10
+ - ree
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-scm-jenkins (0.0.3)
4
+ capistrano-scm-jenkins (0.0.4)
5
5
  capistrano
6
6
  net-netrc
7
7
 
@@ -9,35 +9,37 @@ GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
11
  Platform (0.4.0)
12
- capistrano (2.9.0)
12
+ capistrano (2.12.0)
13
13
  highline
14
14
  net-scp (>= 1.0.0)
15
15
  net-sftp (>= 2.0.0)
16
16
  net-ssh (>= 2.0.14)
17
17
  net-ssh-gateway (>= 1.1.0)
18
18
  diff-lcs (1.1.3)
19
- highline (1.6.8)
19
+ highline (1.6.13)
20
20
  net-netrc (0.2.2)
21
21
  Platform (>= 0.3.0)
22
22
  net-scp (1.0.4)
23
23
  net-ssh (>= 1.99.1)
24
24
  net-sftp (2.0.5)
25
25
  net-ssh (>= 2.0.9)
26
- net-ssh (2.2.1)
26
+ net-ssh (2.5.2)
27
27
  net-ssh-gateway (1.1.0)
28
28
  net-ssh (>= 1.99.1)
29
- rspec (2.7.0)
30
- rspec-core (~> 2.7.0)
31
- rspec-expectations (~> 2.7.0)
32
- rspec-mocks (~> 2.7.0)
33
- rspec-core (2.7.1)
34
- rspec-expectations (2.7.0)
35
- diff-lcs (~> 1.1.2)
36
- rspec-mocks (2.7.0)
29
+ rake (0.9.2.2)
30
+ rspec (2.10.0)
31
+ rspec-core (~> 2.10.0)
32
+ rspec-expectations (~> 2.10.0)
33
+ rspec-mocks (~> 2.10.0)
34
+ rspec-core (2.10.1)
35
+ rspec-expectations (2.10.0)
36
+ diff-lcs (~> 1.1.3)
37
+ rspec-mocks (2.10.1)
37
38
 
38
39
  PLATFORMS
39
40
  ruby
40
41
 
41
42
  DEPENDENCIES
42
43
  capistrano-scm-jenkins!
44
+ rake
43
45
  rspec
data/NEWS.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.4 (2012-06-21)
2
+
3
+ * working with non-English server (thanks cynipe).
4
+
1
5
  ## 0.0.3 (2011-12-13)
2
6
 
3
7
  * support netrc
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # capistrano-scm-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)
4
+
3
5
  With this plugin, you can use jenkins build artifact as a repository, and
4
6
  deploy your build artifact with capistrano.
5
7
 
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new :spec
5
+ task :default => :spec
@@ -25,4 +25,5 @@ deploy your build artifact with capistrano.
25
25
  s.add_runtime_dependency "capistrano"
26
26
  s.add_runtime_dependency "net-netrc"
27
27
  s.add_development_dependency "rspec"
28
+ s.add_development_dependency "rake"
28
29
  end
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Scm
3
3
  module Jenkins
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -118,14 +118,18 @@ module Capistrano
118
118
 
119
119
  def rss_all
120
120
  begin
121
- @rss_all ||= open(repository + '/rssAll', auth_opts).read()
121
+ @rss_all ||= open(repository + '/rssAll', accept_language.merge(auth_opts)).read()
122
122
  rescue => e
123
123
  raise Capistrano::Error, "open url #{repository + '/rssAll'} failed: #{e}"
124
124
  end
125
125
  end
126
126
 
127
127
  def rss_changelog
128
- @rss_changelog ||= open(repository + '/rssChangelog', auth_opts).read()
128
+ @rss_changelog ||= open(repository + '/rssChangelog', accept_language.merge(auth_opts)).read()
129
+ end
130
+
131
+ def accept_language
132
+ {"Accept-Language" => "en-US"}
129
133
  end
130
134
 
131
135
  def auth_opts
metadata CHANGED
@@ -1,65 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-jenkins
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
4
5
  prerelease:
5
- version: 0.0.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - LI Daobing
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-12-13 00:00:00 +08:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: capistrano
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: net-netrc
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: net-netrc
32
+ requirement: !ruby/object:Gem::Requirement
31
33
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
36
38
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
39
47
  name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
40
55
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
42
65
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
47
70
  type: :development
48
- version_requirements: *id003
49
- description: "\n\
50
- With this plugin, you can use jenkins build artifact as a repository, and\n\
51
- deploy your build artifact with capistrano.\n "
52
- email:
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: ! "\nWith this plugin, you can use jenkins build artifact as a repository,
79
+ and\ndeploy your build artifact with capistrano.\n "
80
+ email:
53
81
  - lidaobing@gmail.com
54
82
  executables: []
55
-
56
83
  extensions: []
57
-
58
84
  extra_rdoc_files: []
59
-
60
- files:
85
+ files:
61
86
  - .gitignore
62
87
  - .rspec
88
+ - .travis.yml
63
89
  - Gemfile
64
90
  - Gemfile.lock
65
91
  - NEWS.md
@@ -71,33 +97,30 @@ files:
71
97
  - lib/capistrano/recipes/deploy/scm/jenkins.rb
72
98
  - spec/capistrano/recipes/deploy/scm/jenkins_spec.rb
73
99
  - spec/spec_helper.rb
74
- has_rdoc: true
75
100
  homepage: https://github.com/lidaobing/capistrano-scm-jenkins
76
101
  licenses: []
77
-
78
102
  post_install_message:
79
103
  rdoc_options: []
80
-
81
- require_paths:
104
+ require_paths:
82
105
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
106
+ required_ruby_version: !ruby/object:Gem::Requirement
84
107
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: "0"
89
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
113
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
95
118
  requirements: []
96
-
97
119
  rubyforge_project: capistrano-scm-jenkins
98
- rubygems_version: 1.5.3
120
+ rubygems_version: 1.8.23
99
121
  signing_key:
100
122
  specification_version: 3
101
123
  summary: use jenkins as a capistrano scm
102
- test_files: []
103
-
124
+ test_files:
125
+ - spec/capistrano/recipes/deploy/scm/jenkins_spec.rb
126
+ - spec/spec_helper.rb