dubbletrack_remote 0.8.3 → 0.8.5

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: 4ffb748f6bce546d9021286ecabfd1c426d006de2aef9d2e299d65aad0eb8313
4
- data.tar.gz: f8015b95dbcb6141070247c3e890828bbd811124c676b94e28cc0e40fcc8bb25
3
+ metadata.gz: f010dd701e69b829033ec0e81a719bd434e94fcc6e362fa0ddbd8033f3ccd807
4
+ data.tar.gz: 4032b921ae342c7503bf84dab7cbcb7e8a1cd5b0f2961499b884371dd31e551b
5
5
  SHA512:
6
- metadata.gz: 95b5d34e2b55b30b92217bc92c2e251aa3990686d64b8ca350570cc3b448c88065d250bf474941472f4b16e32463e2437c236492dbfe7ee181bc8cdf6bb2270e
7
- data.tar.gz: a125e37d84c20ebf70865fc993d7a8c89002a437ba38cdbd153bdcd407b8b0b2452932ab143c911ab2ecabd18c979bce9b10bf9009a088d31494d8a9055dacaa
6
+ metadata.gz: e0849e9c7d88b10e3476118810340b36af9cc2488cd777e6b83cff85482d41fd8ded09895880c4c4c6a31ccbda06778e903748794c585fd3860ed302b3ee7db8
7
+ data.tar.gz: 5f2f7e2df1169cab46346192c575044274cc1b1584f08452750260d84e6c72196e48638fea47548ef13c407be16ad5f4823a766f0b4fd691f0e5f44c869bcbd8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  dubbletrack remote changelog
2
2
 
3
+ ## [0.8.5](https://github.com/dubbletrack/remote/compare/v0.8.4...v0.8.5) (2024-07-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * another hash update ([89bb9fb](https://github.com/dubbletrack/remote/commit/89bb9fba95bb0702f815a496202242166122c60a))
9
+ * Another method change for ruby 3.x ([2ffd4df](https://github.com/dubbletrack/remote/commit/2ffd4dffbd970b8fa1c91ce27683401d2e964476))
10
+
11
+ ## [0.8.4](https://github.com/dubbletrack/remote/compare/v0.8.3...v0.8.4) (2024-07-10)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * adjust settings init ([3013940](https://github.com/dubbletrack/remote/commit/3013940e4d5c759f1f8d9546a4a3f8f70f0db498))
17
+
3
18
  ## [0.8.3](https://github.com/dubbletrack/remote/compare/v0.8.2...v0.8.3) (2024-07-10)
4
19
 
5
20
 
@@ -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
@@ -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,16 +1,15 @@
1
1
  # Reads in a DBF file and creates items out of them, annotating with information from CUTS
2
2
  module DubbletrackRemote
3
3
  module Reader
4
- def self.new(file_path, options = {})
4
+ def self.new(file_path, **options)
5
5
  if File.extname(file_path) == ".DBF"
6
- DubbletrackRemote::Reader::DBF.new(file_path, options)
6
+ DubbletrackRemote::Reader::DBF.new(file_path, **options)
7
7
  elsif File.extname(file_path) == ".TSV"
8
- DubbletrackRemote::Reader::TSV.new(file_path, options)
8
+ DubbletrackRemote::Reader::TSV.new(file_path, **options)
9
9
  end
10
10
  end
11
11
 
12
- def self.watch(playlist_path, options = {}, &block)
13
- pattern = options[:pattern] || Regexp.new(".+")
12
+ def self.watch(playlist_path, pattern: Regexp.new(".+"), &block)
14
13
  listener = Listen.to(playlist_path, force_polling: true, wait_for_delay: 4) do |modified, added|
15
14
  [modified, added].flatten.compact.uniq.each do |file|
16
15
  if pattern.match(file)
@@ -1,3 +1,3 @@
1
1
  module DubbletrackRemote
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.5"
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.3
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen