finexclub 0.3.2 → 0.3.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
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.2"
8
+ s.version = "0.3.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"]
12
- s.date = %q{2010-11-18}
12
+ s.date = %q{2010-12-03}
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}
@@ -21,6 +21,7 @@ module Finexclub
21
21
  end
22
22
 
23
23
  define_method(indicator) do
24
+ return nil unless signals(indicator)
24
25
  Signal.build(core, indicator, signals(indicator).last)
25
26
  end
26
27
  end
@@ -27,11 +27,6 @@ describe 'Finexclub::Chart' do
27
27
  @chart.date.should == '2010-09-08'
28
28
  @chart.updated.should == @ts
29
29
  end
30
-
31
- it 'should return latest zeta signals as Zeta' do
32
- Finexclub::Signal.should.receive(:build).with(@core, :zeta, @z2).and_return(z = mock('zeta'))
33
- @chart.zeta.should == z
34
- end
35
30
  end
36
31
 
37
32
  [
@@ -55,6 +50,10 @@ describe 'Finexclub::Chart' do
55
50
  @chart.send(indicator).should == a
56
51
  end
57
52
  end
53
+
54
+ it "should return nil as latest if no #{indicator} signals available" do
55
+ @chart.send(indicator).should == nil
56
+ end
58
57
  end
59
58
 
60
59
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
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-18 00:00:00 +07:00
17
+ date: 2010-12-03 00:00:00 +07:00
18
18
  default_executable: finexclub_updater
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency