cauldron 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +51 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +16 -3
- data/Rakefile +94 -92
- data/VERSION +1 -1
- data/bin/cauldron +2 -2
- data/cauldron.gemspec +15 -451
- data/features/cauldron_new_approach.feature +46 -0
- data/features/step_definitions/cauldron_steps.rb +11 -0
- data/features/step_definitions/terminal_steps.rb +0 -2
- data/features/support/env.rb +11 -1
- data/features/support/hooks.rb +5 -0
- data/lib/cauldron.rb +13 -7
- data/lib/cauldron/array_reverse_operator.rb +39 -0
- data/lib/cauldron/concat_operator.rb +34 -0
- data/lib/cauldron/if_relationship.rb +37 -0
- data/lib/cauldron/numeric_operator.rb +45 -0
- data/lib/cauldron/pot.rb +54 -162
- data/lib/cauldron/relationship.rb +5 -0
- data/lib/cauldron/terminal.rb +4 -60
- data/lib/cauldron/version.rb +3 -0
- data/lib/core/string.rb +21 -0
- data/sandbox.rb +27 -6
- data/spec/cauldron/array_reverse_operator_spec.rb +59 -0
- data/spec/cauldron/concat_operator_spec.rb +89 -0
- data/spec/cauldron/if_relationship_spec.rb +25 -0
- data/spec/cauldron/numeric_operator_spec.rb +70 -0
- data/spec/cauldron/pot_spec.rb +81 -151
- data/spec/cauldron/terminal_spec.rb +1 -39
- data/spec/examples/adding_if_statement.yml +13 -0
- data/spec/examples/simple_head_theory.txt +13 -0
- data/spec/spec_helper.rb +1 -14
- data/tasks/theory_tasks.rake +207 -207
- metadata +92 -532
- data/cauldron/.autotest +0 -23
- data/cauldron/History.txt +0 -6
- data/cauldron/Manifest.txt +0 -8
- data/cauldron/README.txt +0 -57
- data/cauldron/Rakefile +0 -27
- data/cauldron/bin/cauldron +0 -3
- data/cauldron/lib/cauldron.rb +0 -3
- data/cauldron/test/test_cauldron.rb +0 -8
- data/features/cauldron_example_cases.feature +0 -13
- data/features/cauldron_generates_runtime_method.feature +0 -16
- data/features/cauldron_generates_single_paramter_methods.feature +0 -25
- data/features/cauldron_interactive_start_terminal.feature +0 -17
- data/features/cauldron_quit_terminal.feature +0 -9
- data/features/cauldron_start_terminal.feature +0 -12
- data/features/support/method_1.example +0 -3
- data/features/support/method_2.example +0 -6
- data/lib/Chain.rb +0 -771
- data/lib/ChainMapping.rb +0 -172
- data/lib/CodeHandler.rb +0 -513
- data/lib/Mapping.rb +0 -27
- data/lib/MappingValues.rb +0 -24
- data/lib/PartialChain.rb +0 -253
- data/lib/Theory.rb +0 -295
- data/lib/UnifiedChain.rb +0 -351
- data/lib/cauldron/conversion.rb +0 -15
- data/lib/cauldron/demos.rb +0 -280
- data/lib/cauldron/env.rb +0 -1
- data/lib/cauldron/sexp2cauldron.rb +0 -139
- data/lib/cauldron/theory_factory.rb +0 -10
- data/lib/cauldron/util/home.rb +0 -21
- data/lib/cauldron/util/saver.rb +0 -45
- data/lib/core/ActsAsCode.rb +0 -25
- data/lib/core/BlockToken.rb +0 -33
- data/lib/core/CCall.rb +0 -7
- data/lib/core/CTestCase.rb +0 -27
- data/lib/core/ClassMethodCallContainer.rb +0 -58
- data/lib/core/Container.rb +0 -95
- data/lib/core/InstanceCallContainer.rb +0 -298
- data/lib/core/MethodUsage.rb +0 -65
- data/lib/core/PrintVariables.rb +0 -25
- data/lib/core/TheoryGenerator.rb +0 -753
- data/lib/core/Token.rb +0 -7
- data/lib/core/assignment/Assignment.rb +0 -18
- data/lib/core/assignment/Equal.rb +0 -39
- data/lib/core/assignment/Equivalent.rb +0 -20
- data/lib/core/assignment/NotEqual.rb +0 -14
- data/lib/core/call_container/CallContainer.rb +0 -72
- data/lib/core/class_method_call/New.rb +0 -15
- data/lib/core/class_method_call/RuntimeClassMethodCall.rb +0 -31
- data/lib/core/declaration/Declaration.rb +0 -16
- data/lib/core/declaration/LiteralDeclaration.rb +0 -47
- data/lib/core/declaration/VariableDeclaration.rb +0 -59
- data/lib/core/instance_call/ArrayEach.rb +0 -23
- data/lib/core/instance_call/ArrayLength.rb +0 -15
- data/lib/core/instance_call/Chop.rb +0 -19
- data/lib/core/instance_call/Copy.rb +0 -22
- data/lib/core/instance_call/DeclaredVariable.rb +0 -18
- data/lib/core/instance_call/InstanceCall.rb +0 -77
- data/lib/core/instance_call/Params.rb +0 -15
- data/lib/core/instance_call/Push.rb +0 -20
- data/lib/core/instance_call/StringLength.rb +0 -32
- data/lib/core/instance_call/Times.rb +0 -20
- data/lib/core/instance_call/instance_calls.rb +0 -176
- data/lib/core/instance_call/length_equal.rb +0 -15
- data/lib/core/kernal/EvalCall.rb +0 -15
- data/lib/core/kernal/LocalVariablesCall.rb +0 -15
- data/lib/core/literal/Literal.rb +0 -111
- data/lib/core/literal/Raw.rb +0 -23
- data/lib/core/literal/RuntimeMethodLiteral.rb +0 -21
- data/lib/core/literal/StatementLiteral.rb +0 -28
- data/lib/core/method_call/AvailableVariablesCall.rb +0 -25
- data/lib/core/method_call/ClassCall.rb +0 -33
- data/lib/core/method_call/DefCall.rb +0 -72
- data/lib/core/method_call/EvaluateClassCall.rb +0 -29
- data/lib/core/method_call/MethodNameCall.rb +0 -27
- data/lib/core/method_call/ToDeclarationCall.rb +0 -15
- data/lib/core/requirement/Requirement.rb +0 -292
- data/lib/core/runtime_class/ArrayClass.rb +0 -19
- data/lib/core/runtime_class/ClassCallClass.rb +0 -23
- data/lib/core/runtime_class/ClassEvaluationClass.rb +0 -19
- data/lib/core/runtime_class/ClassName.rb +0 -18
- data/lib/core/runtime_class/DefCallClass.rb +0 -21
- data/lib/core/runtime_class/EqualClass.rb +0 -19
- data/lib/core/runtime_class/FixnumClass.rb +0 -15
- data/lib/core/runtime_class/InstanceCallClass.rb +0 -19
- data/lib/core/runtime_class/InstanceCallContainerClass.rb +0 -16
- data/lib/core/runtime_class/InstanceClassCallClass.rb +0 -19
- data/lib/core/runtime_class/LiteralClass.rb +0 -19
- data/lib/core/runtime_class/MethodParameterClass.rb +0 -27
- data/lib/core/runtime_class/MethodUsageClass.rb +0 -27
- data/lib/core/runtime_class/RequirementClass.rb +0 -19
- data/lib/core/runtime_class/ReturnClass.rb +0 -21
- data/lib/core/runtime_class/RuntimeClass.rb +0 -30
- data/lib/core/runtime_class/RuntimeClassClass.rb +0 -19
- data/lib/core/runtime_class/RuntimeMethodClass.rb +0 -34
- data/lib/core/runtime_class/StatementClass.rb +0 -53
- data/lib/core/runtime_class/StringClass.rb +0 -23
- data/lib/core/runtime_class/StringLengthClass.rb +0 -19
- data/lib/core/runtime_class/StringVariableClass.rb +0 -19
- data/lib/core/runtime_class/ThisClass.rb +0 -15
- data/lib/core/runtime_class/UnknownClass.rb +0 -23
- data/lib/core/runtime_class/class_names.rb +0 -95
- data/lib/core/runtime_class/runtime_class.rb +0 -123
- data/lib/core/runtime_method/ActsAsRuntimeMethod.rb +0 -293
- data/lib/core/runtime_method/ParametersContainer.rb +0 -29
- data/lib/core/runtime_method/RealisedRuntimeMethod.rb +0 -94
- data/lib/core/runtime_method/RuntimeMethod.rb +0 -814
- data/lib/core/runtime_method/WriteParameters.rb +0 -35
- data/lib/core/statement/ActsAsStatement.rb +0 -20
- data/lib/core/statement/ArrayAccess.rb +0 -122
- data/lib/core/statement/BlockStatement.rb +0 -348
- data/lib/core/statement/DeclarationStatement.rb +0 -19
- data/lib/core/statement/HackStatement.rb +0 -25
- data/lib/core/statement/HashAccess.rb +0 -18
- data/lib/core/statement/OpenStatement.rb +0 -178
- data/lib/core/statement/RealisedStatement.rb +0 -5
- data/lib/core/statement/SingleLineBlockStatement.rb +0 -39
- data/lib/core/statement/Statement.rb +0 -1091
- data/lib/core/statement/StatementGroup.rb +0 -157
- data/lib/core/statement/StatementStructure2.rb +0 -224
- data/lib/core/statement/TheoryStatement.rb +0 -68
- data/lib/core/statement/TopologicalStatements.rb +0 -34
- data/lib/core/syntax/Addition.rb +0 -26
- data/lib/core/syntax/BlockContainer.rb +0 -102
- data/lib/core/syntax/Boolean.rb +0 -15
- data/lib/core/syntax/Code.rb +0 -11
- data/lib/core/syntax/Do.rb +0 -20
- data/lib/core/syntax/False.rb +0 -12
- data/lib/core/syntax/If.rb +0 -36
- data/lib/core/syntax/Nil.rb +0 -15
- data/lib/core/syntax/Return.rb +0 -33
- data/lib/core/syntax/Subtract.rb +0 -19
- data/lib/core/syntax/This.rb +0 -40
- data/lib/core/syntax/True.rb +0 -20
- data/lib/core/syntax/syntax.rb +0 -24
- data/lib/core/tracking/ActsAsTrackable.rb +0 -65
- data/lib/core/tracking/History.rb +0 -167
- data/lib/core/tracking/RuntimeTrackingMethod.rb +0 -32
- data/lib/core/tracking/Step.rb +0 -52
- data/lib/core/variable/ArrayVariable.rb +0 -76
- data/lib/core/variable/BaseVariable.rb +0 -152
- data/lib/core/variable/BlockVariable.rb +0 -92
- data/lib/core/variable/FixnumVariable.rb +0 -35
- data/lib/core/variable/HistoryVariable.rb +0 -8
- data/lib/core/variable/MethodParameter.rb +0 -179
- data/lib/core/variable/MethodUsageVariable.rb +0 -60
- data/lib/core/variable/NilVariable.rb +0 -29
- data/lib/core/variable/RuntimeMethodParameter.rb +0 -67
- data/lib/core/variable/StatementVariable.rb +0 -72
- data/lib/core/variable/StepVariable.rb +0 -7
- data/lib/core/variable/StringVariable.rb +0 -46
- data/lib/core/variable/TypeVariable.rb +0 -72
- data/lib/core/variable/Unknown.rb +0 -102
- data/lib/core/variable/UnknownVariable.rb +0 -29
- data/lib/core/variable/Variable.rb +0 -70
- data/lib/core/variable/VariableContainer.rb +0 -28
- data/lib/core/variable/VariableIncluded.rb +0 -27
- data/lib/core/variable/VariableReference.rb +0 -85
- data/lib/error/FailedToFindStatementContainerError.rb +0 -7
- data/lib/error/FailedToFindStatementError.rb +0 -7
- data/lib/error/FailedToFindVariableError.rb +0 -7
- data/lib/error/FailedToLiteraliseError.rb +0 -7
- data/lib/error/FailedVariableMatch.rb +0 -7
- data/lib/error/ImproperStatementUsageError.rb +0 -7
- data/lib/error/IncompatiableRequirementsError.rb +0 -7
- data/lib/error/InvalidStatementError.rb +0 -7
- data/lib/error/MethodSizeError.rb +0 -7
- data/lib/error/RuntimeSyntaxError.rb +0 -7
- data/lib/error/UnexpectedStatementTypeError.rb +0 -7
- data/lib/error/UnknownStatementType.rb +0 -7
- data/lib/error/UnliteralisableError.rb +0 -7
- data/lib/implemented_chain.rb +0 -35
- data/lib/intrinsic/IntrinsicLastRuntimeMethod.rb +0 -20
- data/lib/intrinsic/IntrinsicLiteral.rb +0 -26
- data/lib/intrinsic/IntrinsicObject.rb +0 -22
- data/lib/intrinsic/IntrinsicRuntimeMethod.rb +0 -27
- data/lib/intrinsic/IntrinsicTestCases.rb +0 -17
- data/lib/logger/StandardLogger.rb +0 -62
- data/lib/required.rb +0 -222
- data/lib/ruby_code/Array.rb +0 -95
- data/lib/ruby_code/Fixnum.rb +0 -39
- data/lib/ruby_code/Hash.rb +0 -25
- data/lib/ruby_code/NilClass.rb +0 -19
- data/lib/ruby_code/Object.rb +0 -24
- data/lib/ruby_code/String.rb +0 -63
- data/lib/ruby_code/Symbol.rb +0 -7
- data/lib/standard_library/Tasks.rb +0 -12
- data/lib/theories.rb +0 -166
- data/lib/theory/ActionImplementation.rb +0 -17
- data/lib/theory/TheoryAction.rb +0 -100
- data/lib/theory/TheoryChainValidator.rb +0 -103
- data/lib/theory/TheoryComponent.rb +0 -59
- data/lib/theory/TheoryConnector.rb +0 -756
- data/lib/theory/TheoryDependent.rb +0 -135
- data/lib/theory/TheoryImplementation.rb +0 -75
- data/lib/theory/TheoryResult.rb +0 -131
- data/lib/theory/TheoryVariable.rb +0 -63
- data/lib/theory/theory_collection.rb +0 -62
- data/lib/util/ClassEvaluation.rb +0 -44
- data/lib/util/CodeEvaluation.rb +0 -39
- data/lib/util/DeclarationStatementEvaluation.rb +0 -32
- data/lib/util/MethodEvaluation.rb +0 -49
- data/lib/util/MethodTester.rb +0 -71
- data/lib/util/MethodValidation.rb +0 -149
- data/lib/util/MethodWriter.rb +0 -66
- data/lib/util/Parser.rb +0 -305
- data/lib/util/StatementCheck.rb +0 -44
- data/lib/util/StringToTheory.rb +0 -142
- data/lib/util/System.rb +0 -8
- data/spec/cauldron/chain_spec.rb +0 -24
- data/spec/cauldron/demos_spec.rb +0 -30
- data/spec/cauldron/runtime_method_spec.rb +0 -92
- data/spec/cauldron/saver_spec.rb +0 -45
- data/spec/cauldron/sexp_2_cauldron_spec.rb +0 -118
- data/spec/cauldron/theory_action_spec.rb +0 -25
- data/spec/cauldron/theory_connector_spec.rb +0 -52
- data/spec/cauldron/theory_spec.rb +0 -59
- data/spec/cauldron/unified_chain_spec.rb +0 -140
- data/test/fixtures/chains/1/declaration.txt +0 -26
- data/test/fixtures/chains/1/dump +0 -0
- data/test/fixtures/chains/2/declaration.txt +0 -26
- data/test/fixtures/chains/2/dump +0 -0
- data/test/fixtures/chains/3/declaration.txt +0 -26
- data/test/fixtures/chains/3/dump +0 -0
- data/test/fixtures/implementation_results/0/declaration.txt +0 -3
- data/test/fixtures/implementation_results/0/dump +0 -0
- data/test/fixtures/theories/0/declaration.txt +0 -9
- data/test/fixtures/theories/0/desc +0 -10
- data/test/fixtures/theories/0/dump +0 -0
- data/test/fixtures/theories/1/declaration.txt +0 -15
- data/test/fixtures/theories/1/desc +0 -11
- data/test/fixtures/theories/1/dump +0 -0
- data/test/fixtures/theories/10/declaration.txt +0 -23
- data/test/fixtures/theories/10/desc +0 -17
- data/test/fixtures/theories/10/dump +0 -0
- data/test/fixtures/theories/11/declaration.txt +0 -20
- data/test/fixtures/theories/11/desc +0 -14
- data/test/fixtures/theories/11/dump +0 -0
- data/test/fixtures/theories/12/declaration.txt +0 -18
- data/test/fixtures/theories/12/desc +0 -12
- data/test/fixtures/theories/12/dump +0 -0
- data/test/fixtures/theories/13/declaration.txt +0 -24
- data/test/fixtures/theories/13/desc +0 -20
- data/test/fixtures/theories/13/dump +0 -0
- data/test/fixtures/theories/14/declaration.txt +0 -26
- data/test/fixtures/theories/14/desc +0 -20
- data/test/fixtures/theories/14/dump +0 -0
- data/test/fixtures/theories/15/declaration.txt +0 -20
- data/test/fixtures/theories/15/desc +0 -14
- data/test/fixtures/theories/15/dump +0 -0
- data/test/fixtures/theories/16/declaration.txt +0 -30
- data/test/fixtures/theories/16/desc +0 -14
- data/test/fixtures/theories/16/dump +0 -0
- data/test/fixtures/theories/17/declaration.txt +0 -25
- data/test/fixtures/theories/17/desc +0 -11
- data/test/fixtures/theories/17/dump +0 -0
- data/test/fixtures/theories/18/declaration.txt +0 -23
- data/test/fixtures/theories/18/desc +0 -11
- data/test/fixtures/theories/18/dump +0 -0
- data/test/fixtures/theories/19/declaration.txt +0 -23
- data/test/fixtures/theories/19/desc +0 -11
- data/test/fixtures/theories/19/dump +0 -0
- data/test/fixtures/theories/2/declaration.txt +0 -12
- data/test/fixtures/theories/2/desc +0 -10
- data/test/fixtures/theories/2/dump +0 -0
- data/test/fixtures/theories/20/declaration.txt +0 -23
- data/test/fixtures/theories/20/desc +0 -17
- data/test/fixtures/theories/20/dump +0 -0
- data/test/fixtures/theories/3/declaration.txt +0 -19
- data/test/fixtures/theories/3/desc +0 -11
- data/test/fixtures/theories/3/dump +0 -0
- data/test/fixtures/theories/4/declaration.txt +0 -11
- data/test/fixtures/theories/4/desc +0 -11
- data/test/fixtures/theories/4/dump +0 -0
- data/test/fixtures/theories/5/declaration.txt +0 -6
- data/test/fixtures/theories/5/desc +0 -9
- data/test/fixtures/theories/5/dump +0 -0
- data/test/fixtures/theories/6/declaration.txt +0 -13
- data/test/fixtures/theories/6/desc +0 -11
- data/test/fixtures/theories/6/dump +0 -0
- data/test/fixtures/theories/7/declaration.txt +0 -19
- data/test/fixtures/theories/7/desc +0 -11
- data/test/fixtures/theories/7/dump +0 -0
- data/test/fixtures/theories/8/declaration.txt +0 -21
- data/test/fixtures/theories/8/desc +0 -11
- data/test/fixtures/theories/8/dump +0 -0
- data/test/fixtures/theories/9/declaration.txt +0 -24
- data/test/fixtures/theories/9/desc +0 -20
- data/test/fixtures/theories/9/dump +0 -0
- data/test/fixtures/theory_implementations/0/declaration.txt +0 -11
- data/test/fixtures/theory_implementations/0/desc.txt +0 -9
- data/test/fixtures/theory_implementations/0/dump +0 -0
- data/test/fixtures/theory_implementations/0/theory_id +0 -1
- data/test/fixtures/theory_implementations/1/declaration.txt +0 -11
- data/test/fixtures/theory_implementations/1/desc.txt +0 -9
- data/test/fixtures/theory_implementations/1/dump +0 -1
- data/test/fixtures/theory_implementations/1/theory_id +0 -1
- data/test/fixtures/theory_implementations/2/declaration.txt +0 -11
- data/test/fixtures/theory_implementations/2/desc.txt +0 -9
- data/test/fixtures/theory_implementations/2/dump +0 -0
- data/test/fixtures/theory_implementations/2/theory_id +0 -1
- data/test/output/simple_method.txt +0 -5
- data/test/output/test_method/first_possible_method.txt +0 -6
- data/test/output/test_simple_cases/simple_case_01.txt +0 -8
- data/test/output/test_simple_cases/simple_case_02.txt +0 -7
- data/test/output/test_simple_cases/simple_case_03.txt +0 -8
- data/test/output/test_simple_cases/simple_case_04.txt +0 -8
- data/test/output/test_simple_cases/simple_case_05.txt +0 -8
- data/test/output/test_simple_cases/simple_case_06.txt +0 -9
- data/test/output/test_simple_cases/simple_case_07.txt +0 -9
- data/test/output/test_simple_cases/simple_case_08.txt +0 -9
- data/test/tc_describe.rb +0 -46
- data/test/tc_method.rb +0 -130
- data/test/tc_requirement.rb +0 -30
- data/test/tc_suite_complete.rb +0 -26
- data/test/tc_variable.rb +0 -52
- data/test/ts_complete.rb +0 -74
- data/test/ts_stable.rb +0 -81
- data/test/unit/core/declaration/tc_literal_declaration.rb +0 -34
- data/test/unit/core/method_call/tc_class_call.rb +0 -20
- data/test/unit/core/runtime_method/tc_realised_runtime_method.rb +0 -132
- data/test/unit/core/runtime_method/tc_runtime_method.rb +0 -546
- data/test/unit/core/statement/tc_array_access.rb +0 -63
- data/test/unit/core/statement/tc_block_statement.rb +0 -53
- data/test/unit/core/statement/tc_hack_statement.rb +0 -26
- data/test/unit/core/statement/tc_open_statement.rb +0 -79
- data/test/unit/core/statement/tc_statement.rb +0 -483
- data/test/unit/core/statement/tc_statement_group.rb +0 -35
- data/test/unit/core/statement/tc_statement_replace_variable.rb +0 -61
- data/test/unit/core/statement/tc_theory_statement.rb +0 -53
- data/test/unit/core/syntax/tc_block_container.rb +0 -32
- data/test/unit/core/syntax/tc_if_container.rb +0 -39
- data/test/unit/core/tc_class_method_call.rb +0 -34
- data/test/unit/core/tc_container.rb +0 -41
- data/test/unit/core/tc_ctest_case.rb +0 -25
- data/test/unit/core/tc_instance_call_container.rb +0 -93
- data/test/unit/core/tc_literal.rb +0 -30
- data/test/unit/core/tc_theory_generator.rb +0 -336
- data/test/unit/core/tc_theory_generator_heavy.rb +0 -42
- data/test/unit/core/tracking/tc_history.rb +0 -104
- data/test/unit/core/tracking/tc_step.rb +0 -65
- data/test/unit/core/variable/tc_array_variable.rb +0 -61
- data/test/unit/core/variable/tc_block_variable.rb +0 -17
- data/test/unit/core/variable/tc_fixnum_variable.rb +0 -54
- data/test/unit/core/variable/tc_method_parameter_variable.rb +0 -22
- data/test/unit/core/variable/tc_runtime_method_variable.rb +0 -32
- data/test/unit/core/variable/tc_string_variable.rb +0 -37
- data/test/unit/core/variable/tc_unknown.rb +0 -24
- data/test/unit/core/variable/tc_variable_reference.rb +0 -28
- data/test/unit/ruby_code/tc_array.rb +0 -64
- data/test/unit/ruby_code/tc_fixnum.rb +0 -18
- data/test/unit/ruby_code/tc_hash.rb +0 -41
- data/test/unit/ruby_code/tc_string.rb +0 -38
- data/test/unit/tc_chain.rb +0 -434
- data/test/unit/tc_chain_mapping.rb +0 -62
- data/test/unit/tc_chain_with_case_1.rb +0 -169
- data/test/unit/tc_instance_call.rb +0 -40
- data/test/unit/tc_method_usage.rb +0 -35
- data/test/unit/tc_pot.rb +0 -124
- data/test/unit/tc_runtime_tracking_method.rb +0 -40
- data/test/unit/tc_theory.rb +0 -531
- data/test/unit/tc_variable_declaration.rb +0 -32
- data/test/unit/theory/tc_theory_action.rb +0 -108
- data/test/unit/theory/tc_theory_action_implementation.rb +0 -23
- data/test/unit/theory/tc_theory_chain_validator.rb +0 -340
- data/test/unit/theory/tc_theory_connector.rb +0 -361
- data/test/unit/theory/tc_theory_dependent.rb +0 -153
- data/test/unit/theory/tc_theory_implementation.rb +0 -137
- data/test/unit/theory/tc_theory_result.rb +0 -112
- data/test/unit/theory/tc_theory_variable.rb +0 -45
- data/test/unit/util/tc_method_validation.rb +0 -101
- data/test/unit/util/tc_parser.rb +0 -110
- data/test/unit/util/tc_string_to_theory.rb +0 -300
- data/test/unit/variable/tc_method_usage_variable.rb +0 -25
- data/tmp/runtime_method_evaluation.rb +0 -16
metadata
CHANGED
@@ -1,159 +1,75 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cauldron
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 0.1.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Warren Sangster
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2014-03-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
18
|
+
requirements:
|
25
19
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 2
|
31
|
-
- 5
|
32
|
-
version: 1.2.5
|
33
|
-
name: ruby2ruby
|
34
|
-
version_requirements: *id001
|
35
|
-
prerelease: false
|
36
|
-
type: :runtime
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
47
|
-
name: shoulda
|
48
|
-
version_requirements: *id002
|
49
|
-
prerelease: false
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
50
22
|
type: :development
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
hash: 9
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 0
|
61
|
-
- 15
|
62
|
-
version: 1.0.15
|
63
|
-
name: bundler
|
64
|
-
version_requirements: *id003
|
65
23
|
prerelease: false
|
66
|
-
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
25
|
none: false
|
70
|
-
requirements:
|
26
|
+
requirements:
|
71
27
|
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
- 2
|
78
|
-
version: 1.6.2
|
79
|
-
name: jeweler
|
80
|
-
version_requirements: *id004
|
81
|
-
prerelease: false
|
82
|
-
type: :development
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
85
33
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
|
90
|
-
segments:
|
91
|
-
- 2
|
92
|
-
- 6
|
93
|
-
- 0
|
94
|
-
version: 2.6.0
|
95
|
-
name: rspec
|
96
|
-
version_requirements: *id005
|
97
|
-
prerelease: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
98
38
|
type: :development
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 3
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
version: "0"
|
109
|
-
name: rcov
|
110
|
-
version_requirements: *id006
|
111
39
|
prerelease: false
|
112
|
-
|
113
|
-
|
114
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: ruby2ruby
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
115
49
|
none: false
|
116
|
-
requirements:
|
50
|
+
requirements:
|
117
51
|
- - ~>
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
120
|
-
|
121
|
-
- 2
|
122
|
-
- 0
|
123
|
-
- 6
|
124
|
-
version: 2.0.6
|
125
|
-
name: ruby_parser
|
126
|
-
version_requirements: *id007
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.2.5
|
54
|
+
type: :runtime
|
127
55
|
prerelease: false
|
128
|
-
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
57
|
none: false
|
132
|
-
requirements:
|
58
|
+
requirements:
|
133
59
|
- - ~>
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
- 5
|
140
|
-
version: 0.4.5
|
141
|
-
name: aruba
|
142
|
-
version_requirements: *id008
|
143
|
-
prerelease: false
|
144
|
-
type: :development
|
145
|
-
description: Cauldron generates a methd from a number of examples that describe the input and the expected output. It is still at a very early stage of development right now so you're unlikely to get much practical use out of it.
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.2.5
|
62
|
+
description: Cauldron generates a methd from a number of examples that describe the
|
63
|
+
input and the expected output. It is still at a very early stage of development
|
64
|
+
right now so you're unlikely to get much practical use out of it.
|
146
65
|
email: warrensangster@yahoo.com
|
147
|
-
executables:
|
66
|
+
executables:
|
148
67
|
- cauldron
|
149
68
|
extensions: []
|
150
|
-
|
151
|
-
|
152
|
-
- LICENSE.txt
|
153
|
-
- README
|
154
|
-
- README.rdoc
|
155
|
-
files:
|
69
|
+
extra_rdoc_files: []
|
70
|
+
files:
|
156
71
|
- .document
|
72
|
+
- .gitignore
|
157
73
|
- Gemfile
|
158
74
|
- Gemfile.lock
|
159
75
|
- History.md
|
@@ -164,429 +80,73 @@ files:
|
|
164
80
|
- VERSION
|
165
81
|
- bin/cauldron
|
166
82
|
- cauldron.gemspec
|
167
|
-
-
|
168
|
-
- cauldron/History.txt
|
169
|
-
- cauldron/Manifest.txt
|
170
|
-
- cauldron/README.txt
|
171
|
-
- cauldron/Rakefile
|
172
|
-
- cauldron/bin/cauldron
|
173
|
-
- cauldron/lib/cauldron.rb
|
174
|
-
- cauldron/test/test_cauldron.rb
|
175
|
-
- features/cauldron_example_cases.feature
|
176
|
-
- features/cauldron_generates_runtime_method.feature
|
177
|
-
- features/cauldron_generates_single_paramter_methods.feature
|
178
|
-
- features/cauldron_interactive_start_terminal.feature
|
179
|
-
- features/cauldron_quit_terminal.feature
|
180
|
-
- features/cauldron_start_terminal.feature
|
83
|
+
- features/cauldron_new_approach.feature
|
181
84
|
- features/step_definitions/cauldron_steps.rb
|
182
85
|
- features/step_definitions/terminal_steps.rb
|
183
86
|
- features/support/env.rb
|
184
87
|
- features/support/hooks.rb
|
185
|
-
- features/support/method_1.example
|
186
|
-
- features/support/method_2.example
|
187
|
-
- lib/Chain.rb
|
188
|
-
- lib/ChainMapping.rb
|
189
|
-
- lib/CodeHandler.rb
|
190
|
-
- lib/Mapping.rb
|
191
|
-
- lib/MappingValues.rb
|
192
|
-
- lib/PartialChain.rb
|
193
|
-
- lib/Theory.rb
|
194
|
-
- lib/UnifiedChain.rb
|
195
88
|
- lib/cauldron.rb
|
196
|
-
- lib/cauldron/
|
197
|
-
- lib/cauldron/
|
198
|
-
- lib/cauldron/
|
89
|
+
- lib/cauldron/array_reverse_operator.rb
|
90
|
+
- lib/cauldron/concat_operator.rb
|
91
|
+
- lib/cauldron/if_relationship.rb
|
92
|
+
- lib/cauldron/numeric_operator.rb
|
199
93
|
- lib/cauldron/pot.rb
|
200
|
-
- lib/cauldron/
|
94
|
+
- lib/cauldron/relationship.rb
|
201
95
|
- lib/cauldron/terminal.rb
|
202
|
-
- lib/cauldron/
|
203
|
-
- lib/
|
204
|
-
- lib/cauldron/util/saver.rb
|
205
|
-
- lib/core/ActsAsCode.rb
|
206
|
-
- lib/core/BlockToken.rb
|
207
|
-
- lib/core/CCall.rb
|
208
|
-
- lib/core/CTestCase.rb
|
209
|
-
- lib/core/ClassMethodCallContainer.rb
|
210
|
-
- lib/core/Container.rb
|
211
|
-
- lib/core/InstanceCallContainer.rb
|
212
|
-
- lib/core/MethodUsage.rb
|
213
|
-
- lib/core/PrintVariables.rb
|
214
|
-
- lib/core/TheoryGenerator.rb
|
215
|
-
- lib/core/Token.rb
|
216
|
-
- lib/core/assignment/Assignment.rb
|
217
|
-
- lib/core/assignment/Equal.rb
|
218
|
-
- lib/core/assignment/Equivalent.rb
|
219
|
-
- lib/core/assignment/NotEqual.rb
|
220
|
-
- lib/core/call_container/CallContainer.rb
|
221
|
-
- lib/core/class_method_call/New.rb
|
222
|
-
- lib/core/class_method_call/RuntimeClassMethodCall.rb
|
223
|
-
- lib/core/declaration/Declaration.rb
|
224
|
-
- lib/core/declaration/LiteralDeclaration.rb
|
225
|
-
- lib/core/declaration/VariableDeclaration.rb
|
226
|
-
- lib/core/instance_call/ArrayEach.rb
|
227
|
-
- lib/core/instance_call/ArrayLength.rb
|
228
|
-
- lib/core/instance_call/Chop.rb
|
229
|
-
- lib/core/instance_call/Copy.rb
|
230
|
-
- lib/core/instance_call/DeclaredVariable.rb
|
231
|
-
- lib/core/instance_call/InstanceCall.rb
|
232
|
-
- lib/core/instance_call/Params.rb
|
233
|
-
- lib/core/instance_call/Push.rb
|
234
|
-
- lib/core/instance_call/StringLength.rb
|
235
|
-
- lib/core/instance_call/Times.rb
|
236
|
-
- lib/core/instance_call/instance_calls.rb
|
237
|
-
- lib/core/instance_call/length_equal.rb
|
238
|
-
- lib/core/kernal/EvalCall.rb
|
239
|
-
- lib/core/kernal/LocalVariablesCall.rb
|
240
|
-
- lib/core/literal/Literal.rb
|
241
|
-
- lib/core/literal/Raw.rb
|
242
|
-
- lib/core/literal/RuntimeMethodLiteral.rb
|
243
|
-
- lib/core/literal/StatementLiteral.rb
|
244
|
-
- lib/core/method_call/AvailableVariablesCall.rb
|
245
|
-
- lib/core/method_call/ClassCall.rb
|
246
|
-
- lib/core/method_call/DefCall.rb
|
247
|
-
- lib/core/method_call/EvaluateClassCall.rb
|
248
|
-
- lib/core/method_call/MethodNameCall.rb
|
249
|
-
- lib/core/method_call/ToDeclarationCall.rb
|
250
|
-
- lib/core/requirement/Requirement.rb
|
251
|
-
- lib/core/runtime_class/ArrayClass.rb
|
252
|
-
- lib/core/runtime_class/ClassCallClass.rb
|
253
|
-
- lib/core/runtime_class/ClassEvaluationClass.rb
|
254
|
-
- lib/core/runtime_class/ClassName.rb
|
255
|
-
- lib/core/runtime_class/DefCallClass.rb
|
256
|
-
- lib/core/runtime_class/EqualClass.rb
|
257
|
-
- lib/core/runtime_class/FixnumClass.rb
|
258
|
-
- lib/core/runtime_class/InstanceCallClass.rb
|
259
|
-
- lib/core/runtime_class/InstanceCallContainerClass.rb
|
260
|
-
- lib/core/runtime_class/InstanceClassCallClass.rb
|
261
|
-
- lib/core/runtime_class/LiteralClass.rb
|
262
|
-
- lib/core/runtime_class/MethodParameterClass.rb
|
263
|
-
- lib/core/runtime_class/MethodUsageClass.rb
|
264
|
-
- lib/core/runtime_class/RequirementClass.rb
|
265
|
-
- lib/core/runtime_class/ReturnClass.rb
|
266
|
-
- lib/core/runtime_class/RuntimeClass.rb
|
267
|
-
- lib/core/runtime_class/RuntimeClassClass.rb
|
268
|
-
- lib/core/runtime_class/RuntimeMethodClass.rb
|
269
|
-
- lib/core/runtime_class/StatementClass.rb
|
270
|
-
- lib/core/runtime_class/StringClass.rb
|
271
|
-
- lib/core/runtime_class/StringLengthClass.rb
|
272
|
-
- lib/core/runtime_class/StringVariableClass.rb
|
273
|
-
- lib/core/runtime_class/ThisClass.rb
|
274
|
-
- lib/core/runtime_class/UnknownClass.rb
|
275
|
-
- lib/core/runtime_class/class_names.rb
|
276
|
-
- lib/core/runtime_class/runtime_class.rb
|
277
|
-
- lib/core/runtime_method/ActsAsRuntimeMethod.rb
|
278
|
-
- lib/core/runtime_method/ParametersContainer.rb
|
279
|
-
- lib/core/runtime_method/RealisedRuntimeMethod.rb
|
280
|
-
- lib/core/runtime_method/RuntimeMethod.rb
|
281
|
-
- lib/core/runtime_method/WriteParameters.rb
|
282
|
-
- lib/core/statement/ActsAsStatement.rb
|
283
|
-
- lib/core/statement/ArrayAccess.rb
|
284
|
-
- lib/core/statement/BlockStatement.rb
|
285
|
-
- lib/core/statement/DeclarationStatement.rb
|
286
|
-
- lib/core/statement/HackStatement.rb
|
287
|
-
- lib/core/statement/HashAccess.rb
|
288
|
-
- lib/core/statement/OpenStatement.rb
|
289
|
-
- lib/core/statement/RealisedStatement.rb
|
290
|
-
- lib/core/statement/SingleLineBlockStatement.rb
|
291
|
-
- lib/core/statement/Statement.rb
|
292
|
-
- lib/core/statement/StatementGroup.rb
|
293
|
-
- lib/core/statement/StatementStructure2.rb
|
294
|
-
- lib/core/statement/TheoryStatement.rb
|
295
|
-
- lib/core/statement/TopologicalStatements.rb
|
296
|
-
- lib/core/syntax/Addition.rb
|
297
|
-
- lib/core/syntax/BlockContainer.rb
|
298
|
-
- lib/core/syntax/Boolean.rb
|
299
|
-
- lib/core/syntax/Code.rb
|
300
|
-
- lib/core/syntax/Do.rb
|
301
|
-
- lib/core/syntax/False.rb
|
302
|
-
- lib/core/syntax/If.rb
|
303
|
-
- lib/core/syntax/Nil.rb
|
304
|
-
- lib/core/syntax/Return.rb
|
305
|
-
- lib/core/syntax/Subtract.rb
|
306
|
-
- lib/core/syntax/This.rb
|
307
|
-
- lib/core/syntax/True.rb
|
308
|
-
- lib/core/syntax/syntax.rb
|
309
|
-
- lib/core/tracking/ActsAsTrackable.rb
|
310
|
-
- lib/core/tracking/History.rb
|
311
|
-
- lib/core/tracking/RuntimeTrackingMethod.rb
|
312
|
-
- lib/core/tracking/Step.rb
|
313
|
-
- lib/core/variable/ArrayVariable.rb
|
314
|
-
- lib/core/variable/BaseVariable.rb
|
315
|
-
- lib/core/variable/BlockVariable.rb
|
316
|
-
- lib/core/variable/FixnumVariable.rb
|
317
|
-
- lib/core/variable/HistoryVariable.rb
|
318
|
-
- lib/core/variable/MethodParameter.rb
|
319
|
-
- lib/core/variable/MethodUsageVariable.rb
|
320
|
-
- lib/core/variable/NilVariable.rb
|
321
|
-
- lib/core/variable/RuntimeMethodParameter.rb
|
322
|
-
- lib/core/variable/StatementVariable.rb
|
323
|
-
- lib/core/variable/StepVariable.rb
|
324
|
-
- lib/core/variable/StringVariable.rb
|
325
|
-
- lib/core/variable/TypeVariable.rb
|
326
|
-
- lib/core/variable/Unknown.rb
|
327
|
-
- lib/core/variable/UnknownVariable.rb
|
328
|
-
- lib/core/variable/Variable.rb
|
329
|
-
- lib/core/variable/VariableContainer.rb
|
330
|
-
- lib/core/variable/VariableIncluded.rb
|
331
|
-
- lib/core/variable/VariableReference.rb
|
332
|
-
- lib/error/FailedToFindStatementContainerError.rb
|
333
|
-
- lib/error/FailedToFindStatementError.rb
|
334
|
-
- lib/error/FailedToFindVariableError.rb
|
335
|
-
- lib/error/FailedToLiteraliseError.rb
|
336
|
-
- lib/error/FailedVariableMatch.rb
|
337
|
-
- lib/error/ImproperStatementUsageError.rb
|
338
|
-
- lib/error/IncompatiableRequirementsError.rb
|
339
|
-
- lib/error/InvalidStatementError.rb
|
340
|
-
- lib/error/MethodSizeError.rb
|
341
|
-
- lib/error/RuntimeSyntaxError.rb
|
342
|
-
- lib/error/UnexpectedStatementTypeError.rb
|
343
|
-
- lib/error/UnknownStatementType.rb
|
344
|
-
- lib/error/UnliteralisableError.rb
|
345
|
-
- lib/implemented_chain.rb
|
346
|
-
- lib/intrinsic/IntrinsicLastRuntimeMethod.rb
|
347
|
-
- lib/intrinsic/IntrinsicLiteral.rb
|
348
|
-
- lib/intrinsic/IntrinsicObject.rb
|
349
|
-
- lib/intrinsic/IntrinsicRuntimeMethod.rb
|
350
|
-
- lib/intrinsic/IntrinsicTestCases.rb
|
351
|
-
- lib/logger/StandardLogger.rb
|
352
|
-
- lib/required.rb
|
353
|
-
- lib/ruby_code/Array.rb
|
354
|
-
- lib/ruby_code/Fixnum.rb
|
355
|
-
- lib/ruby_code/Hash.rb
|
356
|
-
- lib/ruby_code/NilClass.rb
|
357
|
-
- lib/ruby_code/Object.rb
|
358
|
-
- lib/ruby_code/String.rb
|
359
|
-
- lib/ruby_code/Symbol.rb
|
360
|
-
- lib/standard_library/Tasks.rb
|
361
|
-
- lib/theories.rb
|
362
|
-
- lib/theory/ActionImplementation.rb
|
363
|
-
- lib/theory/TheoryAction.rb
|
364
|
-
- lib/theory/TheoryChainValidator.rb
|
365
|
-
- lib/theory/TheoryComponent.rb
|
366
|
-
- lib/theory/TheoryConnector.rb
|
367
|
-
- lib/theory/TheoryDependent.rb
|
368
|
-
- lib/theory/TheoryImplementation.rb
|
369
|
-
- lib/theory/TheoryResult.rb
|
370
|
-
- lib/theory/TheoryVariable.rb
|
371
|
-
- lib/theory/theory_collection.rb
|
372
|
-
- lib/util/ClassEvaluation.rb
|
373
|
-
- lib/util/CodeEvaluation.rb
|
374
|
-
- lib/util/DeclarationStatementEvaluation.rb
|
375
|
-
- lib/util/MethodEvaluation.rb
|
376
|
-
- lib/util/MethodTester.rb
|
377
|
-
- lib/util/MethodValidation.rb
|
378
|
-
- lib/util/MethodWriter.rb
|
379
|
-
- lib/util/Parser.rb
|
380
|
-
- lib/util/StatementCheck.rb
|
381
|
-
- lib/util/StringToTheory.rb
|
382
|
-
- lib/util/System.rb
|
96
|
+
- lib/cauldron/version.rb
|
97
|
+
- lib/core/string.rb
|
383
98
|
- sandbox.rb
|
384
|
-
- spec/cauldron/
|
385
|
-
- spec/cauldron/
|
99
|
+
- spec/cauldron/array_reverse_operator_spec.rb
|
100
|
+
- spec/cauldron/concat_operator_spec.rb
|
101
|
+
- spec/cauldron/if_relationship_spec.rb
|
102
|
+
- spec/cauldron/numeric_operator_spec.rb
|
386
103
|
- spec/cauldron/pot_spec.rb
|
387
|
-
- spec/cauldron/runtime_method_spec.rb
|
388
|
-
- spec/cauldron/saver_spec.rb
|
389
|
-
- spec/cauldron/sexp_2_cauldron_spec.rb
|
390
104
|
- spec/cauldron/terminal_spec.rb
|
391
|
-
- spec/
|
392
|
-
- spec/
|
393
|
-
- spec/cauldron/theory_spec.rb
|
394
|
-
- spec/cauldron/unified_chain_spec.rb
|
105
|
+
- spec/examples/adding_if_statement.yml
|
106
|
+
- spec/examples/simple_head_theory.txt
|
395
107
|
- spec/spec_helper.rb
|
396
108
|
- tasks/development_tasks.rake
|
397
109
|
- tasks/theory_tasks.rake
|
398
|
-
- test/fixtures/chains/1/declaration.txt
|
399
|
-
- test/fixtures/chains/1/dump
|
400
|
-
- test/fixtures/chains/2/declaration.txt
|
401
|
-
- test/fixtures/chains/2/dump
|
402
|
-
- test/fixtures/chains/3/declaration.txt
|
403
|
-
- test/fixtures/chains/3/dump
|
404
|
-
- test/fixtures/implementation_results/0/declaration.txt
|
405
|
-
- test/fixtures/implementation_results/0/dump
|
406
|
-
- test/fixtures/theories/0/declaration.txt
|
407
|
-
- test/fixtures/theories/0/desc
|
408
|
-
- test/fixtures/theories/0/dump
|
409
|
-
- test/fixtures/theories/1/declaration.txt
|
410
|
-
- test/fixtures/theories/1/desc
|
411
|
-
- test/fixtures/theories/1/dump
|
412
|
-
- test/fixtures/theories/10/declaration.txt
|
413
|
-
- test/fixtures/theories/10/desc
|
414
|
-
- test/fixtures/theories/10/dump
|
415
|
-
- test/fixtures/theories/11/declaration.txt
|
416
|
-
- test/fixtures/theories/11/desc
|
417
|
-
- test/fixtures/theories/11/dump
|
418
|
-
- test/fixtures/theories/12/declaration.txt
|
419
|
-
- test/fixtures/theories/12/desc
|
420
|
-
- test/fixtures/theories/12/dump
|
421
|
-
- test/fixtures/theories/13/declaration.txt
|
422
|
-
- test/fixtures/theories/13/desc
|
423
|
-
- test/fixtures/theories/13/dump
|
424
|
-
- test/fixtures/theories/14/declaration.txt
|
425
|
-
- test/fixtures/theories/14/desc
|
426
|
-
- test/fixtures/theories/14/dump
|
427
|
-
- test/fixtures/theories/15/declaration.txt
|
428
|
-
- test/fixtures/theories/15/desc
|
429
|
-
- test/fixtures/theories/15/dump
|
430
|
-
- test/fixtures/theories/16/declaration.txt
|
431
|
-
- test/fixtures/theories/16/desc
|
432
|
-
- test/fixtures/theories/16/dump
|
433
|
-
- test/fixtures/theories/17/declaration.txt
|
434
|
-
- test/fixtures/theories/17/desc
|
435
|
-
- test/fixtures/theories/17/dump
|
436
|
-
- test/fixtures/theories/18/declaration.txt
|
437
|
-
- test/fixtures/theories/18/desc
|
438
|
-
- test/fixtures/theories/18/dump
|
439
|
-
- test/fixtures/theories/19/declaration.txt
|
440
|
-
- test/fixtures/theories/19/desc
|
441
|
-
- test/fixtures/theories/19/dump
|
442
|
-
- test/fixtures/theories/2/declaration.txt
|
443
|
-
- test/fixtures/theories/2/desc
|
444
|
-
- test/fixtures/theories/2/dump
|
445
|
-
- test/fixtures/theories/20/declaration.txt
|
446
|
-
- test/fixtures/theories/20/desc
|
447
|
-
- test/fixtures/theories/20/dump
|
448
|
-
- test/fixtures/theories/3/declaration.txt
|
449
|
-
- test/fixtures/theories/3/desc
|
450
|
-
- test/fixtures/theories/3/dump
|
451
|
-
- test/fixtures/theories/4/declaration.txt
|
452
|
-
- test/fixtures/theories/4/desc
|
453
|
-
- test/fixtures/theories/4/dump
|
454
|
-
- test/fixtures/theories/5/declaration.txt
|
455
|
-
- test/fixtures/theories/5/desc
|
456
|
-
- test/fixtures/theories/5/dump
|
457
|
-
- test/fixtures/theories/6/declaration.txt
|
458
|
-
- test/fixtures/theories/6/desc
|
459
|
-
- test/fixtures/theories/6/dump
|
460
|
-
- test/fixtures/theories/7/declaration.txt
|
461
|
-
- test/fixtures/theories/7/desc
|
462
|
-
- test/fixtures/theories/7/dump
|
463
|
-
- test/fixtures/theories/8/declaration.txt
|
464
|
-
- test/fixtures/theories/8/desc
|
465
|
-
- test/fixtures/theories/8/dump
|
466
|
-
- test/fixtures/theories/9/declaration.txt
|
467
|
-
- test/fixtures/theories/9/desc
|
468
|
-
- test/fixtures/theories/9/dump
|
469
|
-
- test/fixtures/theory_implementations/0/declaration.txt
|
470
|
-
- test/fixtures/theory_implementations/0/desc.txt
|
471
|
-
- test/fixtures/theory_implementations/0/dump
|
472
|
-
- test/fixtures/theory_implementations/0/theory_id
|
473
|
-
- test/fixtures/theory_implementations/1/declaration.txt
|
474
|
-
- test/fixtures/theory_implementations/1/desc.txt
|
475
|
-
- test/fixtures/theory_implementations/1/dump
|
476
|
-
- test/fixtures/theory_implementations/1/theory_id
|
477
|
-
- test/fixtures/theory_implementations/2/declaration.txt
|
478
|
-
- test/fixtures/theory_implementations/2/desc.txt
|
479
|
-
- test/fixtures/theory_implementations/2/dump
|
480
|
-
- test/fixtures/theory_implementations/2/theory_id
|
481
|
-
- test/output/simple_method.txt
|
482
|
-
- test/output/test_method/first_possible_method.txt
|
483
|
-
- test/output/test_simple_cases/simple_case_01.txt
|
484
|
-
- test/output/test_simple_cases/simple_case_02.txt
|
485
|
-
- test/output/test_simple_cases/simple_case_03.txt
|
486
|
-
- test/output/test_simple_cases/simple_case_04.txt
|
487
|
-
- test/output/test_simple_cases/simple_case_05.txt
|
488
|
-
- test/output/test_simple_cases/simple_case_06.txt
|
489
|
-
- test/output/test_simple_cases/simple_case_07.txt
|
490
|
-
- test/output/test_simple_cases/simple_case_08.txt
|
491
|
-
- test/tc_describe.rb
|
492
|
-
- test/tc_method.rb
|
493
|
-
- test/tc_requirement.rb
|
494
|
-
- test/tc_suite_complete.rb
|
495
|
-
- test/tc_variable.rb
|
496
|
-
- test/ts_complete.rb
|
497
|
-
- test/ts_stable.rb
|
498
|
-
- test/unit/core/declaration/tc_literal_declaration.rb
|
499
|
-
- test/unit/core/method_call/tc_class_call.rb
|
500
|
-
- test/unit/core/runtime_method/tc_realised_runtime_method.rb
|
501
|
-
- test/unit/core/runtime_method/tc_runtime_method.rb
|
502
|
-
- test/unit/core/statement/tc_array_access.rb
|
503
|
-
- test/unit/core/statement/tc_block_statement.rb
|
504
|
-
- test/unit/core/statement/tc_hack_statement.rb
|
505
|
-
- test/unit/core/statement/tc_open_statement.rb
|
506
|
-
- test/unit/core/statement/tc_statement.rb
|
507
|
-
- test/unit/core/statement/tc_statement_group.rb
|
508
|
-
- test/unit/core/statement/tc_statement_replace_variable.rb
|
509
|
-
- test/unit/core/statement/tc_theory_statement.rb
|
510
|
-
- test/unit/core/syntax/tc_block_container.rb
|
511
|
-
- test/unit/core/syntax/tc_if_container.rb
|
512
|
-
- test/unit/core/tc_class_method_call.rb
|
513
|
-
- test/unit/core/tc_container.rb
|
514
|
-
- test/unit/core/tc_ctest_case.rb
|
515
|
-
- test/unit/core/tc_instance_call_container.rb
|
516
|
-
- test/unit/core/tc_literal.rb
|
517
|
-
- test/unit/core/tc_theory_generator.rb
|
518
|
-
- test/unit/core/tc_theory_generator_heavy.rb
|
519
|
-
- test/unit/core/tracking/tc_history.rb
|
520
|
-
- test/unit/core/tracking/tc_step.rb
|
521
|
-
- test/unit/core/variable/tc_array_variable.rb
|
522
|
-
- test/unit/core/variable/tc_block_variable.rb
|
523
|
-
- test/unit/core/variable/tc_fixnum_variable.rb
|
524
|
-
- test/unit/core/variable/tc_method_parameter_variable.rb
|
525
|
-
- test/unit/core/variable/tc_runtime_method_variable.rb
|
526
|
-
- test/unit/core/variable/tc_string_variable.rb
|
527
|
-
- test/unit/core/variable/tc_unknown.rb
|
528
|
-
- test/unit/core/variable/tc_variable_reference.rb
|
529
|
-
- test/unit/ruby_code/tc_array.rb
|
530
|
-
- test/unit/ruby_code/tc_fixnum.rb
|
531
|
-
- test/unit/ruby_code/tc_hash.rb
|
532
|
-
- test/unit/ruby_code/tc_string.rb
|
533
|
-
- test/unit/tc_chain.rb
|
534
|
-
- test/unit/tc_chain_mapping.rb
|
535
|
-
- test/unit/tc_chain_with_case_1.rb
|
536
|
-
- test/unit/tc_instance_call.rb
|
537
|
-
- test/unit/tc_method_usage.rb
|
538
|
-
- test/unit/tc_pot.rb
|
539
|
-
- test/unit/tc_runtime_tracking_method.rb
|
540
|
-
- test/unit/tc_theory.rb
|
541
|
-
- test/unit/tc_variable_declaration.rb
|
542
|
-
- test/unit/theory/tc_theory_action.rb
|
543
|
-
- test/unit/theory/tc_theory_action_implementation.rb
|
544
|
-
- test/unit/theory/tc_theory_chain_validator.rb
|
545
|
-
- test/unit/theory/tc_theory_connector.rb
|
546
|
-
- test/unit/theory/tc_theory_dependent.rb
|
547
|
-
- test/unit/theory/tc_theory_implementation.rb
|
548
|
-
- test/unit/theory/tc_theory_result.rb
|
549
|
-
- test/unit/theory/tc_theory_variable.rb
|
550
|
-
- test/unit/util/tc_method_validation.rb
|
551
|
-
- test/unit/util/tc_parser.rb
|
552
|
-
- test/unit/util/tc_string_to_theory.rb
|
553
|
-
- test/unit/variable/tc_method_usage_variable.rb
|
554
|
-
- tmp/runtime_method_evaluation.rb
|
555
|
-
has_rdoc: true
|
556
110
|
homepage: http://github.com/theinbetweens/cauldron
|
557
|
-
licenses:
|
111
|
+
licenses:
|
558
112
|
- MIT
|
559
113
|
post_install_message:
|
560
114
|
rdoc_options: []
|
561
|
-
|
562
|
-
require_paths:
|
115
|
+
require_paths:
|
563
116
|
- lib
|
564
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
565
118
|
none: false
|
566
|
-
requirements:
|
567
|
-
- -
|
568
|
-
- !ruby/object:Gem::Version
|
569
|
-
|
570
|
-
segments:
|
571
|
-
- 1
|
572
|
-
- 6
|
573
|
-
- 8
|
574
|
-
version: 1.6.8
|
575
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
576
|
-
none: false
|
577
|
-
requirements:
|
578
|
-
- - ">="
|
579
|
-
- !ruby/object:Gem::Version
|
580
|
-
hash: 3
|
581
|
-
segments:
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
segments:
|
582
124
|
- 0
|
583
|
-
|
125
|
+
hash: -3985939915823309173
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
584
132
|
requirements: []
|
585
|
-
|
586
133
|
rubyforge_project:
|
587
|
-
rubygems_version: 1.
|
134
|
+
rubygems_version: 1.8.23
|
588
135
|
signing_key:
|
589
136
|
specification_version: 3
|
590
137
|
summary: Generate simple ruby methods from the input(s) and expected output
|
591
|
-
test_files:
|
592
|
-
|
138
|
+
test_files:
|
139
|
+
- features/cauldron_new_approach.feature
|
140
|
+
- features/step_definitions/cauldron_steps.rb
|
141
|
+
- features/step_definitions/terminal_steps.rb
|
142
|
+
- features/support/env.rb
|
143
|
+
- features/support/hooks.rb
|
144
|
+
- spec/cauldron/array_reverse_operator_spec.rb
|
145
|
+
- spec/cauldron/concat_operator_spec.rb
|
146
|
+
- spec/cauldron/if_relationship_spec.rb
|
147
|
+
- spec/cauldron/numeric_operator_spec.rb
|
148
|
+
- spec/cauldron/pot_spec.rb
|
149
|
+
- spec/cauldron/terminal_spec.rb
|
150
|
+
- spec/examples/adding_if_statement.yml
|
151
|
+
- spec/examples/simple_head_theory.txt
|
152
|
+
- spec/spec_helper.rb
|