tickseries 0.1.1alpha → 0.1.2alpha

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: d71caec6e9a6de66e0d18b58a6dba5ef5d021d6ebf2c6b6b71fad151344676f3
4
- data.tar.gz: ad25827c08d77046112df71758f920635d0ecb572ab8f8ca1e88eb3167257b14
3
+ metadata.gz: 4a21e3b6c8365691ebc6e0dbd3818ed1dd8920fa35c6393c5c094f2de96655fa
4
+ data.tar.gz: 383946976304ac60b0c4c962e3124637c81e4a59e1cbe345a51c261b991c4b94
5
5
  SHA512:
6
- metadata.gz: 175441d690488c3e66bf3682a03220bada56eed28fe3319450be662129aae245054fd85a6246a35ef871bd29de566de2c0d6a8b678c3cb4a9e10cb9386a5658d
7
- data.tar.gz: bede548c0567dc07643538e3a905bd36e144854c82b3b3d56c99ff88d3123dc5a60e0bbe7c63db62c020acd74b9d6f9b94082f89f8fe29639167076006d839b8
6
+ metadata.gz: f535d806db2ea0b12ef4002631ced244840141ba2a6de61a7d645b78e6d341036781b51d7ee88fdad30ebbcd94bd2d8a279462489f69f7d3d6dfb9618b6ef7aa
7
+ data.tar.gz: bded7af785cefbb3f211bd3de1c975a6b381249757f51b45d128c0349d58e374c479b7f7e934b058f5ea4e451c30809bd4d5349ad2090cab6a63e3d92c3532fe
@@ -6,8 +6,8 @@ Feature: Initialization of Tick
6
6
  When creating a tick with '<params>' it should result in <timestamp> and <price>
7
7
  Examples:
8
8
  | params | timestamp | price |
9
- | {s: :foo, t: 1555767235, p: 123 } | 1555767235000 | 123.0 |
10
- | {s: "foo", t: 1555767235123, p: 1.21 } | 1555767235123 | 1.21 |
9
+ | {s: :foo, t: 1555767235, m: 123 } | 1555767235000 | 123.0 |
10
+ | {s: "foo", t: 1555767235123, m: 1.21 } | 1555767235123 | 1.21 |
11
11
  | ["foo", "1555767235", "225" ] | 1555767235000 | 225.0 |
12
12
  | :foo, 1555767235, 225 | 1555767235000 | 225.0 |
13
13
  | 1555767235, 225 | 1555767235000 | 225.0 |
@@ -5,8 +5,8 @@ When "creating a tick without parameters it should raise ArgumentError" do
5
5
  expect { Tick.new }.to raise_error(ArgumentError)
6
6
  end
7
7
 
8
- When /^creating a tick with '([^']*)' it should result in (\S*) and (\S*)$/ do |params, timestamp, price|
8
+ When /^creating a tick with '([^']*)' it should result in (\S*) and (\S*)$/ do |params, timestamp, measurement|
9
9
  eval "@tick = Tick.new(#{params})"
10
10
  expect(@tick.t).to eq(Integer(timestamp))
11
- expect(@tick.p).to eq(BigDecimal(price,8))
11
+ expect(@tick.m).to eq(BigDecimal(measurement,8))
12
12
  end
@@ -134,7 +134,7 @@ module TickSeries
134
134
 
135
135
  # TimeSeries::Series is the second part of the module. It contains a single measurement ("Messpunkt") of the series.
136
136
  class Tick
137
- attr_reader :t, :p, :v, :k
137
+ attr_reader :t, :m, :v, :p
138
138
 
139
139
  # The constructor is build as flexible as I was able to. It accepts
140
140
  # * a Hash containing < :t | :time | :timestamp > with an integer or string value required in seconds or milliseconds
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tickseries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1alpha
4
+ version: 0.1.2alpha
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: 2019-04-20 00:00:00.000000000 Z
11
+ date: 2019-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv