id3_tags 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,32 +1,46 @@
1
1
  What is ID3 Tags
2
2
  ================
3
3
 
4
- A ruby gem to read and write ID3 metadata from/to MP3 files}
4
+ A ruby gem to read and write ID3 metadata from/to MP3/M4A files
5
+
6
+ [![Build Status](https://travis-ci.org/topspin/id3_tags.png)](https://travis-ci.org/topspin/id3_tags)
5
7
 
6
8
  Why ID3 Tags was born
7
- =======================
9
+ =====================
8
10
 
9
11
  At [Topspin](http://topspinmedia.com) we provide [ArtistLink](http://artistlink.com), a platform for musician to upload and share their songs.
10
12
  Artistlink provides a form to read and edit the songs' metadata and stores this information in the ID3 tags of a song.
11
13
  For this task, we created the ID3 Tags gem
12
14
 
13
- How to install
14
- ==============
15
+ Requirements
16
+ ============
17
+
18
+ ID3 Tags depends on the [TagLib library](http://taglib.github.io).
19
+ If you don't have TagLib >= 1.7.2 installed, ID3 Tags will ask to install it.
20
+
21
+ How to use from the command line
22
+ ================================
15
23
 
16
- Run `gem install id3_tags`.
17
- Alternatively, you can include `id3_tags` in the Gemfile of your bundled project.
24
+ Install by running `gem install id3_tags`.
18
25
 
19
- How to use
20
- ==========
26
+ Type `id3_tags` followed by the path of a local file.
27
+ This is will show the ID3 metadata of that file.
21
28
 
29
+ How to use from other programs
30
+ ==============================
31
+
32
+ * Include `id3_tags` in the Gemfile of your bundled project and `bundle install`
22
33
  * To read metadata from a file, run `Id3Tags.read_from_file(file_path)`
23
34
  * To write metadata to a file, run `Id3Tags.write_to_file(file_path, metadata)`
24
35
 
25
36
  For more details about the format of the metadata, check the [specs](http://github.com/topspin/id3_tags/tree/master/spec/lib) or the [documentation at RubyDoc.info](http://rubydoc.info/github/topspin/id3_tags/frames).
26
37
 
38
+
27
39
  How to contribute
28
40
  =================
29
41
 
30
42
  Make sure tests pass, then either submit a Pull Request.
43
+ Please consider testing against the [versions of Ruby supported](https://travis-ci.org/topspin/id3_tags) by ID3 Tags.
44
+
31
45
  A list of [nice TODOs](http://github.com/topspin/id3_tags/tree/master/TODO.md) is provided.
32
46
  You can also build a new version of the gem and move it to your gem repository.
data/ext/extconf.rb ADDED
@@ -0,0 +1,36 @@
1
+ # Check that Taglib >= 1.7.2 is installed. The easiest way to find the
2
+ # version of the installed TagLib (if present) is through `taglib-config`
3
+ require 'mkmf'
4
+
5
+ def error(msg)
6
+ message msg + "\n"
7
+ abort
8
+ end
9
+
10
+ taglib_bin = find_executable 'taglib-config'
11
+ taglib_version = `#{taglib_bin} --version`.chomp if taglib_bin
12
+
13
+ if taglib_bin.nil? || taglib_version < '1.7.2'
14
+ error <<-DESC
15
+
16
+ \e[31mYou must have TagLib >= 1.7.2 installed in order to use taglib-ruby.\e[0m
17
+
18
+ Please download and compile the source from http://taglib.github.io.
19
+ Alternatively, you can install TagLib on OS X by running:
20
+
21
+ \e[35mbrew install taglib\e[0m
22
+
23
+ Or you can install TagLib on Ubuntu 12 or higher by running:
24
+
25
+ \e[35msudo add-apt-repository -y ppa:kubuntu-ppa/backports\e[0m
26
+ \e[35msudo apt-get update\e[0m
27
+ \e[35msudo apt-get -y install libtag1-dev\e[0m
28
+
29
+ The add-apt-repository is required given that the default Ubuntu repositories
30
+ provide version 1.7.1 of TagLib, which does not fully support MP4 and M4A files
31
+ (see http://git.io/aureUA).
32
+
33
+ DESC
34
+ end
35
+
36
+ create_makefile('id3_tags')
@@ -1,3 +1,3 @@
1
1
  module Id3Tags
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: id3_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-15 00:00:00.000000000 Z
12
+ date: 2013-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: taglib-ruby
@@ -144,7 +144,8 @@ email:
144
144
  - claudio@topspinmedia.com
145
145
  executables:
146
146
  - id3_tags
147
- extensions: []
147
+ extensions:
148
+ - ext/extconf.rb
148
149
  extra_rdoc_files: []
149
150
  files:
150
151
  - bin/id3_tags
@@ -154,6 +155,7 @@ files:
154
155
  - lib/id3_tags.rb
155
156
  - MIT-LICENSE
156
157
  - README.md
158
+ - ext/extconf.rb
157
159
  homepage: https://github.com/topspin/id3_tags
158
160
  licenses:
159
161
  - MIT
@@ -166,10 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
168
  requirements:
167
169
  - - ! '>='
168
170
  - !ruby/object:Gem::Version
169
- version: '0'
170
- segments:
171
- - 0
172
- hash: -2869380124724698312
171
+ version: 1.9.0
173
172
  required_rubygems_version: !ruby/object:Gem::Requirement
174
173
  none: false
175
174
  requirements:
@@ -178,8 +177,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
177
  version: '0'
179
178
  segments:
180
179
  - 0
181
- hash: -2869380124724698312
182
- requirements: []
180
+ hash: -2525239657657117389
181
+ requirements:
182
+ - taglib >= 1.7.2 (libtag1-dev in Debian/Ubuntu, taglib-devel in Fedora/RHEL)
183
183
  rubyforge_project:
184
184
  rubygems_version: 1.8.23
185
185
  signing_key: