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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b979a732340ba5dc962c63c0dbb3eeaeaeda5ddc
4
- data.tar.gz: 86bf018537df030ace61374ee53dde985eeae97d
3
+ metadata.gz: c2ecfd975b9b73801ccab737a8f7c5490d8673ce
4
+ data.tar.gz: 6ffd416cb6120685c30e763bb3f357fe2acbc875
5
5
  SHA512:
6
- metadata.gz: 482d8a339e51dfb36274429a23e497409d11459f9dbfd5f2fcbef75944558070ebaef7d2c688cc3f582723375a7243cab372208652a5c06621051528547a5be1
7
- data.tar.gz: 4276bb8473958cb3e8d4de143722bee763324ba0d37f16f0dfb8bd866fa8a62a6b6f49393f932288b76e9e0b7d2f7469ea29a31810de4ee3ba87e6f38dc5a8ee
6
+ metadata.gz: 0bf31e863d6c8084cc9cb8f458b2267eeb8805c7c363346e2458cf11e045e66b389d7283bf7ce686ece25c90feb210641af0b50713eed4f40dd944020045dba9
7
+ data.tar.gz: 4664e42acea06a36e1836294d968e1b07ea40d7407f4af256034a1aee6954b3588e2b991471f610f5c472e6bf435bb1e7855571632a04bc88efd155d79d1c685
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
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.0 ruby lib
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.0"
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-10"
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
- content_without_encoding_byte.byteslice(LANGUAGE_BYTE_COUNT, content_without_encoding_byte.bytesize - LANGUAGE_BYTE_COUNT)
39
+ raw_content_io.seek(4)
40
+ raw_content_io.read
40
41
  end
41
42
 
42
43
  def get_language
43
- content_without_encoding_byte[0...LANGUAGE_BYTE_COUNT].downcase
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
- usable_content.getbyte(0)
36
+ raw_content_io.rewind
37
+ raw_content_io.getbyte
37
38
  end
38
39
 
39
40
  def content_without_encoding_byte
40
- usable_content.byteslice(1, usable_content.bytesize - 1)
41
+ raw_content_io.seek(1)
42
+ raw_content_io.read
41
43
  end
42
44
  end
43
45
  end
@@ -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.0
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-10 00:00:00.000000000 Z
11
+ date: 2013-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debugger