answer-factory 0.1.3.8 → 0.1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/answer-factory.gemspec +2 -2
- data/lib/answers/answer.rb +2 -2
- data/readme.md +5 -3
- data/spec/answers/answer_spec.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.3.
|
1
|
+
0.1.3.9
|
data/answer-factory.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{answer-factory}
|
8
|
-
s.version = "0.1.3.
|
8
|
+
s.version = "0.1.3.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bill Tozier", "Trek Glowacki", "Jesse Sielaff"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-09}
|
13
13
|
s.default_executable = %q{answer-factory}
|
14
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
15
|
s.email = %q{bill@vagueinnovation.com}
|
data/lib/answers/answer.rb
CHANGED
@@ -142,7 +142,7 @@ module AnswerFactory
|
|
142
142
|
'tags' => self.tags.to_a,
|
143
143
|
'scores' => self.scores,
|
144
144
|
'progress' => self.progress,
|
145
|
-
'timestamp' => self.timestamp})
|
145
|
+
'timestamp' => self.timestamp.to_f})
|
146
146
|
return basics
|
147
147
|
end
|
148
148
|
|
@@ -159,6 +159,6 @@ module AnswerFactory
|
|
159
159
|
tags:tag_set,
|
160
160
|
scores:symbolized_scores,
|
161
161
|
progress:value_hash["progress"],
|
162
|
-
timestamp:value_hash["timestamp"])
|
162
|
+
timestamp:Time.at(value_hash["timestamp"].to_f))
|
163
163
|
end
|
164
164
|
end
|
data/readme.md
CHANGED
@@ -38,14 +38,16 @@ This will automatically install several dependencies, including [nudge](http://g
|
|
38
38
|
|
39
39
|
Use this command line script to build an AnswerFactory project folder:
|
40
40
|
|
41
|
-
answer-factory your-project-name
|
41
|
+
answer-factory your-project-name
|
42
|
+
|
43
|
+
This will create a new directory called 'your-project-name' (in your current working directory), and install a rudimentary subtree of folders and files. Perhaps most important is `activate.rb`, which includes both configuration information and some examples of how to proceed.
|
44
|
+
|
42
45
|
|
43
|
-
This will create a new directory called 'your-project-name-here' (in your current working directory), and install a rudimentary subtree of folders and files. Perhaps most important is `activate.rb`, which includes both configuration information and some examples of how to proceed.
|
44
46
|
|
45
47
|
|
46
48
|
### Activating the AnswerFactory daemon
|
47
49
|
|
48
|
-
Make sure CouchDB is running and available, navigate to your project's root folder, and
|
50
|
+
Make sure CouchDB is running and available, navigate to your project's root folder, and type
|
49
51
|
ruby activate.rb
|
50
52
|
|
51
53
|
### Generating new Nudge type definitions
|
data/spec/answers/answer_spec.rb
CHANGED
@@ -146,13 +146,13 @@ describe "Answer" do
|
|
146
146
|
|
147
147
|
|
148
148
|
it "should contain the timestamp" do
|
149
|
-
@a1.data['timestamp'].should == @a1.timestamp
|
149
|
+
@a1.data['timestamp'].should == @a1.timestamp.to_f
|
150
150
|
end
|
151
151
|
end
|
152
152
|
|
153
153
|
describe "reading" do
|
154
154
|
before(:each) do
|
155
|
-
@couchified = {"id"=>"0f60c293ad736abfdb083d33f71ef9ab", "key"=>"ws1", "value"=>{"_id"=>"0f60c293ad736abfdb083d33f71ef9ab", "_rev"=>"1-473467b6dc1a4cba3498dd6eeb8e3206", "blueprint"=>"do bar", "location"=>"here","tags"=>["quux", "whatevz"], "scores"=>{"badness" => 12.345}, "progress" => 12, "timestamp"=>"
|
155
|
+
@couchified = {"id"=>"0f60c293ad736abfdb083d33f71ef9ab", "key"=>"ws1", "value"=>{"_id"=>"0f60c293ad736abfdb083d33f71ef9ab", "_rev"=>"1-473467b6dc1a4cba3498dd6eeb8e3206", "blueprint"=>"do bar", "location"=>"here","tags"=>["quux", "whatevz"], "scores"=>{"badness" => 12.345}, "progress" => 12, "timestamp"=>"#{Time.now.to_f}"}}
|
156
156
|
@my_a = Answer.from_serial_hash(@couchified)
|
157
157
|
end
|
158
158
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: answer-factory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.1.3.
|
10
|
+
- 9
|
11
|
+
version: 0.1.3.9
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Bill Tozier
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-06-
|
21
|
+
date: 2010-06-09 00:00:00 -04:00
|
22
22
|
default_executable: answer-factory
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|