cotcube-indicators 0.1.10 → 0.1.11

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: 63178d5a731cb55b8b5d9c6f63ac5aa9931d909fc30490bceea514d2dff1beb9
4
- data.tar.gz: 0e0beac7a246973767faabafefd412cb76a08ecdbadb4ce0e390c96027c5ae51
3
+ metadata.gz: 11f1af1cbae6dfbd31c7ab543801a6b71d6add09dd157f823a380d16d0cc3354
4
+ data.tar.gz: f5012e6bffd26cb739260d17efad7a7deff8725d3c02e9ec6994798f0462ebb0
5
5
  SHA512:
6
- metadata.gz: fcb3bc43b9cb2548e4901d24ad2d422ed37319510add433ba43adbb97308ab39b00ce6ee371acfbcd0372161b212a9117b4b4620cee5bba8a15265592d57214d
7
- data.tar.gz: 2ebd19d2f1fe549198ecdb9b2ae6e70e27f6d76f80f4b83d57f1c8dafc16387b40e36859b60a0b332afaefb92334ce6d06c7294bf31b85472569dd18347d92a7
6
+ metadata.gz: 826229e58f828396cb60fe6af1f86a92b4894f1f34e1d61eef3b65cada0e743679465e1a183a2723f82e480d18e3964608ac8299c9ed492a8f0fe8123df68b81
7
+ data.tar.gz: 50e7d157baa972a579cd78ec662544f70ef9af48297fe22f9c45d2fbe338cb512cea6beb363d9020cb518994bd7bfb520968470d5aa4ed2b7224c5aa19f66840
@@ -1,3 +1,6 @@
1
+ ## 0.1.11 (December 05, 2020)
2
+ - Fixing 'smoothing' keyword argument in EMA
3
+
1
4
  ## 0.1.10 (December 03, 2020)
2
5
  - added indicator 'threshold' including spec
3
6
  - some minor improvements to .gitignore and .gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
@@ -3,9 +3,8 @@
3
3
  module Cotcube
4
4
  module Indicators
5
5
  # the classic exponential moving average
6
- def ema(key:, length:, smoothing:)
7
- raise 'Missing parameter, need :length' if length.nil? || (not length.is_a? Integer)
8
- raise 'Missing parameter, need :key' if key.nil?
6
+ def ema(key:, length:, smoothing: nil)
7
+ raise 'Missing parameter, need :length' unless length.is_a? Integer
9
8
 
10
9
  smoothing ||= (2 / (length - 1).to_f.round(2))
11
10
  carrier = Carrier.new(length)
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.10
4
+ version: 0.1.11
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-04 00:00:00.000000000 Z
11
+ date: 2020-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake