ruby-mp3info 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemtest +0 -0
- data/History.txt +5 -0
- data/lib/mp3info.rb +1 -1
- data/lib/mp3info/extension_modules.rb +13 -3
- data/lib/mp3info/id3v2.rb +9 -5
- data/test/fixtures.yml +1383 -0
- data/test/test_ruby-mp3info.rb +15 -0
- metadata +11 -9
data/test/test_ruby-mp3info.rb
CHANGED
@@ -518,6 +518,21 @@ class Mp3InfoTest < TestCase
|
|
518
518
|
end
|
519
519
|
end
|
520
520
|
|
521
|
+
def test_utf16_no_bom
|
522
|
+
load_fixture_to_temp_file("utf16_no_bom")
|
523
|
+
Mp3Info.open(TEMP_FILE) do |mp3|
|
524
|
+
assert_equal "2.3.0", mp3.tag2.version
|
525
|
+
expected_tag = {
|
526
|
+
"TALB" => "\u266bRodrigo y Gabriela",
|
527
|
+
"TRCK"=>"1",
|
528
|
+
"TIT2"=>"Tamacun",
|
529
|
+
"TPE1"=>"Rodrigo y Gabriela"
|
530
|
+
}
|
531
|
+
tag = mp3.tag2.dup
|
532
|
+
assert_equal expected_tag, tag.to_hash
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
521
536
|
def compute_audio_content_mp3_digest(mp3)
|
522
537
|
pos, size = mp3.audio_content
|
523
538
|
data = File.open(mp3.filename) do |f|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-mp3info
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Pierronnet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hoe
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.12'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.12'
|
41
41
|
description: ruby-mp3info read low-level informations and manipulate tags on mp3 files.
|
42
42
|
email:
|
43
43
|
- guillaume.pierronnet@gmail.com
|
@@ -48,6 +48,7 @@ extra_rdoc_files:
|
|
48
48
|
- Manifest.txt
|
49
49
|
- README.md
|
50
50
|
files:
|
51
|
+
- ".gemtest"
|
51
52
|
- History.txt
|
52
53
|
- Manifest.txt
|
53
54
|
- README.md
|
@@ -55,10 +56,11 @@ files:
|
|
55
56
|
- lib/mp3info.rb
|
56
57
|
- lib/mp3info/extension_modules.rb
|
57
58
|
- lib/mp3info/id3v2.rb
|
59
|
+
- test/fixtures.yml
|
58
60
|
- test/test_ruby-mp3info.rb
|
59
61
|
homepage: http://github.com/moumar/ruby-mp3info
|
60
62
|
licenses:
|
61
|
-
-
|
63
|
+
- MIT
|
62
64
|
metadata: {}
|
63
65
|
post_install_message:
|
64
66
|
rdoc_options:
|
@@ -77,10 +79,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
- !ruby/object:Gem::Version
|
78
80
|
version: '0'
|
79
81
|
requirements: []
|
80
|
-
rubyforge_project:
|
82
|
+
rubyforge_project:
|
81
83
|
rubygems_version: 2.2.2
|
82
84
|
signing_key:
|
83
|
-
specification_version:
|
85
|
+
specification_version: 4
|
84
86
|
summary: ruby-mp3info read low-level informations and manipulate tags on mp3 files.
|
85
87
|
test_files:
|
86
88
|
- test/test_ruby-mp3info.rb
|