buildr 1.3.1.1-java → 1.3.2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +26 -0
- data/NOTICE +3 -5
- data/README +1 -0
- data/Rakefile +4 -3
- data/addon/buildr/nailgun.rb +3 -2
- data/addon/buildr/xmlbeans.rb +1 -1
- data/buildr.gemspec +7 -7
- data/doc/css/syntax.css +40 -31
- data/doc/pages/building.textile +0 -1
- data/doc/pages/contributing.textile +21 -1
- data/doc/pages/download.textile +18 -5
- data/doc/pages/getting_started.textile +23 -12
- data/doc/pages/index.textile +1 -1
- data/doc/pages/packaging.textile +10 -7
- data/doc/pages/projects.textile +3 -3
- data/doc/pages/whats_new.textile +19 -0
- data/doc/scripts/install-jruby.sh +1 -1
- data/doc/scripts/install-linux.sh +4 -4
- data/lib/buildr.rb +1 -9
- data/lib/buildr/core/application.rb +11 -0
- data/lib/buildr/core/application_cli.rb +6 -1
- data/lib/buildr/core/build.rb +1 -1
- data/lib/buildr/core/compile.rb +6 -6
- data/lib/buildr/core/project.rb +1 -0
- data/lib/buildr/core/test.rb +3 -3
- data/lib/buildr/core/transports.rb +4 -2
- data/lib/buildr/core/util.rb +2 -0
- data/lib/buildr/ide/idea7x.rb +13 -12
- data/lib/buildr/java/compilers.rb +2 -4
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +4 -1
- data/lib/buildr/java/test_frameworks.rb +162 -3
- data/rakelib/apache.rake +14 -0
- data/rakelib/package.rake +28 -0
- data/rakelib/setup.rake +3 -2
- data/spec/compile_spec.rb +9 -8
- data/spec/java_test_frameworks_spec.rb +19 -0
- data/spec/project_spec.rb +12 -0
- data/spec/sandbox.rb +4 -0
- data/spec/scala_compilers_spec.rb +1 -12
- data/spec/scala_test_frameworks_spec.rb +216 -0
- data/spec/test_spec.rb +20 -4
- data/spec/transport_spec.rb +30 -14
- data/spec/version_requirement_spec.rb +5 -1
- metadata +23 -9
data/spec/transport_spec.rb
CHANGED
@@ -391,7 +391,7 @@ end
|
|
391
391
|
|
392
392
|
describe URI::SFTP, '#read' do
|
393
393
|
before do
|
394
|
-
@uri = URI('sftp://john:secret@localhost/path/readme')
|
394
|
+
@uri = URI('sftp://john:secret@localhost/root/path/readme')
|
395
395
|
@content = 'Readme. Please!'
|
396
396
|
|
397
397
|
@ssh_session = mock('Net::SSH::Session')
|
@@ -413,21 +413,21 @@ describe URI::SFTP, '#read' do
|
|
413
413
|
end
|
414
414
|
|
415
415
|
it 'should open file for reading' do
|
416
|
-
@file_factory.should_receive(:open).with('/path/readme', 'r')
|
416
|
+
@file_factory.should_receive(:open).with('/root/path/readme', 'r')
|
417
417
|
@uri.read
|
418
418
|
end
|
419
419
|
|
420
420
|
it 'should read contents of file and return it' do
|
421
421
|
file = mock('Net::SFTP::Operations::File')
|
422
422
|
file.should_receive(:read).with(an_instance_of(Numeric)).once.and_return(@content, nil)
|
423
|
-
@file_factory.should_receive(:open).with('/path/readme', 'r').and_yield(file)
|
423
|
+
@file_factory.should_receive(:open).with('/root/path/readme', 'r').and_yield(file)
|
424
424
|
@uri.read.should eql(@content)
|
425
425
|
end
|
426
426
|
|
427
427
|
it 'should read contents of file and pass it to block' do
|
428
428
|
file = mock('Net::SFTP::Operations::File')
|
429
429
|
file.should_receive(:read).with(an_instance_of(Numeric)).once.and_return(@content, nil)
|
430
|
-
@file_factory.should_receive(:open).with('/path/readme', 'r').and_yield(file)
|
430
|
+
@file_factory.should_receive(:open).with('/root/path/readme', 'r').and_yield(file)
|
431
431
|
content = ''
|
432
432
|
@uri.read do |chunk|
|
433
433
|
content << chunk
|
@@ -439,7 +439,7 @@ end
|
|
439
439
|
|
440
440
|
describe URI::SFTP, '#write' do
|
441
441
|
before do
|
442
|
-
@uri = URI('sftp://john:secret@localhost/path/readme')
|
442
|
+
@uri = URI('sftp://john:secret@localhost/root/path/readme')
|
443
443
|
@content = 'Readme. Please!'
|
444
444
|
|
445
445
|
@ssh_session = mock('Net::SSH::Session')
|
@@ -449,7 +449,9 @@ describe URI::SFTP, '#write' do
|
|
449
449
|
Net::SFTP::Session.should_receive(:new).with(@ssh_session).and_yield(@sftp_session).and_return(@sftp_session)
|
450
450
|
@sftp_session.should_receive(:connect!).and_return(@sftp_session)
|
451
451
|
@sftp_session.should_receive(:loop)
|
452
|
-
@sftp_session.stub!(:
|
452
|
+
@sftp_session.stub!(:opendir!).and_return { fail }
|
453
|
+
@sftp_session.stub!(:close)
|
454
|
+
@sftp_session.stub!(:mkdir!)
|
453
455
|
@sftp_session.should_receive(:file).with.and_return(@file_factory)
|
454
456
|
@file_factory.stub!(:open)
|
455
457
|
@ssh_session.should_receive(:close)
|
@@ -461,27 +463,41 @@ describe URI::SFTP, '#write' do
|
|
461
463
|
@uri.write @content
|
462
464
|
end
|
463
465
|
|
464
|
-
it 'should
|
465
|
-
|
466
|
-
@sftp_session.should_receive(:
|
466
|
+
it 'should check that path exists on server' do
|
467
|
+
paths = ['/root', '/root/path']
|
468
|
+
@sftp_session.should_receive(:opendir!).with(anything()).twice { |path| paths.shift.should == path }
|
467
469
|
@uri.write @content
|
468
470
|
end
|
469
471
|
|
470
|
-
it 'should
|
471
|
-
@sftp_session.should_receive(:
|
472
|
-
|
472
|
+
it 'should close all opened directories' do
|
473
|
+
@sftp_session.should_receive(:opendir!).with(anything()).twice do |path|
|
474
|
+
@sftp_session.should_receive(:close).with(handle = Object.new)
|
475
|
+
handle
|
476
|
+
end
|
477
|
+
@uri.write @content
|
478
|
+
end
|
479
|
+
|
480
|
+
it 'should create missing paths on server' do
|
481
|
+
@sftp_session.should_receive(:opendir!).twice { |path| fail unless path == '/root' }
|
482
|
+
@sftp_session.should_receive(:mkdir!).once.with('/root/path', {})
|
483
|
+
@uri.write @content
|
484
|
+
end
|
485
|
+
|
486
|
+
it 'should create missing directories recursively' do
|
487
|
+
paths = ['/root', '/root/path']
|
488
|
+
@sftp_session.should_receive(:mkdir!).with(anything(), {}).twice { |path, options| paths.shift.should == path }
|
473
489
|
@uri.write @content
|
474
490
|
end
|
475
491
|
|
476
492
|
it 'should open file for writing' do
|
477
|
-
@file_factory.should_receive(:open).with('/path/readme', 'w')
|
493
|
+
@file_factory.should_receive(:open).with('/root/path/readme', 'w')
|
478
494
|
@uri.write @content
|
479
495
|
end
|
480
496
|
|
481
497
|
it 'should write contents to file' do
|
482
498
|
file = mock('Net::SFTP::Operations::File')
|
483
499
|
file.should_receive(:write).with(@content)
|
484
|
-
@file_factory.should_receive(:open).with('/path/readme', 'w').and_yield(file)
|
500
|
+
@file_factory.should_receive(:open).with('/root/path/readme', 'w').and_yield(file)
|
485
501
|
@uri.write @content
|
486
502
|
end
|
487
503
|
|
@@ -36,7 +36,11 @@ describe Buildr::VersionRequirement, '.create' do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
it 'should create a single version requirement' do
|
39
|
-
create('1.0').should_not
|
39
|
+
create('1.0').should_not be_composed
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'should create a composed version requirement' do
|
43
|
+
create('1.0 | 2.1').should be_composed
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Apache Buildr
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-18 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -23,6 +24,7 @@ dependencies:
|
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: builder
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -32,24 +34,27 @@ dependencies:
|
|
32
34
|
version:
|
33
35
|
- !ruby/object:Gem::Dependency
|
34
36
|
name: net-ssh
|
37
|
+
type: :runtime
|
35
38
|
version_requirement:
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "="
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.0.
|
43
|
+
version: 2.0.3
|
41
44
|
version:
|
42
45
|
- !ruby/object:Gem::Dependency
|
43
46
|
name: net-sftp
|
47
|
+
type: :runtime
|
44
48
|
version_requirement:
|
45
49
|
version_requirements: !ruby/object:Gem::Requirement
|
46
50
|
requirements:
|
47
51
|
- - "="
|
48
52
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.0.
|
53
|
+
version: 2.0.1
|
50
54
|
version:
|
51
55
|
- !ruby/object:Gem::Dependency
|
52
56
|
name: rubyzip
|
57
|
+
type: :runtime
|
53
58
|
version_requirement:
|
54
59
|
version_requirements: !ruby/object:Gem::Requirement
|
55
60
|
requirements:
|
@@ -59,6 +64,7 @@ dependencies:
|
|
59
64
|
version:
|
60
65
|
- !ruby/object:Gem::Dependency
|
61
66
|
name: highline
|
67
|
+
type: :runtime
|
62
68
|
version_requirement:
|
63
69
|
version_requirements: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
@@ -68,24 +74,27 @@ dependencies:
|
|
68
74
|
version:
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rubyforge
|
77
|
+
type: :runtime
|
71
78
|
version_requirement:
|
72
79
|
version_requirements: !ruby/object:Gem::Requirement
|
73
80
|
requirements:
|
74
81
|
- - "="
|
75
82
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
83
|
+
version: 1.0.0
|
77
84
|
version:
|
78
85
|
- !ruby/object:Gem::Dependency
|
79
86
|
name: hoe
|
87
|
+
type: :runtime
|
80
88
|
version_requirement:
|
81
89
|
version_requirements: !ruby/object:Gem::Requirement
|
82
90
|
requirements:
|
83
91
|
- - "="
|
84
92
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
93
|
+
version: 1.6.0
|
86
94
|
version:
|
87
95
|
- !ruby/object:Gem::Dependency
|
88
96
|
name: Antwrap
|
97
|
+
type: :runtime
|
89
98
|
version_requirement:
|
90
99
|
version_requirements: !ruby/object:Gem::Requirement
|
91
100
|
requirements:
|
@@ -95,15 +104,17 @@ dependencies:
|
|
95
104
|
version:
|
96
105
|
- !ruby/object:Gem::Dependency
|
97
106
|
name: rspec
|
107
|
+
type: :runtime
|
98
108
|
version_requirement:
|
99
109
|
version_requirements: !ruby/object:Gem::Requirement
|
100
110
|
requirements:
|
101
111
|
- - "="
|
102
112
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.1.
|
113
|
+
version: 1.1.4
|
104
114
|
version:
|
105
115
|
- !ruby/object:Gem::Dependency
|
106
116
|
name: xml-simple
|
117
|
+
type: :runtime
|
107
118
|
version_requirement:
|
108
119
|
version_requirements: !ruby/object:Gem::Requirement
|
109
120
|
requirements:
|
@@ -113,6 +124,7 @@ dependencies:
|
|
113
124
|
version:
|
114
125
|
- !ruby/object:Gem::Dependency
|
115
126
|
name: archive-tar-minitar
|
127
|
+
type: :runtime
|
116
128
|
version_requirement:
|
117
129
|
version_requirements: !ruby/object:Gem::Requirement
|
118
130
|
requirements:
|
@@ -122,6 +134,7 @@ dependencies:
|
|
122
134
|
version:
|
123
135
|
- !ruby/object:Gem::Dependency
|
124
136
|
name: jruby-openssl
|
137
|
+
type: :runtime
|
125
138
|
version_requirement:
|
126
139
|
version_requirements: !ruby/object:Gem::Requirement
|
127
140
|
requirements:
|
@@ -131,6 +144,7 @@ dependencies:
|
|
131
144
|
version:
|
132
145
|
- !ruby/object:Gem::Dependency
|
133
146
|
name: ci_reporter
|
147
|
+
type: :runtime
|
134
148
|
version_requirement:
|
135
149
|
version_requirements: !ruby/object:Gem::Requirement
|
136
150
|
requirements:
|
@@ -208,7 +222,6 @@ files:
|
|
208
222
|
- lib/buildr/packaging/zip.rb
|
209
223
|
- lib/buildr/packaging.rb
|
210
224
|
- lib/buildr.rb
|
211
|
-
- lib/core
|
212
225
|
- addon/buildr
|
213
226
|
- addon/buildr/antlr.rb
|
214
227
|
- addon/buildr/cobertura.rb
|
@@ -264,6 +277,7 @@ files:
|
|
264
277
|
- spec/project_spec.rb
|
265
278
|
- spec/sandbox.rb
|
266
279
|
- spec/scala_compilers_spec.rb
|
280
|
+
- spec/scala_test_frameworks_spec.rb
|
267
281
|
- spec/spec.opts
|
268
282
|
- spec/spec_helpers.rb
|
269
283
|
- spec/test_spec.rb
|
@@ -337,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
351
|
requirements: []
|
338
352
|
|
339
353
|
rubyforge_project: buildr
|
340
|
-
rubygems_version: 1.
|
354
|
+
rubygems_version: 1.2.0
|
341
355
|
signing_key:
|
342
356
|
specification_version: 2
|
343
357
|
summary: A build system that doesn't suck
|