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
data/.gitignore
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
|
4
|
+
# rdoc generated
|
5
|
+
rdoc
|
6
|
+
|
7
|
+
# yard generated
|
8
|
+
doc
|
9
|
+
.yardoc
|
10
|
+
|
11
|
+
# bundler
|
12
|
+
.bundle
|
13
|
+
|
14
|
+
# jeweler generated
|
15
|
+
pkg
|
16
|
+
|
17
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
18
|
+
#
|
19
|
+
# * Create a file at ~/.gitignore
|
20
|
+
# * Include files you want ignored
|
21
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
22
|
+
#
|
23
|
+
# After doing this, these files will be ignored in all your git projects,
|
24
|
+
# saving you from having to 'pollute' every project you touch with them
|
25
|
+
#
|
26
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
27
|
+
#
|
28
|
+
# For MacOS:
|
29
|
+
#
|
30
|
+
#.DS_Store
|
31
|
+
|
32
|
+
# For TextMate
|
33
|
+
#*.tmproj
|
34
|
+
#tmtags
|
35
|
+
|
36
|
+
# For emacs:
|
37
|
+
#*~
|
38
|
+
#\#*
|
39
|
+
#.\#*
|
40
|
+
|
41
|
+
# For vim:
|
42
|
+
#*.swp
|
43
|
+
|
44
|
+
# For redcar:
|
45
|
+
#.redcar
|
46
|
+
|
47
|
+
# For rubinius:
|
48
|
+
#*.rbc
|
49
|
+
|
50
|
+
# For Eclipse/Aptana
|
51
|
+
.project
|
data/Gemfile
CHANGED
@@ -9,14 +9,17 @@ source "http://rubygems.org"
|
|
9
9
|
|
10
10
|
# Add dependencies to develop your gem here.
|
11
11
|
# Include everything needed to run rake, tests, features, etc.
|
12
|
-
group :development do
|
13
|
-
gem "shoulda", ">= 0"
|
14
|
-
gem "bundler", "~> 1.0.15"
|
12
|
+
group :development, :cucumber, :test do
|
13
|
+
#gem "shoulda", ">= 0"
|
14
|
+
#gem "bundler", "~> 1.0.15"
|
15
15
|
gem "jeweler", "~> 1.6.2"
|
16
16
|
gem "rspec", "~>2.6.0"
|
17
17
|
gem "rcov", ">= 0"
|
18
18
|
gem "ruby_parser", "~>2.0.6"
|
19
19
|
gem "aruba", "~>0.4.5"
|
20
|
+
#gem 'ruby-debug', '0.10.4'
|
21
|
+
gem 'debugger'
|
22
|
+
gem 'pry'
|
20
23
|
end
|
21
24
|
|
22
25
|
gem "ruby2ruby", "~>1.2.5"
|
data/Gemfile.lock
CHANGED
@@ -12,12 +12,20 @@ GEM
|
|
12
12
|
builder (3.0.0)
|
13
13
|
childprocess (0.2.2)
|
14
14
|
ffi (~> 1.0.6)
|
15
|
+
coderay (1.1.0)
|
16
|
+
columnize (0.3.6)
|
15
17
|
cucumber (1.1.0)
|
16
18
|
builder (>= 2.1.2)
|
17
19
|
diff-lcs (>= 1.1.2)
|
18
20
|
gherkin (~> 2.5.0)
|
19
21
|
json (>= 1.4.6)
|
20
22
|
term-ansicolor (>= 1.0.6)
|
23
|
+
debugger (1.6.5)
|
24
|
+
columnize (>= 0.3.1)
|
25
|
+
debugger-linecache (~> 1.2.0)
|
26
|
+
debugger-ruby_core_source (~> 1.3.1)
|
27
|
+
debugger-linecache (1.2.0)
|
28
|
+
debugger-ruby_core_source (1.3.2)
|
21
29
|
diff-lcs (1.1.2)
|
22
30
|
ffi (1.0.9)
|
23
31
|
gherkin (2.5.1)
|
@@ -28,6 +36,11 @@ GEM
|
|
28
36
|
git (>= 1.2.5)
|
29
37
|
rake
|
30
38
|
json (1.6.1)
|
39
|
+
method_source (0.8.2)
|
40
|
+
pry (0.9.12.6)
|
41
|
+
coderay (~> 1.0)
|
42
|
+
method_source (~> 0.8)
|
43
|
+
slop (~> 3.4)
|
31
44
|
rack (1.3.4)
|
32
45
|
rake (0.9.2)
|
33
46
|
rcov (0.9.9)
|
@@ -46,7 +59,7 @@ GEM
|
|
46
59
|
ruby_parser (2.0.6)
|
47
60
|
sexp_processor (~> 3.0)
|
48
61
|
sexp_processor (3.0.5)
|
49
|
-
|
62
|
+
slop (3.4.7)
|
50
63
|
term-ansicolor (1.0.6)
|
51
64
|
|
52
65
|
PLATFORMS
|
@@ -54,10 +67,10 @@ PLATFORMS
|
|
54
67
|
|
55
68
|
DEPENDENCIES
|
56
69
|
aruba (~> 0.4.5)
|
57
|
-
|
70
|
+
debugger
|
58
71
|
jeweler (~> 1.6.2)
|
72
|
+
pry
|
59
73
|
rcov
|
60
74
|
rspec (~> 2.6.0)
|
61
75
|
ruby2ruby (~> 1.2.5)
|
62
76
|
ruby_parser (~> 2.0.6)
|
63
|
-
shoulda
|
data/Rakefile
CHANGED
@@ -1,106 +1,108 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require
|
4
|
-
require 'bundler'
|
5
|
-
|
6
|
-
# => TODO This need to be above the bundler for some reason
|
7
|
-
require "rspec"
|
8
|
-
require "rspec/core/rake_task"
|
9
|
-
|
10
|
-
require 'lib/cauldron'
|
11
|
-
|
12
|
-
# => TODO Should check whether this needs to be here
|
13
|
-
begin
|
14
|
-
Bundler.setup(:default, :development)
|
15
|
-
rescue Bundler::BundlerError => e
|
16
|
-
$stderr.puts e.message
|
17
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
18
|
-
exit e.status_code
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'rake'
|
22
|
-
|
23
|
-
$LOAD_PATH << File.expand_path('../lib',__FILE__)
|
24
|
-
|
25
|
-
load File.join(File.dirname(__FILE__), 'tasks', 'theory_tasks.rake')
|
26
|
-
|
27
|
-
require 'jeweler'
|
28
|
-
Jeweler::Tasks.new do |gem|
|
29
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
30
|
-
gem.name = "cauldron"
|
31
|
-
gem.homepage = "http://github.com/theinbetweens/cauldron"
|
32
|
-
gem.license = "MIT"
|
33
|
-
gem.summary = %Q{Generate simple ruby methods from the input(s) and expected output}
|
34
|
-
gem.description = %Q{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.}
|
35
|
-
gem.email = "warrensangster@yahoo.com"
|
36
|
-
gem.authors = ["Warren Sangster"]
|
37
|
-
gem.required_ruby_version = '>= 1.6.8'
|
38
|
-
# dependencies defined in Gemfile
|
39
|
-
end
|
40
|
-
Jeweler::RubygemsDotOrgTasks.new
|
41
|
-
|
42
|
-
# require 'rake/testtask'
|
43
|
-
# Rake::TestTask.new(:test) do |test|
|
44
|
-
# test.libs << 'lib' << 'test'
|
45
|
-
# test.pattern = 'test/**/test_*.rb'
|
46
|
-
# test.verbose = true
|
47
|
-
# end
|
3
|
+
require "bundler/gem_tasks"
|
48
4
|
|
49
|
-
# require '
|
50
|
-
#
|
51
|
-
# #test.libs << 'test'
|
52
|
-
# #test.pattern = 'test/**/test_*.rb'
|
53
|
-
# test.libs << 'spec'
|
54
|
-
# test.pattern = 'spec/**/*.rb'
|
55
|
-
# test.verbose = true
|
56
|
-
# test.rcov_opts << '--exclude "gems/*"'
|
57
|
-
# end
|
5
|
+
# require 'rubygems'
|
6
|
+
# require 'bundler'
|
58
7
|
|
59
|
-
#
|
8
|
+
# # => TODO This need to be above the bundler for some reason
|
9
|
+
# require "rspec"
|
10
|
+
# require "rspec/core/rake_task"
|
60
11
|
|
61
|
-
require '
|
62
|
-
Rake::RDocTask.new do |rdoc|
|
63
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
12
|
+
# require 'lib/cauldron'
|
64
13
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
14
|
+
# # => TODO Should check whether this needs to be here
|
15
|
+
# begin
|
16
|
+
# Bundler.setup(:default, :development)
|
17
|
+
# rescue Bundler::BundlerError => e
|
18
|
+
# $stderr.puts e.message
|
19
|
+
# $stderr.puts "Run `bundle install` to install missing gems"
|
20
|
+
# exit e.status_code
|
21
|
+
# end
|
70
22
|
|
71
|
-
#
|
72
|
-
RSpec::Core::RakeTask.new(:core) do |spec|
|
73
|
-
spec.pattern = 'spec/cauldron/*_spec.rb'
|
74
|
-
spec.rspec_opts = ['--backtrace']
|
75
|
-
end
|
23
|
+
# require 'rake'
|
76
24
|
|
77
|
-
#
|
78
|
-
# spec.pattern = 'spec/cauldron/*_spec.rb'
|
79
|
-
# spec.rspec_opts = ['--backtrace']
|
80
|
-
# end
|
25
|
+
# $LOAD_PATH << File.expand_path('../lib',__FILE__)
|
81
26
|
|
82
|
-
|
83
|
-
t.rcov = true
|
84
|
-
#t.rcov_opts = %q[--exclude "spec"]
|
85
|
-
t.verbose = true
|
86
|
-
end
|
27
|
+
# load File.join(File.dirname(__FILE__), 'tasks', 'theory_tasks.rake')
|
87
28
|
|
88
|
-
#
|
29
|
+
# require 'jeweler'
|
30
|
+
# Jeweler::Tasks.new do |gem|
|
31
|
+
# # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
32
|
+
# gem.name = "cauldron"
|
33
|
+
# gem.homepage = "http://github.com/theinbetweens/cauldron"
|
34
|
+
# gem.license = "MIT"
|
35
|
+
# gem.summary = %Q{Generate simple ruby methods from the input(s) and expected output}
|
36
|
+
# gem.description = %Q{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.}
|
37
|
+
# gem.email = "warrensangster@yahoo.com"
|
38
|
+
# gem.authors = ["Warren Sangster"]
|
39
|
+
# gem.required_ruby_version = '>= 1.6.8'
|
40
|
+
# # dependencies defined in Gemfile
|
41
|
+
# end
|
42
|
+
# Jeweler::RubygemsDotOrgTasks.new
|
43
|
+
|
44
|
+
# # require 'rake/testtask'
|
45
|
+
# # Rake::TestTask.new(:test) do |test|
|
46
|
+
# # test.libs << 'lib' << 'test'
|
47
|
+
# # test.pattern = 'test/**/test_*.rb'
|
48
|
+
# # test.verbose = true
|
49
|
+
# # end
|
50
|
+
|
51
|
+
# # require 'rcov/rcovtask'
|
52
|
+
# # Rcov::RcovTask.new do |test|
|
53
|
+
# # #test.libs << 'test'
|
54
|
+
# # #test.pattern = 'test/**/test_*.rb'
|
55
|
+
# # test.libs << 'spec'
|
56
|
+
# # test.pattern = 'spec/**/*.rb'
|
57
|
+
# # test.verbose = true
|
58
|
+
# # test.rcov_opts << '--exclude "gems/*"'
|
59
|
+
# # end
|
60
|
+
|
61
|
+
# #task :default => :test
|
62
|
+
|
63
|
+
# require 'rake/rdoctask'
|
64
|
+
# Rake::RDocTask.new do |rdoc|
|
65
|
+
# version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
66
|
+
|
67
|
+
# rdoc.rdoc_dir = 'rdoc'
|
68
|
+
# rdoc.title = "cauldron #{version}"
|
69
|
+
# rdoc.rdoc_files.include('README*')
|
70
|
+
# rdoc.rdoc_files.include('lib/**/*.rb')
|
71
|
+
# end
|
89
72
|
|
90
|
-
#
|
91
|
-
# RSpec::Core::RakeTask.new(:
|
92
|
-
|
73
|
+
# # => http://pivotallabs.com/users/alex/blog/articles/1451-upgrading-your-rakefile-from-rspec-1-3-to-rspec-2
|
74
|
+
# RSpec::Core::RakeTask.new(:core) do |spec|
|
75
|
+
# spec.pattern = 'spec/cauldron/*_spec.rb'
|
76
|
+
# spec.rspec_opts = ['--backtrace']
|
93
77
|
# end
|
94
78
|
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
|
100
|
-
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# t.rcov = true
|
105
|
-
# t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/}
|
79
|
+
# # RSpec::Core::RakeTask.new(:rcov) do |spec|
|
80
|
+
# # spec.pattern = 'spec/cauldron/*_spec.rb'
|
81
|
+
# # spec.rspec_opts = ['--backtrace']
|
82
|
+
# # end
|
83
|
+
|
84
|
+
# RSpec::Core::RakeTask.new(:coverage) do |t|
|
85
|
+
# t.rcov = true
|
86
|
+
# #t.rcov_opts = %q[--exclude "spec"]
|
87
|
+
# t.verbose = true
|
106
88
|
# end
|
89
|
+
|
90
|
+
# # => =====================
|
91
|
+
|
92
|
+
# # desc "Run all specs with rcov"
|
93
|
+
# # RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
|
94
|
+
# # t.rcov = true
|
95
|
+
# # end
|
96
|
+
|
97
|
+
# # => http://stackoverflow.com/questions/3058676/rcov-with-rspec-2
|
98
|
+
# #require 'spec-core'
|
99
|
+
# #require 'rubygems'
|
100
|
+
# #require 'rspec'
|
101
|
+
# #require 'rspec/core'
|
102
|
+
|
103
|
+
# #
|
104
|
+
# # desc "Run all specs with rcov"
|
105
|
+
# # RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
|
106
|
+
# # t.rcov = true
|
107
|
+
# # t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/}
|
108
|
+
# # end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/bin/cauldron
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path('../../lib',__FILE__)
|
|
4
4
|
|
5
5
|
require 'cauldron'
|
6
6
|
|
7
|
-
StandardLogger.instance.level = Logger::FATAL
|
7
|
+
#StandardLogger.instance.level = Logger::FATAL
|
8
8
|
|
9
|
-
cauldron = Cauldron::Terminal.new(STDOUT
|
9
|
+
cauldron = Cauldron::Terminal.new(STDOUT)
|
10
10
|
cauldron.start
|
data/cauldron.gemspec
CHANGED
@@ -1,463 +1,27 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cauldron/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cauldron}
|
8
|
-
s.version =
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.version = Cauldron::VERSION
|
11
9
|
s.authors = ["Warren Sangster"]
|
12
|
-
s.
|
13
|
-
s.default_executable = %q{cauldron}
|
10
|
+
#s.default_executable = %q{cauldron}
|
14
11
|
s.description = %q{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.}
|
15
12
|
s.email = %q{warrensangster@yahoo.com}
|
16
|
-
s.executables = ["cauldron"]
|
17
|
-
s.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
]
|
22
|
-
s.files = [
|
23
|
-
".document",
|
24
|
-
"Gemfile",
|
25
|
-
"Gemfile.lock",
|
26
|
-
"History.md",
|
27
|
-
"LICENSE.txt",
|
28
|
-
"README",
|
29
|
-
"README.rdoc",
|
30
|
-
"Rakefile",
|
31
|
-
"VERSION",
|
32
|
-
"bin/cauldron",
|
33
|
-
"cauldron.gemspec",
|
34
|
-
"cauldron/.autotest",
|
35
|
-
"cauldron/History.txt",
|
36
|
-
"cauldron/Manifest.txt",
|
37
|
-
"cauldron/README.txt",
|
38
|
-
"cauldron/Rakefile",
|
39
|
-
"cauldron/bin/cauldron",
|
40
|
-
"cauldron/lib/cauldron.rb",
|
41
|
-
"cauldron/test/test_cauldron.rb",
|
42
|
-
"features/cauldron_example_cases.feature",
|
43
|
-
"features/cauldron_generates_runtime_method.feature",
|
44
|
-
"features/cauldron_generates_single_paramter_methods.feature",
|
45
|
-
"features/cauldron_interactive_start_terminal.feature",
|
46
|
-
"features/cauldron_quit_terminal.feature",
|
47
|
-
"features/cauldron_start_terminal.feature",
|
48
|
-
"features/step_definitions/cauldron_steps.rb",
|
49
|
-
"features/step_definitions/terminal_steps.rb",
|
50
|
-
"features/support/env.rb",
|
51
|
-
"features/support/hooks.rb",
|
52
|
-
"features/support/method_1.example",
|
53
|
-
"features/support/method_2.example",
|
54
|
-
"lib/Chain.rb",
|
55
|
-
"lib/ChainMapping.rb",
|
56
|
-
"lib/CodeHandler.rb",
|
57
|
-
"lib/Mapping.rb",
|
58
|
-
"lib/MappingValues.rb",
|
59
|
-
"lib/PartialChain.rb",
|
60
|
-
"lib/Theory.rb",
|
61
|
-
"lib/UnifiedChain.rb",
|
62
|
-
"lib/cauldron.rb",
|
63
|
-
"lib/cauldron/conversion.rb",
|
64
|
-
"lib/cauldron/demos.rb",
|
65
|
-
"lib/cauldron/env.rb",
|
66
|
-
"lib/cauldron/pot.rb",
|
67
|
-
"lib/cauldron/sexp2cauldron.rb",
|
68
|
-
"lib/cauldron/terminal.rb",
|
69
|
-
"lib/cauldron/theory_factory.rb",
|
70
|
-
"lib/cauldron/util/home.rb",
|
71
|
-
"lib/cauldron/util/saver.rb",
|
72
|
-
"lib/core/ActsAsCode.rb",
|
73
|
-
"lib/core/BlockToken.rb",
|
74
|
-
"lib/core/CCall.rb",
|
75
|
-
"lib/core/CTestCase.rb",
|
76
|
-
"lib/core/ClassMethodCallContainer.rb",
|
77
|
-
"lib/core/Container.rb",
|
78
|
-
"lib/core/InstanceCallContainer.rb",
|
79
|
-
"lib/core/MethodUsage.rb",
|
80
|
-
"lib/core/PrintVariables.rb",
|
81
|
-
"lib/core/TheoryGenerator.rb",
|
82
|
-
"lib/core/Token.rb",
|
83
|
-
"lib/core/assignment/Assignment.rb",
|
84
|
-
"lib/core/assignment/Equal.rb",
|
85
|
-
"lib/core/assignment/Equivalent.rb",
|
86
|
-
"lib/core/assignment/NotEqual.rb",
|
87
|
-
"lib/core/call_container/CallContainer.rb",
|
88
|
-
"lib/core/class_method_call/New.rb",
|
89
|
-
"lib/core/class_method_call/RuntimeClassMethodCall.rb",
|
90
|
-
"lib/core/declaration/Declaration.rb",
|
91
|
-
"lib/core/declaration/LiteralDeclaration.rb",
|
92
|
-
"lib/core/declaration/VariableDeclaration.rb",
|
93
|
-
"lib/core/instance_call/ArrayEach.rb",
|
94
|
-
"lib/core/instance_call/ArrayLength.rb",
|
95
|
-
"lib/core/instance_call/Chop.rb",
|
96
|
-
"lib/core/instance_call/Copy.rb",
|
97
|
-
"lib/core/instance_call/DeclaredVariable.rb",
|
98
|
-
"lib/core/instance_call/InstanceCall.rb",
|
99
|
-
"lib/core/instance_call/Params.rb",
|
100
|
-
"lib/core/instance_call/Push.rb",
|
101
|
-
"lib/core/instance_call/StringLength.rb",
|
102
|
-
"lib/core/instance_call/Times.rb",
|
103
|
-
"lib/core/instance_call/instance_calls.rb",
|
104
|
-
"lib/core/instance_call/length_equal.rb",
|
105
|
-
"lib/core/kernal/EvalCall.rb",
|
106
|
-
"lib/core/kernal/LocalVariablesCall.rb",
|
107
|
-
"lib/core/literal/Literal.rb",
|
108
|
-
"lib/core/literal/Raw.rb",
|
109
|
-
"lib/core/literal/RuntimeMethodLiteral.rb",
|
110
|
-
"lib/core/literal/StatementLiteral.rb",
|
111
|
-
"lib/core/method_call/AvailableVariablesCall.rb",
|
112
|
-
"lib/core/method_call/ClassCall.rb",
|
113
|
-
"lib/core/method_call/DefCall.rb",
|
114
|
-
"lib/core/method_call/EvaluateClassCall.rb",
|
115
|
-
"lib/core/method_call/MethodNameCall.rb",
|
116
|
-
"lib/core/method_call/ToDeclarationCall.rb",
|
117
|
-
"lib/core/requirement/Requirement.rb",
|
118
|
-
"lib/core/runtime_class/ArrayClass.rb",
|
119
|
-
"lib/core/runtime_class/ClassCallClass.rb",
|
120
|
-
"lib/core/runtime_class/ClassEvaluationClass.rb",
|
121
|
-
"lib/core/runtime_class/ClassName.rb",
|
122
|
-
"lib/core/runtime_class/DefCallClass.rb",
|
123
|
-
"lib/core/runtime_class/EqualClass.rb",
|
124
|
-
"lib/core/runtime_class/FixnumClass.rb",
|
125
|
-
"lib/core/runtime_class/InstanceCallClass.rb",
|
126
|
-
"lib/core/runtime_class/InstanceCallContainerClass.rb",
|
127
|
-
"lib/core/runtime_class/InstanceClassCallClass.rb",
|
128
|
-
"lib/core/runtime_class/LiteralClass.rb",
|
129
|
-
"lib/core/runtime_class/MethodParameterClass.rb",
|
130
|
-
"lib/core/runtime_class/MethodUsageClass.rb",
|
131
|
-
"lib/core/runtime_class/RequirementClass.rb",
|
132
|
-
"lib/core/runtime_class/ReturnClass.rb",
|
133
|
-
"lib/core/runtime_class/RuntimeClass.rb",
|
134
|
-
"lib/core/runtime_class/RuntimeClassClass.rb",
|
135
|
-
"lib/core/runtime_class/RuntimeMethodClass.rb",
|
136
|
-
"lib/core/runtime_class/StatementClass.rb",
|
137
|
-
"lib/core/runtime_class/StringClass.rb",
|
138
|
-
"lib/core/runtime_class/StringLengthClass.rb",
|
139
|
-
"lib/core/runtime_class/StringVariableClass.rb",
|
140
|
-
"lib/core/runtime_class/ThisClass.rb",
|
141
|
-
"lib/core/runtime_class/UnknownClass.rb",
|
142
|
-
"lib/core/runtime_class/class_names.rb",
|
143
|
-
"lib/core/runtime_class/runtime_class.rb",
|
144
|
-
"lib/core/runtime_method/ActsAsRuntimeMethod.rb",
|
145
|
-
"lib/core/runtime_method/ParametersContainer.rb",
|
146
|
-
"lib/core/runtime_method/RealisedRuntimeMethod.rb",
|
147
|
-
"lib/core/runtime_method/RuntimeMethod.rb",
|
148
|
-
"lib/core/runtime_method/WriteParameters.rb",
|
149
|
-
"lib/core/statement/ActsAsStatement.rb",
|
150
|
-
"lib/core/statement/ArrayAccess.rb",
|
151
|
-
"lib/core/statement/BlockStatement.rb",
|
152
|
-
"lib/core/statement/DeclarationStatement.rb",
|
153
|
-
"lib/core/statement/HackStatement.rb",
|
154
|
-
"lib/core/statement/HashAccess.rb",
|
155
|
-
"lib/core/statement/OpenStatement.rb",
|
156
|
-
"lib/core/statement/RealisedStatement.rb",
|
157
|
-
"lib/core/statement/SingleLineBlockStatement.rb",
|
158
|
-
"lib/core/statement/Statement.rb",
|
159
|
-
"lib/core/statement/StatementGroup.rb",
|
160
|
-
"lib/core/statement/StatementStructure2.rb",
|
161
|
-
"lib/core/statement/TheoryStatement.rb",
|
162
|
-
"lib/core/statement/TopologicalStatements.rb",
|
163
|
-
"lib/core/syntax/Addition.rb",
|
164
|
-
"lib/core/syntax/BlockContainer.rb",
|
165
|
-
"lib/core/syntax/Boolean.rb",
|
166
|
-
"lib/core/syntax/Code.rb",
|
167
|
-
"lib/core/syntax/Do.rb",
|
168
|
-
"lib/core/syntax/False.rb",
|
169
|
-
"lib/core/syntax/If.rb",
|
170
|
-
"lib/core/syntax/Nil.rb",
|
171
|
-
"lib/core/syntax/Return.rb",
|
172
|
-
"lib/core/syntax/Subtract.rb",
|
173
|
-
"lib/core/syntax/This.rb",
|
174
|
-
"lib/core/syntax/True.rb",
|
175
|
-
"lib/core/syntax/syntax.rb",
|
176
|
-
"lib/core/tracking/ActsAsTrackable.rb",
|
177
|
-
"lib/core/tracking/History.rb",
|
178
|
-
"lib/core/tracking/RuntimeTrackingMethod.rb",
|
179
|
-
"lib/core/tracking/Step.rb",
|
180
|
-
"lib/core/variable/ArrayVariable.rb",
|
181
|
-
"lib/core/variable/BaseVariable.rb",
|
182
|
-
"lib/core/variable/BlockVariable.rb",
|
183
|
-
"lib/core/variable/FixnumVariable.rb",
|
184
|
-
"lib/core/variable/HistoryVariable.rb",
|
185
|
-
"lib/core/variable/MethodParameter.rb",
|
186
|
-
"lib/core/variable/MethodUsageVariable.rb",
|
187
|
-
"lib/core/variable/NilVariable.rb",
|
188
|
-
"lib/core/variable/RuntimeMethodParameter.rb",
|
189
|
-
"lib/core/variable/StatementVariable.rb",
|
190
|
-
"lib/core/variable/StepVariable.rb",
|
191
|
-
"lib/core/variable/StringVariable.rb",
|
192
|
-
"lib/core/variable/TypeVariable.rb",
|
193
|
-
"lib/core/variable/Unknown.rb",
|
194
|
-
"lib/core/variable/UnknownVariable.rb",
|
195
|
-
"lib/core/variable/Variable.rb",
|
196
|
-
"lib/core/variable/VariableContainer.rb",
|
197
|
-
"lib/core/variable/VariableIncluded.rb",
|
198
|
-
"lib/core/variable/VariableReference.rb",
|
199
|
-
"lib/error/FailedToFindStatementContainerError.rb",
|
200
|
-
"lib/error/FailedToFindStatementError.rb",
|
201
|
-
"lib/error/FailedToFindVariableError.rb",
|
202
|
-
"lib/error/FailedToLiteraliseError.rb",
|
203
|
-
"lib/error/FailedVariableMatch.rb",
|
204
|
-
"lib/error/ImproperStatementUsageError.rb",
|
205
|
-
"lib/error/IncompatiableRequirementsError.rb",
|
206
|
-
"lib/error/InvalidStatementError.rb",
|
207
|
-
"lib/error/MethodSizeError.rb",
|
208
|
-
"lib/error/RuntimeSyntaxError.rb",
|
209
|
-
"lib/error/UnexpectedStatementTypeError.rb",
|
210
|
-
"lib/error/UnknownStatementType.rb",
|
211
|
-
"lib/error/UnliteralisableError.rb",
|
212
|
-
"lib/implemented_chain.rb",
|
213
|
-
"lib/intrinsic/IntrinsicLastRuntimeMethod.rb",
|
214
|
-
"lib/intrinsic/IntrinsicLiteral.rb",
|
215
|
-
"lib/intrinsic/IntrinsicObject.rb",
|
216
|
-
"lib/intrinsic/IntrinsicRuntimeMethod.rb",
|
217
|
-
"lib/intrinsic/IntrinsicTestCases.rb",
|
218
|
-
"lib/logger/StandardLogger.rb",
|
219
|
-
"lib/required.rb",
|
220
|
-
"lib/ruby_code/Array.rb",
|
221
|
-
"lib/ruby_code/Fixnum.rb",
|
222
|
-
"lib/ruby_code/Hash.rb",
|
223
|
-
"lib/ruby_code/NilClass.rb",
|
224
|
-
"lib/ruby_code/Object.rb",
|
225
|
-
"lib/ruby_code/String.rb",
|
226
|
-
"lib/ruby_code/Symbol.rb",
|
227
|
-
"lib/standard_library/Tasks.rb",
|
228
|
-
"lib/theories.rb",
|
229
|
-
"lib/theory/ActionImplementation.rb",
|
230
|
-
"lib/theory/TheoryAction.rb",
|
231
|
-
"lib/theory/TheoryChainValidator.rb",
|
232
|
-
"lib/theory/TheoryComponent.rb",
|
233
|
-
"lib/theory/TheoryConnector.rb",
|
234
|
-
"lib/theory/TheoryDependent.rb",
|
235
|
-
"lib/theory/TheoryImplementation.rb",
|
236
|
-
"lib/theory/TheoryResult.rb",
|
237
|
-
"lib/theory/TheoryVariable.rb",
|
238
|
-
"lib/theory/theory_collection.rb",
|
239
|
-
"lib/util/ClassEvaluation.rb",
|
240
|
-
"lib/util/CodeEvaluation.rb",
|
241
|
-
"lib/util/DeclarationStatementEvaluation.rb",
|
242
|
-
"lib/util/MethodEvaluation.rb",
|
243
|
-
"lib/util/MethodTester.rb",
|
244
|
-
"lib/util/MethodValidation.rb",
|
245
|
-
"lib/util/MethodWriter.rb",
|
246
|
-
"lib/util/Parser.rb",
|
247
|
-
"lib/util/StatementCheck.rb",
|
248
|
-
"lib/util/StringToTheory.rb",
|
249
|
-
"lib/util/System.rb",
|
250
|
-
"sandbox.rb",
|
251
|
-
"spec/cauldron/chain_spec.rb",
|
252
|
-
"spec/cauldron/demos_spec.rb",
|
253
|
-
"spec/cauldron/pot_spec.rb",
|
254
|
-
"spec/cauldron/runtime_method_spec.rb",
|
255
|
-
"spec/cauldron/saver_spec.rb",
|
256
|
-
"spec/cauldron/sexp_2_cauldron_spec.rb",
|
257
|
-
"spec/cauldron/terminal_spec.rb",
|
258
|
-
"spec/cauldron/theory_action_spec.rb",
|
259
|
-
"spec/cauldron/theory_connector_spec.rb",
|
260
|
-
"spec/cauldron/theory_spec.rb",
|
261
|
-
"spec/cauldron/unified_chain_spec.rb",
|
262
|
-
"spec/spec_helper.rb",
|
263
|
-
"tasks/development_tasks.rake",
|
264
|
-
"tasks/theory_tasks.rake",
|
265
|
-
"test/fixtures/chains/1/declaration.txt",
|
266
|
-
"test/fixtures/chains/1/dump",
|
267
|
-
"test/fixtures/chains/2/declaration.txt",
|
268
|
-
"test/fixtures/chains/2/dump",
|
269
|
-
"test/fixtures/chains/3/declaration.txt",
|
270
|
-
"test/fixtures/chains/3/dump",
|
271
|
-
"test/fixtures/implementation_results/0/declaration.txt",
|
272
|
-
"test/fixtures/implementation_results/0/dump",
|
273
|
-
"test/fixtures/theories/0/declaration.txt",
|
274
|
-
"test/fixtures/theories/0/desc",
|
275
|
-
"test/fixtures/theories/0/dump",
|
276
|
-
"test/fixtures/theories/1/declaration.txt",
|
277
|
-
"test/fixtures/theories/1/desc",
|
278
|
-
"test/fixtures/theories/1/dump",
|
279
|
-
"test/fixtures/theories/10/declaration.txt",
|
280
|
-
"test/fixtures/theories/10/desc",
|
281
|
-
"test/fixtures/theories/10/dump",
|
282
|
-
"test/fixtures/theories/11/declaration.txt",
|
283
|
-
"test/fixtures/theories/11/desc",
|
284
|
-
"test/fixtures/theories/11/dump",
|
285
|
-
"test/fixtures/theories/12/declaration.txt",
|
286
|
-
"test/fixtures/theories/12/desc",
|
287
|
-
"test/fixtures/theories/12/dump",
|
288
|
-
"test/fixtures/theories/13/declaration.txt",
|
289
|
-
"test/fixtures/theories/13/desc",
|
290
|
-
"test/fixtures/theories/13/dump",
|
291
|
-
"test/fixtures/theories/14/declaration.txt",
|
292
|
-
"test/fixtures/theories/14/desc",
|
293
|
-
"test/fixtures/theories/14/dump",
|
294
|
-
"test/fixtures/theories/15/declaration.txt",
|
295
|
-
"test/fixtures/theories/15/desc",
|
296
|
-
"test/fixtures/theories/15/dump",
|
297
|
-
"test/fixtures/theories/16/declaration.txt",
|
298
|
-
"test/fixtures/theories/16/desc",
|
299
|
-
"test/fixtures/theories/16/dump",
|
300
|
-
"test/fixtures/theories/17/declaration.txt",
|
301
|
-
"test/fixtures/theories/17/desc",
|
302
|
-
"test/fixtures/theories/17/dump",
|
303
|
-
"test/fixtures/theories/18/declaration.txt",
|
304
|
-
"test/fixtures/theories/18/desc",
|
305
|
-
"test/fixtures/theories/18/dump",
|
306
|
-
"test/fixtures/theories/19/declaration.txt",
|
307
|
-
"test/fixtures/theories/19/desc",
|
308
|
-
"test/fixtures/theories/19/dump",
|
309
|
-
"test/fixtures/theories/2/declaration.txt",
|
310
|
-
"test/fixtures/theories/2/desc",
|
311
|
-
"test/fixtures/theories/2/dump",
|
312
|
-
"test/fixtures/theories/20/declaration.txt",
|
313
|
-
"test/fixtures/theories/20/desc",
|
314
|
-
"test/fixtures/theories/20/dump",
|
315
|
-
"test/fixtures/theories/3/declaration.txt",
|
316
|
-
"test/fixtures/theories/3/desc",
|
317
|
-
"test/fixtures/theories/3/dump",
|
318
|
-
"test/fixtures/theories/4/declaration.txt",
|
319
|
-
"test/fixtures/theories/4/desc",
|
320
|
-
"test/fixtures/theories/4/dump",
|
321
|
-
"test/fixtures/theories/5/declaration.txt",
|
322
|
-
"test/fixtures/theories/5/desc",
|
323
|
-
"test/fixtures/theories/5/dump",
|
324
|
-
"test/fixtures/theories/6/declaration.txt",
|
325
|
-
"test/fixtures/theories/6/desc",
|
326
|
-
"test/fixtures/theories/6/dump",
|
327
|
-
"test/fixtures/theories/7/declaration.txt",
|
328
|
-
"test/fixtures/theories/7/desc",
|
329
|
-
"test/fixtures/theories/7/dump",
|
330
|
-
"test/fixtures/theories/8/declaration.txt",
|
331
|
-
"test/fixtures/theories/8/desc",
|
332
|
-
"test/fixtures/theories/8/dump",
|
333
|
-
"test/fixtures/theories/9/declaration.txt",
|
334
|
-
"test/fixtures/theories/9/desc",
|
335
|
-
"test/fixtures/theories/9/dump",
|
336
|
-
"test/fixtures/theory_implementations/0/declaration.txt",
|
337
|
-
"test/fixtures/theory_implementations/0/desc.txt",
|
338
|
-
"test/fixtures/theory_implementations/0/dump",
|
339
|
-
"test/fixtures/theory_implementations/0/theory_id",
|
340
|
-
"test/fixtures/theory_implementations/1/declaration.txt",
|
341
|
-
"test/fixtures/theory_implementations/1/desc.txt",
|
342
|
-
"test/fixtures/theory_implementations/1/dump",
|
343
|
-
"test/fixtures/theory_implementations/1/theory_id",
|
344
|
-
"test/fixtures/theory_implementations/2/declaration.txt",
|
345
|
-
"test/fixtures/theory_implementations/2/desc.txt",
|
346
|
-
"test/fixtures/theory_implementations/2/dump",
|
347
|
-
"test/fixtures/theory_implementations/2/theory_id",
|
348
|
-
"test/output/simple_method.txt",
|
349
|
-
"test/output/test_method/first_possible_method.txt",
|
350
|
-
"test/output/test_simple_cases/simple_case_01.txt",
|
351
|
-
"test/output/test_simple_cases/simple_case_02.txt",
|
352
|
-
"test/output/test_simple_cases/simple_case_03.txt",
|
353
|
-
"test/output/test_simple_cases/simple_case_04.txt",
|
354
|
-
"test/output/test_simple_cases/simple_case_05.txt",
|
355
|
-
"test/output/test_simple_cases/simple_case_06.txt",
|
356
|
-
"test/output/test_simple_cases/simple_case_07.txt",
|
357
|
-
"test/output/test_simple_cases/simple_case_08.txt",
|
358
|
-
"test/tc_describe.rb",
|
359
|
-
"test/tc_method.rb",
|
360
|
-
"test/tc_requirement.rb",
|
361
|
-
"test/tc_suite_complete.rb",
|
362
|
-
"test/tc_variable.rb",
|
363
|
-
"test/ts_complete.rb",
|
364
|
-
"test/ts_stable.rb",
|
365
|
-
"test/unit/core/declaration/tc_literal_declaration.rb",
|
366
|
-
"test/unit/core/method_call/tc_class_call.rb",
|
367
|
-
"test/unit/core/runtime_method/tc_realised_runtime_method.rb",
|
368
|
-
"test/unit/core/runtime_method/tc_runtime_method.rb",
|
369
|
-
"test/unit/core/statement/tc_array_access.rb",
|
370
|
-
"test/unit/core/statement/tc_block_statement.rb",
|
371
|
-
"test/unit/core/statement/tc_hack_statement.rb",
|
372
|
-
"test/unit/core/statement/tc_open_statement.rb",
|
373
|
-
"test/unit/core/statement/tc_statement.rb",
|
374
|
-
"test/unit/core/statement/tc_statement_group.rb",
|
375
|
-
"test/unit/core/statement/tc_statement_replace_variable.rb",
|
376
|
-
"test/unit/core/statement/tc_theory_statement.rb",
|
377
|
-
"test/unit/core/syntax/tc_block_container.rb",
|
378
|
-
"test/unit/core/syntax/tc_if_container.rb",
|
379
|
-
"test/unit/core/tc_class_method_call.rb",
|
380
|
-
"test/unit/core/tc_container.rb",
|
381
|
-
"test/unit/core/tc_ctest_case.rb",
|
382
|
-
"test/unit/core/tc_instance_call_container.rb",
|
383
|
-
"test/unit/core/tc_literal.rb",
|
384
|
-
"test/unit/core/tc_theory_generator.rb",
|
385
|
-
"test/unit/core/tc_theory_generator_heavy.rb",
|
386
|
-
"test/unit/core/tracking/tc_history.rb",
|
387
|
-
"test/unit/core/tracking/tc_step.rb",
|
388
|
-
"test/unit/core/variable/tc_array_variable.rb",
|
389
|
-
"test/unit/core/variable/tc_block_variable.rb",
|
390
|
-
"test/unit/core/variable/tc_fixnum_variable.rb",
|
391
|
-
"test/unit/core/variable/tc_method_parameter_variable.rb",
|
392
|
-
"test/unit/core/variable/tc_runtime_method_variable.rb",
|
393
|
-
"test/unit/core/variable/tc_string_variable.rb",
|
394
|
-
"test/unit/core/variable/tc_unknown.rb",
|
395
|
-
"test/unit/core/variable/tc_variable_reference.rb",
|
396
|
-
"test/unit/ruby_code/tc_array.rb",
|
397
|
-
"test/unit/ruby_code/tc_fixnum.rb",
|
398
|
-
"test/unit/ruby_code/tc_hash.rb",
|
399
|
-
"test/unit/ruby_code/tc_string.rb",
|
400
|
-
"test/unit/tc_chain.rb",
|
401
|
-
"test/unit/tc_chain_mapping.rb",
|
402
|
-
"test/unit/tc_chain_with_case_1.rb",
|
403
|
-
"test/unit/tc_instance_call.rb",
|
404
|
-
"test/unit/tc_method_usage.rb",
|
405
|
-
"test/unit/tc_pot.rb",
|
406
|
-
"test/unit/tc_runtime_tracking_method.rb",
|
407
|
-
"test/unit/tc_theory.rb",
|
408
|
-
"test/unit/tc_variable_declaration.rb",
|
409
|
-
"test/unit/theory/tc_theory_action.rb",
|
410
|
-
"test/unit/theory/tc_theory_action_implementation.rb",
|
411
|
-
"test/unit/theory/tc_theory_chain_validator.rb",
|
412
|
-
"test/unit/theory/tc_theory_connector.rb",
|
413
|
-
"test/unit/theory/tc_theory_dependent.rb",
|
414
|
-
"test/unit/theory/tc_theory_implementation.rb",
|
415
|
-
"test/unit/theory/tc_theory_result.rb",
|
416
|
-
"test/unit/theory/tc_theory_variable.rb",
|
417
|
-
"test/unit/util/tc_method_validation.rb",
|
418
|
-
"test/unit/util/tc_parser.rb",
|
419
|
-
"test/unit/util/tc_string_to_theory.rb",
|
420
|
-
"test/unit/variable/tc_method_usage_variable.rb",
|
421
|
-
"tmp/runtime_method_evaluation.rb"
|
422
|
-
]
|
13
|
+
#s.executables = ["cauldron"]
|
14
|
+
s.files = `git ls-files`.split($/)
|
15
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
17
|
+
s.require_paths = ["lib"]
|
423
18
|
s.homepage = %q{http://github.com/theinbetweens/cauldron}
|
424
|
-
s.licenses = ["MIT"]
|
425
|
-
s.require_paths = ["lib"]
|
426
|
-
s.required_ruby_version = Gem::Requirement.new(">= 1.6.8")
|
19
|
+
s.licenses = ["MIT"]
|
427
20
|
s.rubygems_version = %q{1.4.0}
|
428
21
|
s.summary = %q{Generate simple ruby methods from the input(s) and expected output}
|
429
22
|
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
434
|
-
s.add_runtime_dependency(%q<ruby2ruby>, ["~> 1.2.5"])
|
435
|
-
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
436
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.0.15"])
|
437
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
|
438
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
|
439
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
440
|
-
s.add_development_dependency(%q<ruby_parser>, ["~> 2.0.6"])
|
441
|
-
s.add_development_dependency(%q<aruba>, ["~> 0.4.5"])
|
442
|
-
else
|
443
|
-
s.add_dependency(%q<ruby2ruby>, ["~> 1.2.5"])
|
444
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
445
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.15"])
|
446
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
447
|
-
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
448
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
449
|
-
s.add_dependency(%q<ruby_parser>, ["~> 2.0.6"])
|
450
|
-
s.add_dependency(%q<aruba>, ["~> 0.4.5"])
|
451
|
-
end
|
452
|
-
else
|
453
|
-
s.add_dependency(%q<ruby2ruby>, ["~> 1.2.5"])
|
454
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
455
|
-
s.add_dependency(%q<bundler>, ["~> 1.0.15"])
|
456
|
-
s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
|
457
|
-
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
458
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
459
|
-
s.add_dependency(%q<ruby_parser>, ["~> 2.0.6"])
|
460
|
-
s.add_dependency(%q<aruba>, ["~> 0.4.5"])
|
461
|
-
end
|
23
|
+
s.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
s.add_development_dependency "rake"
|
25
|
+
s.add_runtime_dependency "ruby2ruby", "~> 1.2.5"
|
462
26
|
end
|
463
27
|
|