cotcube-indicators 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98fa4ef0045f9137be38cfca9279bf35c9e482e2342a59ed758a8b3815b40fa5
4
- data.tar.gz: d5b4ae3d93be6c0ed918f0c0421cf001b61e0b455989bb4d7ec6e3912f62b4c4
3
+ metadata.gz: 9d7f3fc4e4f604bd0d703a46ece1f3c41363d3dbd7f9f3e891d0004db98863b8
4
+ data.tar.gz: 021a46676cc3894badd789b189bc000f1a69025d7d2a0adb2a41a7d44d676506
5
5
  SHA512:
6
- metadata.gz: e6c9d35924768befeb84eec7c2c4f71e03e612cc43e3759787db21cf1ad51ce012e51cf583b3edbf4fb38e7e19a782f381f0c499831659b8a42c9ff0a37adcfc
7
- data.tar.gz: 1db27198c66a931a5822d6d58991a252c79356e78c71c269432251cc001d41c75cf15ba797f3606eca51c6b30c98e0ecee9a127f7eeed49f7d9aa67870916bd4
6
+ metadata.gz: 38e63fbb2d5a23998d3ce32908da1ba63350ec4aeaa63074c82eb7b4658ab7c91ab893c02f357f773ccd1e0d0b8ff4739027ab20087337803d08f807724c767d
7
+ data.tar.gz: cb21e7106fda18b4ca5f079a3f17fb6f17fc0d61c375e96374c5d4489ee9634a16f900236a9fc37f3cccd0206d7cf6881a649a3e1a82e0684a2e2e8dc7eb8f07
@@ -1,3 +1,6 @@
1
+ ## 0.1.13 (December 30, 2020)
2
+ - small fix to #score and #index to support missing values in series
3
+
1
4
  ## 0.1.12 (December 05, 2020)
2
5
  - added tests for SMA, EMA, RSI
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.12
1
+ 0.1.13
@@ -24,7 +24,7 @@ module Cotcube
24
24
  puts "RESULT: #{res}" if debug
25
25
  return reverse ? (1 - res.to_f).round(3).to_f : res.round(3).to_f
26
26
  else
27
- carrier.shift
27
+ carrier << 0
28
28
  return 0
29
29
  end
30
30
  end
@@ -11,7 +11,7 @@ module Cotcube
11
11
  current = x[key.to_sym]
12
12
  current = current.abs if abs
13
13
  if current.zero?
14
- carrier.shift
14
+ carrier << 0
15
15
  return 0
16
16
 
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cotcube-indicators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin L. Tischendorf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-05 00:00:00.000000000 Z
11
+ date: 2020-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake