ceedling 0.12.2 → 0.13.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -14
- data/.gitmodules +9 -0
- data/.rspec +1 -0
- data/Gemfile +10 -2
- data/README.md +97 -67
- data/{new_project_template → assets}/project.yml +0 -0
- data/{new_project_template → assets}/rakefile.rb +0 -0
- data/bin/ceedling +77 -44
- data/ceedling.gemspec +18 -5
- data/config/test_environment.rb +12 -0
- data/docs/CeedlingLogo.png +0 -0
- data/docs/CeedlingPacket.md +1934 -0
- data/docs/CeedlingPacket.odt +0 -0
- data/docs/CeedlingPacket.pdf +0 -0
- data/examples/temp_sensor/project.yml +71 -74
- data/examples/temp_sensor/rakefile.rb +3 -5
- data/examples/temp_sensor/src/AdcConductor.h +2 -0
- data/examples/temp_sensor/src/TemperatureCalculator.h +2 -0
- data/examples/temp_sensor/src/Types.h +0 -13
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +2 -0
- data/examples/temp_sensor/src/UsartHardware.c +0 -12
- data/examples/temp_sensor/src/UsartHardware.h +0 -1
- data/examples/temp_sensor/test/{test_AdcConductor.c → TestAdcConductor.c} +0 -0
- data/examples/temp_sensor/test/{test_AdcHardware.c → TestAdcHardware.c} +0 -0
- data/examples/temp_sensor/test/{test_AdcModel.c → TestAdcModel.c} +0 -0
- data/examples/temp_sensor/test/{test_Executor.c → TestExecutor.c} +0 -0
- data/examples/temp_sensor/test/{test_Main.c → TestMain.c} +0 -0
- data/examples/temp_sensor/test/{test_Model.c → TestModel.c} +0 -0
- data/examples/temp_sensor/test/{test_TaskScheduler.c → TestTaskScheduler.c} +0 -0
- data/examples/temp_sensor/test/{test_TemperatureCalculator.c → TestTemperatureCalculator.c} +0 -0
- data/examples/temp_sensor/test/{test_TemperatureFilter.c → TestTemperatureFilter.c} +0 -2
- data/examples/temp_sensor/test/{test_TimerConductor.c → TestTimerConductor.c} +0 -0
- data/examples/temp_sensor/test/{test_TimerHardware.c → TestTimerHardware.c} +0 -0
- data/examples/temp_sensor/test/{test_TimerModel.c → TestTimerModel.c} +0 -0
- data/examples/temp_sensor/test/{test_UsartBaudRateRegisterCalculator.c → TestUsartBaudRateRegisterCalculator.c} +0 -0
- data/examples/temp_sensor/test/{test_UsartConductor.c → TestUsartConductor.c} +0 -0
- data/examples/temp_sensor/test/{test_UsartHardware.c → TestUsartHardware.c} +0 -20
- data/examples/temp_sensor/test/{test_UsartModel.c → TestUsartModel.c} +0 -0
- data/examples/temp_sensor/test/support/UnityHelper.c +7 -5
- data/examples/temp_sensor/test/support/UnityHelper.h +5 -5
- data/{new_project_template/vendor/ceedling/lib → lib}/build_invoker_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/cacheinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/cacheinator_helper.rb +0 -0
- data/lib/ceedling.rb +16 -4
- data/lib/ceedling/version.rb +4 -4
- data/lib/ceedling/version.rb.erb +1 -1
- data/{new_project_template/vendor/ceedling/lib → lib}/cmock_builder.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/configurator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/configurator_builder.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/configurator_plugins.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/configurator_setup.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/configurator_validator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/constants.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/defaults.rb +2 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/dependinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/erb_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_finder.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_finder_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_path_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_system_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_system_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/file_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/flaginator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/generator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/generator_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/generator_test_results.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/generator_test_results_sanity_checker.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/generator_test_runner.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/loginator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/makefile.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/objects.yml +0 -2
- data/lib/par_map.rb +19 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin_builder.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin_manager.rb +20 -8
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin_manager_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin_reportinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/plugin_reportinator_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/preprocessinator.rb +0 -0
- data/lib/preprocessinator_extractor.rb +30 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/preprocessinator_file_handler.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/preprocessinator_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/preprocessinator_includes_handler.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/project_config_manager.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/project_file_loader.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rake_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rake_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rakefile.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/release_invoker.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/release_invoker_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/reportinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_cmock.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_preprocess.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_release.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_release_deep_dependencies.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_tests.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/rules_tests_deep_dependencies.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/setupinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/stream_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/streaminator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/streaminator_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/system_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/system_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/task_invoker.rb +7 -3
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_base.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_filesystem.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_release.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_release_deep_dependencies.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_tests.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_tests_deep_dependencies.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tasks_vendor.rake +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/test_includes_extractor.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/test_invoker.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/test_invoker_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tool_executor.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/tool_executor_helper.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/verbosinator.rb +0 -0
- data/{new_project_template/vendor/ceedling/lib → lib}/yaml_wrapper.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/bullseye/bullseye.rake +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/bullseye/bullseye.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/bullseye/defaults.yml +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/bullseye/readme.txt +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/bullseye/template.erb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/gcov/defaults.yml +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/gcov/gcov.rake +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/gcov/gcov.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/gcov/readme.txt +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/gcov/template.erb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/module_generator/config/module_generator.yml +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/module_generator/lib/module_generator.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/module_generator/module_generator.rake +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/stdout_ide_tests_report/config/stdout_ide_tests_report.yml +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/stdout_pretty_tests_report/assets/template.erb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/stdout_pretty_tests_report/config/stdout_pretty_tests_report.yml +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/stdout_pretty_tests_report/lib/stdout_pretty_tests_report.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/warnings_report/warnings_report.rb +0 -0
- data/{new_project_template/vendor/ceedling/plugins → plugins}/xml_tests_report/xml_tests_report.rb +0 -0
- data/rakefile.rb +14 -0
- data/release/build.info +2 -0
- data/{new_project_template/vendor/ceedling/release → release}/version.info +0 -0
- data/spec/configurator_builder_spec.rb +7 -0
- data/spec/configurator_helper_spec.rb +5 -0
- data/spec/configurator_spec.rb +10 -0
- data/spec/par_map_spec.rb +57 -0
- data/spec/preprocessinator_extractor_spec.rb +46 -0
- data/spec/spec_helper.rb +46 -0
- data/spec/uncatagorized_specs_spec.rb +8 -0
- data/test_graveyard/integration/paths.yml +17 -0
- data/test_graveyard/integration/paths_test.rb +80 -0
- data/test_graveyard/integration/rake_rules_aux_dependencies_test.rb +75 -0
- data/test_graveyard/integration/rake_rules_cmock_test.rb +74 -0
- data/test_graveyard/integration/rake_rules_preprocess_test.rb +178 -0
- data/test_graveyard/integration/rake_rules_test.rb +268 -0
- data/test_graveyard/integration/rake_tasks_test.rb +103 -0
- data/test_graveyard/integration_test_helper.rb +34 -0
- data/test_graveyard/rakefile_rules.rb +10 -0
- data/test_graveyard/rakefile_rules_aux_dependencies.rb +10 -0
- data/test_graveyard/rakefile_rules_cmock.rb +10 -0
- data/test_graveyard/rakefile_rules_preprocess.rb +10 -0
- data/test_graveyard/rakefile_tasks.rb +10 -0
- data/test_graveyard/system/file_system_dependencies.yml +20 -0
- data/test_graveyard/system/file_system_kitchen_sink.yml +20 -0
- data/test_graveyard/system/file_system_mocks.yml +20 -0
- data/test_graveyard/system/file_system_preprocess.yml +20 -0
- data/test_graveyard/system/file_system_simple.yml +20 -0
- data/test_graveyard/system/file_system_test.rb +78 -0
- data/test_graveyard/system/mocks/include/a_file.h +2 -0
- data/test_graveyard/system/mocks/include/other_stuff.h +2 -0
- data/test_graveyard/system/mocks/include/stuff.h +3 -0
- data/test_graveyard/system/mocks/source/a_file.c +9 -0
- data/test_graveyard/system/mocks/test/test_a_file.c +41 -0
- data/test_graveyard/system/mocks/test/test_no_file.c +14 -0
- data/test_graveyard/system/project_mocks.yml +43 -0
- data/test_graveyard/system/project_mocks_test.rb +38 -0
- data/test_graveyard/system/project_simple.yml +36 -0
- data/test_graveyard/system/project_simple_test.rb +39 -0
- data/test_graveyard/system/rule_mocks_test.rb +44 -0
- data/test_graveyard/system/rule_runners_test.rb +44 -0
- data/test_graveyard/system/simple/include/other_stuff.h +2 -0
- data/test_graveyard/system/simple/include/stuff.h +3 -0
- data/test_graveyard/system/simple/source/other_stuff.c +6 -0
- data/test_graveyard/system/simple/source/stuff.c +7 -0
- data/test_graveyard/system/simple/test/test_other_stuff.c +30 -0
- data/test_graveyard/system/simple/test/test_stuff.c +51 -0
- data/test_graveyard/system_test_helper.rb +73 -0
- data/test_graveyard/test_helper.rb +93 -0
- data/test_graveyard/unit/busted/configurator_builder_test.rb +571 -0
- data/test_graveyard/unit/busted/configurator_helper_test.rb +234 -0
- data/test_graveyard/unit/busted/configurator_test.rb +232 -0
- data/test_graveyard/unit/busted/configurator_validator_test.rb +169 -0
- data/test_graveyard/unit/busted/deep_merge_fix_test.rb +55 -0
- data/test_graveyard/unit/busted/dependinator_test.rb +129 -0
- data/test_graveyard/unit/busted/file_finder_helper_test.rb +45 -0
- data/test_graveyard/unit/busted/file_finder_test.rb +114 -0
- data/test_graveyard/unit/busted/file_path_utils_test.rb +97 -0
- data/test_graveyard/unit/busted/file_system_utils_test.rb +21 -0
- data/test_graveyard/unit/busted/generator_test.rb +187 -0
- data/test_graveyard/unit/busted/generator_test_results_test.rb +129 -0
- data/test_graveyard/unit/busted/generator_test_runner_test.rb +478 -0
- data/test_graveyard/unit/busted/preprocessinator_file_handler_test.rb +38 -0
- data/test_graveyard/unit/busted/preprocessinator_helper_test.rb +156 -0
- data/test_graveyard/unit/busted/preprocessinator_includes_handler_test.rb +93 -0
- data/test_graveyard/unit/busted/preprocessinator_test.rb +57 -0
- data/test_graveyard/unit/busted/project_file_loader_test.rb +142 -0
- data/test_graveyard/unit/busted/setupinator_test.rb +45 -0
- data/test_graveyard/unit/busted/streaminator_test.rb +49 -0
- data/test_graveyard/unit/busted/task_invoker_test.rb +69 -0
- data/test_graveyard/unit/busted/test_includes_extractor_test.rb +111 -0
- data/test_graveyard/unit/busted/test_invoker_helper_test.rb +62 -0
- data/test_graveyard/unit/busted/test_invoker_test.rb +47 -0
- data/test_graveyard/unit/busted/tool_executor_helper_test.rb +100 -0
- data/test_graveyard/unit/busted/tool_executor_test.rb +351 -0
- data/test_graveyard/unit/busted/verbosinator_test.rb +65 -0
- data/test_graveyard/unit/preprocessinator_extractor_test.rb +731 -0
- data/test_graveyard/unit_test_helper.rb +16 -0
- data/vendor/behaviors/Manifest.txt +9 -0
- data/vendor/behaviors/Rakefile +19 -0
- data/vendor/behaviors/lib/behaviors.rb +76 -0
- data/vendor/behaviors/lib/behaviors/reporttask.rb +158 -0
- data/vendor/behaviors/test/behaviors_tasks_test.rb +73 -0
- data/vendor/behaviors/test/behaviors_test.rb +50 -0
- data/vendor/behaviors/test/tasks_test/Rakefile +19 -0
- data/vendor/behaviors/test/tasks_test/lib/user.rb +2 -0
- data/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/c_exception/lib/CException.c +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/c_exception/lib/CException.h +1 -1
- data/vendor/c_exception/release/build.info +2 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/c_exception/release/version.info +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/config/production_environment.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/config/test_environment.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_config.rb +3 -3
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_file_writer.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_plugin_array.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_plugin_callback.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_plugin_cexception.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_plugin_expect.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_plugin_ignore.rb +14 -4
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_generator_utils.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_header_parser.rb +9 -5
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_plugin_manager.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/lib/cmock_unityhelper_parser.rb +75 -74
- data/vendor/cmock/release/build.info +2 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/release/version.info +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/src/cmock.c +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/cmock/src/cmock.h +0 -0
- data/vendor/constructor/History.rdoc +19 -0
- data/vendor/constructor/README.rdoc +72 -0
- data/vendor/constructor/Rakefile +33 -0
- data/vendor/constructor/homepage/Notes.txt +27 -0
- data/vendor/constructor/homepage/Rakefile +15 -0
- data/vendor/constructor/homepage/index.erb +27 -0
- data/vendor/constructor/homepage/index.html +36 -0
- data/vendor/constructor/homepage/page_header.graffle +0 -0
- data/vendor/constructor/homepage/page_header.html +9 -0
- 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 +12 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/constructor/lib/constructor.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/constructor/lib/constructor_struct.rb +0 -0
- data/vendor/constructor/specs/constructor_spec.rb +407 -0
- data/vendor/constructor/specs/constructor_struct_spec.rb +84 -0
- data/vendor/deep_merge/MIT-LICENSE +20 -0
- data/vendor/deep_merge/README +94 -0
- data/vendor/deep_merge/Rakefile +28 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/deep_merge/lib/deep_merge.rb +0 -0
- data/vendor/deep_merge/pkg/deep_merge-0.1.0.gem +0 -0
- data/vendor/deep_merge/test/test_deep_merge.rb +553 -0
- data/vendor/diy/History.txt +28 -0
- data/vendor/diy/README.rdoc +233 -0
- data/vendor/diy/Rakefile +33 -0
- data/vendor/diy/TODO.txt +9 -0
- data/vendor/diy/diy.gemspec +131 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/diy/lib/diy.rb +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/diy/lib/diy/factory.rb +0 -0
- data/vendor/diy/sample_code/car.rb +7 -0
- data/vendor/diy/sample_code/chassis.rb +5 -0
- data/vendor/diy/sample_code/diy_example.rb +26 -0
- data/vendor/diy/sample_code/engine.rb +5 -0
- data/vendor/diy/sample_code/objects.yml +10 -0
- data/vendor/diy/test/constructor.rb +119 -0
- data/vendor/diy/test/diy_test.rb +608 -0
- data/vendor/diy/test/factory_test.rb +79 -0
- data/vendor/diy/test/files/broken_construction.yml +7 -0
- data/vendor/diy/test/files/cat/cat.rb +3 -0
- data/vendor/diy/test/files/cat/extra_conflict.yml +5 -0
- data/vendor/diy/test/files/cat/heritage.rb +2 -0
- data/vendor/diy/test/files/cat/needs_input.yml +3 -0
- data/vendor/diy/test/files/cat/the_cat_lineage.rb +1 -0
- data/vendor/diy/test/files/dog/dog_model.rb +3 -0
- data/vendor/diy/test/files/dog/dog_presenter.rb +3 -0
- data/vendor/diy/test/files/dog/dog_view.rb +2 -0
- data/vendor/diy/test/files/dog/file_resolver.rb +2 -0
- data/vendor/diy/test/files/dog/other_thing.rb +2 -0
- data/vendor/diy/test/files/dog/simple.yml +11 -0
- data/vendor/diy/test/files/donkey/foo.rb +8 -0
- data/vendor/diy/test/files/donkey/foo/bar/qux.rb +7 -0
- data/vendor/diy/test/files/factory/beef.rb +5 -0
- data/vendor/diy/test/files/factory/dog.rb +6 -0
- data/vendor/diy/test/files/factory/factory.yml +19 -0
- data/vendor/diy/test/files/factory/farm/llama.rb +7 -0
- data/vendor/diy/test/files/factory/farm/pork.rb +7 -0
- data/vendor/diy/test/files/factory/kitten.rb +13 -0
- data/vendor/diy/test/files/fud/objects.yml +13 -0
- data/vendor/diy/test/files/fud/toy.rb +14 -0
- data/vendor/diy/test/files/functions/attached_things_builder.rb +2 -0
- data/vendor/diy/test/files/functions/invalid_method.yml +5 -0
- data/vendor/diy/test/files/functions/method_extractor.rb +3 -0
- data/vendor/diy/test/files/functions/nonsingleton_objects.yml +6 -0
- data/vendor/diy/test/files/functions/objects.yml +22 -0
- data/vendor/diy/test/files/functions/thing.rb +3 -0
- data/vendor/diy/test/files/functions/thing_builder.rb +25 -0
- data/vendor/diy/test/files/functions/things_builder.rb +3 -0
- data/vendor/diy/test/files/gnu/objects.yml +14 -0
- data/vendor/diy/test/files/gnu/thinger.rb +7 -0
- data/vendor/diy/test/files/goat/base.rb +8 -0
- data/vendor/diy/test/files/goat/can.rb +6 -0
- data/vendor/diy/test/files/goat/goat.rb +6 -0
- data/vendor/diy/test/files/goat/objects.yml +12 -0
- data/vendor/diy/test/files/goat/paper.rb +6 -0
- data/vendor/diy/test/files/goat/plane.rb +7 -0
- data/vendor/diy/test/files/goat/shirt.rb +6 -0
- data/vendor/diy/test/files/goat/wings.rb +8 -0
- data/vendor/diy/test/files/horse/holder_thing.rb +3 -0
- data/vendor/diy/test/files/horse/objects.yml +7 -0
- data/vendor/diy/test/files/namespace/animal/bird.rb +5 -0
- data/vendor/diy/test/files/namespace/animal/cat.rb +5 -0
- data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -0
- data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +7 -0
- data/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -0
- data/vendor/diy/test/files/namespace/class_name_combine.yml +8 -0
- data/vendor/diy/test/files/namespace/hello.txt +1 -0
- data/vendor/diy/test/files/namespace/no_module_specified.yml +8 -0
- data/vendor/diy/test/files/namespace/objects.yml +21 -0
- data/vendor/diy/test/files/namespace/road.rb +2 -0
- data/vendor/diy/test/files/namespace/sky.rb +2 -0
- data/vendor/diy/test/files/namespace/subcontext.yml +22 -0
- data/vendor/diy/test/files/non_singleton/air.rb +2 -0
- data/vendor/diy/test/files/non_singleton/fat_cat.rb +3 -0
- data/vendor/diy/test/files/non_singleton/objects.yml +19 -0
- data/vendor/diy/test/files/non_singleton/pig.rb +3 -0
- data/vendor/diy/test/files/non_singleton/thread_spinner.rb +3 -0
- data/vendor/diy/test/files/non_singleton/tick.rb +3 -0
- data/vendor/diy/test/files/non_singleton/yard.rb +2 -0
- data/vendor/diy/test/files/yak/core_model.rb +3 -0
- data/vendor/diy/test/files/yak/core_presenter.rb +3 -0
- data/vendor/diy/test/files/yak/core_view.rb +1 -0
- data/vendor/diy/test/files/yak/data_source.rb +1 -0
- data/vendor/diy/test/files/yak/fringe_model.rb +3 -0
- data/vendor/diy/test/files/yak/fringe_presenter.rb +3 -0
- data/vendor/diy/test/files/yak/fringe_view.rb +1 -0
- data/vendor/diy/test/files/yak/giant_squid.rb +3 -0
- data/vendor/diy/test/files/yak/krill.rb +2 -0
- data/vendor/diy/test/files/yak/my_objects.yml +21 -0
- data/vendor/diy/test/files/yak/sub_sub_context_test.yml +27 -0
- data/vendor/diy/test/test_helper.rb +55 -0
- data/vendor/hardmock/CHANGES +78 -0
- data/vendor/hardmock/LICENSE +7 -0
- data/vendor/hardmock/README +70 -0
- data/vendor/hardmock/Rakefile +8 -0
- data/vendor/hardmock/config/environment.rb +12 -0
- data/vendor/hardmock/lib/assert_error.rb +23 -0
- data/vendor/hardmock/lib/extend_test_unit.rb +14 -0
- data/vendor/hardmock/lib/hardmock.rb +86 -0
- data/vendor/hardmock/lib/hardmock/errors.rb +22 -0
- data/vendor/hardmock/lib/hardmock/expectation.rb +229 -0
- data/vendor/hardmock/lib/hardmock/expectation_builder.rb +9 -0
- data/vendor/hardmock/lib/hardmock/expector.rb +26 -0
- data/vendor/hardmock/lib/hardmock/method_cleanout.rb +33 -0
- data/vendor/hardmock/lib/hardmock/mock.rb +180 -0
- data/vendor/hardmock/lib/hardmock/mock_control.rb +53 -0
- data/vendor/hardmock/lib/hardmock/stubbing.rb +210 -0
- data/vendor/hardmock/lib/hardmock/trapper.rb +31 -0
- data/vendor/hardmock/lib/hardmock/utils.rb +9 -0
- data/vendor/hardmock/lib/test_unit_before_after.rb +169 -0
- data/vendor/hardmock/rake_tasks/rdoc.rake +19 -0
- data/vendor/hardmock/rake_tasks/rdoc_options.rb +4 -0
- data/vendor/hardmock/rake_tasks/test.rake +22 -0
- data/vendor/hardmock/test/functional/assert_error_test.rb +52 -0
- data/vendor/hardmock/test/functional/auto_verify_test.rb +178 -0
- data/vendor/hardmock/test/functional/direct_mock_usage_test.rb +396 -0
- data/vendor/hardmock/test/functional/hardmock_test.rb +434 -0
- data/vendor/hardmock/test/functional/stubbing_test.rb +479 -0
- data/vendor/hardmock/test/test_helper.rb +43 -0
- data/vendor/hardmock/test/unit/expectation_builder_test.rb +19 -0
- data/vendor/hardmock/test/unit/expectation_test.rb +372 -0
- data/vendor/hardmock/test/unit/expector_test.rb +57 -0
- data/vendor/hardmock/test/unit/method_cleanout_test.rb +36 -0
- data/vendor/hardmock/test/unit/mock_control_test.rb +175 -0
- data/vendor/hardmock/test/unit/mock_test.rb +279 -0
- data/vendor/hardmock/test/unit/test_unit_before_after_test.rb +452 -0
- data/vendor/hardmock/test/unit/trapper_test.rb +62 -0
- data/vendor/hardmock/test/unit/verify_error_test.rb +40 -0
- data/vendor/unity/auto/colour_prompt.rb +94 -0
- data/vendor/unity/auto/colour_reporter.rb +39 -0
- data/vendor/unity/auto/generate_module.rb +202 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/unity/auto/generate_test_runner.rb +0 -0
- data/vendor/unity/auto/test_file_filter.rb +23 -0
- data/vendor/unity/auto/unity_test_summary.rb +139 -0
- data/vendor/unity/release/build.info +2 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/unity/release/version.info +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/unity/src/unity.c +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/unity/src/unity.h +0 -0
- data/{new_project_template/vendor/ceedling/vendor → vendor}/unity/src/unity_internals.h +94 -6
- metadata +443 -237
- data/.vim +0 -1
- data/.yardopts +0 -1
- data/LICENSE +0 -19
- data/Rakefile +0 -118
- data/ceedling-gem.sublime-project +0 -8
- data/examples/blinky/.DS_Store +0 -0
- data/examples/temp_sensor/src/AT91SAM7X256.h +0 -2556
- data/examples/temp_sensor/src/UsartGetChar.c +0 -6
- data/examples/temp_sensor/src/UsartGetChar.h +0 -8
- data/examples/temp_sensor/test/test_AdcHardwareConfigurator.c +0 -43
- data/examples/temp_sensor/test/test_AdcTemperatureSensor.c +0 -47
- data/examples/temp_sensor/test/test_TimerConfigurator.c +0 -112
- data/examples/temp_sensor/test/test_TimerInterruptConfigurator.c +0 -78
- data/examples/temp_sensor/test/test_TimerInterruptHandler.c +0 -66
- data/examples/temp_sensor/test/test_UsartConfigurator.c +0 -77
- data/examples/temp_sensor/test/test_UsartGetChar.c +0 -17
- data/examples/temp_sensor/test/test_UsartPutChar.c +0 -43
- data/examples/temp_sensor/test/test_UsartTransmitBufferStatus.c +0 -22
- data/new_project_template/build/.gitkeep +0 -0
- data/new_project_template/src/.gitkeep +0 -0
- data/new_project_template/test/.gitkeep +0 -0
- data/new_project_template/test/support/.gitkeep +0 -0
- data/new_project_template/vendor/ceedling/docs/CExceptionSummary.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/CMock Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/Ceedling Packet.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator_extractor.rb +0 -36
- data/new_project_template/vendor/ceedling/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/c_exception/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/cmock/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/unity/release/build.info +0 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
== 1.1.2 / 2009-11-30
|
2
|
+
* Converted to Jeweler for gem packaging
|
3
|
+
* diy/factory.rb was somehow missing from the 1.1.1 gem on gemcutter. This has been fixed as part of the Jeweler changeover.
|
4
|
+
* Rebuilt homepage http://atomicobject.github.com/diy
|
5
|
+
|
6
|
+
== 1.1.1 / 2008-05-21
|
7
|
+
* Fixed bug that did not allow a method to be properly injected into an object
|
8
|
+
|
9
|
+
== 1.1 / 2008-05-20
|
10
|
+
* Added 'method' directive for building a bounded method from an object defined in diy
|
11
|
+
|
12
|
+
== 1.0.3 / 2007-12-11
|
13
|
+
|
14
|
+
* The 1.0.1 release had a load-path search in it that resulted in requiring files with full path names (rooted in loadpath entries). This is unintuitive, and will almost always result in a double "require" if the application code ever requires a library. The "require" for library loading now relies implicitly on the load path (just like normal human-coded requires.)
|
15
|
+
|
16
|
+
== 1.0.1 / 2007-12-02
|
17
|
+
|
18
|
+
* Added 'using_namespace' directive for assuming a module for a group of object defs
|
19
|
+
* Added 'use_class_directly' option for configuring an ObjectDef. Instead of instantiating an instance
|
20
|
+
of the specified class, the class itself is referenced. (Good for injecting ActiveRecord classes into
|
21
|
+
other components in the guise of factories.
|
22
|
+
* Added DIY::Context.auto_require boolean setting. When false, the library of a
|
23
|
+
class is not autoloaded ahead of object construction. Is true by default.
|
24
|
+
* 'auto_require' can, if neccessary, be set in the YAML config for an individual object.
|
25
|
+
|
26
|
+
== 1.0.0 / 2007-11-19
|
27
|
+
|
28
|
+
* Released!
|
@@ -0,0 +1,233 @@
|
|
1
|
+
== DIY
|
2
|
+
|
3
|
+
* http://atomicobject.github.com/diy
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
DIY (Dependency Injection in YAML) is a simple dependency injection library
|
8
|
+
which focuses on declarative composition of objects through constructor injection.
|
9
|
+
|
10
|
+
== INSTALL:
|
11
|
+
|
12
|
+
* gem install diy
|
13
|
+
|
14
|
+
== SYNOPSIS:
|
15
|
+
|
16
|
+
=== Common Usage
|
17
|
+
|
18
|
+
Author a YAML file that describes your objects and how they fit together.
|
19
|
+
This means you're building a Hash whose keys are the object names, and whose
|
20
|
+
values are Hashes that define the object.
|
21
|
+
|
22
|
+
The following context defines an automobile engine:
|
23
|
+
|
24
|
+
context.yml:
|
25
|
+
---
|
26
|
+
engine:
|
27
|
+
compose: throttle, block
|
28
|
+
throttle:
|
29
|
+
compose: cable, pedal
|
30
|
+
block:
|
31
|
+
cable:
|
32
|
+
pedal:
|
33
|
+
|
34
|
+
In your code, use DIY to load the YAML, then access its parts:
|
35
|
+
|
36
|
+
context = DIY::Context.from_file('context.yml')
|
37
|
+
context[:engine] => <Engine:0x81eb0>
|
38
|
+
|
39
|
+
This approach assumes:
|
40
|
+
|
41
|
+
* You've got classes for Engine, Throttle, Block, Cable and Pedal
|
42
|
+
* They're defined in engine.rb, throttle.rb, etc
|
43
|
+
* The library files are in your load-path
|
44
|
+
* Engine and Throttle both have a constructor that accepts a Hash. The Hash
|
45
|
+
will contain keys 'throttle', 'block' (for Engine) and 'cable, 'pedal' (for Throttle)
|
46
|
+
and the values will be references to their respective objects.
|
47
|
+
* Block, Cable and Pedal all have default constructors that accept no arguments
|
48
|
+
|
49
|
+
Sample code for Engine's constructor:
|
50
|
+
|
51
|
+
class Engine
|
52
|
+
def initialize(components)
|
53
|
+
@throttle = components['throttle']
|
54
|
+
@block = components['block']
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
Writing code like that is repetetive; that's why we created the Constructor gem, which lets you
|
59
|
+
specify object components using the "constructor" class method:
|
60
|
+
|
61
|
+
Using constructor, you can write Engine like this:
|
62
|
+
|
63
|
+
class Engine
|
64
|
+
constructor :throttle, :block
|
65
|
+
end
|
66
|
+
|
67
|
+
=== Special Cases
|
68
|
+
|
69
|
+
If your object has a lot of components (or they have big names) you can specify an array of component names
|
70
|
+
as opposed to a comma-separated list:
|
71
|
+
|
72
|
+
engine:
|
73
|
+
compose:
|
74
|
+
- throttle
|
75
|
+
- block
|
76
|
+
|
77
|
+
Sometimes you won't be able to rely on DIY's basic assumptions about class names and library files.
|
78
|
+
|
79
|
+
* You can specify the 'class' option
|
80
|
+
* You can specify the 'library' option. If you do not, the library is inferred from the class name.
|
81
|
+
(Eg, My::Train::Station will be sought in "my/train/station.rb"
|
82
|
+
|
83
|
+
engine:
|
84
|
+
class: FourHorse::Base
|
85
|
+
library: general_engines/base
|
86
|
+
compose: throttle, block
|
87
|
+
|
88
|
+
If the Hash coming into your constructor needs to have some keys that do not exactly match the official
|
89
|
+
object names, you can specify them one-by-one:
|
90
|
+
|
91
|
+
engine:
|
92
|
+
the_throttle: throttle
|
93
|
+
the_block: block
|
94
|
+
|
95
|
+
=== Non-singleton objects
|
96
|
+
|
97
|
+
Non-singletons are named objects that provide a new instance every time you ask for them.
|
98
|
+
By default, DIY considers all objects to be singletons. To override, use the "singleton" setting and
|
99
|
+
set it to false:
|
100
|
+
|
101
|
+
foo:
|
102
|
+
singleton: false
|
103
|
+
|
104
|
+
=== Sub-Contexts
|
105
|
+
|
106
|
+
Sub-contexts are useful for creating isolated object networks that may need to be instantiated
|
107
|
+
zero or many times in your application. Objects defined in subcontexts can reference "upward" to
|
108
|
+
their surroundings, as well as objects in the subcontext itself.
|
109
|
+
|
110
|
+
If you wanted to be able to make more than one Engine from the preceding examples, you might try:
|
111
|
+
|
112
|
+
---
|
113
|
+
epa_regulations:
|
114
|
+
|
115
|
+
+automotive_plant:
|
116
|
+
engine:
|
117
|
+
compose: block, throttle, epa_regulations
|
118
|
+
block:
|
119
|
+
throttle:
|
120
|
+
|
121
|
+
Each time you delve into the automotive_plant, you get a solar system of the defined objects.
|
122
|
+
In this context, the objects are singleton-like. The next time you invoke the subcontext, however,
|
123
|
+
you'll be working with a fresh set of objects... another solar system with the same layout, so to speak.
|
124
|
+
|
125
|
+
Subcontexts are not initialized until you call upon them, which you do using the "within" method:
|
126
|
+
|
127
|
+
context = DIY::Context.from_file('context.yml')
|
128
|
+
context.within('automotive_plant') do |plant|
|
129
|
+
puts plant[:engine]
|
130
|
+
end
|
131
|
+
|
132
|
+
=== Direct Class References
|
133
|
+
|
134
|
+
Occasionally you will have a class at your disposal that you'd like to provide directly as components
|
135
|
+
to other objects (as opposed to getting _instances_ of that class, you want to reference the class itself, eg,
|
136
|
+
to use its factory methods). Enter the "use_class_directly" flag:
|
137
|
+
|
138
|
+
---
|
139
|
+
customer_order_finder:
|
140
|
+
class: CustomerOrder
|
141
|
+
use_class_directly: true
|
142
|
+
|
143
|
+
This can be handy in Rails when you'd like to use some of class methods on an ActiveRecord subclass, but
|
144
|
+
you'd like to avoid direct ActiveRecord class usage in your code. In this case, the customer_order_finder
|
145
|
+
is actually the CustomerOrder class, and so, it has methods like "find" and "destroy_all".
|
146
|
+
|
147
|
+
=== Namespace Convenience
|
148
|
+
|
149
|
+
If you find yourself writing context entries like this:
|
150
|
+
|
151
|
+
---
|
152
|
+
engine:
|
153
|
+
class: Car::Parts::Engine
|
154
|
+
throttle:
|
155
|
+
class: Car::Parts::Block
|
156
|
+
cable:
|
157
|
+
class: Car::Parts::Cable
|
158
|
+
|
159
|
+
You can set the "assumed" module for a group of objects like this:
|
160
|
+
|
161
|
+
---
|
162
|
+
using_namespace Car Parts:
|
163
|
+
engine:
|
164
|
+
|
165
|
+
throttle:
|
166
|
+
|
167
|
+
block:
|
168
|
+
|
169
|
+
=== Preventing auto-requiring of library files
|
170
|
+
|
171
|
+
Normally, DIY will "require" the library for an object just before it instantiates the object.
|
172
|
+
If this is not desired (in Rails, auto-require can lead to library double-load issues), you
|
173
|
+
can deactivate auto-require. There is a global default setting (handled in code) and
|
174
|
+
a per-object override (handled in the context YAML):
|
175
|
+
|
176
|
+
DIY::Context.auto_require = false
|
177
|
+
|
178
|
+
---
|
179
|
+
engine:
|
180
|
+
auto_require: false
|
181
|
+
|
182
|
+
=== Factories
|
183
|
+
|
184
|
+
It is possible to create factories automatically with DIY:
|
185
|
+
|
186
|
+
---
|
187
|
+
car_dealer:
|
188
|
+
compose: car_factory
|
189
|
+
|
190
|
+
car_factory:
|
191
|
+
builds: car
|
192
|
+
|
193
|
+
Then you can use the factory to easily build objects:
|
194
|
+
|
195
|
+
context = DIY::Context.from_file('context.yml')
|
196
|
+
context[:car_factory].create => <Car:0x81eb0>
|
197
|
+
|
198
|
+
=== Method Directive
|
199
|
+
|
200
|
+
This introduces the concept of first class methods. An object can now be constructed with a method object
|
201
|
+
bound to a particular object in the diy context.
|
202
|
+
|
203
|
+
---
|
204
|
+
trinket_builder:
|
205
|
+
|
206
|
+
method build_trinket:
|
207
|
+
object: trinket_builder
|
208
|
+
method: build
|
209
|
+
|
210
|
+
== LICENSE:
|
211
|
+
|
212
|
+
(The MIT License)
|
213
|
+
|
214
|
+
Copyright (c) 2007 Atomic Object
|
215
|
+
|
216
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
217
|
+
a copy of this software and associated documentation files (the
|
218
|
+
'Software'), to deal in the Software without restriction, including
|
219
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
220
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
221
|
+
permit persons to whom the Software is furnished to do so, subject to
|
222
|
+
the following conditions:
|
223
|
+
|
224
|
+
The above copyright notice and this permission notice shall be
|
225
|
+
included in all copies or substantial portions of the Software.
|
226
|
+
|
227
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
228
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
229
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
230
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
231
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
232
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
233
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/vendor/diy/Rakefile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
task :default => [ :test ]
|
4
|
+
|
5
|
+
require 'rake/testtask'
|
6
|
+
Rake::TestTask.new do |t|
|
7
|
+
t.libs << "test"
|
8
|
+
t.test_files = FileList['test/**/*_test.rb']
|
9
|
+
t.verbose = true
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gemspec|
|
16
|
+
$: << "lib"
|
17
|
+
require 'diy.rb'
|
18
|
+
gemspec.name = 'diy'
|
19
|
+
gemspec.version = DIY::VERSION
|
20
|
+
gemspec.summary = 'Constructor-based dependency injection container using YAML input.'
|
21
|
+
gemspec.description = 'Constructor-based dependency injection container using YAML input.'
|
22
|
+
gemspec.homepage = 'http://atomicobject.github.com/diy'
|
23
|
+
gemspec.authors = 'Atomic Object'
|
24
|
+
gemspec.email = 'github@atomicobject.com'
|
25
|
+
gemspec.test_files = FileList['test/*_test.rb']
|
26
|
+
gemspec.add_dependency 'constructor', '>= 1.0.0'
|
27
|
+
end
|
28
|
+
|
29
|
+
Jeweler::GemcutterTasks.new
|
30
|
+
|
31
|
+
rescue LoadError
|
32
|
+
puts "(jeweler not installed)"
|
33
|
+
end
|
data/vendor/diy/TODO.txt
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{diy}
|
8
|
+
s.version = "1.1.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Atomic Object"]
|
12
|
+
s.date = %q{2009-12-01}
|
13
|
+
s.description = %q{Constructor-based dependency injection container using YAML input.}
|
14
|
+
s.email = %q{github@atomicobject.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"History.txt",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"TODO.txt",
|
23
|
+
"diy.gemspec",
|
24
|
+
"lib/diy.rb",
|
25
|
+
"lib/diy/factory.rb",
|
26
|
+
"sample_code/car.rb",
|
27
|
+
"sample_code/chassis.rb",
|
28
|
+
"sample_code/diy_example.rb",
|
29
|
+
"sample_code/engine.rb",
|
30
|
+
"sample_code/objects.yml",
|
31
|
+
"test/constructor.rb",
|
32
|
+
"test/diy_test.rb",
|
33
|
+
"test/factory_test.rb",
|
34
|
+
"test/files/broken_construction.yml",
|
35
|
+
"test/files/cat/cat.rb",
|
36
|
+
"test/files/cat/extra_conflict.yml",
|
37
|
+
"test/files/cat/heritage.rb",
|
38
|
+
"test/files/cat/needs_input.yml",
|
39
|
+
"test/files/cat/the_cat_lineage.rb",
|
40
|
+
"test/files/dog/dog_model.rb",
|
41
|
+
"test/files/dog/dog_presenter.rb",
|
42
|
+
"test/files/dog/dog_view.rb",
|
43
|
+
"test/files/dog/file_resolver.rb",
|
44
|
+
"test/files/dog/other_thing.rb",
|
45
|
+
"test/files/dog/simple.yml",
|
46
|
+
"test/files/donkey/foo.rb",
|
47
|
+
"test/files/donkey/foo/bar/qux.rb",
|
48
|
+
"test/files/factory/beef.rb",
|
49
|
+
"test/files/factory/dog.rb",
|
50
|
+
"test/files/factory/factory.yml",
|
51
|
+
"test/files/factory/farm/llama.rb",
|
52
|
+
"test/files/factory/farm/pork.rb",
|
53
|
+
"test/files/factory/kitten.rb",
|
54
|
+
"test/files/fud/objects.yml",
|
55
|
+
"test/files/fud/toy.rb",
|
56
|
+
"test/files/functions/attached_things_builder.rb",
|
57
|
+
"test/files/functions/invalid_method.yml",
|
58
|
+
"test/files/functions/method_extractor.rb",
|
59
|
+
"test/files/functions/nonsingleton_objects.yml",
|
60
|
+
"test/files/functions/objects.yml",
|
61
|
+
"test/files/functions/thing.rb",
|
62
|
+
"test/files/functions/thing_builder.rb",
|
63
|
+
"test/files/functions/things_builder.rb",
|
64
|
+
"test/files/gnu/objects.yml",
|
65
|
+
"test/files/gnu/thinger.rb",
|
66
|
+
"test/files/goat/base.rb",
|
67
|
+
"test/files/goat/can.rb",
|
68
|
+
"test/files/goat/goat.rb",
|
69
|
+
"test/files/goat/objects.yml",
|
70
|
+
"test/files/goat/paper.rb",
|
71
|
+
"test/files/goat/plane.rb",
|
72
|
+
"test/files/goat/shirt.rb",
|
73
|
+
"test/files/goat/wings.rb",
|
74
|
+
"test/files/horse/holder_thing.rb",
|
75
|
+
"test/files/horse/objects.yml",
|
76
|
+
"test/files/namespace/animal/bird.rb",
|
77
|
+
"test/files/namespace/animal/cat.rb",
|
78
|
+
"test/files/namespace/animal/reptile/hardshell/turtle.rb",
|
79
|
+
"test/files/namespace/animal/reptile/lizard.rb",
|
80
|
+
"test/files/namespace/bad_module_specified.yml",
|
81
|
+
"test/files/namespace/class_name_combine.yml",
|
82
|
+
"test/files/namespace/hello.txt",
|
83
|
+
"test/files/namespace/no_module_specified.yml",
|
84
|
+
"test/files/namespace/objects.yml",
|
85
|
+
"test/files/namespace/road.rb",
|
86
|
+
"test/files/namespace/sky.rb",
|
87
|
+
"test/files/namespace/subcontext.yml",
|
88
|
+
"test/files/non_singleton/air.rb",
|
89
|
+
"test/files/non_singleton/fat_cat.rb",
|
90
|
+
"test/files/non_singleton/objects.yml",
|
91
|
+
"test/files/non_singleton/pig.rb",
|
92
|
+
"test/files/non_singleton/thread_spinner.rb",
|
93
|
+
"test/files/non_singleton/tick.rb",
|
94
|
+
"test/files/non_singleton/yard.rb",
|
95
|
+
"test/files/yak/core_model.rb",
|
96
|
+
"test/files/yak/core_presenter.rb",
|
97
|
+
"test/files/yak/core_view.rb",
|
98
|
+
"test/files/yak/data_source.rb",
|
99
|
+
"test/files/yak/fringe_model.rb",
|
100
|
+
"test/files/yak/fringe_presenter.rb",
|
101
|
+
"test/files/yak/fringe_view.rb",
|
102
|
+
"test/files/yak/giant_squid.rb",
|
103
|
+
"test/files/yak/krill.rb",
|
104
|
+
"test/files/yak/my_objects.yml",
|
105
|
+
"test/files/yak/sub_sub_context_test.yml",
|
106
|
+
"test/test_helper.rb"
|
107
|
+
]
|
108
|
+
s.homepage = %q{http://atomicobject.github.com/diy}
|
109
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
110
|
+
s.require_paths = ["lib"]
|
111
|
+
s.rubygems_version = %q{1.3.5}
|
112
|
+
s.summary = %q{Constructor-based dependency injection container using YAML input.}
|
113
|
+
s.test_files = [
|
114
|
+
"test/diy_test.rb",
|
115
|
+
"test/factory_test.rb"
|
116
|
+
]
|
117
|
+
|
118
|
+
if s.respond_to? :specification_version then
|
119
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
120
|
+
s.specification_version = 3
|
121
|
+
|
122
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
123
|
+
s.add_runtime_dependency(%q<constructor>, [">= 1.0.0"])
|
124
|
+
else
|
125
|
+
s.add_dependency(%q<constructor>, [">= 1.0.0"])
|
126
|
+
end
|
127
|
+
else
|
128
|
+
s.add_dependency(%q<constructor>, [">= 1.0.0"])
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
File without changes
|
File without changes
|