answer-factory 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Thorfile +10 -15
- data/VERSION +1 -1
- data/answer-factory.gemspec +120 -0
- data/bin/answer-factory +14 -2
- metadata +5 -2
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/pkg/**
|
data/Thorfile
CHANGED
@@ -1,31 +1,26 @@
|
|
1
1
|
require 'active_support'
|
2
2
|
require 'lib/answer-factory'
|
3
3
|
|
4
|
-
class
|
4
|
+
class Create_Factory < Thor::Group
|
5
5
|
include Thor::Actions
|
6
6
|
|
7
7
|
# Define arguments and options
|
8
8
|
argument :project_name
|
9
|
-
|
10
|
-
|
9
|
+
class_options :test_framework => :rspec
|
10
|
+
|
11
|
+
desc "Creates a new project folder structure for new Nudge types, instructions, search operators and specs"
|
11
12
|
|
12
13
|
|
13
14
|
def self.source_root
|
14
15
|
File.dirname(__FILE__)
|
15
16
|
end
|
16
17
|
|
17
|
-
def
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
empty_directory(dirname)
|
24
|
-
empty_directory("#{dirname}/lib")
|
25
|
-
empty_directory("#{dirname}/lib/instructions")
|
26
|
-
empty_directory("#{dirname}/lib/interpreter/types")
|
27
|
-
empty_directory("#{dirname}/spec")
|
28
|
-
end
|
18
|
+
def fill_factory_folder
|
19
|
+
empty_directory("#{project_name}/lib")
|
20
|
+
empty_directory("#{project_name}/lib/nudge/instructions")
|
21
|
+
empty_directory("#{project_name}/lib/nudge/types")
|
22
|
+
empty_directory("#{project_name}/lib/factory/operators")
|
23
|
+
empty_directory("#{project_name}/spec")
|
29
24
|
end
|
30
25
|
end
|
31
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{answer-factory}
|
8
|
+
s.version = "0.0.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Bill Tozier", "Trek Glowacki", "Jesse Sielaff"]
|
12
|
+
s.date = %q{2010-04-27}
|
13
|
+
s.default_executable = %q{answer-factory}
|
14
|
+
s.description = %q{The pragmaticgp gem provides a simple framework for building, running and managing genetic programming experiments which automatically discover algorithms and equations to solve user-defined problems.}
|
15
|
+
s.email = %q{bill@vagueinnovation.com}
|
16
|
+
s.executables = ["answer-factory"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE.txt",
|
23
|
+
"Rakefile",
|
24
|
+
"Thorfile",
|
25
|
+
"VERSION",
|
26
|
+
"_spikes/old_vs_new_dominated_by?.rb",
|
27
|
+
"answer-factory.gemspec",
|
28
|
+
"bin/answer-factory",
|
29
|
+
"config/database.yml",
|
30
|
+
"lib/answer-factory.rb",
|
31
|
+
"lib/answers/answer.rb",
|
32
|
+
"lib/answers/batch.rb",
|
33
|
+
"lib/factories/factory.rb",
|
34
|
+
"lib/factories/workstation.rb",
|
35
|
+
"lib/operators/basic_operators.rb",
|
36
|
+
"lib/operators/evaluators.rb",
|
37
|
+
"lib/operators/samplers_and_selectors.rb",
|
38
|
+
"pkg/nudgegp-0.0.1.gem",
|
39
|
+
"readme.md",
|
40
|
+
"spec/answer_spec.rb",
|
41
|
+
"spec/batch_spec.rb",
|
42
|
+
"spec/config_spec.rb",
|
43
|
+
"spec/factories/factory_spec.rb",
|
44
|
+
"spec/factories/workstation_spec.rb",
|
45
|
+
"spec/operators/any_one_sampler_spec.rb",
|
46
|
+
"spec/operators/dominated_quantile_spec.rb",
|
47
|
+
"spec/operators/duplicate_genomes_spec.rb",
|
48
|
+
"spec/operators/evaluators/program_point_evaluator_spec.rb",
|
49
|
+
"spec/operators/evaluators/test_case_evaluator_spec.rb",
|
50
|
+
"spec/operators/infrastructure_spec.rb",
|
51
|
+
"spec/operators/most_dominated_subset_spec.rb",
|
52
|
+
"spec/operators/nondominated_subset_spec.rb",
|
53
|
+
"spec/operators/pointCrossover_spec.rb",
|
54
|
+
"spec/operators/pointDeletion_spec.rb",
|
55
|
+
"spec/operators/pointMutation_spec.rb",
|
56
|
+
"spec/operators/random_guess_spec.rb",
|
57
|
+
"spec/operators/resample_and_clone_spec.rb",
|
58
|
+
"spec/operators/resample_values_spec.rb",
|
59
|
+
"spec/operators/uniformBackboneCrossover_spec.rb",
|
60
|
+
"spec/spec_helper.rb"
|
61
|
+
]
|
62
|
+
s.homepage = %q{http://github.com/Vaguery/PragGP}
|
63
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
64
|
+
s.require_paths = ["lib"]
|
65
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
|
66
|
+
s.rubygems_version = %q{1.3.6}
|
67
|
+
s.summary = %q{Genetic Programming in the Nudge language}
|
68
|
+
s.test_files = [
|
69
|
+
"spec/answer_spec.rb",
|
70
|
+
"spec/batch_spec.rb",
|
71
|
+
"spec/config_spec.rb",
|
72
|
+
"spec/factories/factory_spec.rb",
|
73
|
+
"spec/factories/workstation_spec.rb",
|
74
|
+
"spec/operators/any_one_sampler_spec.rb",
|
75
|
+
"spec/operators/dominated_quantile_spec.rb",
|
76
|
+
"spec/operators/duplicate_genomes_spec.rb",
|
77
|
+
"spec/operators/evaluators/program_point_evaluator_spec.rb",
|
78
|
+
"spec/operators/evaluators/test_case_evaluator_spec.rb",
|
79
|
+
"spec/operators/infrastructure_spec.rb",
|
80
|
+
"spec/operators/most_dominated_subset_spec.rb",
|
81
|
+
"spec/operators/nondominated_subset_spec.rb",
|
82
|
+
"spec/operators/pointCrossover_spec.rb",
|
83
|
+
"spec/operators/pointDeletion_spec.rb",
|
84
|
+
"spec/operators/pointMutation_spec.rb",
|
85
|
+
"spec/operators/random_guess_spec.rb",
|
86
|
+
"spec/operators/resample_and_clone_spec.rb",
|
87
|
+
"spec/operators/resample_values_spec.rb",
|
88
|
+
"spec/operators/uniformBackboneCrossover_spec.rb",
|
89
|
+
"spec/spec_helper.rb"
|
90
|
+
]
|
91
|
+
|
92
|
+
if s.respond_to? :specification_version then
|
93
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
94
|
+
s.specification_version = 3
|
95
|
+
|
96
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
97
|
+
s.add_runtime_dependency(%q<nudge>, [">= 0.2"])
|
98
|
+
s.add_runtime_dependency(%q<thor>, [">= 0.13"])
|
99
|
+
s.add_runtime_dependency(%q<couchrest>, [">= 0.33"])
|
100
|
+
s.add_runtime_dependency(%q<fakeweb>, [">= 0.33"])
|
101
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.4"])
|
102
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.5"])
|
103
|
+
else
|
104
|
+
s.add_dependency(%q<nudge>, [">= 0.2"])
|
105
|
+
s.add_dependency(%q<thor>, [">= 0.13"])
|
106
|
+
s.add_dependency(%q<couchrest>, [">= 0.33"])
|
107
|
+
s.add_dependency(%q<fakeweb>, [">= 0.33"])
|
108
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
109
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
110
|
+
end
|
111
|
+
else
|
112
|
+
s.add_dependency(%q<nudge>, [">= 0.2"])
|
113
|
+
s.add_dependency(%q<thor>, [">= 0.13"])
|
114
|
+
s.add_dependency(%q<couchrest>, [">= 0.33"])
|
115
|
+
s.add_dependency(%q<fakeweb>, [">= 0.33"])
|
116
|
+
s.add_dependency(%q<sinatra>, [">= 0.9.4"])
|
117
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
data/bin/answer-factory
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
require 'fileutils'
|
4
|
+
include FileUtils::Verbose
|
5
|
+
|
6
|
+
project_root = ARGV.first
|
7
|
+
gem_root = "#{File.dirname(__FILE__)}/.."
|
8
|
+
|
9
|
+
if Dir.exist?(project_root) then
|
10
|
+
puts "project directory /#{project_root} already exists"
|
11
|
+
else
|
12
|
+
Dir.mkdir(project_root)
|
13
|
+
cd("/#{project_root}") do
|
14
|
+
ls "#{gem_root}"
|
15
|
+
end
|
16
|
+
end
|
4
17
|
|
5
|
-
Dir.mkdir(where_i_want_my_new_project)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bill Tozier
|
@@ -108,11 +108,14 @@ extensions: []
|
|
108
108
|
extra_rdoc_files:
|
109
109
|
- LICENSE.txt
|
110
110
|
files:
|
111
|
+
- .gitignore
|
111
112
|
- LICENSE.txt
|
112
113
|
- Rakefile
|
113
114
|
- Thorfile
|
114
115
|
- VERSION
|
115
116
|
- _spikes/old_vs_new_dominated_by?.rb
|
117
|
+
- answer-factory.gemspec
|
118
|
+
- bin/answer-factory
|
116
119
|
- config/database.yml
|
117
120
|
- lib/answer-factory.rb
|
118
121
|
- lib/answers/answer.rb
|