enterprice 0.0.2 → 0.1.4

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
  SHA1:
3
- metadata.gz: bb55cb6cedea5c06742f187b6c905d6610a7bf19
4
- data.tar.gz: bc13d1c54681b5f71eb2883981da86ea90549387
3
+ metadata.gz: 43c7b1f57198bb9225cbaa672efcf889836c0750
4
+ data.tar.gz: 292c225992f98ce2d0db60d51e3d547cca233d51
5
5
  SHA512:
6
- metadata.gz: 02e98c681b370c953bf79d5fadb39e8eaf7b4cd3ea9f363995ea32dfd743c3bbeb2c5c88ee5cc80d3171833af505df099c625965494d0622df35cbd6e6f9e879
7
- data.tar.gz: 4d2c14cac62102ea4e1b4be028e2127ad679bad5077cb46f5702927a6722d2c7a9ffaa7332ed0d4cf538b1df27b980d1d629923dfe4676ee82d485690767cf45
6
+ metadata.gz: 948dc92776d3eb807deacfd92642e7c85e879989b11724f2dec5f7462638292fa6b88c7186cf77c7611025d4c236f8d195217acc3a81c0b534b680827b99af8a
7
+ data.tar.gz: 1d9267fb1bf616098612ce583fde68d13339c4da1f6c19c55da5172e556488061a6b84b6fd0cac5e4a7e83c2d4074a41daeddbc0104986fd470d9590e160c3d0
@@ -1,3 +1,4 @@
1
- require_relative './io/candle_stream'
2
-
1
+ require "enterprice/io/candle_stream"
2
+ require "enterprice/io/named_candle_stream"
3
+ require "enterprice/io/multi_candle_stream"
3
4
 
@@ -46,11 +46,11 @@ class CandleStream
46
46
  @block.call [@pivot, @open, @high, @low, @close, @volume]
47
47
  end
48
48
 
49
+ private
49
50
  def call_blank
50
51
  @block.call [@pivot, @prev_close, @prev_close, @prev_close, @prev_close, 0]
51
52
  end
52
53
 
53
- private
54
54
  def reset_state
55
55
  @high= -Float::INFINITY
56
56
  @low= Float::INFINITY
@@ -3,10 +3,6 @@ require_relative './named_candle_stream'
3
3
  module Enterprice; module IO
4
4
 
5
5
  class MultiCandleStream
6
- attr_accessor :streams
7
- attr_accessor :period
8
- attr_accessor :block
9
-
10
6
  def initialize(period, block)
11
7
  @streams= {}
12
8
  @period= period
@@ -3,8 +3,6 @@ require_relative './candle_stream'
3
3
  module Enterprice; module IO
4
4
 
5
5
  class NamedCandleStream< Enterprice::IO::CandleStream
6
- attr_accessor :name
7
-
8
6
  def initialize(period, name, block)
9
7
  @name= name
10
8
  super(period, block)
@@ -1,3 +1,3 @@
1
1
  module Enterprice
2
- VERSION= "0.0.2"
2
+ VERSION= "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enterprice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nurettin Onur TUĞCU
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides utilities and methods I use when inspecting time series
14
14
  on remote machines.