rake-builder 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/Rakefile +412 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/fbuffer/fbuffer.h +185 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.c +1427 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.h +149 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.c +2204 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.h +77 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/Rakefile +374 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/a.c +6 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/b.c +6 -0
- data/examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/main.c +11 -0
- data/lib/rake/builder.rb +39 -70
- data/lib/rake/builder/presenters/makefile_am/builder_collection_presenter.rb +46 -0
- data/lib/rake/builder/presenters/makefile_am/builder_presenter.rb +40 -0
- data/lib/rake/builder/version.rb +1 -1
- data/spec/autoconf_spec.rb +1 -22
- data/spec/project_spec.rb +20 -0
- data/spec/unit/rake/builder/presenters/makefile_am/builder_collection_presenter_spec.rb +55 -0
- data/spec/unit/rake/builder/presenters/makefile_am/builder_presenter_spec.rb +71 -0
- data/spec/unit/rake/builder_spec.rb +46 -0
- metadata +24 -4
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Rake::Builder do
|
4
|
+
context '.create_makefile_am' do
|
5
|
+
let(:presenter) { stub('Rake::Builder::Presenters::MakefileAm::BuilderCollectionPresenter', :to_s => 'contents') }
|
6
|
+
|
7
|
+
before do
|
8
|
+
Rake::Builder::Presenters::MakefileAm::BuilderCollectionPresenter.stub(:new).and_return(presenter)
|
9
|
+
File.stub(:open).with('Makefile.am', 'w')
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'uses the presenter' do
|
13
|
+
Rake::Builder::Presenters::MakefileAm::BuilderCollectionPresenter.should_receive(:new).and_return(presenter)
|
14
|
+
|
15
|
+
Rake::Builder.create_makefile_am
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'writes Makefile.am' do
|
19
|
+
file = stub('File')
|
20
|
+
file.should_receive(:write).with('contents')
|
21
|
+
File.should_receive(:open).with('Makefile.am', 'w') do |&block|
|
22
|
+
block.call file
|
23
|
+
end
|
24
|
+
|
25
|
+
Rake::Builder.create_makefile_am
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
context '#primary_name' do
|
30
|
+
it 'xx'
|
31
|
+
end
|
32
|
+
|
33
|
+
context '#label' do
|
34
|
+
it 'xx'
|
35
|
+
end
|
36
|
+
|
37
|
+
context '#source_paths' do
|
38
|
+
it 'returns source files'
|
39
|
+
it 'uses relative paths'
|
40
|
+
end
|
41
|
+
|
42
|
+
context '#library_dependencies_list' do
|
43
|
+
it 'is a string'
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -92,13 +92,23 @@ files:
|
|
92
92
|
- lib/rake/file_task_alias.rb
|
93
93
|
- lib/rake/builder/qt_builder.rb
|
94
94
|
- lib/rake/builder/version.rb
|
95
|
+
- lib/rake/builder/presenters/makefile_am/builder_presenter.rb
|
96
|
+
- lib/rake/builder/presenters/makefile_am/builder_collection_presenter.rb
|
95
97
|
- lib/rake/local_config.rb
|
96
98
|
- lib/rake/path.rb
|
97
99
|
- lib/rake/builder.rb
|
100
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/fbuffer/fbuffer.h
|
101
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.h
|
102
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.h
|
98
103
|
- examples/05_tests/include/main.h
|
99
104
|
- examples/05_tests/include/units.h
|
100
105
|
- examples/03_search_paths/include/main.h
|
101
106
|
- examples/04_zlib/include/main.h
|
107
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/main.c
|
108
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/a.c
|
109
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/doc/example/b.c
|
110
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.c
|
111
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.c
|
102
112
|
- examples/07_multiple_targets/main.c
|
103
113
|
- examples/04_zlib/src/main.c
|
104
114
|
- examples/02_hello_world_c/main.c
|
@@ -109,6 +119,8 @@ files:
|
|
109
119
|
- examples/03_search_paths/src/main.cpp
|
110
120
|
- examples/06_hello_world_objective_c/main.m
|
111
121
|
- examples/README.rdoc
|
122
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/rake-10.0.3/Rakefile
|
123
|
+
- examples/01_hello_world_cpp/vendor/bundle/gems/json-1.7.6/Rakefile
|
112
124
|
- examples/01_hello_world_cpp/Rakefile
|
113
125
|
- examples/05_tests/Rakefile
|
114
126
|
- examples/06_hello_world_objective_c/Rakefile
|
@@ -120,6 +132,9 @@ files:
|
|
120
132
|
- spec/cpp_project/main.h
|
121
133
|
- spec/cpp_project/main.cpp
|
122
134
|
- spec/generated_files_spec.rb
|
135
|
+
- spec/unit/rake/builder_spec.rb
|
136
|
+
- spec/unit/rake/builder/presenters/makefile_am/builder_collection_presenter_spec.rb
|
137
|
+
- spec/unit/rake/builder/presenters/makefile_am/builder_presenter_spec.rb
|
123
138
|
- spec/c_project/main.c
|
124
139
|
- spec/c_project/main.h
|
125
140
|
- spec/c_project_spec.rb
|
@@ -128,6 +143,7 @@ files:
|
|
128
143
|
- spec/target_spec.rb
|
129
144
|
- spec/microsecond_task_spec.rb
|
130
145
|
- spec/cpp_project_spec.rb
|
146
|
+
- spec/project_spec.rb
|
131
147
|
- spec/logger_spec.rb
|
132
148
|
- spec/dependencies_spec.rb
|
133
149
|
- spec/objective_c_project_spec.rb
|
@@ -149,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
165
|
version: '0'
|
150
166
|
segments:
|
151
167
|
- 0
|
152
|
-
hash:
|
168
|
+
hash: -4521436096979884439
|
153
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
170
|
none: false
|
155
171
|
requirements:
|
@@ -158,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
174
|
version: '0'
|
159
175
|
segments:
|
160
176
|
- 0
|
161
|
-
hash:
|
177
|
+
hash: -4521436096979884439
|
162
178
|
requirements: []
|
163
179
|
rubyforge_project: nowarning
|
164
180
|
rubygems_version: 1.8.23
|
@@ -170,6 +186,9 @@ test_files:
|
|
170
186
|
- spec/cpp_project/main.h
|
171
187
|
- spec/cpp_project/main.cpp
|
172
188
|
- spec/generated_files_spec.rb
|
189
|
+
- spec/unit/rake/builder_spec.rb
|
190
|
+
- spec/unit/rake/builder/presenters/makefile_am/builder_collection_presenter_spec.rb
|
191
|
+
- spec/unit/rake/builder/presenters/makefile_am/builder_presenter_spec.rb
|
173
192
|
- spec/c_project/main.c
|
174
193
|
- spec/c_project/main.h
|
175
194
|
- spec/c_project_spec.rb
|
@@ -178,6 +197,7 @@ test_files:
|
|
178
197
|
- spec/target_spec.rb
|
179
198
|
- spec/microsecond_task_spec.rb
|
180
199
|
- spec/cpp_project_spec.rb
|
200
|
+
- spec/project_spec.rb
|
181
201
|
- spec/logger_spec.rb
|
182
202
|
- spec/dependencies_spec.rb
|
183
203
|
- spec/objective_c_project_spec.rb
|