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 +4 -4
- data/bin/spanbars +3 -4
- data/lib/spanbar.rb +1 -1
- data/lib/spanbarprocessor.rb +0 -3
- data/lib/spanbars.rb +13 -0
- metadata +2 -3
- data/bin/spanbars.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d871a158d1b21cdeead8e902bd144e3430fd0c623a298494c97435f1eb762760
|
4
|
+
data.tar.gz: 04f5a501663ef30845c1f534551b609f50a8376272b72beee0cd5c1d9379ec41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
4
|
-
THIS_PATH_REL = File.dirname(
|
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/
|
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
|
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)
|
data/lib/spanbarprocessor.rb
CHANGED
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.
|
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
|