shades 0.12 → 0.13

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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/histo +7 -1
  3. data/shades.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmI0ZDFmZWZhYTIxN2FkN2E0MWFmNjk1NDFiYWI3MDgyZmRmZjg2Yw==
4
+ YmQ0OWUzYTVjZDZhMzMyYTczNjU3YWU1NDU4NTc2ZGFmZDQzODc1NQ==
5
5
  data.tar.gz: !binary |-
6
- OWRjYjQzZmI5ZGQ4NWYzYTQ1NDk1NDkzYWI2MTZmYTc5NmViZTYwNg==
6
+ ZTFmM2JhMGZlNmNmNWU4MmJmYTFjMWM5OTgyNjY2OTA3MjMxNGI5NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWRkOTNkOTcyNTExN2E1Mzc0NmViNmVhNWNhOWM1NTljNjdhN2QwMTVhOGY4
10
- OTU2MTk4YWEzYTE5YWMzODU1N2NjODYzMTY1NTE0ZDE3M2E0NjdiOTA5MDRm
11
- M2VjODM1MDc4NzEzNWMwY2ZhZjNhMjM1NTNlNDlhZDE1MmUyMjg=
9
+ ZmViYmEyNjUwOWI0N2MxZDJiY2Q2MjU2MjA0M2RkMmRmMDUzMTY4MjhmNjY1
10
+ OTNjZTgxNjQzNDMyMWIyYjNlNTNlMGRmNmQ2MjU4YmZlMDRiMzRlM2Y0OGMy
11
+ ZGFmYmQ3YWExNTY3NDU1NWE3NTAwMWVhZDQ2OWRmOWQwMjIwODk=
12
12
  data.tar.gz: !binary |-
13
- ODQxZjBkMmNiYTk2ZTY4ZGEwMjUyNjU1NTM2ZGIxM2Q0MmI2NzAzZWY3ZjNl
14
- ZTI4MjExNjdjZmEyODcyODczNzQ3NjA3YjFmZGYxZWFiMDBmZDY2YzgzNDQy
15
- MTgxZGRlZWUyNjNkNDE1ZjZkOThkYmIwYTYwNzM5ZDBkZDkwZTA=
13
+ OTRkZDA2N2I1N2NmMjZkY2U2NmFmOGFmNGU5ZjFiNWMyMTgzN2YzYTU5NjBm
14
+ OTVhNGU3Mzk5MmI3YTU4ZDMyM2FmODU1OWE1YWI5ODdhZTczYWU2ZDc4MzUy
15
+ NzY4Nzg2YjM5M2M5OTUwMWFlOTRiYTJmYjM1NGZmMjI5N2Q0Njc=
data/bin/histo CHANGED
@@ -3,7 +3,7 @@
3
3
  #/ -p <measure> : Parse shades formatted data and histogram a specific measure given as the last argument
4
4
  #/ -n <num> : the max number of bins to include in the output (default = 10)
5
5
  #/ -w <width> : the width of the histogram bars (default = 30)
6
- #/ -l : output ascii art on a log scale (default is linear).
6
+ #/ -l <logbase> : output ascii art on a log scale (default is linear).
7
7
  #/ : tip: if the value distribution looks linear using this option then you're dealing with a power law.
8
8
  #/ -h : show this usage
9
9
  $: << File.realpath(File.dirname(__FILE__) + "/../lib")
@@ -80,5 +80,11 @@ opts.each do |opt, arg|
80
80
  end
81
81
  end
82
82
 
83
+ # if no measure was specified but the last argument is a word, then use
84
+ # that as the measure to parse
85
+ if measure.nil? && ARGV.length > 0 && !ARGV[-1].start_with?("-")
86
+ measure = ARGV[-1]
87
+ end
88
+
83
89
  main(measure, max_bins, ascii_width, log_base)
84
90
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shades'
3
- s.version = '0.12'
3
+ s.version = '0.13'
4
4
 
5
5
  s.summary = "Get a new perspective on your data. In-memory data cubing of event data for Ruby."
6
6
  s.description = <<-EOF
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shades
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.12'
4
+ version: '0.13'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dietrich Featherston