unicode_barchart2020 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c03d29412df43c16274c021c77c41e332a6b7f69d8f77f0a3d35a09ab1503582
4
- data.tar.gz: 82e0e5ddd06d48aeb15b1fdf8a3cf9049f1ebd38bf2b94c6d13db16475d3f31b
3
+ metadata.gz: 1f201792782c40e6af4c52673f0ebd9e5e819df2fd83cfd7e1642abf5002df3a
4
+ data.tar.gz: fad1529266192668a44f65cf0d16aca28ad42a2cc3eb39117deb85fbe9b79346
5
5
  SHA512:
6
- metadata.gz: 5f9867d90b4c3a8c717b0fee21321347eaa3625f67f202a144850d662ae0fc616ca4b695a3ddcf590bfac91a8e76cbb89f3d40110c7bb379cdbb37de5b4d6d15
7
- data.tar.gz: a8edfab3ac04b961349c4f02fa0de3930b8afd7ebf32816f1e1ecccac1e0db1d1bae3c00f0cec64f32f012c655eb1567530af4ebed97dda6f13dd9baa424e75f
6
+ metadata.gz: 4d0be129b776fcce56bdab125d490514133221c0f57b72b4703809dda9032b2eefaef299f265256ce3ee22d9496cd8fe766aa6f8813e626a6a9532ec62397971
7
+ data.tar.gz: c09f32222e1a5d9fab3a76c389ca9e1a48c1b73e2bf1fda3dead50ced1bf8ff375daadc013c2d82e967761695e69d368b34940c5b00e3e129ba5f0a358139aa6
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -7,12 +7,12 @@ require 'barcharts'
7
7
  class UnicodeBarchart2020
8
8
 
9
9
  def initialize(data, debug: false)
10
- @data = data
10
+ @data, @debug = data, debug
11
11
  end
12
12
 
13
- def build(sort: false)
13
+ def build(sort: false, chars: nil)
14
14
 
15
- lines = barchart( @data, title: '', sort: sort).lines
15
+ lines = barchart( @data, title: '', sort: sort, chars: chars).lines
16
16
  puts 'lines: ' + lines.inspect if @debug
17
17
  a = @data.to_a
18
18
  bars = lines[2..-1].map {|x| x[/(?<=\| )[^ ]+/]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode_barchart2020
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file