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.
- data/lib/cmd.rb +2 -2
- data/pulse_meter_cli.gemspec +1 -1
- 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
|
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
|
data/pulse_meter_cli.gemspec
CHANGED
@@ -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.
|
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')
|