ruby-mp3info 0.6.15 → 0.6.16

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.6.16 / 2011-11-10
2
+
3
+ * fixed type error when inspecting mp3info (thanks to Jacob Lichner)
4
+
1
5
  === 0.6.15 / 2011-07-18
2
6
 
3
7
  * support for StringIO as input (thanks to Edd Parris)
data/Manifest.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- README.rdoc
3
+ README.txt
4
4
  Rakefile
5
5
  install.rb
6
6
  lib/mp3info.rb
@@ -1,9 +1,6 @@
1
- ruby-mp3info
1
+ = ruby-mp3info
2
2
 
3
- by Guillaume Pierronnet
4
- * http://ruby-mp3info.rubyforge.org/
5
- * http://rubyforge.org/projects/ruby-mp3info/
6
- * https://github.com/moumar/ruby-mp3info
3
+ * http://github.com/moumar/ruby-mp3info
7
4
 
8
5
  == DESCRIPTION:
9
6
 
@@ -19,8 +16,6 @@ mp3 files.
19
16
  * only 2.3 version is supported for writings id3v2 tags
20
17
 
21
18
  == SYNOPSIS:
22
-
23
- a good exercise is to read the test.rb to understand how the library works deeper
24
19
 
25
20
  require "mp3info"
26
21
  # read and display infos & tags
@@ -61,13 +56,22 @@ a good exercise is to read the test.rb to understand how the library works deepe
61
56
 
62
57
  == INSTALL:
63
58
 
64
- $ ruby install.rb config
65
- $ ruby install.rb setup
66
- # ruby install.rb install
59
+ $ ruby install.rb config
60
+ $ ruby install.rb setup
61
+ # ruby install.rb install
67
62
 
68
- or
63
+ or
69
64
 
70
- # gem install ruby-mp3info
65
+ * gem install ruby-mp3info
66
+
67
+ == DEVELOPERS:
68
+
69
+ After checking out the source, run:
70
+
71
+ $ rake newb
72
+
73
+ This task will install any missing dependencies, run the tests/specs,
74
+ and generate the RDoc.
71
75
 
72
76
  == LICENSE:
73
77
 
data/Rakefile CHANGED
@@ -1,23 +1,13 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'rubygems'
4
3
  require 'hoe'
5
4
 
6
5
  Hoe.plugin :yard
7
6
 
8
- $:.unshift("./lib/")
9
- require 'mp3info'
10
-
11
- Hoe.new('ruby-mp3info', Mp3Info::VERSION) do |p|
12
- p.rubyforge_name = 'ruby-mp3info'
13
- p.author = "Guillaume Pierronnet"
14
- p.email = "moumar@rubyforge.org"
15
- p.summary = "ruby-mp3info is a pure-ruby library to retrieve low level informations on mp3 files and manipulate id3v1 and id3v2 tags"
16
- p.description = p.paragraphs_of('README.rdoc', 5..9).join("\n\n")
17
- p.url = p.paragraphs_of('README.rdoc', 0).first.split(/\n/)[1..-1]
18
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
19
- p.remote_rdoc_dir = ''
20
- p.rdoc_locations << "rubyforge.org:/var/www/gforge-projects/ruby-mp3info/"
7
+ Hoe.spec('ruby-mp3info') do
8
+ developer "Guillaume Pierronnet", "moumar@rubyforge.org"
9
+ remote_rdoc_dir = ''
10
+ rdoc_locations << "rubyforge.org:/var/www/gforge-projects/ruby-mp3info/"
21
11
  end
22
12
 
23
13
  # vim: syntax=Ruby
data/lib/mp3info.rb CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  class Mp3Info
19
19
 
20
- VERSION = "0.6.15"
20
+ VERSION = "0.6.16"
21
21
 
22
22
  LAYER = [ nil, 3, 2, 1]
23
23
  BITRATE = {
@@ -467,8 +467,8 @@ class Mp3Info
467
467
  # inspect inside Mp3Info
468
468
  def to_s
469
469
  s = "MPEG #{@mpeg_version} Layer #{@layer} #{@vbr ? "VBR" : "CBR"} #{@bitrate} Kbps #{@channel_mode} #{@samplerate} Hz length #{@length} sec. header #{@header.inspect} "
470
- s << "tag1: "+@tag1.inspect+"\n" if hastag1?
471
- s << "tag2: "+@tag2.inspect+"\n" if hastag2?
470
+ s << "tag1: "+@tag1.to_hash.inspect+"\n" if hastag1?
471
+ s << "tag2: "+@tag2.to_hash.inspect+"\n" if hastag2?
472
472
  s
473
473
  end
474
474
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mp3info
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 15
10
- version: 0.6.15
9
+ - 16
10
+ version: 0.6.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume Pierronnet
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-18 00:00:00 Z
18
+ date: 2011-11-10 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hoe
@@ -33,46 +33,10 @@ dependencies:
33
33
  type: :development
34
34
  version_requirements: *id001
35
35
  description: |-
36
- * written in pure ruby
37
- * read low-level informations like bitrate, length, samplerate, etc...
38
- * read, write, remove id3v1 and id3v2 tags
39
- * correctly read VBR files (with or without Xing header)
40
- * only 2.3 version is supported for writings id3v2 tags
41
-
42
- == SYNOPSIS:
43
-
44
- a good exercise is to read the test.rb to understand how the library works deeper
45
-
46
- require "mp3info"
47
- # read and display infos & tags
48
- Mp3Info.open("myfile.mp3") do |mp3info|
49
- puts mp3info
50
- end
51
-
52
- # read/write tag1 and tag2 with Mp3Info#tag attribute
53
- # when reading tag2 have priority over tag1
54
- # when writing, each tag is written.
55
- Mp3Info.open("myfile.mp3") do |mp3|
56
- puts mp3.tag.title
57
- puts mp3.tag.artist
58
- puts mp3.tag.album
59
- puts mp3.tag.tracknum
60
- mp3.tag.title = "track title"
61
- mp3.tag.artist = "artist name"
62
- end
63
-
64
- Mp3Info.open("myfile.mp3") do |mp3|
65
- # you can access four letter v2 tags like this
66
- puts mp3.tag2.TIT2
67
- mp3.tag2.TIT2 = "new TIT2"
68
- # or like that
69
- mp3.tag2["TIT2"]
70
- # at this time, only COMM tag is processed after reading and before writing
71
- # according to ID3v2#options hash
72
- mp3.tag2.options[:lang] = "FRE"
73
- mp3.tag2.COMM = "my comment in french, correctly handled when reading and writing"
74
- end
75
- email: moumar@rubyforge.org
36
+ ruby-mp3info read low-level informations and manipulate tags on
37
+ mp3 files.
38
+ email:
39
+ - moumar@rubyforge.org
76
40
  executables: []
77
41
 
78
42
  extensions: []
@@ -80,10 +44,11 @@ extensions: []
80
44
  extra_rdoc_files:
81
45
  - History.txt
82
46
  - Manifest.txt
47
+ - README.txt
83
48
  files:
84
49
  - History.txt
85
50
  - Manifest.txt
86
- - README.rdoc
51
+ - README.txt
87
52
  - Rakefile
88
53
  - install.rb
89
54
  - lib/mp3info.rb
@@ -91,7 +56,7 @@ files:
91
56
  - lib/mp3info/id3v2.rb
92
57
  - test/test_ruby-mp3info.rb
93
58
  - .gemtest
94
- homepage:
59
+ homepage: http://github.com/moumar/ruby-mp3info
95
60
  licenses: []
96
61
 
97
62
  post_install_message:
@@ -121,9 +86,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
86
  requirements: []
122
87
 
123
88
  rubyforge_project: ruby-mp3info
124
- rubygems_version: 1.7.2
89
+ rubygems_version: 1.8.10
125
90
  signing_key:
126
91
  specification_version: 3
127
- summary: ruby-mp3info is a pure-ruby library to retrieve low level informations on mp3 files and manipulate id3v1 and id3v2 tags
92
+ summary: ruby-mp3info read low-level informations and manipulate tags on mp3 files.
128
93
  test_files:
129
94
  - test/test_ruby-mp3info.rb