tafunc 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tafunc.rb +3 -2
- data/test/test_tafunc.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc61a7b4dc06f42c40c19b049b54ef5c6ed26b5e
|
4
|
+
data.tar.gz: b278bb94955831e30cbd81c62ca05c9b10676721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06fcb28c0f5133d85cf028831b73532ff565817c8374e3ebc252d6b3df3faa7a4bb2d201190df8977eb0b4d1ad25a2c891778b7b94d572c54baa7b47d1737b42
|
7
|
+
data.tar.gz: 8b8faf5c9a2a7d88f2f54f5ff3ce606133dc19b2aaf6ae69492b6fa1f2c70500e091dd768705f8cf3adcbf3f97c8b6b54dfb9d67f1d72d24891d4aede35b643c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/tafunc.rb
CHANGED
@@ -618,8 +618,8 @@ class TaLib::TAFunc < TaLib::Function
|
|
618
618
|
end
|
619
619
|
|
620
620
|
#
|
621
|
-
tmp = super( m, n )
|
622
621
|
ret = param_out_setting
|
622
|
+
tmp = super( m, n )
|
623
623
|
ret.merge!( { :start_idx => tmp[0], :num_elements => tmp[1], } )
|
624
624
|
|
625
625
|
#
|
@@ -641,8 +641,9 @@ class TaLib::TAFunc < TaLib::Function
|
|
641
641
|
#
|
642
642
|
def param_out_setting( h = {}, force_mode: false )
|
643
643
|
|
644
|
-
|
645
644
|
# get output attributes (arrays to prepare).
|
645
|
+
# ex. param_out_macd, param_out_macd_signal, param_out_macd_hist
|
646
|
+
#
|
646
647
|
tmp = self.param_attr( :out )
|
647
648
|
|
648
649
|
# prepare arrays and set them.
|
data/test/test_tafunc.rb
CHANGED
@@ -363,10 +363,11 @@ class TestTAFunc < Test::Unit::TestCase
|
|
363
363
|
#
|
364
364
|
tmp = [ 1.0, 2.0, 3.0, 4.0, 5.0 ]
|
365
365
|
@testee.param_in_real = tmp
|
366
|
-
#@testee.param_opt_in_fast_period = 3
|
367
366
|
assert_equal( tmp, @testee.param_in_real )
|
368
|
-
|
369
|
-
|
367
|
+
ret = nil
|
368
|
+
e = assert_nothing_raised{ ret = @testee.call }
|
369
|
+
assert_equal( nil, e )
|
370
|
+
assert_equal( 0, ret[:num_elements] )
|
370
371
|
|
371
372
|
#
|
372
373
|
@testee.param_out_macd = Array.new(@testee.param_in_real.size)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tafunc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YAMAMOTO, Masayuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|