dubbletrack_remote 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/dubbletrack_remote/reader/base.rb +4 -5
- 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: f010dd701e69b829033ec0e81a719bd434e94fcc6e362fa0ddbd8033f3ccd807
|
4
|
+
data.tar.gz: 4032b921ae342c7503bf84dab7cbcb7e8a1cd5b0f2961499b884371dd31e551b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0849e9c7d88b10e3476118810340b36af9cc2488cd777e6b83cff85482d41fd8ded09895880c4c4c6a31ccbda06778e903748794c585fd3860ed302b3ee7db8
|
7
|
+
data.tar.gz: 5f2f7e2df1169cab46346192c575044274cc1b1584f08452750260d84e6c72196e48638fea47548ef13c407be16ad5f4823a766f0b4fd691f0e5f44c869bcbd8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
3
11
|
## [0.8.4](https://github.com/dubbletrack/remote/compare/v0.8.3...v0.8.4) (2024-07-10)
|
4
12
|
|
5
13
|
|
@@ -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,
|
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)
|