spanbars 0.2.0beta → 0.2.0.1beta

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: 77c49955cc21152aa8b11ce9f3b34eb106e5676d26613f9734f68c155fdb6df1
4
- data.tar.gz: 2c563526e765155d3a25424f832ad966034b86ecab8bc4f2c678611f1a187896
3
+ metadata.gz: d871a158d1b21cdeead8e902bd144e3430fd0c623a298494c97435f1eb762760
4
+ data.tar.gz: 04f5a501663ef30845c1f534551b609f50a8376272b72beee0cd5c1d9379ec41
5
5
  SHA512:
6
- metadata.gz: 3d82b58f1aa81250c9104486644b32350c135b349d9ea2836545adbbd3add2fe2f20a2b5dacce0eb4642fb93078e32ebf729bc8045f6f2b14109d1c98c6cc062
7
- data.tar.gz: bf85d6b41f4e67a8da95b67c33018498ffc1bcba6affcbf6489b63e635b7bffe704db9209d3bf55daae4e8de15d256400cafb1810e267cc9327576660a6b2ec9
6
+ metadata.gz: ec2464ffedfd69ad5fd76b0b72b2b3008dc9c4aef4181adeb7ce52e8f81d25a66fa5e36225c2b01c8794e75c3a670168b596b150b19859e9fb919add2b6581d0
7
+ data.tar.gz: 269f0dbbb12613e8a3534395ca3c77b3d9b49c69c643c03ab89658c48d616a25ad80a2d998a2accfc63dee70205ed29b7c2fab3011cfae74684bcb00e43e87c5
data/bin/spanbars CHANGED
@@ -1,11 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
4
- THIS_PATH_REL = File.dirname(THIS_FILE)
3
+ THIS_SPANBAR_EXECUTABLE_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
4
+ THIS_PATH_REL = File.dirname(THIS_SPANBAR_EXECUTABLE_FILE)
5
5
  THIS_PATH = File.absolute_path(THIS_PATH_REL)
6
6
 
7
- require THIS_PATH + '/../lib/spanbarprocessor.rb'
8
- require THIS_PATH + '/../lib/spanbar.rb'
7
+ require THIS_PATH + '/../lib/spanbars.rb'
9
8
 
10
9
 
11
10
  # prepare processing of incoming control commands (e.g. Ctrl-C)
data/lib/spanbar.rb CHANGED
@@ -32,7 +32,7 @@ class SpanBar
32
32
 
33
33
  # Creates a new instance
34
34
  #
35
- # @option b [Array] expects an Array of measures in format [ {t: <timestamp>, p: <value>}, ... ]
35
+ # @option b [Array] expects an Array of measures
36
36
  # @option ticksize [Float] The ticksize of underlying processor (defaults to 1.0)
37
37
  # @option strict [Boolean] Whether this is a strict or a simple SpanBar (defaults to :true)
38
38
  def initialize(b, ticksize = 1.0, strict = true)
@@ -1,6 +1,3 @@
1
- require 'slop'
2
- require 'csv'
3
- require 'colorize'
4
1
 
5
2
 
6
3
  # SpanBarHelpers includes some little helpers for convenient usage in SpanBarProcessor
data/lib/spanbars.rb ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+ ##
3
+
4
+ require 'slop'
5
+ require 'csv'
6
+ require 'colorize'
7
+
8
+ THIS_MAIN_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
9
+ require File.dirname(THIS_MAIN_FILE) + '/spanbarprocessor.rb'
10
+ require File.dirname(THIS_MAIN_FILE) + '/spanbar.rb'
11
+
12
+
13
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spanbars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0beta
4
+ version: 0.2.0.1beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin L. Tischendorf
@@ -98,13 +98,11 @@ description: 'Tiny tool to process input CSV data as timeseries to span bars '
98
98
  email: donkeybridge@jtown.eu
99
99
  executables:
100
100
  - spanbars
101
- - spanbars.rb
102
101
  extensions: []
103
102
  extra_rdoc_files: []
104
103
  files:
105
104
  - README.md
106
105
  - bin/spanbars
107
- - bin/spanbars.rb
108
106
  - features/01_spanbarprocessor_initialization.feature
109
107
  - features/02_spanbarprocessor_add.feature
110
108
  - features/03_spanbar_initialization.feature
@@ -122,6 +120,7 @@ files:
122
120
  - features/support/ref3_out_0.0000005_10.csv
123
121
  - lib/spanbar.rb
124
122
  - lib/spanbarprocessor.rb
123
+ - lib/spanbars.rb
125
124
  homepage: https://github.com/donkeybridge/spanbars
126
125
  licenses:
127
126
  - BSD-4-Clause
data/bin/spanbars.rb DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
4
- require File.dirname(THIS_FILE) + '/../lib/spanbarprocessor.rb'
5
- require File.dirname(THIS_FILE) + '/../lib/spanbar.rb'