1
0
Fork 0

Merge branch 'master' of github.com:magnolia-fan/musicbrainz

This commit is contained in:
magnolia-fan 2011-09-20 19:47:54 +04:00
commit 4bb437b2aa
4 changed files with 8 additions and 7 deletions

View File

@ -1 +1 @@
0.4.7
0.4.8

View File

@ -50,7 +50,7 @@ module MusicBrainz
def self.search name
artists = []
xml = Nokogiri::XML(MusicBrainz.load(
'http://musicbrainz.org/ws/2/artist/?query='+ URI.escape(name).gsub(/\&/, '%26').gsub(/\?/, '%3F') +'~&limit=50'
'http://musicbrainz.org/ws/2/artist/?query='+ CGI.escape(name).gsub(/\!/, '') +'~&limit=50'
))
xml.css('artist-list > artist').each do |a|
artist = {

View File

@ -1,6 +1,7 @@
require "open-uri"
require "socket"
require "nokogiri"
require "cgi"
require "models/music_brainz"
require "models/music_brainz/artist"

View File

@ -5,10 +5,10 @@
Gem::Specification.new do |s|
s.name = %q{musicbrainz}
s.version = "0.4.7"
s.version = "0.4.8"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Gregory Eremin"]
s.authors = [%q{Gregory Eremin}]
s.date = %q{2011-09-19}
s.description = %q{MusicBrainz Web Service wrapper with ActiveRecord-style models}
s.email = %q{magnolia_fan@me.com}
@ -36,9 +36,9 @@ Gem::Specification.new do |s|
"test/test_musicbrainz.rb"
]
s.homepage = %q{http://github.com/magnolia-fan/musicbrainz}
s.licenses = ["MIT"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.6.2}
s.licenses = [%q{MIT}]
s.require_paths = [%q{lib}]
s.rubygems_version = %q{1.8.8}
s.summary = %q{MusicBrainz Web Service wrapper}
if s.respond_to? :specification_version then