gpsd_baud_rate 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gpsd_baud_rate.gemspec +1 -1
- data/lib/gpsd_baud_rate.rb +2 -3
- data/lib/gpsd_baud_rate/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b782674c020c642a45c1e397f2fb736cd06c4e6655227d52b3c2390559a9876e
|
4
|
+
data.tar.gz: aa58039be7b360fd1531d4b7656347101da364be1c8afc9a043bff3b5a48a137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9935987dd7d1f01afb27bdf550dfb81bb1fa94fbc3bae6191d5c049ca0d236ed3f1e42b0169046fff215ae33130789ee5d8a68507c70502c43bd52b938b81acf
|
7
|
+
data.tar.gz: c4efa59dbfef40cf6b9b08ce214e7f02d4973966d6ef3ee0694dea13f444adf2224b722a6749a741a058cda85c9841ef3baeca72d41a4e3dcc908140bf8c0d1a
|
data/gpsd_baud_rate.gemspec
CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
|
|
39
39
|
spec.add_development_dependency "bundler", "~> 1.17"
|
40
40
|
spec.add_development_dependency "rake", "~> 10.0"
|
41
41
|
|
42
|
-
spec.add_dependency 'serialport', '
|
42
|
+
spec.add_dependency 'serialport', '>= 1.3.1'
|
43
43
|
|
44
44
|
# spec.add_development_dependency "rspec", "~> 3.2"
|
45
45
|
end
|
data/lib/gpsd_baud_rate.rb
CHANGED
@@ -6,7 +6,7 @@ require 'logger'
|
|
6
6
|
class GpsdBaudRate
|
7
7
|
attr_reader :version
|
8
8
|
|
9
|
-
@@version =GpsdBaudRate::VERSION
|
9
|
+
@@version = GpsdBaudRate::VERSION.to_s
|
10
10
|
|
11
11
|
@@device = '/dev/ttyAMA0'
|
12
12
|
@@service = 'gpsd.service'
|
@@ -17,13 +17,12 @@ class GpsdBaudRate
|
|
17
17
|
|
18
18
|
def initialize goal_rate = @@baud_rates[0]
|
19
19
|
|
20
|
-
@logger = new_logger path: "log/GpsdbaudRate.log", progname: "
|
20
|
+
@logger = new_logger path: "log/GpsdbaudRate.log", progname: "GpsdBaudRate", time_format: "'%Y-%m-%d %T.%N %z %Z'", level: Logger::DEBUG
|
21
21
|
@logger.info "GpsdBaudRate Gem - Version: #{@@version}"
|
22
22
|
# pid= %x|pgrep -f "ruby /home/deploy/bin/set_baud.rb"|
|
23
23
|
# @logger.debug "Pid: #{pid}, $$: #{$$}, $BASHPID: #{$BASHPID}"
|
24
24
|
|
25
25
|
@goal_rate = goal_rate.to_i
|
26
|
-
@logger.debug "Hello from gpsd_baud_rate!"
|
27
26
|
@logger.debug "Goal_rate: #{@goal_rate}"
|
28
27
|
|
29
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gpsd_baud_rate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Finnegan
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: serialport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.3.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.3.1
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- steven@rustyshamrock.com
|