finexclub 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{finexclub}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
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"]
@@ -29,11 +29,8 @@ module Finexclub
29
29
 
30
30
  delta = self.timeframe_delta(tf)
31
31
  starts = Time.utc(time.year, time.month, time.day, (time.hour/delta)*delta, 0)
32
- expires = Chronic.parse("#{delta} hours from now", :now => starts)
32
+ expires = starts + delta*60*60
33
33
 
34
- #c.starts = Time.utc(time.year, time.month, time.day, time.hour, 0).to_i
35
- #c.expires = c.starts + 1*60*60
36
-
37
34
  c = Chart.new(core)
38
35
  c.updated= time.to_i
39
36
  c.symbol= symbol
@@ -231,7 +231,7 @@ describe 'Finexclub::Manager' do
231
231
  c = @manager.collection.find_one({:symbol => 'eurusd', :timeframe => 'h4'})
232
232
  c["symbol"].should == 'eurusd'
233
233
  c["timeframe"].should == 'h4'
234
- c["starts"].should == Time.utc(2010, 12, 27, 11, 0).to_i
234
+ c["starts"].should == Time.utc(2010, 12, 27, 8, 0).to_i
235
235
  c["expires"].should == Time.utc(2010, 12, 27, 12, 0).to_i
236
236
  c["updated"].should == Time.utc(2010, 12, 27, 11, 5).to_i
237
237
  c["indicators"]["omega"].should == {
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alex Levin