pulse_meter_cli 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/cmd.rb +2 -2
  2. data/pulse_meter_cli.gemspec +1 -1
  3. metadata +1 -1
data/lib/cmd.rb CHANGED
@@ -79,10 +79,10 @@ module Cmd
79
79
  desc "timeline_within NAME FROM TILL", "Get sensor's NAME timeline in interval. Time format: YYYY-MM-DD HH:MM:SS"
80
80
  common_options
81
81
  method_option :format, :default => :table, :desc => "Output format: table or csv"
82
- def timeline_within(name, from, till, true)
82
+ def timeline_within(name, from, till)
83
83
  with_safe_restore_of(name) do |sensor|
84
84
  puts sensor.
85
- timeline_within(Time.parse(from), Time.parse(till)).
85
+ timeline_within(Time.parse(from), Time.parse(till), true).
86
86
  map {|data| [data.start_time, data.value || '']}.
87
87
  to_table(options[:format])
88
88
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.name = "pulse_meter_cli"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = "0.4.13"
17
+ gem.version = "0.4.14"
18
18
 
19
19
  gem.add_runtime_dependency('pulse_meter_core')
20
20
  gem.add_runtime_dependency('terminal-table')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulse_meter_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: