mp3file 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +29 -0
- data/Rakefile +25 -0
- data/doc/id3v2.2.0.txt +1658 -0
- data/doc/id3v2.3.0.txt +2024 -0
- data/doc/id3v2.4.0-frames.txt +1732 -0
- data/doc/id3v2.4.0-structure.txt +731 -0
- data/lib/mp3file/id3v1_tag.rb +58 -0
- data/lib/mp3file/id3v2/bit_padded_int.rb +24 -0
- data/lib/mp3file/id3v2/frame_header.rb +84 -0
- data/lib/mp3file/id3v2/header.rb +67 -0
- data/lib/mp3file/id3v2/tag.rb +25 -0
- data/lib/mp3file/id3v2/text_frame.rb +4 -0
- data/lib/mp3file/id3v2/version.rb +40 -0
- data/lib/mp3file/id3v2.rb +12 -0
- data/lib/mp3file/mp3_file.rb +182 -0
- data/lib/mp3file/mp3_header.rb +109 -0
- data/lib/mp3file/version.rb +3 -0
- data/lib/mp3file/xing_header.rb +39 -0
- data/lib/mp3file.rb +12 -0
- data/mp3file.gemspec +26 -0
- data/spec/common_helpers.rb +12 -0
- data/spec/files/bret_96.mp3 +0 -0
- data/spec/files/bret_id3v1.mp3 +0 -0
- data/spec/files/bret_id3v2.mp3 +0 -0
- data/spec/files/bret_vbr_6.mp3 +0 -0
- data/spec/mp3file/id3v1_tag_spec.rb +62 -0
- data/spec/mp3file/id3v2/bit_padded_int_spec.rb +59 -0
- data/spec/mp3file/id3v2/frame_header_spec.rb +79 -0
- data/spec/mp3file/id3v2/header_spec.rb +137 -0
- data/spec/mp3file/id3v2/tag_spec.rb +22 -0
- data/spec/mp3file/id3v2/version_spec.rb +56 -0
- data/spec/mp3file/mp3_file_spec.rb +90 -0
- data/spec/mp3file/mp3_header_spec.rb +336 -0
- data/spec/mp3file/xing_header_spec.rb +75 -0
- metadata +117 -0
data/.gitignore
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.9.2@mp3file
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mp3file (0.0.1)
|
5
|
+
bindata
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
bindata (1.4.1)
|
11
|
+
diff-lcs (1.1.2)
|
12
|
+
rake (0.9.2)
|
13
|
+
rspec (2.6.0)
|
14
|
+
rspec-core (~> 2.6.0)
|
15
|
+
rspec-expectations (~> 2.6.0)
|
16
|
+
rspec-mocks (~> 2.6.0)
|
17
|
+
rspec-core (2.6.4)
|
18
|
+
rspec-expectations (2.6.0)
|
19
|
+
diff-lcs (~> 1.1.2)
|
20
|
+
rspec-mocks (2.6.0)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
x86-mingw32
|
25
|
+
|
26
|
+
DEPENDENCIES
|
27
|
+
mp3file!
|
28
|
+
rake
|
29
|
+
rspec
|
data/Rakefile
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
|
3
|
+
# Monkey-patch to fix the interaction of Rake and Bundler on Windows.
|
4
|
+
if Rake.application.rakefile_location =~ /:in `rakefile_location/
|
5
|
+
class Rake::Application
|
6
|
+
def rakefile_location
|
7
|
+
File.expand_path(File.basename(__FILE__))
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'bundler'
|
13
|
+
require 'rspec/core/rake_task'
|
14
|
+
|
15
|
+
Bundler::GemHelper.install_tasks
|
16
|
+
|
17
|
+
RSpec::Core::RakeTask.new(:specs) do |t|
|
18
|
+
# Don't do color on Windows.
|
19
|
+
arch, platform = RUBY_PLATFORM.split('-')
|
20
|
+
if platform !~ /^mswin/ && platform !~ /^mingw/
|
21
|
+
t.rspec_opts = "--color"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
task :default => :specs
|