ceedling 0.27.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/project_as_gem.yml +6 -0
- data/assets/project_with_guts.yml +6 -0
- data/assets/project_with_guts_gcov.yml +88 -0
- data/assets/test_example_file_boom.c +13 -0
- data/assets/test_example_file_success.c +14 -0
- data/bin/ceedling +57 -113
- data/ceedling.gemspec +1 -1
- data/config/test_environment.rb +0 -1
- data/examples/blinky/project.yml +1 -1
- data/examples/temp_sensor/project.yml +7 -1
- data/examples/temp_sensor/rakefile.rb +3 -1
- data/lib/ceedling/build_invoker_utils.rb +14 -2
- data/lib/ceedling/configurator.rb +3 -1
- data/lib/ceedling/configurator_builder.rb +6 -4
- data/lib/ceedling/configurator_setup.rb +5 -1
- data/lib/ceedling/defaults.rb +5 -2
- data/lib/ceedling/dependinator.rb +1 -1
- data/lib/ceedling/file_path_utils.rb +1 -2
- data/lib/ceedling/generator_test_results.rb +3 -2
- data/lib/ceedling/generator_test_results_sanity_checker.rb +4 -3
- data/lib/ceedling/project_file_loader.rb +26 -9
- data/lib/ceedling/rakefile.rb +9 -2
- data/lib/ceedling/release_invoker.rb +1 -1
- data/lib/ceedling/reportinator.rb +18 -1
- data/lib/ceedling/system_utils.rb +6 -1
- data/lib/ceedling/system_wrapper.rb +2 -1
- data/lib/ceedling/target_loader.rb +2 -2
- data/lib/ceedling/tasks_filesystem.rake +8 -2
- data/lib/ceedling/tool_executor_helper.rb +71 -22
- data/lib/ceedling/version.rb +1 -1
- data/license.txt +1 -1
- data/out.fail +21 -0
- data/plugins/command_hooks/lib/command_hooks.rb +2 -1
- data/plugins/gcov/config/defaults.yml +22 -0
- data/plugins/gcov/gcov.rake +79 -65
- data/plugins/gcov/lib/gcov.rb +25 -38
- data/plugins/gcov/lib/gcov_constants.rb +16 -0
- data/spec/build_invoker_utils_spec.rb +54 -0
- data/spec/file_finder_helper_spec.rb +53 -0
- data/spec/gcov/gcov_deployment_spec.rb +70 -0
- data/spec/gcov/gcov_test_cases_spec.rb +91 -0
- data/spec/generator_test_results_sanity_checker_spec.rb +88 -0
- data/spec/generator_test_results_spec.rb +102 -0
- data/spec/reportinator_spec.rb +19 -0
- data/spec/spec_system_helper.rb +67 -5
- data/spec/support/other_target.yml +0 -0
- data/spec/support/target.yml +0 -0
- data/spec/support/test_example.fail +21 -0
- data/spec/support/test_example.pass +21 -0
- data/spec/support/test_example_empty.pass +13 -0
- data/spec/support/test_example_ignore.pass +21 -0
- data/spec/support/test_example_mangled.pass +19 -0
- data/spec/system/deployment_spec.rb +25 -5
- data/spec/system_utils_spec.rb +56 -0
- data/spec/target_loader_spec.rb +30 -0
- data/spec/tool_executor_helper_spec.rb +310 -0
- data/vendor/cmock/scripts/create_makefile.rb +35 -12
- data/vendor/unity/src/unity_internals.h +3 -3
- metadata +62 -27
- data/assets/rakefile_as_gem.rb +0 -3
- data/assets/rakefile_with_guts.rb +0 -6
- data/vendor/constructor/History.rdoc +0 -19
- data/vendor/constructor/README.rdoc +0 -72
- data/vendor/constructor/Rakefile +0 -33
- data/vendor/constructor/homepage/Notes.txt +0 -27
- data/vendor/constructor/homepage/Rakefile +0 -15
- data/vendor/constructor/homepage/index.erb +0 -27
- data/vendor/constructor/homepage/index.html +0 -36
- data/vendor/constructor/homepage/page_header.graffle +0 -0
- data/vendor/constructor/homepage/page_header.html +0 -9
- data/vendor/constructor/homepage/page_header.png +0 -0
- data/vendor/constructor/homepage/sample_code.png +0 -0
- data/vendor/constructor/homepage/sample_code.rb +0 -12
- data/vendor/constructor/lib/constructor.rb +0 -127
- data/vendor/constructor/lib/constructor_struct.rb +0 -33
- data/vendor/constructor/specs/constructor_spec.rb +0 -407
- data/vendor/constructor/specs/constructor_struct_spec.rb +0 -84
@@ -59,6 +59,7 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
|
|
59
59
|
test_targets = []
|
60
60
|
generator = UnityTestRunnerGenerator.new
|
61
61
|
all_headers = Dir["#{SRC_DIR}/**/*.h"]
|
62
|
+
makefile_targets = []
|
62
63
|
|
63
64
|
test_sources.each do |test|
|
64
65
|
module_name = File.basename(test, '.c')
|
@@ -69,12 +70,37 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
|
|
69
70
|
test_bin = File.join(TEST_BIN_DIR, module_name)
|
70
71
|
test_results = File.join(TEST_BIN_DIR, module_name + '.result')
|
71
72
|
|
73
|
+
cfg = {
|
74
|
+
src: test,
|
75
|
+
includes: generator.find_includes(File.readlines(test).join(''))
|
76
|
+
}
|
77
|
+
|
72
78
|
# Build main project modules, with TEST defined
|
73
79
|
module_src = File.join(SRC_DIR, "#{src_module_name}.c")
|
74
80
|
module_obj = File.join(OBJ_DIR, "#{src_module_name}.o")
|
75
|
-
|
76
|
-
|
77
|
-
|
81
|
+
if not makefile_targets.include? module_obj
|
82
|
+
makefile_targets.push(module_obj)
|
83
|
+
mkfile.puts "#{module_obj}: #{module_src}"
|
84
|
+
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} ${INCLUDE_PATH}"
|
85
|
+
mkfile.puts ""
|
86
|
+
end
|
87
|
+
|
88
|
+
# process link-only files
|
89
|
+
linkonly = cfg[:includes][:linkonly]
|
90
|
+
linkonly_objs = []
|
91
|
+
linkonly.each do |linkonlyfile|
|
92
|
+
linkonlybase = File.basename(linkonlyfile)
|
93
|
+
linkonlymodule_src = File.join(SRC_DIR, "#{linkonlyfile}.c")
|
94
|
+
linkonlymodule_obj = File.join(OBJ_DIR, "#{linkonlybase}.o")
|
95
|
+
linkonly_objs.push(linkonlymodule_obj)
|
96
|
+
#only create the target if we didn't already
|
97
|
+
if not makefile_targets.include? linkonlymodule_obj
|
98
|
+
makefile_targets.push(linkonlymodule_obj)
|
99
|
+
mkfile.puts "#{linkonlymodule_obj}: #{linkonlymodule_src}"
|
100
|
+
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} ${INCLUDE_PATH}"
|
101
|
+
mkfile.puts ""
|
102
|
+
end
|
103
|
+
end
|
78
104
|
|
79
105
|
# Create runners
|
80
106
|
mkfile.puts "#{runner_source}: #{test}"
|
@@ -83,17 +109,14 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
|
|
83
109
|
|
84
110
|
# Build runner
|
85
111
|
mkfile.puts "#{runner_obj}: #{runner_source}"
|
86
|
-
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} -I #{MOCKS_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC}"
|
112
|
+
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} -I #{MOCKS_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC} ${INCLUDE_PATH}"
|
87
113
|
mkfile.puts ""
|
88
114
|
|
89
115
|
# Collect mocks to generate
|
90
|
-
cfg = {
|
91
|
-
src: test,
|
92
|
-
includes: generator.find_includes(File.readlines(test).join(''))
|
93
|
-
}
|
94
116
|
system_mocks = cfg[:includes][:system].select{|name| name =~ MOCK_MATCHER}
|
95
117
|
raise "Mocking of system headers is not yet supported!" if !system_mocks.empty?
|
96
118
|
local_mocks = cfg[:includes][:local].select{|name| name =~ MOCK_MATCHER}
|
119
|
+
|
97
120
|
module_names_to_mock = local_mocks.map{|name| "#{name.sub(/#{MOCK_PREFIX}/,'')}.h"}
|
98
121
|
headers_to_mock = []
|
99
122
|
module_names_to_mock.each do |name|
|
@@ -116,13 +139,13 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
|
|
116
139
|
|
117
140
|
# Build test suite
|
118
141
|
mkfile.puts "#{test_obj}: #{test} #{module_obj} #{mock_objs.join(' ')}"
|
119
|
-
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC} -I #{MOCKS_DIR}"
|
142
|
+
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{SRC_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC} -I #{MOCKS_DIR} ${INCLUDE_PATH}"
|
120
143
|
mkfile.puts ""
|
121
144
|
|
122
145
|
# Build test suite executable
|
123
|
-
test_objs = "#{test_obj} #{runner_obj} #{module_obj} #{mock_objs.join(' ')} #{UNITY_OBJ} #{CMOCK_OBJ}"
|
146
|
+
test_objs = "#{test_obj} #{runner_obj} #{module_obj} #{mock_objs.join(' ')} #{linkonly_objs.join(' ')} #{UNITY_OBJ} #{CMOCK_OBJ}"
|
124
147
|
mkfile.puts "#{test_bin}: #{test_objs}"
|
125
|
-
mkfile.puts "\t${CC} -o $@ #{test_objs}"
|
148
|
+
mkfile.puts "\t${CC} -o $@ ${LDFLAGS} #{test_objs}"
|
126
149
|
mkfile.puts ""
|
127
150
|
|
128
151
|
# Run test suite and generate report
|
@@ -145,7 +168,7 @@ File.open(TEST_MAKEFILE, "w") do |mkfile|
|
|
145
168
|
mkfile.puts ""
|
146
169
|
|
147
170
|
mkfile.puts "#{mock_obj}: #{mock_src} #{mock_header}"
|
148
|
-
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{MOCKS_DIR} -I #{SRC_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC}"
|
171
|
+
mkfile.puts "\t${CC} -o $@ -c $< ${TEST_CFLAGS} -I #{MOCKS_DIR} -I #{SRC_DIR} -I #{UNITY_SRC} -I #{CMOCK_SRC} ${INCLUDE_PATH}"
|
149
172
|
mkfile.puts ""
|
150
173
|
end
|
151
174
|
|
@@ -706,9 +706,9 @@ int UnityTestMatches(void);
|
|
706
706
|
#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_ARRAY)
|
707
707
|
#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_ARRAY)
|
708
708
|
#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_ARRAY)
|
709
|
-
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)expected, 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64,
|
710
|
-
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(
|
711
|
-
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)expected, 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64,
|
709
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)expected, 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_VAL)
|
710
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_UINT64)expected, 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_VAL)
|
711
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)expected, 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_VAL)
|
712
712
|
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
713
713
|
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
714
714
|
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ceedling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Karlesky, Mark VanderVoord
|
@@ -10,36 +10,50 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-06-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 0.14.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: 0.14.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.8.7
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.8.7
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: constructor
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 1.0.4
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.0.4
|
43
57
|
description: Ceedling provides a set of tools to deploy its guts in a folder or which
|
44
58
|
can be required in a Rakefile
|
45
59
|
email:
|
@@ -57,9 +71,10 @@ files:
|
|
57
71
|
- assets/example_file.h
|
58
72
|
- assets/project_as_gem.yml
|
59
73
|
- assets/project_with_guts.yml
|
60
|
-
- assets/
|
61
|
-
- assets/rakefile_with_guts.rb
|
74
|
+
- assets/project_with_guts_gcov.yml
|
62
75
|
- assets/test_example_file.c
|
76
|
+
- assets/test_example_file_boom.c
|
77
|
+
- assets/test_example_file_success.c
|
63
78
|
- bin/ceedling
|
64
79
|
- ceedling.gemspec
|
65
80
|
- config/test_environment.rb
|
@@ -234,6 +249,7 @@ files:
|
|
234
249
|
- lib/ceedling/version.rb.erb
|
235
250
|
- lib/ceedling/yaml_wrapper.rb
|
236
251
|
- license.txt
|
252
|
+
- out.fail
|
237
253
|
- plugins/bullseye/assets/template.erb
|
238
254
|
- plugins/bullseye/bullseye.rake
|
239
255
|
- plugins/bullseye/config/defaults.yml
|
@@ -306,6 +322,7 @@ files:
|
|
306
322
|
- plugins/gcov/config/defaults.yml
|
307
323
|
- plugins/gcov/gcov.rake
|
308
324
|
- plugins/gcov/lib/gcov.rb
|
325
|
+
- plugins/gcov/lib/gcov_constants.rb
|
309
326
|
- plugins/junit_tests_report/lib/junit_tests_report.rb
|
310
327
|
- plugins/module_generator/config/module_generator.yml
|
311
328
|
- plugins/module_generator/lib/module_generator.rb
|
@@ -327,16 +344,33 @@ files:
|
|
327
344
|
- plugins/teamcity_tests_report/lib/teamcity_tests_report.rb
|
328
345
|
- plugins/warnings_report/lib/warnings_report.rb
|
329
346
|
- plugins/xml_tests_report/lib/xml_tests_report.rb
|
347
|
+
- spec/build_invoker_utils_spec.rb
|
330
348
|
- spec/ceedling_spec.rb
|
331
349
|
- spec/configurator_builder_spec.rb
|
332
350
|
- spec/configurator_helper_spec.rb
|
333
351
|
- spec/configurator_spec.rb
|
352
|
+
- spec/file_finder_helper_spec.rb
|
353
|
+
- spec/gcov/gcov_deployment_spec.rb
|
354
|
+
- spec/gcov/gcov_test_cases_spec.rb
|
355
|
+
- spec/generator_test_results_sanity_checker_spec.rb
|
356
|
+
- spec/generator_test_results_spec.rb
|
334
357
|
- spec/par_map_spec.rb
|
335
358
|
- spec/preprocessinator_extractor_spec.rb
|
336
359
|
- spec/preprocessinator_includes_handler_spec.rb
|
360
|
+
- spec/reportinator_spec.rb
|
337
361
|
- spec/spec_helper.rb
|
338
362
|
- spec/spec_system_helper.rb
|
363
|
+
- spec/support/other_target.yml
|
364
|
+
- spec/support/target.yml
|
365
|
+
- spec/support/test_example.fail
|
366
|
+
- spec/support/test_example.pass
|
367
|
+
- spec/support/test_example_empty.pass
|
368
|
+
- spec/support/test_example_ignore.pass
|
369
|
+
- spec/support/test_example_mangled.pass
|
339
370
|
- spec/system/deployment_spec.rb
|
371
|
+
- spec/system_utils_spec.rb
|
372
|
+
- spec/target_loader_spec.rb
|
373
|
+
- spec/tool_executor_helper_spec.rb
|
340
374
|
- spec/uncatagorized_specs_spec.rb
|
341
375
|
- vendor/behaviors/Manifest.txt
|
342
376
|
- vendor/behaviors/Rakefile
|
@@ -989,22 +1023,6 @@ files:
|
|
989
1023
|
- vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb
|
990
1024
|
- vendor/cmock/vendor/unity/test/tests/testparameterized.c
|
991
1025
|
- vendor/cmock/vendor/unity/test/tests/testunity.c
|
992
|
-
- vendor/constructor/History.rdoc
|
993
|
-
- vendor/constructor/README.rdoc
|
994
|
-
- vendor/constructor/Rakefile
|
995
|
-
- vendor/constructor/homepage/Notes.txt
|
996
|
-
- vendor/constructor/homepage/Rakefile
|
997
|
-
- vendor/constructor/homepage/index.erb
|
998
|
-
- vendor/constructor/homepage/index.html
|
999
|
-
- vendor/constructor/homepage/page_header.graffle
|
1000
|
-
- vendor/constructor/homepage/page_header.html
|
1001
|
-
- vendor/constructor/homepage/page_header.png
|
1002
|
-
- vendor/constructor/homepage/sample_code.png
|
1003
|
-
- vendor/constructor/homepage/sample_code.rb
|
1004
|
-
- vendor/constructor/lib/constructor.rb
|
1005
|
-
- vendor/constructor/lib/constructor_struct.rb
|
1006
|
-
- vendor/constructor/specs/constructor_spec.rb
|
1007
|
-
- vendor/constructor/specs/constructor_struct_spec.rb
|
1008
1026
|
- vendor/deep_merge/MIT-LICENSE
|
1009
1027
|
- vendor/deep_merge/README
|
1010
1028
|
- vendor/deep_merge/Rakefile
|
@@ -1270,30 +1288,47 @@ require_paths:
|
|
1270
1288
|
- vendor/cmock/lib
|
1271
1289
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1272
1290
|
requirements:
|
1273
|
-
- -
|
1291
|
+
- - ">="
|
1274
1292
|
- !ruby/object:Gem::Version
|
1275
1293
|
version: '0'
|
1276
1294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1277
1295
|
requirements:
|
1278
|
-
- -
|
1296
|
+
- - ">="
|
1279
1297
|
- !ruby/object:Gem::Version
|
1280
1298
|
version: '0'
|
1281
1299
|
requirements: []
|
1282
1300
|
rubyforge_project:
|
1283
|
-
rubygems_version: 2.4.
|
1301
|
+
rubygems_version: 2.4.3
|
1284
1302
|
signing_key:
|
1285
1303
|
specification_version: 4
|
1286
1304
|
summary: Ceedling is a set of tools for the automation of builds and test running
|
1287
1305
|
for C
|
1288
1306
|
test_files:
|
1307
|
+
- spec/build_invoker_utils_spec.rb
|
1289
1308
|
- spec/ceedling_spec.rb
|
1290
1309
|
- spec/configurator_builder_spec.rb
|
1291
1310
|
- spec/configurator_helper_spec.rb
|
1292
1311
|
- spec/configurator_spec.rb
|
1312
|
+
- spec/file_finder_helper_spec.rb
|
1313
|
+
- spec/gcov/gcov_deployment_spec.rb
|
1314
|
+
- spec/gcov/gcov_test_cases_spec.rb
|
1315
|
+
- spec/generator_test_results_sanity_checker_spec.rb
|
1316
|
+
- spec/generator_test_results_spec.rb
|
1293
1317
|
- spec/par_map_spec.rb
|
1294
1318
|
- spec/preprocessinator_extractor_spec.rb
|
1295
1319
|
- spec/preprocessinator_includes_handler_spec.rb
|
1320
|
+
- spec/reportinator_spec.rb
|
1296
1321
|
- spec/spec_helper.rb
|
1297
1322
|
- spec/spec_system_helper.rb
|
1323
|
+
- spec/support/other_target.yml
|
1324
|
+
- spec/support/target.yml
|
1325
|
+
- spec/support/test_example.fail
|
1326
|
+
- spec/support/test_example.pass
|
1327
|
+
- spec/support/test_example_empty.pass
|
1328
|
+
- spec/support/test_example_ignore.pass
|
1329
|
+
- spec/support/test_example_mangled.pass
|
1298
1330
|
- spec/system/deployment_spec.rb
|
1331
|
+
- spec/system_utils_spec.rb
|
1332
|
+
- spec/target_loader_spec.rb
|
1333
|
+
- spec/tool_executor_helper_spec.rb
|
1299
1334
|
- spec/uncatagorized_specs_spec.rb
|
data/assets/rakefile_as_gem.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
== 1.0.4 / 2009-12-01
|
2
|
-
|
3
|
-
* Building is now done with Jeweler.
|
4
|
-
|
5
|
-
== 1.0.3 / 2009-11-30
|
6
|
-
|
7
|
-
* Quick release to include ConstructorStruct.
|
8
|
-
|
9
|
-
== 1.0.2 / 2008-05-07
|
10
|
-
|
11
|
-
* An error is raised when constructor keys are passed in that already exist in the super class
|
12
|
-
|
13
|
-
== 1.0.1 / 2007-12-21
|
14
|
-
|
15
|
-
* You can now pass a block to your constructor call; it gets executed after all the ivars get assigned. (This lets you write some initializer code if you need to.)
|
16
|
-
|
17
|
-
== 1.0.0 / 2007-11-18
|
18
|
-
|
19
|
-
* Released!
|
@@ -1,72 +0,0 @@
|
|
1
|
-
== Constructor
|
2
|
-
|
3
|
-
* http://atomicobject.github.com/constructor
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
Declarative means to define object properties by passing a hash
|
8
|
-
to the constructor, which will set the corresponding ivars.
|
9
|
-
|
10
|
-
== SYNOPSIS:
|
11
|
-
|
12
|
-
require 'constructor'
|
13
|
-
|
14
|
-
class Horse
|
15
|
-
constructor :name, :breed, :weight
|
16
|
-
end
|
17
|
-
Horse.new :name => 'Ed', :breed => 'Mustang', :weight => 342
|
18
|
-
|
19
|
-
By default the ivars do not get accessors defined.
|
20
|
-
But you can get them auto-made if you want:
|
21
|
-
|
22
|
-
class Horse
|
23
|
-
constructor :name, :breed, :weight, :accessors => true
|
24
|
-
end
|
25
|
-
...
|
26
|
-
puts my_horse.weight
|
27
|
-
|
28
|
-
Arguments specified are required by default. You can disable
|
29
|
-
strict argument checking with :strict option. This means that
|
30
|
-
the constructor will not raise an error if you pass more or
|
31
|
-
fewer arguments than declared.
|
32
|
-
|
33
|
-
class Donkey
|
34
|
-
constructor :age, :odor, :strict => false
|
35
|
-
end
|
36
|
-
|
37
|
-
... this allows you to pass either an age or odor key (or neither)
|
38
|
-
to the Donkey constructor.
|
39
|
-
|
40
|
-
|
41
|
-
== REQUIREMENTS:
|
42
|
-
|
43
|
-
* rubygems
|
44
|
-
|
45
|
-
== INSTALL:
|
46
|
-
|
47
|
-
* sudo gem install constructor
|
48
|
-
|
49
|
-
== LICENSE:
|
50
|
-
|
51
|
-
(The MIT License)
|
52
|
-
|
53
|
-
Copyright (c) 2007 Atomic Object
|
54
|
-
|
55
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
56
|
-
a copy of this software and associated documentation files (the
|
57
|
-
'Software'), to deal in the Software without restriction, including
|
58
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
59
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
60
|
-
permit persons to whom the Software is furnished to do so, subject to
|
61
|
-
the following conditions:
|
62
|
-
|
63
|
-
The above copyright notice and this permission notice shall be
|
64
|
-
included in all copies or substantial portions of the Software.
|
65
|
-
|
66
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
67
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
68
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
69
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
70
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
71
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
72
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/vendor/constructor/Rakefile
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
desc 'Default: run specs'
|
4
|
-
task :default => :spec
|
5
|
-
|
6
|
-
require 'spec/rake/spectask'
|
7
|
-
desc 'Run constructor specs'
|
8
|
-
Spec::Rake::SpecTask.new(:spec) do |t|
|
9
|
-
t.spec_files = FileList['specs/*_spec.rb']
|
10
|
-
t.spec_opts << '-c -f s'
|
11
|
-
end
|
12
|
-
|
13
|
-
begin
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gemspec|
|
16
|
-
$: << "lib"
|
17
|
-
require 'constructor.rb'
|
18
|
-
gemspec.name = 'constructor'
|
19
|
-
gemspec.version = CONSTRUCTOR_VERSION
|
20
|
-
gemspec.summary = 'Declarative named-argument object initialization.'
|
21
|
-
gemspec.description = 'Declarative means to define object properties by passing a hash to the constructor, which will set the corresponding ivars.'
|
22
|
-
gemspec.homepage = 'http://atomicobject.github.com/constructor'
|
23
|
-
gemspec.authors = 'Atomic Object'
|
24
|
-
gemspec.email = 'github@atomicobject.com'
|
25
|
-
gemspec.test_files = FileList['specs/*_spec.rb']
|
26
|
-
end
|
27
|
-
|
28
|
-
Jeweler::GemcutterTasks.new
|
29
|
-
|
30
|
-
rescue LoadError
|
31
|
-
puts "(jeweler not installed)"
|
32
|
-
end
|
33
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
Wed Nov 21 21:49:27 EST 2007
|
2
|
-
crosby
|
3
|
-
|
4
|
-
1. Edit page_header.graffle
|
5
|
-
2. Export as HTML imagemap
|
6
|
-
3. Open ../sample_code/synopsis.rb
|
7
|
-
4. Screen shot, save as sample_code.png
|
8
|
-
5. rake (rewrites index.html)
|
9
|
-
6. cd ..
|
10
|
-
7. rake publish_docs
|
11
|
-
|
12
|
-
page_header.graffle
|
13
|
-
Export-as-HTML-Imagemap
|
14
|
-
Use png
|
15
|
-
Use 125% scale
|
16
|
-
Remember to use the style inspector to assign actions to things that should be links.
|
17
|
-
|
18
|
-
rake index
|
19
|
-
Rewrites index.html using index.erb and page_header.html (and some values in the Rakefile)
|
20
|
-
|
21
|
-
The code sample screenshot:
|
22
|
-
Taken with Snapz Pro X (this is important, as Snapz is providing the
|
23
|
-
dropshadow and about 28 extra pixels widthwise)
|
24
|
-
|
25
|
-
Should be 650 px wide to line up with the page header.
|
26
|
-
|
27
|
-
Transparency: be conscious of WHAT'S IN THE BACKGROUND
|