dubbletrack_remote 0.7.2 → 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 +9 -0
- data/dubbletrack_remote.gemspec +2 -2
- data/lib/dubbletrack_remote/reader/dbf.rb +10 -4
- data/lib/dubbletrack_remote/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: 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,14 @@
|
|
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
|
+
|
10
|
+
## [0.7.3](https://github.com/dubbletrack/remote/compare/v0.7.2...v0.7.3) (2023-06-15)
|
11
|
+
|
3
12
|
## [0.7.2](https://github.com/dubbletrack/remote/compare/v0.7.1...v0.7.2) (2023-06-15)
|
4
13
|
|
5
14
|
|
data/dubbletrack_remote.gemspec
CHANGED
@@ -38,8 +38,8 @@ Gem::Specification.new do |spec|
|
|
38
38
|
|
39
39
|
spec.add_development_dependency "minitest", "~> 5.11.3"
|
40
40
|
spec.add_development_dependency "standard", "~> 1.9.0"
|
41
|
-
spec.add_dependency "activerecord", "~> 6.0.
|
42
|
-
spec.add_dependency "activesupport", "~> 6.0.
|
41
|
+
spec.add_dependency "activerecord", "~> 6.0.6"
|
42
|
+
spec.add_dependency "activesupport", "~> 6.0.6"
|
43
43
|
spec.add_dependency "bundler", "~> 2.0"
|
44
44
|
spec.add_dependency "byebug", "~> 11.1.3"
|
45
45
|
spec.add_dependency "config", "~>2.2.1"
|
@@ -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
|
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.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Keen
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 6.0.
|
47
|
+
version: 6.0.6
|
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: 6.0.
|
54
|
+
version: 6.0.6
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 6.0.
|
61
|
+
version: 6.0.6
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 6.0.
|
68
|
+
version: 6.0.6
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|