dubbletrack_remote 0.8.2 → 0.8.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: e63c88eab80d59c62316812dbf4338d06cb74dcfbe00f1832d94e0fc14539be6
4
- data.tar.gz: d09e2f76a558acdb285ac68974e235144515f3fe83ab28f737fec30fb7e67865
3
+ metadata.gz: 4aef50c5b31550c6a26a531974907b365c4347cc1873cd3a202e610a34fe746a
4
+ data.tar.gz: 7833c4960817b23ac153a636b1aed53bf190d4bfec980e21434542440935f8a4
5
5
  SHA512:
6
- metadata.gz: eddab633a1b5c857d43e082e53f3fe28f67381132e00c3a5b4df819268cdd53cfbdd24a49a67ea37c3ffbd3cf1b6c5fc7f975c7feccb92a6c2087621267e6845
7
- data.tar.gz: 844bd601de159bbfafc43043dd615869e0224c2094c57869667f3b3a917eb95ea0eacfdddc96f2b2d36ee517ec9205024b2513e125ca068bea0c68b99678dede
6
+ metadata.gz: 26c7b6f5a4b69509fe61ccc51625d5ea1557f74c018551cb919c7c6b219096e4d1130a2b7fbfed0638a7645aa577b844c5e107d297f599776ae7d107728f10a4
7
+ data.tar.gz: a125476c34b234b7773ea82996dcb40452c246613f1fab0d7ef041fefc75f1661443b04cc87c10b7060a75faed800b2e8eda97317446f34392a8833997a742a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  dubbletrack remote changelog
2
2
 
3
+ ## [0.8.4](https://github.com/dubbletrack/remote/compare/v0.8.3...v0.8.4) (2024-07-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * adjust settings init ([3013940](https://github.com/dubbletrack/remote/commit/3013940e4d5c759f1f8d9546a4a3f8f70f0db498))
9
+
10
+ ## [0.8.3](https://github.com/dubbletrack/remote/compare/v0.8.2...v0.8.3) (2024-07-10)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Update syntax for hash args ([9893e36](https://github.com/dubbletrack/remote/commit/9893e3662523b406d6e9532680476222b672e566))
16
+
3
17
  ## [0.8.2](https://github.com/dubbletrack/remote/compare/v0.8.1...v0.8.2) (2024-07-10)
4
18
 
5
19
 
@@ -2,6 +2,7 @@ require "thor/rake_compat"
2
2
  require "rspec/core/rake_task"
3
3
  require "sinatra/activerecord/rake"
4
4
  require "pry"
5
+ require "config"
5
6
  require "fileutils"
6
7
 
7
8
  module DubbletrackRemote
@@ -18,7 +19,7 @@ module DubbletrackRemote
18
19
 
19
20
  Reader.watch(watch_path, pattern: watch_pattern) do |file|
20
21
  puts "detected change in #{file}"
21
- Reader.new(file, {cuts_path: local_cuts_file}).ingest
22
+ Reader.new(file, cuts_path: local_cuts_file).ingest
22
23
  end
23
24
 
24
25
  Thread.new do
@@ -64,7 +65,7 @@ module DubbletrackRemote
64
65
  ensure_setup
65
66
 
66
67
  if todays_playlist_path
67
- [todays_playlist_path].flatten.each { |f| Reader.new(f, {cuts_path: local_cuts_file}).ingest }
68
+ [todays_playlist_path].flatten.each { |f| Reader.new(f, cuts_path: local_cuts_file).ingest }
68
69
  else
69
70
  puts "no file found matching pattern #{playlist_pattern}"
70
71
  end
@@ -78,7 +79,7 @@ module DubbletrackRemote
78
79
  if paths.any?
79
80
  items = paths.collect do |path|
80
81
  puts "reading #{path}"
81
- items = Reader.new(path, {cuts_path: local_cuts_file}).items
82
+ items = Reader.new(path, cuts_path: local_cuts_file).items
82
83
  end.flatten.sort_by(&:played_at)
83
84
  remaining = Item.where(id: items.pluck(:id)).remaining
84
85
 
@@ -110,7 +111,7 @@ module DubbletrackRemote
110
111
  if paths.any?
111
112
  items = paths.collect do |path|
112
113
  puts "reading #{path}"
113
- items = Reader.new(path, {cuts_path: local_cuts_file}).items
114
+ items = Reader.new(path, cuts_path: local_cuts_file).items
114
115
  end.flatten.sort_by(&:played_at)
115
116
 
116
117
  items.each do |e|
@@ -129,7 +130,7 @@ module DubbletrackRemote
129
130
  if paths.any?
130
131
  paths.each do |path|
131
132
  puts "importing #{path}"
132
- items = Reader.new(path, {cuts_path: local_cuts_file}).ingest
133
+ items = Reader.new(path, cuts_path: local_cuts_file).ingest
133
134
  items.each { |e| puts e.pretty_print }
134
135
  end
135
136
  else
@@ -154,7 +155,7 @@ module DubbletrackRemote
154
155
  if paths.any?
155
156
  paths.each do |path|
156
157
  puts "importing #{path}"
157
- items = Reader.new(path, {cuts_path: local_cuts_file}).ingest
158
+ items = Reader.new(path, cuts_path: local_cuts_file).ingest
158
159
  items.each { |e| puts e.pretty_print }
159
160
  end
160
161
  else
@@ -224,7 +225,7 @@ module DubbletrackRemote
224
225
  end
225
226
 
226
227
  def local_cuts_file
227
- if remote_cuts_path = Settings.automation.cuts_path
228
+ if remote_cuts_path = settings.automation.cuts_path
228
229
  if update_current_cuts_file?
229
230
  current_cut_path = File.join(options[:dir], "CUTS_#{Time.now.to_i}.DBF")
230
231
  delete_old_cuts
@@ -284,7 +285,7 @@ module DubbletrackRemote
284
285
  end
285
286
 
286
287
  def settings
287
- Settings
288
+ @settings ||= Config.load_and_set_settings(settings_path)
288
289
  end
289
290
 
290
291
  def settings_path
@@ -302,7 +303,7 @@ module DubbletrackRemote
302
303
  create_settings_file
303
304
  end
304
305
  end
305
- Config.load_and_set_settings(settings_path)
306
+ @settings = Config.load_and_set_settings(settings_path)
306
307
  Time.zone = Settings.automation.time_zone
307
308
  begin
308
309
  Rake::Task["db:migrate"].invoke
@@ -1,3 +1,3 @@
1
1
  module DubbletrackRemote
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.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.8.2
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen