buildr 1.3.1.1 → 1.3.2
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 -13
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: ruby
|
6
6
|
authors:
|
7
7
|
- Apache Buildr
|
@@ -9,23 +9,22 @@ 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: rjb
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
|
-
- - "
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.1.0
|
23
|
-
- - <=
|
21
|
+
- - "="
|
24
22
|
- !ruby/object:Gem::Version
|
25
23
|
version: 1.1.2
|
26
24
|
version:
|
27
25
|
- !ruby/object:Gem::Dependency
|
28
26
|
name: rake
|
27
|
+
type: :runtime
|
29
28
|
version_requirement:
|
30
29
|
version_requirements: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
@@ -35,6 +34,7 @@ dependencies:
|
|
35
34
|
version:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: builder
|
37
|
+
type: :runtime
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
@@ -44,24 +44,27 @@ dependencies:
|
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: net-ssh
|
47
|
+
type: :runtime
|
47
48
|
version_requirement:
|
48
49
|
version_requirements: !ruby/object:Gem::Requirement
|
49
50
|
requirements:
|
50
51
|
- - "="
|
51
52
|
- !ruby/object:Gem::Version
|
52
|
-
version: 2.0.
|
53
|
+
version: 2.0.3
|
53
54
|
version:
|
54
55
|
- !ruby/object:Gem::Dependency
|
55
56
|
name: net-sftp
|
57
|
+
type: :runtime
|
56
58
|
version_requirement:
|
57
59
|
version_requirements: !ruby/object:Gem::Requirement
|
58
60
|
requirements:
|
59
61
|
- - "="
|
60
62
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.
|
63
|
+
version: 2.0.1
|
62
64
|
version:
|
63
65
|
- !ruby/object:Gem::Dependency
|
64
66
|
name: rubyzip
|
67
|
+
type: :runtime
|
65
68
|
version_requirement:
|
66
69
|
version_requirements: !ruby/object:Gem::Requirement
|
67
70
|
requirements:
|
@@ -71,6 +74,7 @@ dependencies:
|
|
71
74
|
version:
|
72
75
|
- !ruby/object:Gem::Dependency
|
73
76
|
name: highline
|
77
|
+
type: :runtime
|
74
78
|
version_requirement:
|
75
79
|
version_requirements: !ruby/object:Gem::Requirement
|
76
80
|
requirements:
|
@@ -80,24 +84,27 @@ dependencies:
|
|
80
84
|
version:
|
81
85
|
- !ruby/object:Gem::Dependency
|
82
86
|
name: rubyforge
|
87
|
+
type: :runtime
|
83
88
|
version_requirement:
|
84
89
|
version_requirements: !ruby/object:Gem::Requirement
|
85
90
|
requirements:
|
86
91
|
- - "="
|
87
92
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.
|
93
|
+
version: 1.0.0
|
89
94
|
version:
|
90
95
|
- !ruby/object:Gem::Dependency
|
91
96
|
name: hoe
|
97
|
+
type: :runtime
|
92
98
|
version_requirement:
|
93
99
|
version_requirements: !ruby/object:Gem::Requirement
|
94
100
|
requirements:
|
95
101
|
- - "="
|
96
102
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.
|
103
|
+
version: 1.6.0
|
98
104
|
version:
|
99
105
|
- !ruby/object:Gem::Dependency
|
100
106
|
name: Antwrap
|
107
|
+
type: :runtime
|
101
108
|
version_requirement:
|
102
109
|
version_requirements: !ruby/object:Gem::Requirement
|
103
110
|
requirements:
|
@@ -107,15 +114,17 @@ dependencies:
|
|
107
114
|
version:
|
108
115
|
- !ruby/object:Gem::Dependency
|
109
116
|
name: rspec
|
117
|
+
type: :runtime
|
110
118
|
version_requirement:
|
111
119
|
version_requirements: !ruby/object:Gem::Requirement
|
112
120
|
requirements:
|
113
121
|
- - "="
|
114
122
|
- !ruby/object:Gem::Version
|
115
|
-
version: 1.1.
|
123
|
+
version: 1.1.4
|
116
124
|
version:
|
117
125
|
- !ruby/object:Gem::Dependency
|
118
126
|
name: xml-simple
|
127
|
+
type: :runtime
|
119
128
|
version_requirement:
|
120
129
|
version_requirements: !ruby/object:Gem::Requirement
|
121
130
|
requirements:
|
@@ -125,6 +134,7 @@ dependencies:
|
|
125
134
|
version:
|
126
135
|
- !ruby/object:Gem::Dependency
|
127
136
|
name: archive-tar-minitar
|
137
|
+
type: :runtime
|
128
138
|
version_requirement:
|
129
139
|
version_requirements: !ruby/object:Gem::Requirement
|
130
140
|
requirements:
|
@@ -202,7 +212,6 @@ files:
|
|
202
212
|
- lib/buildr/packaging/zip.rb
|
203
213
|
- lib/buildr/packaging.rb
|
204
214
|
- lib/buildr.rb
|
205
|
-
- lib/core
|
206
215
|
- addon/buildr
|
207
216
|
- addon/buildr/antlr.rb
|
208
217
|
- addon/buildr/cobertura.rb
|
@@ -258,6 +267,7 @@ files:
|
|
258
267
|
- spec/project_spec.rb
|
259
268
|
- spec/sandbox.rb
|
260
269
|
- spec/scala_compilers_spec.rb
|
270
|
+
- spec/scala_test_frameworks_spec.rb
|
261
271
|
- spec/spec.opts
|
262
272
|
- spec/spec_helpers.rb
|
263
273
|
- spec/test_spec.rb
|
@@ -331,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
341
|
requirements: []
|
332
342
|
|
333
343
|
rubyforge_project: buildr
|
334
|
-
rubygems_version: 1.
|
344
|
+
rubygems_version: 1.2.0
|
335
345
|
signing_key:
|
336
346
|
specification_version: 2
|
337
347
|
summary: A build system that doesn't suck
|