id3tag 0.3.0 → 0.3.1
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/VERSION +1 -1
- data/id3tag.gemspec +4 -3
- data/lib/id3tag/frames/v2/comments_frame.rb +1 -1
- data/lib/id3tag/frames/v2/text_frame.rb +5 -6
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c0b821b5377f22089bdda01eae4e3b4a77e8ab2
|
|
4
|
+
data.tar.gz: 698cbb6e33de5bd8ea628521ada68ec1a2b94b18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 732fad51cb94e0e4ebe55d0221515ea098084e61b2c9b95415b484cd1808a00e010c86cee9ddb5c38e0d196f81361c327d9bc1a859153698535b43991944d334
|
|
7
|
+
data.tar.gz: cdf7eb252dac30f582483b994d30f9effcd0ecf1aa9606892220fa838c758466d4c84a374436b963a60c908c631de4c1849eb2047ac73c45e275fd66f71b0b86
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
data/id3tag.gemspec
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
+
# stub: id3tag 0.3.1 ruby lib
|
|
5
6
|
|
|
6
7
|
Gem::Specification.new do |s|
|
|
7
8
|
s.name = "id3tag"
|
|
8
|
-
s.version = "0.3.
|
|
9
|
+
s.version = "0.3.1"
|
|
9
10
|
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
12
|
s.authors = ["Krists Ozols"]
|
|
12
|
-
s.date = "2013-10-
|
|
13
|
+
s.date = "2013-10-21"
|
|
13
14
|
s.description = "Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x standards"
|
|
14
15
|
s.email = "krists@iesals.lv"
|
|
15
16
|
s.extra_rdoc_files = [
|
|
@@ -95,7 +96,7 @@ Gem::Specification.new do |s|
|
|
|
95
96
|
s.licenses = ["MIT"]
|
|
96
97
|
s.require_paths = ["lib"]
|
|
97
98
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
|
|
98
|
-
s.rubygems_version = "2.
|
|
99
|
+
s.rubygems_version = "2.1.5"
|
|
99
100
|
s.summary = "Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x standards"
|
|
100
101
|
|
|
101
102
|
if s.respond_to? :specification_version then
|
|
@@ -27,7 +27,7 @@ module ID3Tag
|
|
|
27
27
|
private
|
|
28
28
|
|
|
29
29
|
def encoded_text_and_content_parts
|
|
30
|
-
@encoded_text_and_content_parts ||= encoded_text_and_content.split(
|
|
30
|
+
@encoded_text_and_content_parts ||= encoded_text_and_content.split(NULL_BYTE)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def encoded_text_and_content
|
|
@@ -5,10 +5,10 @@ module ID3Tag
|
|
|
5
5
|
NULL_BYTE = "\x00"
|
|
6
6
|
UnsupportedTextEncoding = Class.new(StandardError)
|
|
7
7
|
ENCODING_MAP = {
|
|
8
|
-
0b0 =>
|
|
9
|
-
0b1 =>
|
|
10
|
-
0b10 =>
|
|
11
|
-
0b11 =>
|
|
8
|
+
0b0 => Encoding::ISO8859_1,
|
|
9
|
+
0b1 => Encoding::UTF_16,
|
|
10
|
+
0b10 => Encoding::UTF_16BE,
|
|
11
|
+
0b11 => Encoding::UTF_8
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
def content
|
|
@@ -20,11 +20,10 @@ module ID3Tag
|
|
|
20
20
|
private
|
|
21
21
|
|
|
22
22
|
def source_encoding
|
|
23
|
-
|
|
23
|
+
ENCODING_MAP.fetch(get_encoding_byte) { raise UnsupportedTextEncoding }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
def current_encoding_map
|
|
27
|
-
ENCODING_MAP.fetch(get_encoding_byte) { raise UnsupportedTextEncoding }
|
|
28
27
|
end
|
|
29
28
|
|
|
30
29
|
def destination_encoding
|
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.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Krists Ozols
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: debugger
|
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
version: '0'
|
|
211
211
|
requirements: []
|
|
212
212
|
rubyforge_project:
|
|
213
|
-
rubygems_version: 2.
|
|
213
|
+
rubygems_version: 2.1.5
|
|
214
214
|
signing_key:
|
|
215
215
|
specification_version: 4
|
|
216
216
|
summary: Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x
|