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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d8ec69273d1248294ae71bd0640cd6d8d4339de72aa2ae2e85918fcd2aa53ac
4
- data.tar.gz: feefb8578e8d103871eefc5cec5087a1baeaa897c19b62945d5cba932ee0f90d
3
+ metadata.gz: 181a168e9a9c822104ed6ab1f50abc3a08813a0014f2838c32ed2a22d014ab1e
4
+ data.tar.gz: c59ea7283377b80857f62a80d4cb577220975e3298ac17ad6a2995218f5cc40a
5
5
  SHA512:
6
- metadata.gz: 530fcb5bcf125208932f9597b9ed457433425fbe7a497592a47cb0c0272110b9816c17ec678229d7fb47c672cec7af6902d3b0125b5e5f312925258ff5052485
7
- data.tar.gz: 16ec1c5b229b355e55ea6b79abb7b6819a879cff629989b1eb1475b00905933592f130c26107a2db9f94116c9bb53534c0139904f1f59f452109e7bcc7e5f72a
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
- date
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
- intended_played_at_time = (hash["SCHSTART"] || "").strip
93
- intended_played_at = timestamp(date, intended_played_at_time) if intended_played_at_time
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
@@ -1,3 +1,3 @@
1
1
  module DubbletrackRemote
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dubbletrack_remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen