summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/postrunner/Main.rb4
-rw-r--r--lib/postrunner/version.rb4
-rw-r--r--postrunner.gemspec21
-rw-r--r--spec/PostRunner_spec.rb4
4 files changed, 19 insertions, 14 deletions
diff --git a/lib/postrunner/Main.rb b/lib/postrunner/Main.rb
index 8cf50ae..286fef6 100644
--- a/lib/postrunner/Main.rb
+++ b/lib/postrunner/Main.rb
@@ -92,6 +92,8 @@ module PostRunner
"#{VERSION}!")
end
return -1
+ ensure
+ @db.exit if @db
end
end
@@ -103,7 +105,7 @@ module PostRunner
opts.separator <<"EOT"
-Copyright (c) 2014, 2015, 2016 by Chris Schlaeger
+Copyright (c) 2014, 2015, 2016, 2017 by Chris Schlaeger
This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
diff --git a/lib/postrunner/version.rb b/lib/postrunner/version.rb
index 74e9895..f5349ca 100644
--- a/lib/postrunner/version.rb
+++ b/lib/postrunner/version.rb
@@ -3,7 +3,7 @@
#
# = version.rb -- PostRunner - Manage the data from your Garmin sport devices.
#
-# Copyright (c) 2014, 2015, 2016 by Chris Schlaeger <cs@taskjuggler.org>
+# Copyright (c) 2014, 2015, 2016, 2017 by Chris Schlaeger <cs@taskjuggler.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
@@ -11,5 +11,5 @@
#
module PostRunner
- VERSION = '0.7.5'
+ VERSION = '0.8.0'
end
diff --git a/postrunner.gemspec b/postrunner.gemspec
index 2e796bd..4ce3679 100644
--- a/postrunner.gemspec
+++ b/postrunner.gemspec
@@ -10,14 +10,15 @@ GEM_SPEC = Gem::Specification.new do |spec|
spec.email = ["cs@taskjuggler.org"]
spec.summary = %q{Application to manage and analyze Garmin FIT files.}
spec.description = %q{PostRunner is an application to manage FIT files
-such as those produced by Garmin products like the Forerunner 620 (FR620) and
-Fenix 3 or Fenix 3HR. It allows you to import the files from the device and
-analyze the data. In addition to the common features like plotting pace, heart
-rates, elevation and other captured values it also provides a heart rate
-variability (HRV) analysis. It can also update satellite orbit prediction
-(EPO) data on the device to speed-up GPS fix times. It is an offline alternative
-to Garmin Connect. The software has been developed and tested on Linux but
-should work on other operating systems as well.}
+such as those produced by Garmin products like the Forerunner 620 (FR620),
+Fenix 3, Fenix 3HR, Fenix 5 (S and X). It allows you to import the files from
+the device and analyze the data. In addition to the common features like
+plotting pace, heart rates, elevation and other captured values it also
+provides a heart rate variability (HRV) and sleep analysis. It can also update
+satellite orbit prediction (EPO) data on the device to speed-up GPS fix times.
+It is an offline alternative to Garmin Connect. The software has been
+developed and tested on Linux but should work on other operating systems as
+well.}
spec.homepage = 'https://github.com/scrapper/postrunner'
spec.license = "GNU GPL version 2"
@@ -27,8 +28,8 @@ should work on other operating systems as well.}
spec.require_paths = ["lib"]
spec.required_ruby_version = '>=2.0'
- spec.add_dependency 'fit4ruby', '~> 1.5.1'
- spec.add_dependency 'perobs', '~> 2.4.1'
+ spec.add_dependency 'fit4ruby', '~> 1.6.0'
+ spec.add_dependency 'perobs', '~> 3.0.1'
spec.add_dependency 'nokogiri', '~> 1.6'
spec.add_development_dependency 'bundler', '~> 1.6'
diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb
index bd75974..08ed686 100644
--- a/spec/PostRunner_spec.rb
+++ b/spec/PostRunner_spec.rb
@@ -31,7 +31,9 @@ describe PostRunner::Main do
$stderr = old_stderr
end
- { :retval => retval, :stdout => stdout.string, :stderr => stderr.string }
+ stdout.rewind
+ stderr.rewind
+ { :retval => retval, :stdout => stdout.read, :stderr => stderr.read}
end
before(:all) do