buildr 1.4.17-java → 1.4.18-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,24 +47,6 @@ task 'release' => %w{setup-local-site-svn} do
47
47
  puts "[X] Uploaded new site to #{spec.name}.apache.org"
48
48
  end.call
49
49
 
50
- # Upload binary and source packages to RubyForge.
51
- lambda do
52
- # update rubyforge projects, processors, etc. in local config
53
- sh 'rubyforge', 'config'
54
- files = FileList["_release/#{spec.version}/dist/*.{gem,tgz,zip}"]
55
- puts "Uploading #{spec.version} to RubyForge ... "
56
- rubyforge = RubyForge.new.configure
57
- rubyforge.login
58
- rubyforge.userconfig.merge!('release_changes'=>"_release/#{spec.version}/CHANGES", 'preformatted' => true)
59
- rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version.to_s, *files
60
-
61
- puts "Posting news to RubyForge ... "
62
- changes = File.read("_release/#{spec.version}/CHANGES")[/.*?\n(.*)/m, 1]
63
- rubyforge.post_news spec.rubyforge_project.downcase, "Buildr #{spec.version} released",
64
- "#{spec.description}\n\nNew in Buildr #{spec.version}:\n#{changes.gsub(/^/, ' ')}\n"
65
- puts "[X] Uploaded gems and source files to #{spec.name}.rubyforge.org"
66
- end.call
67
-
68
50
  # Push gems to Rubyforge.org
69
51
  lambda do
70
52
  files = FileList["_release/#{spec.version}/dist/*.{gem}"]
@@ -86,7 +68,7 @@ task 'release' => %w{setup-local-site-svn} do
86
68
  lambda do
87
69
  version = `git describe --tags --always`.strip
88
70
  unless version == spec.version
89
- sh 'git', 'tag', '-m', "'Release #{spec.version}'", spec.version do |ok, res|
71
+ sh 'git', 'tag', '-m', "'Release #{spec.version}'", spec.version.to_s do |ok, res|
90
72
  if ok
91
73
  puts "[X] Tagged this release as #{spec.version} ... "
92
74
  else
@@ -13,7 +13,6 @@
13
13
  # License for the specific language governing permissions and limitations under
14
14
  # the License.
15
15
 
16
- require 'rubyforge'
17
16
  require 'digest/md5'
18
17
  require 'digest/sha1'
19
18
 
@@ -77,6 +76,7 @@ task 'prepare' do |task, args|
77
76
  end.call
78
77
 
79
78
  task('license').invoke
79
+ task('addon_extensions:check').invoke
80
80
 
81
81
  # Need Prince to generate PDF
82
82
  lambda do
@@ -85,14 +85,6 @@ task 'prepare' do |task, args|
85
85
  puts '[X] We have prince available'
86
86
  end.call
87
87
 
88
- # Need RubyForge to upload new release files.
89
- lambda do
90
- puts "[!] Make sure you have admin privileges to make a release on RubyForge"
91
- rubyforge = RubyForge.new.configure
92
- rubyforge.login
93
- rubyforge.scrape_project(spec.name)
94
- end.call
95
-
96
88
  raise "Can not run stage process under jruby" if RUBY_PLATFORM[/java/]
97
89
  raise "Can not run staging process under older rubies" unless RUBY_VERSION >= '1.9'
98
90
  end
@@ -13,6 +13,10 @@
13
13
  # License for the specific language governing permissions and limitations under
14
14
  # the License.
15
15
 
16
+ # The testing framework does not support loading and then unloading of addons
17
+ # thus we can not test this addon until we figure out a mechanism of supporting
18
+ # unloading addon as the test progresses
19
+ if false
16
20
 
17
21
  require File.expand_path('../spec_helpers', File.dirname(__FILE__))
18
22
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'xpath_matchers'))
@@ -147,3 +151,5 @@ describe Buildr::CustomPom do
147
151
  end
148
152
  end
149
153
  end
154
+
155
+ end
@@ -248,7 +248,7 @@ describe Repositories, 'remote' do
248
248
  it 'should lookup in array order' do
249
249
  repositories.remote = [ 'http://buildr.apache.org/repository/noexist', 'http://example.org' ]
250
250
  order = ['com', 'org']
251
- URI.should_receive(:download).any_number_of_times do |uri, target, options|
251
+ URI.stub(:download) do |uri, target, options|
252
252
  order.shift if order.first && uri.to_s[order.first]
253
253
  fail URI::NotFoundError unless order.empty?
254
254
  write target
@@ -1023,7 +1023,7 @@ describe Rake::Task, ' artifacts:sources' do
1023
1023
 
1024
1024
  it 'should download sources for all specified artifacts' do
1025
1025
  artifact 'group:id:jar:1.0'
1026
- URI.should_receive(:download).any_number_of_times.and_return { |uri, target| write target }
1026
+ URI.stub(:download).and_return { |uri, target| write target }
1027
1027
  lambda { task('artifacts:sources').invoke }.should change { File.exist?('home/.m2/repository/group/id/1.0/id-1.0-sources.jar') }.to(true)
1028
1028
  end
1029
1029
 
@@ -1037,7 +1037,7 @@ describe Rake::Task, ' artifacts:sources' do
1037
1037
 
1038
1038
  before do
1039
1039
  artifact 'group:id:jar:1.0'
1040
- URI.should_receive(:download).any_number_of_times.and_raise(URI::NotFoundError)
1040
+ URI.should_receive(:download).and_raise(URI::NotFoundError)
1041
1041
  end
1042
1042
 
1043
1043
  it 'should not fail' do
@@ -1062,7 +1062,7 @@ describe Rake::Task, ' artifacts:javadoc' do
1062
1062
 
1063
1063
  it 'should download javadoc for all specified artifacts' do
1064
1064
  artifact 'group:id:jar:1.0'
1065
- URI.should_receive(:download).any_number_of_times.and_return { |uri, target| write target }
1065
+ URI.should_receive(:download).and_return { |uri, target| write target }
1066
1066
  lambda { task('artifacts:javadoc').invoke }.should change { File.exist?('home/.m2/repository/group/id/1.0/id-1.0-javadoc.jar') }.to(true)
1067
1067
  end
1068
1068
 
@@ -1076,7 +1076,7 @@ describe Rake::Task, ' artifacts:javadoc' do
1076
1076
 
1077
1077
  before do
1078
1078
  artifact 'group:id:jar:1.0'
1079
- URI.should_receive(:download).any_number_of_times.and_raise(URI::NotFoundError)
1079
+ URI.should_receive(:download).and_raise(URI::NotFoundError)
1080
1080
  end
1081
1081
 
1082
1082
  it 'should not fail' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.17
4
+ version: 1.4.18
5
5
  platform: java
6
6
  authors:
7
7
  - Apache Buildr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.8.0
111
- - !ruby/object:Gem::Dependency
112
- name: rubyforge
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '='
116
- - !ruby/object:Gem::Version
117
- version: 2.0.4
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '='
123
- - !ruby/object:Gem::Version
124
- version: 2.0.4
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: hoe
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -388,7 +374,7 @@ files:
388
374
  - addon/buildr/checkstyle.rb
389
375
  - addon/buildr/cobertura.rb
390
376
  - addon/buildr/css_lint-report.xsl
391
- - addon/buildr/css_lint.rake
377
+ - addon/buildr/css_lint.rb
392
378
  - addon/buildr/custom_pom.rb
393
379
  - addon/buildr/drb.rb
394
380
  - addon/buildr/emma.rb
@@ -401,6 +387,7 @@ files:
401
387
  - addon/buildr/javacc.rb
402
388
  - addon/buildr/javancss.rb
403
389
  - addon/buildr/jaxb_xjc.rb
390
+ - addon/buildr/jdepend-report.xsl
404
391
  - addon/buildr/jdepend.rb
405
392
  - addon/buildr/jetty.rb
406
393
  - addon/buildr/jibx.rb