id3tag 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/id3tag.gemspec +3 -3
- data/lib/id3tag/frames/v2/comments_frame.rb +4 -2
- data/lib/id3tag/frames/v2/text_frame.rb +4 -2
- data/spec/lib/id3tag/tag_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2ecfd975b9b73801ccab737a8f7c5490d8673ce
|
4
|
+
data.tar.gz: 6ffd416cb6120685c30e763bb3f357fe2acbc875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bf31e863d6c8084cc9cb8f458b2267eeb8805c7c363346e2458cf11e045e66b389d7283bf7ce686ece25c90feb210641af0b50713eed4f40dd944020045dba9
|
7
|
+
data.tar.gz: 4664e42acea06a36e1836294d968e1b07ea40d7407f4af256034a1aee6954b3588e2b991471f610f5c472e6bf435bb1e7855571632a04bc88efd155d79d1c685
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/id3tag.gemspec
CHANGED
@@ -2,15 +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.5.
|
5
|
+
# stub: id3tag 0.5.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "id3tag"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Krists Ozols"]
|
13
|
-
s.date = "2013-11-
|
13
|
+
s.date = "2013-11-12"
|
14
14
|
s.description = "Native Ruby ID3 tag reader that aims for 100% covarage of ID3v2.x and ID3v1.x standards"
|
15
15
|
s.email = "krists@iesals.lv"
|
16
16
|
s.extra_rdoc_files = [
|
@@ -36,11 +36,13 @@ module ID3Tag
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def content_without_encoding_byte_and_language
|
39
|
-
|
39
|
+
raw_content_io.seek(4)
|
40
|
+
raw_content_io.read
|
40
41
|
end
|
41
42
|
|
42
43
|
def get_language
|
43
|
-
|
44
|
+
raw_content_io.seek(1)
|
45
|
+
raw_content_io.read(LANGUAGE_BYTE_COUNT).downcase
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
@@ -33,11 +33,13 @@ module ID3Tag
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def get_encoding_byte
|
36
|
-
|
36
|
+
raw_content_io.rewind
|
37
|
+
raw_content_io.getbyte
|
37
38
|
end
|
38
39
|
|
39
40
|
def content_without_encoding_byte
|
40
|
-
|
41
|
+
raw_content_io.seek(1)
|
42
|
+
raw_content_io.read
|
41
43
|
end
|
42
44
|
end
|
43
45
|
end
|
data/spec/lib/id3tag/tag_spec.rb
CHANGED
@@ -195,7 +195,7 @@ describe ID3Tag::Tag do
|
|
195
195
|
subject.comments(:eng).should eq("Visit http://cryochamber.bandcamp.com")
|
196
196
|
end
|
197
197
|
it "should read private frames" do
|
198
|
-
subject.get_frames(:PRIV).find { |f| f.owner_identifier == "WM/MediaClassPrimaryID" }.should be_kind_of(ID3Tag::Frames::V2::PrivateFrame)
|
198
|
+
subject.get_frames(:PRIV).find { |f| f.owner_identifier.force_encoding(Encoding::UTF_8) == "WM/MediaClassPrimaryID" }.should be_kind_of(ID3Tag::Frames::V2::PrivateFrame)
|
199
199
|
end
|
200
200
|
end
|
201
201
|
end
|
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.5.
|
4
|
+
version: 0.5.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-11-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debugger
|