wahwah 1.6.4 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b71422abe8effd7cf724451e130bc68c62e18f89b2a0dbf3af91dd4a789ff7c0
4
- data.tar.gz: 8e4deef44b33e4112b42b4e0b55d1d850fdf97a6c6041e245fb6a43674c94cf8
3
+ metadata.gz: aefad7912144b9ca322ab5cc843c615b48fe54eafff68bae8626c674513c5b63
4
+ data.tar.gz: 131564fa1db4bcff6e0e24e2eff8781348f4900e9d54c3047ff86ec6a4eefc7d
5
5
  SHA512:
6
- metadata.gz: 2e46bb17bbda9d55f5999761844924f368fb22836a0029511db9aa57d2447d952803614eda3d0732a0520d9106076c6d97e1f5eadd08d597628975521982ec53
7
- data.tar.gz: 8f7f7596631653567e8b5661fc1771b6aeeb8def7440da22e580d0453f8c5f40a6f1c330ca28b4f5648b69d21b31df6bf8ce56d7d912941d73f0172b65b00f01
6
+ metadata.gz: cc42d711d7dd060258bfb46751e12637fe925486891949c7f40b2201a0a81dda5a184d2071080a4cfd6025f22c14ec4f066ff0e07392075e0c22d890a1143f59
7
+ data.tar.gz: e9e909d3633237af3e47de9d4d55ddc3e2f41347db4ef9bb7f134fe2adb65cde9fe0962ddfcce60b2a96352803964d46438d6d9199405df6d34c7ef2182c7ed3
data/lib/wahwah/helper.rb CHANGED
@@ -54,6 +54,8 @@ module WahWah
54
54
  def self.file_format_from_signature(io)
55
55
  io.rewind
56
56
  signature = io.read(16)
57
+ # Rewind after reading the signature to not mess with the file position
58
+ io.rewind
57
59
 
58
60
  # Source: https://en.wikipedia.org/wiki/List_of_file_signatures
59
61
 
data/lib/wahwah/tag.rb CHANGED
@@ -31,6 +31,9 @@ module WahWah
31
31
  @file_size = io.size
32
32
  @file_io = io
33
33
 
34
+ # Rewinding at the start just in case some other helper class or parser already read from the file
35
+ @file_io.rewind
36
+
34
37
  @comments = []
35
38
  @images_data = []
36
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WahWah
4
- VERSION = "1.6.4"
4
+ VERSION = "1.6.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wahwah
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aidewoode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler