1
0
Fork 0

Releasing

This commit is contained in:
magnolia-fan 2011-07-18 07:02:37 +04:00
parent 01bf184e93
commit f61484c36e
7 changed files with 129 additions and 12 deletions

View File

@ -11,7 +11,6 @@ group :development do
gem "jeweler", "~> 1.6.4"
gem "rcov", ">= 0"
gem "rdoc", ">= 0"
gem "awesome_print"
end
gem "nokogiri", ">= 0"

View File

@ -1,7 +1,6 @@
GEM
remote: http://rubygems.org/
specs:
awesome_print (0.4.0)
git (1.2.5)
jeweler (1.6.4)
bundler (~> 1.0)
@ -17,7 +16,6 @@ PLATFORMS
ruby
DEPENDENCIES
awesome_print
bundler (~> 1.0.0)
jeweler (~> 1.6.4)
nokogiri

View File

@ -1,8 +1,63 @@
= musicbrainz
= MusicBrainz Web Service wrapper
Description goes here.
=== Installation
== Contributing to musicbrainz
gem install musicbrainz
=== Usage
require 'musicbrainz'
@kasabian = MusicBrainzArtist.find('69b39eab-6577-46a4-a9f5-817839092033')
@empire_tracks = @kasabian.release_groups[8].releases.first.tracks
=== Future
It should work all like ActiveRecord models.
=== Api
MusicBrainzArtist
MusicBrainzArtist.find(mbid)
MusicBrainzArtist.id
MusicBrainzArtist.type
MusicBrainzArtist.name
MusicBrainzArtist.country
MusicBrainzArtist.date_begin
MusicBrainzArtist.date_end
MusicBrainzArtist.release_groups
MusicBrainzReleaseGroup
MusicBrainzReleaseGroup.find(mbid)
MusicBrainzReleaseGroup.id
MusicBrainzReleaseGroup.type
MusicBrainzReleaseGroup.title
MusicBrainzReleaseGroup.first_release_date
MusicBrainzReleaseGroup.releases
MusicBrainzRelease
MusicBrainzRelease.find(mbid)
MusicBrainzRelease.id
MusicBrainzRelease.title
MusicBrainzRelease.status
MusicBrainzRelease.date
MusicBrainzRelease.country
MusicBrainzRelease.tracks
MusicBrainzTrack
MusicBrainzTrack.find(mbid)
MusicBrainzTrack.position
MusicBrainzTrack.recording_id
MusicBrainzTrack.title
MusicBrainzTrack.length
=== Contributing
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
@ -12,8 +67,6 @@ Description goes here.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
== Copyright
Copyright (c) 2011 magnolia-fan. See LICENSE.txt for
further details.
=== Copyright
Copyright (c) 2011 Gregory Eremin. See LICENSE.txt for further details.

View File

@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
gem.homepage = "http://github.com/magnolia-fan/musicbrainz"
gem.license = "MIT"
gem.summary = %Q{MusicBrainz Web Service wrapper}
gem.description = %Q{MusicBrainz Web Service wrapper}
gem.description = %Q{MusicBrainz Web Service wrapper with ActiveRecord-style models}
gem.email = "magnolia_fan@me.com"
gem.authors = ["Gregory Eremin"]
# dependencies defined in Gemfile

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.1.0

View File

@ -1,6 +1,5 @@
require "open-uri"
require "nokogiri"
require "awesome_print"
require "models/music_brainz_artist"
require "models/music_brainz_release_group"

67
musicbrainz.gemspec Normal file
View File

@ -0,0 +1,67 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{musicbrainz}
s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = [%q{Gregory Eremin}]
s.date = %q{2011-07-18}
s.description = %q{MusicBrainz Web Service wrapper}
s.email = %q{magnolia_fan@me.com}
s.extra_rdoc_files = [
"LICENSE.txt",
"README.rdoc"
]
s.files = [
".document",
"Gemfile",
"Gemfile.lock",
"LICENSE.txt",
"README.rdoc",
"Rakefile",
"lib/models/music_brainz_artist.rb",
"lib/models/music_brainz_release.rb",
"lib/models/music_brainz_release_group.rb",
"lib/models/music_brainz_track.rb",
"lib/musicbrainz.rb",
"test/helper.rb",
"test/test_musicbrainz.rb"
]
s.homepage = %q{http://github.com/magnolia-fan/musicbrainz}
s.licenses = [%q{MIT}]
s.require_paths = [%q{lib}]
s.rubygems_version = %q{1.8.5}
s.summary = %q{MusicBrainz Web Service wrapper}
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_development_dependency(%q<rcov>, [">= 0"])
s.add_development_dependency(%q<rdoc>, [">= 0"])
else
s.add_dependency(%q<nokogiri>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rdoc>, [">= 0"])
end
else
s.add_dependency(%q<nokogiri>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<rcov>, [">= 0"])
s.add_dependency(%q<rdoc>, [">= 0"])
end
end