id3tag 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/id3tag/frames/v1/comments_frame.rb +1 -1
- data/lib/id3tag/frames/v1/text_frame.rb +1 -5
- data/lib/id3tag/frames/v2/comments_frame.rb +1 -1
- data/lib/id3tag/frames/v2/text_frame.rb +1 -5
- data/lib/id3tag/tag.rb +1 -1
- data/lib/id3tag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667971eff7efb32a7d5b35c40bf93f66cf435c7aca6e24a6ca6c8d02cd90e783
|
4
|
+
data.tar.gz: ae499c107a5cf5f75b1906a6259552061e9143e4f302cfbbadd4f3e4e62436b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93641cd6c5d2ef1febf87859bed72ec3f2aa92b79ed250f2e51dbf37373043c6bc39f07cb280e2ae171d25f6b1add950fc571706edce5bf35561d46dac5ab851
|
7
|
+
data.tar.gz: bb9cb24084969d9b1e3b986f2b872e534ee67cfbf72599705fac60a931952c6765be3c95dffa08619763eb013740a6a2c5e8a6a799bb373a1c9c2e4a255fcf66
|
data/README.md
CHANGED
@@ -9,15 +9,11 @@ module ID3Tag
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def content
|
12
|
-
|
12
|
+
EncodingUtil.encode(@content, source_encoding)
|
13
13
|
end
|
14
14
|
|
15
15
|
private
|
16
16
|
|
17
|
-
def destination_encoding
|
18
|
-
Encoding::UTF_8
|
19
|
-
end
|
20
|
-
|
21
17
|
def source_encoding
|
22
18
|
Encoding::ISO8859_1
|
23
19
|
end
|
@@ -32,7 +32,7 @@ module ID3Tag
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def encoded_content
|
35
|
-
|
35
|
+
EncodingUtil.encode(content_without_encoding_byte_and_language, source_encoding)
|
36
36
|
end
|
37
37
|
|
38
38
|
def content_without_encoding_byte_and_language
|
@@ -21,7 +21,7 @@ module ID3Tag
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def encoded_content
|
24
|
-
|
24
|
+
EncodingUtil.encode(content_without_encoding_byte, source_encoding)
|
25
25
|
end
|
26
26
|
|
27
27
|
def source_encoding
|
@@ -30,10 +30,6 @@ module ID3Tag
|
|
30
30
|
end.to_s
|
31
31
|
end
|
32
32
|
|
33
|
-
def destination_encoding
|
34
|
-
Encoding::UTF_8.to_s
|
35
|
-
end
|
36
|
-
|
37
33
|
def get_encoding_byte
|
38
34
|
raw_content_io.rewind
|
39
35
|
raw_content_io.getbyte
|
data/lib/id3tag/tag.rb
CHANGED
@@ -38,7 +38,7 @@ module ID3Tag
|
|
38
38
|
|
39
39
|
def first_frame_by_id(*ids)
|
40
40
|
first_existing_id = ids.find { |id| frame_ids.include?(id) }
|
41
|
-
first_existing_id &&
|
41
|
+
first_existing_id && get_frames(first_existing_id).first
|
42
42
|
end
|
43
43
|
|
44
44
|
def all_frames_by_id(*ids)
|
data/lib/id3tag/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: id3tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krists Ozols
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|