tafunc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tafunc.rb +3 -2
  4. data/test/test_tafunc.rb +4 -3
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a16c9b54df3d232237180720227c7eaf76d4bf3
4
- data.tar.gz: 0e43e95d6331b02987609f857b904428f9af528e
3
+ metadata.gz: dc61a7b4dc06f42c40c19b049b54ef5c6ed26b5e
4
+ data.tar.gz: b278bb94955831e30cbd81c62ca05c9b10676721
5
5
  SHA512:
6
- metadata.gz: a3b3b56efb395dbce0b9b5eef73733063ca71b6bafc7a5b9c8d4925f7c56fc8b9e63fb8578026e8b4a318301dacb123eb48c5cdbe703404d4654b0efbeccc3e0
7
- data.tar.gz: c77ba939c0afe776b67e030b0be892089c0111be7ef5144cb37ee752253402650530a0d44a9868350e903929f4cc5dd9f8859084feba9042b6b288582ba946fe
6
+ metadata.gz: 06fcb28c0f5133d85cf028831b73532ff565817c8374e3ebc252d6b3df3faa7a4bb2d201190df8977eb0b4d1ad25a2c891778b7b94d572c54baa7b47d1737b42
7
+ data.tar.gz: 8b8faf5c9a2a7d88f2f54f5ff3ce606133dc19b2aaf6ae69492b6fa1f2c70500e091dd768705f8cf3adcbf3f97c8b6b54dfb9d67f1d72d24891d4aede35b643c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
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
- e = assert_raise( RuntimeError ){ @testee.call }
369
- assert_equal( 0, e.message =~ /unsuccess return code TA_CallFunc/ )
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.1
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-23 00:00:00.000000000 Z
11
+ date: 2013-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda