cauldron 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/Gemfile +6 -0
  2. data/Gemfile.lock +63 -0
  3. data/History.md +5 -0
  4. data/Rakefile +62 -16
  5. data/VERSION +1 -1
  6. data/cauldron.gemspec +463 -0
  7. data/cauldron/lib/cauldron.rb +1 -1
  8. data/features/cauldron_generates_runtime_method.feature +7 -4
  9. data/features/cauldron_generates_single_paramter_methods.feature +25 -0
  10. data/features/cauldron_interactive_start_terminal.feature +17 -0
  11. data/features/cauldron_quit_terminal.feature +9 -0
  12. data/features/cauldron_start_terminal.feature +0 -1
  13. data/features/step_definitions/cauldron_steps.rb +10 -5
  14. data/features/step_definitions/terminal_steps.rb +27 -0
  15. data/features/support/env.rb +2 -0
  16. data/features/support/hooks.rb +15 -0
  17. data/lib/Chain.rb +3 -3
  18. data/lib/Mapping.rb +1 -0
  19. data/lib/PartialChain.rb +253 -0
  20. data/lib/Theory.rb +28 -4
  21. data/lib/UnifiedChain.rb +94 -125
  22. data/lib/cauldron.rb +3 -0
  23. data/lib/cauldron/demos.rb +4 -4
  24. data/lib/cauldron/env.rb +1 -0
  25. data/lib/cauldron/pot.rb +42 -38
  26. data/lib/cauldron/terminal.rb +19 -3
  27. data/lib/cauldron/util/home.rb +21 -0
  28. data/lib/cauldron/util/saver.rb +45 -0
  29. data/lib/core/Container.rb +1 -1
  30. data/lib/core/runtime_method/ActsAsRuntimeMethod.rb +28 -28
  31. data/lib/core/runtime_method/RuntimeMethod.rb +6 -23
  32. data/lib/core/statement/ActsAsStatement.rb +0 -96
  33. data/lib/core/statement/BlockStatement.rb +1 -1
  34. data/lib/core/statement/OpenStatement.rb +1 -1
  35. data/lib/core/statement/Statement.rb +39 -94
  36. data/lib/core/statement/TheoryStatement.rb +1 -1
  37. data/lib/core/syntax/BlockContainer.rb +0 -28
  38. data/lib/core/variable/MethodParameter.rb +1 -1
  39. data/lib/required.rb +2 -14
  40. data/lib/theories.rb +0 -1
  41. data/lib/theory/ActionImplementation.rb +1 -1
  42. data/lib/theory/TheoryAction.rb +2 -2
  43. data/lib/theory/TheoryConnector.rb +11 -14
  44. data/lib/theory/TheoryImplementation.rb +10 -9
  45. data/lib/util/MethodWriter.rb +10 -10
  46. data/sandbox.rb +23 -0
  47. data/spec/cauldron/pot_spec.rb +62 -10
  48. data/spec/cauldron/runtime_method_spec.rb +31 -17
  49. data/spec/cauldron/saver_spec.rb +45 -0
  50. data/spec/cauldron/terminal_spec.rb +10 -1
  51. data/spec/cauldron/theory_spec.rb +4 -4
  52. data/spec/cauldron/unified_chain_spec.rb +38 -0
  53. data/spec/spec_helper.rb +3 -1
  54. data/tasks/development_tasks.rake +4 -0
  55. data/tasks/theory_tasks.rake +16 -20
  56. data/test/fixtures/theories/0/desc +6 -6
  57. data/test/fixtures/theories/0/dump +0 -0
  58. data/test/fixtures/theories/1/desc +7 -7
  59. data/test/fixtures/theories/1/dump +0 -0
  60. data/test/fixtures/theories/10/desc +13 -13
  61. data/test/fixtures/theories/10/dump +0 -0
  62. data/test/fixtures/theories/11/desc +10 -10
  63. data/test/fixtures/theories/11/dump +0 -0
  64. data/test/fixtures/theories/12/desc +9 -9
  65. data/test/fixtures/theories/12/dump +0 -0
  66. data/test/fixtures/theories/13/desc +16 -16
  67. data/test/fixtures/theories/13/dump +0 -0
  68. data/test/fixtures/theories/14/desc +16 -16
  69. data/test/fixtures/theories/14/dump +0 -0
  70. data/test/fixtures/theories/15/desc +10 -10
  71. data/test/fixtures/theories/15/dump +0 -0
  72. data/test/fixtures/theories/16/desc +10 -10
  73. data/test/fixtures/theories/16/dump +0 -0
  74. data/test/fixtures/theories/17/desc +7 -7
  75. data/test/fixtures/theories/17/dump +0 -0
  76. data/test/fixtures/theories/18/desc +7 -7
  77. data/test/fixtures/theories/18/dump +0 -0
  78. data/test/fixtures/theories/19/desc +7 -7
  79. data/test/fixtures/theories/19/dump +0 -0
  80. data/test/fixtures/theories/2/desc +6 -6
  81. data/test/fixtures/theories/2/dump +0 -0
  82. data/test/fixtures/theories/20/desc +13 -13
  83. data/test/fixtures/theories/20/dump +0 -0
  84. data/test/fixtures/theories/3/desc +7 -7
  85. data/test/fixtures/theories/3/dump +0 -0
  86. data/test/fixtures/theories/4/desc +7 -7
  87. data/test/fixtures/theories/4/dump +0 -0
  88. data/test/fixtures/theories/5/desc +6 -6
  89. data/test/fixtures/theories/5/dump +0 -0
  90. data/test/fixtures/theories/6/desc +7 -7
  91. data/test/fixtures/theories/6/dump +0 -0
  92. data/test/fixtures/theories/7/desc +7 -7
  93. data/test/fixtures/theories/7/dump +0 -0
  94. data/test/fixtures/theories/8/desc +7 -7
  95. data/test/fixtures/theories/8/dump +0 -0
  96. data/test/fixtures/theories/9/desc +16 -16
  97. data/test/fixtures/theories/9/dump +0 -0
  98. data/test/fixtures/theory_implementations/0/dump +0 -0
  99. data/test/fixtures/theory_implementations/2/dump +0 -0
  100. data/test/ts_complete.rb +1 -10
  101. data/test/unit/core/runtime_method/tc_realised_runtime_method.rb +1 -0
  102. data/test/unit/core/runtime_method/tc_runtime_method.rb +16 -39
  103. data/test/unit/core/statement/tc_block_statement.rb +3 -3
  104. data/test/unit/core/statement/tc_open_statement.rb +4 -4
  105. data/test/unit/core/statement/tc_statement.rb +2 -147
  106. data/test/unit/core/statement/tc_theory_statement.rb +1 -1
  107. data/test/unit/theory/tc_theory_dependent.rb +3 -3
  108. data/test/unit/theory/tc_theory_result.rb +5 -5
  109. data/test/unit/util/tc_method_validation.rb +45 -45
  110. data/test/unit/util/tc_parser.rb +1 -1
  111. data/test/unit/util/tc_string_to_theory.rb +2 -2
  112. metadata +74 -48
  113. data/lib/ScopeDependencies.rb +0 -8
  114. data/lib/core/statement/StatementDependencies.rb +0 -271
  115. data/lib/core/structure/DeclareNewInstanceStructure.rb +0 -49
  116. data/lib/core/structure/DeclareRuntimeMethodStructure.rb +0 -34
  117. data/lib/core/structure/DeclareVariableAsLiteralStructure.rb +0 -31
  118. data/lib/core/structure/DeclareVariableAsVariableStructure.rb +0 -52
  119. data/lib/core/structure/FixnumAdditionStructure.rb +0 -56
  120. data/lib/core/structure/InstanceCallContainerStructure.rb +0 -50
  121. data/lib/core/structure/InstanceCallStructure.rb +0 -53
  122. data/lib/core/structure/InstanceMethodCallStructure.rb +0 -21
  123. data/lib/core/structure/ReturnStructure.rb +0 -20
  124. data/lib/core/structure/StatementStructure.rb +0 -11
  125. data/test/unit/core/statement/tc_statement_dependencies.rb +0 -147
  126. data/test/unit/core/structure/tc_declare_new_instance_structure.rb +0 -41
  127. data/test/unit/core/structure/tc_declare_variable_as_literal_structure.rb +0 -41
  128. data/test/unit/core/structure/tc_declare_variable_as_variable_structure.rb +0 -66
  129. data/test/unit/core/structure/tc_instance_call_container_structure.rb +0 -41
  130. data/test/unit/core/structure/tc_return_structure.rb +0 -32
  131. data/test/unit/tc_instance_call_structure.rb +0 -35
  132. data/test/unit/tc_statement_structure_2.rb +0 -43
data/Gemfile CHANGED
@@ -3,14 +3,20 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
+ #$LOAD_PATH << File.expand_path('../lib',__FILE__)
7
+ #require 'rubygems'
8
+ #require 'lib/cauldron'
9
+
6
10
  # Add dependencies to develop your gem here.
7
11
  # Include everything needed to run rake, tests, features, etc.
8
12
  group :development do
9
13
  gem "shoulda", ">= 0"
10
14
  gem "bundler", "~> 1.0.15"
11
15
  gem "jeweler", "~> 1.6.2"
16
+ gem "rspec", "~>2.6.0"
12
17
  gem "rcov", ">= 0"
13
18
  gem "ruby_parser", "~>2.0.6"
19
+ gem "aruba", "~>0.4.5"
14
20
  end
15
21
 
16
22
  gem "ruby2ruby", "~>1.2.5"
@@ -0,0 +1,63 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ aruba (0.4.5)
5
+ bcat (>= 0.6.1)
6
+ childprocess (>= 0.1.9)
7
+ cucumber (>= 0.10.7)
8
+ rdiscount (>= 1.6.8)
9
+ rspec (>= 2.6.0)
10
+ bcat (0.6.1)
11
+ rack (~> 1.0)
12
+ builder (3.0.0)
13
+ childprocess (0.2.2)
14
+ ffi (~> 1.0.6)
15
+ cucumber (1.1.0)
16
+ builder (>= 2.1.2)
17
+ diff-lcs (>= 1.1.2)
18
+ gherkin (~> 2.5.0)
19
+ json (>= 1.4.6)
20
+ term-ansicolor (>= 1.0.6)
21
+ diff-lcs (1.1.2)
22
+ ffi (1.0.9)
23
+ gherkin (2.5.1)
24
+ json (>= 1.4.6)
25
+ git (1.2.5)
26
+ jeweler (1.6.2)
27
+ bundler (~> 1.0)
28
+ git (>= 1.2.5)
29
+ rake
30
+ json (1.6.1)
31
+ rack (1.3.4)
32
+ rake (0.9.2)
33
+ rcov (0.9.9)
34
+ rdiscount (1.6.8)
35
+ rspec (2.6.0)
36
+ rspec-core (~> 2.6.0)
37
+ rspec-expectations (~> 2.6.0)
38
+ rspec-mocks (~> 2.6.0)
39
+ rspec-core (2.6.3)
40
+ rspec-expectations (2.6.0)
41
+ diff-lcs (~> 1.1.2)
42
+ rspec-mocks (2.6.0)
43
+ ruby2ruby (1.2.5)
44
+ ruby_parser (~> 2.0)
45
+ sexp_processor (~> 3.0)
46
+ ruby_parser (2.0.6)
47
+ sexp_processor (~> 3.0)
48
+ sexp_processor (3.0.5)
49
+ shoulda (2.11.3)
50
+ term-ansicolor (1.0.6)
51
+
52
+ PLATFORMS
53
+ ruby
54
+
55
+ DEPENDENCIES
56
+ aruba (~> 0.4.5)
57
+ bundler (~> 1.0.15)
58
+ jeweler (~> 1.6.2)
59
+ rcov
60
+ rspec (~> 2.6.0)
61
+ ruby2ruby (~> 1.2.5)
62
+ ruby_parser (~> 2.0.6)
63
+ shoulda
@@ -0,0 +1,5 @@
1
+ # v0.1.3
2
+
3
+ * Updating the example that appears on start up
4
+ * Some minor test tweaks
5
+ * Changing to use two spaces instead of tabs
data/Rakefile CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  require 'rubygems'
4
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
5
13
  begin
6
14
  Bundler.setup(:default, :development)
7
15
  rescue Bundler::BundlerError => e
@@ -9,12 +17,11 @@ rescue Bundler::BundlerError => e
9
17
  $stderr.puts "Run `bundle install` to install missing gems"
10
18
  exit e.status_code
11
19
  end
20
+
12
21
  require 'rake'
13
22
 
14
23
  $LOAD_PATH << File.expand_path('../lib',__FILE__)
15
24
 
16
- require 'lib/cauldron'
17
-
18
25
  load File.join(File.dirname(__FILE__), 'tasks', 'theory_tasks.rake')
19
26
 
20
27
  require 'jeweler'
@@ -32,22 +39,24 @@ Jeweler::Tasks.new do |gem|
32
39
  end
33
40
  Jeweler::RubygemsDotOrgTasks.new
34
41
 
35
- require 'rake/testtask'
36
- Rake::TestTask.new(:test) do |test|
37
- test.libs << 'lib' << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- end
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
41
48
 
42
- require 'rcov/rcovtask'
43
- Rcov::RcovTask.new do |test|
44
- test.libs << 'test'
45
- test.pattern = 'test/**/test_*.rb'
46
- test.verbose = true
47
- test.rcov_opts << '--exclude "gems/*"'
48
- end
49
+ # require 'rcov/rcovtask'
50
+ # Rcov::RcovTask.new do |test|
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
49
58
 
