dubbletrack_remote 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/dubbletrack_remote/reader/dbf.rb +10 -4
- data/lib/dubbletrack_remote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181a168e9a9c822104ed6ab1f50abc3a08813a0014f2838c32ed2a22d014ab1e
|
4
|
+
data.tar.gz: c59ea7283377b80857f62a80d4cb577220975e3298ac17ad6a2995218f5cc40a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5695418121c7082992f346519fdb5c2a47a7d09a487993b83ebddba930fdfe9e7c31684d25f21c3b405914de91463fc116b13dce94a3cc4660076839ca5fda7c
|
7
|
+
data.tar.gz: '07851eabdf68a7693df72716fe0a375ceb589a13e8664ae0776ea706055af6e6fbe898be8018805d6ddf275aaf417600741277b8fe1fd42cdc9b813af9a87dd3'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
dubbletrack remote changelog
|
2
2
|
|
3
|
+
## [0.7.4](https://github.com/dubbletrack/remote/compare/v0.7.3...v0.7.4) (2023-06-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* better handle when there is an invalid scheduled time in the schedule ([8e3464d](https://github.com/dubbletrack/remote/commit/8e3464dfd3446268725b1b3ccd89467c7003a656))
|
9
|
+
|
3
10
|
## [0.7.3](https://github.com/dubbletrack/remote/compare/v0.7.2...v0.7.3) (2023-06-15)
|
4
11
|
|
5
12
|
## [0.7.2](https://github.com/dubbletrack/remote/compare/v0.7.1...v0.7.2) (2023-06-15)
|
@@ -24,7 +24,7 @@ module DubbletrackRemote
|
|
24
24
|
rescue => e
|
25
25
|
puts e.inspect
|
26
26
|
puts "date = #{date}, time = #{time}"
|
27
|
-
|
27
|
+
raise e
|
28
28
|
end
|
29
29
|
|
30
30
|
def rows
|
@@ -88,9 +88,15 @@ module DubbletrackRemote
|
|
88
88
|
automation_group = (hash["GROUP"] || "").strip
|
89
89
|
genre = (hash["GENRE"] || "").strip
|
90
90
|
guid = (hash["GUID"] || "").strip
|
91
|
+
puts date, time, hash
|
91
92
|
played_at = timestamp(date, time)
|
92
|
-
|
93
|
-
|
93
|
+
|
94
|
+
begin
|
95
|
+
intended_played_at_time = (hash["SCHSTART"] || "").strip
|
96
|
+
intended_played_at = timestamp(date, intended_played_at_time) if intended_played_at_time
|
97
|
+
rescue => e
|
98
|
+
puts e.inspect
|
99
|
+
end
|
94
100
|
|
95
101
|
unless played_at.respond_to?(:dst?)
|
96
102
|
puts "played_at is not a time: #{played_at.inspect} for #{hash.inspect}"
|
@@ -121,7 +127,7 @@ module DubbletrackRemote
|
|
121
127
|
item.source = File.basename(@file_path)
|
122
128
|
item.guid = guid
|
123
129
|
|
124
|
-
if played_at.dst? != intended_played_at.dst? && intended_played_at.to_i > played_at.to_i
|
130
|
+
if played_at.is_a?(Time) && intended_played_at.is_a?(Time) && played_at.dst? != intended_played_at.dst? && intended_played_at.to_i > played_at.to_i
|
125
131
|
# This compensates and sends correct time during the hour where DST changes and the hour is repeated
|
126
132
|
difference = intended_played_at.hour - played_at.hour
|
127
133
|
played_at = played_at + difference.hours
|