finexclub 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/finexclub.gemspec +2 -2
- data/lib/finexclub/signals/prognosis.rb +2 -1
- data/spec/finexclub/prognosis_spec.rb +11 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/finexclub.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{finexclub}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alex Levin"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-18}
|
13
13
|
s.default_executable = %q{finexclub_updater}
|
14
14
|
s.description = %q{Finexclub gem stores and retrieves Forex signals and screenshots. It is the heart of the http://trendsonforex.com and http://finexclub.net}
|
15
15
|
s.email = %q{clubfinex@gmail.com}
|
@@ -5,11 +5,12 @@ module Finexclub
|
|
5
5
|
field :symbol, :symbol
|
6
6
|
field :updated, :timestamp
|
7
7
|
field :action, :trade_action
|
8
|
+
field :acceleration, :integer
|
8
9
|
field :take_profit, :float
|
9
10
|
field :profit, :integer
|
10
11
|
field :screenshot, :image
|
11
12
|
|
12
|
-
doc_fields :updated, :action, :take_profit, :profit, :screenshot
|
13
|
+
doc_fields :updated, :action, :acceleration, :take_profit, :profit, :screenshot
|
13
14
|
end
|
14
15
|
|
15
16
|
end
|
@@ -13,18 +13,28 @@ describe 'Finexclub::Signals::Prognosis' do
|
|
13
13
|
:action => :trade_action,
|
14
14
|
:take_profit => :float,
|
15
15
|
:profit => :integer,
|
16
|
+
:acceleration => :integer,
|
16
17
|
:screenshot => :image
|
17
18
|
}
|
18
19
|
end
|
19
20
|
|
20
21
|
it 'should export valid doc' do
|
21
22
|
@core.images.stub!(:store).and_return('image_uid')
|
22
|
-
@prognosis.build(
|
23
|
+
@prognosis.build(
|
24
|
+
"updated" => 123,
|
25
|
+
"action" =>
|
26
|
+
"sell",
|
27
|
+
"take_profit" => 1.5,
|
28
|
+
"profit" => 10,
|
29
|
+
"acceleration" => 1,
|
30
|
+
"screenshot_filename"=>"whatever.png")
|
31
|
+
|
23
32
|
@prognosis.to_doc.should == {
|
24
33
|
:updated => 123,
|
25
34
|
:action => "sell",
|
26
35
|
:take_profit => 1.5,
|
27
36
|
:profit => 10,
|
37
|
+
:acceleration => 1,
|
28
38
|
:screenshot => "image_uid"
|
29
39
|
}
|
30
40
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 1
|
9
|
+
version: 0.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alex Levin
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-18 00:00:00 +07:00
|
18
18
|
default_executable: finexclub_updater
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|