50
- task :default => :test
59
+ #task :default => :test
51
60
 
52
61
  require 'rake/rdoctask'
53
62
  Rake::RDocTask.new do |rdoc|
@@ -58,3 +67,40 @@ Rake::RDocTask.new do |rdoc|
58
67
  rdoc.rdoc_files.include('README*')
59
68
  rdoc.rdoc_files.include('lib/**/*.rb')
60
69
  end
70
+
71
+ # => http://pivotallabs.com/users/alex/blog/articles/1451-upgrading-your-rakefile-from-rspec-1-3-to-rspec-2
72
+ RSpec::Core::RakeTask.new(:core) do |spec|
73
+ spec.pattern = 'spec/cauldron/*_spec.rb'
74
+ spec.rspec_opts = ['--backtrace']
75
+ end
76
+
77
+ # RSpec::Core::RakeTask.new(:rcov) do |spec|
78
+ # spec.pattern = 'spec/cauldron/*_spec.rb'
79
+ # spec.rspec_opts = ['--backtrace']
80
+ # end
81
+
82
+ RSpec::Core::RakeTask.new(:coverage) do |t|
83
+ t.rcov = true
84
+ #t.rcov_opts = %q[--exclude "spec"]
85
+ t.verbose = true
86
+ end
87
+
88
+ # => =====================
89
+
90
+ # desc "Run all specs with rcov"
91
+ # RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
92
+ # t.rcov = true
93
+ # end
94
+
95
+ # => http://stackoverflow.com/questions/3058676/rcov-with-rspec-2
96
+ #require 'spec-core'
97
+ #require 'rubygems'
98
+ #require 'rspec'
99
+ #require 'rspec/core'
100
+
101
+ #
102
+ # desc "Run all specs with rcov"
103
+ # RSpec::Core::RakeTask.new(:rcov => spec_prereq) do |t|
104
+ # t.rcov = true
105
+ # t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/}
106
+ # end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -0,0 +1,463 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{cauldron}
8
+ s.version = "0.1.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Warren Sangster"]
12
+ s.date = %q{2011-10-09}
13
+ s.default_executable = %q{cauldron}
14
+ 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
+ s.email = %q{warrensangster@yahoo.com}
16
+ s.executables = ["cauldron"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README",
20
+ "README.rdoc"
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
+ ]
423
+ 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")
427
+ s.rubygems_version = %q{1.4.0}
428
+ s.summary = %q{Generate simple ruby methods from the input(s) and expected output}
429
+
430
+ if s.respond_to? :specification_version then
431
+ s.specification_version = 3
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
462
+ end
463
+