id3tag 0.3.2 → 0.4.0

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: 30e2c415fd1a952d8239e96cf5b2ece8f3729f23
4
- data.tar.gz: 9e064e792b74db5d5d473f04d7caa7865ff789f7
3
+ metadata.gz: 192009692506623f17cd3c91ff040cb5afddd8db
4
+ data.tar.gz: ea9a1c3f2009ac8d4cfaad09f5e7d3837a527934
5
5
  SHA512:
6
- metadata.gz: c77daedfe027a064210ccd201f78e8834f6fdec4efd8bca7b0b34fe2e2329e9a3bb42fc1a8ae2a5f926cfc636ee3941f61a399d8cd8e48e41922ca8c714e886d
7
- data.tar.gz: 11341ffed291bf7aab6441587461eadec753c454bad13d43bf4427212f86c4a8156e5e170635b771f82983e448c0558e4939278a76e96ce3a571fb89462fb70e
6
+ metadata.gz: f796886149fa97049de4262cd06d29aa43033d1e61f1c33f80be3298a8c6e9b0fb0109f5ad1518f408644c32e712e1e8da0f482bc6e39de2526f9c4b8808f7d7
7
+ data.tar.gz: 03b35723226f0a0d93c14958b755bbe79f8064930739f7868241a6a8ea6ec03c846312483457db180e47a1316a8e9d87ca3fd0396823e58b7aad445f6d3e1177
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
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.3.2 ruby lib
5
+ # stub: id3tag 0.4.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "id3tag"
9
- s.version = "0.3.2"
9
+ s.version = "0.4.0"
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-10-21"
13
+ s.date = "2013-10-22"
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 = [
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
46
46
  "lib/id3tag/frames/v2/genre_frame/genre_parser_pre_24.rb",
47
47
  "lib/id3tag/frames/v2/text_frame.rb",
48
48
  "lib/id3tag/frames/v2/unique_file_id_frame.rb",
49
+ "lib/id3tag/frames/v2/unsychronized_transcription_frame.rb",
49
50
  "lib/id3tag/id3_v1_frame_parser.rb",
50
51
  "lib/id3tag/id3_v2_frame_parser.rb",
51
52
  "lib/id3tag/id3_v2_tag_header.rb",
data/lib/id3tag.rb CHANGED
@@ -18,6 +18,7 @@ require "id3tag/frames/v2/basic_frame"
18
18
  require "id3tag/frames/v2/text_frame"
19
19
  require "id3tag/frames/v2/unique_file_id_frame"
20
20
  require "id3tag/frames/v2/comments_frame"
21
+ require "id3tag/frames/v2/unsychronized_transcription_frame"
21
22
  require "id3tag/frames/v2/genre_frame"
22
23
  require "id3tag/frames/v2/genre_frame/genre_parser"
23
24
  require "id3tag/frames/v2/genre_frame/genre_parser_pre_24"
@@ -17,7 +17,8 @@ module ID3Tag
17
17
  :year => :TYE,
18
18
  :comments => :COM,
19
19
  :genre => :TCO,
20
- :track_nr => :TRK
20
+ :track_nr => :TRK,
21
+ :unsychronized_transcription => :ULT
21
22
  },
22
23
  'v2.3' => {
23
24
  :artist => :TPE1,
@@ -26,7 +27,8 @@ module ID3Tag
26
27
  :year => :TYER,
27
28
  :comments => :COMM,
28
29
  :genre => :TCON,
29
- :track_nr => :TRCK
30
+ :track_nr => :TRCK,
31
+ :unsychronized_transcription => :USLT
30
32
  },
31
33
  'v2.4' => {
32
34
  :artist => :TPE1,
@@ -35,7 +37,8 @@ module ID3Tag
35
37
  :year => :TDRC,
36
38
  :comments => :COMM,
37
39
  :genre => :TCON,
38
- :track_nr => :TRCK
40
+ :track_nr => :TRCK,
41
+ :unsychronized_transcription => :USLT
39
42
  }
40
43
  }
41
44
 
@@ -24,6 +24,8 @@ module ID3Tag
24
24
  TextFrame
25
25
  when /^(COM|COMM)$/
26
26
  CommentsFrame
27
+ when /^(ULT|USLT)$/
28
+ UnsychronizedTranscriptionFrame
27
29
  when /^UFID$/
28
30
  UniqueFileIdFrame
29
31
  else
@@ -0,0 +1,9 @@
1
+ module ID3Tag
2
+ module Frames
3
+ module V2
4
+ class UnsychronizedTranscriptionFrame < CommentsFrame
5
+ end
6
+ end
7
+ end
8
+ end
9
+
data/lib/id3tag/tag.rb CHANGED
@@ -36,6 +36,14 @@ module ID3Tag
36
36
  get_frame_content(frame_id(:v2, :genre), frame_id(:v1, :genre))
37
37
  end
38
38
 
39
+ def comments
40
+ get_frame_content(frame_id(:v2, :comments), frame_id(:v1, :comments))
41
+ end
42
+
43
+ def unsychronized_transcription
44
+ get_frame_content(frame_id(:v2, :unsychronized_transcription))
45
+ end
46
+
39
47
  def get_frame(frame_id)
40
48
  frames = get_frames(frame_id)
41
49
  if frames.count > 1
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.2
4
+ version: 0.4.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: 2013-10-21 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debugger
@@ -145,6 +145,7 @@ files:
145
145
  - lib/id3tag/frames/v2/genre_frame/genre_parser_pre_24.rb
146
146
  - lib/id3tag/frames/v2/text_frame.rb
147
147
  - lib/id3tag/frames/v2/unique_file_id_frame.rb
148
+ - lib/id3tag/frames/v2/unsychronized_transcription_frame.rb
148
149
  - lib/id3tag/id3_v1_frame_parser.rb
149
150
  - lib/id3tag/id3_v2_frame_parser.rb
150
151
  - lib/id3tag/id3_v2_tag_header.rb