basis-band 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.
data/README.md CHANGED
@@ -31,14 +31,14 @@ If you pass -u and -d options the raw text will be fetched from the API and
31
31
  output on standard output:
32
32
 
33
33
  ```
34
- > miker $ basis-band -u xxxxx -d 2013-10-14
34
+ > miker $ basis-band -u 1234567890abcdef12345678 -d 2013-10-14
35
35
  {"metrics":{"skin_temp":{"min":77.0,"max":95.0,"sum":113642.0,"summary":{"max_skin_temp_per_minute":null...
36
36
  ```
37
37
 
38
38
  If you want the metric data as CSV instead of raw JSON:
39
39
 
40
40
  ```
41
- > miker $ basis-band -u xxxxx -d 2013-10-14 -c
41
+ > miker $ basis-band -u 1234567890abcdef12345678 -d 2013-10-14 -c
42
42
  t,state,skin_temp,heartrate,air_temp,calories,gsr,steps
43
43
  2013/10/01 00:00:00,inactive,83.8,58,80.6,1.3,0.000439,0
44
44
  2013/10/01 00:01:00,inactive,83.8,62,80.6,1.4,0.000402,0
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'basis-band'
4
4
  require 'optparse'
5
+ require 'yaml'
5
6
 
6
7
  def samples_to_csv(samples)
7
8
  lines = []
@@ -14,6 +15,11 @@ def samples_to_csv(samples)
14
15
  end
15
16
 
16
17
  options = {}
18
+ options_file = File.expand_path('.basis-band', ENV['HOME'])
19
+ puts "Looking for options #{options_file}"
20
+ if File.exist?(options_file)
21
+ options = YAML::load_file options_file
22
+ end
17
23
 
18
24
  OptionParser.new do |opts|
19
25
  opts.banner = "basis-band gem v#{BasisBandMeta::VERSION}\nUsage: basis-band [options]"
@@ -1,3 +1,3 @@
1
1
  module BasisBandMeta
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basis-band
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-06 00:00:00.000000000 Z
12
+ date: 2013-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json