Musix 0.2 → 0.21

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.
Files changed (2) hide show
  1. data/lib/musix.rb +3 -3
  2. metadata +3 -3
data/lib/musix.rb CHANGED
@@ -5,7 +5,7 @@ require 'httparty'
5
5
  require 'nokogiri'
6
6
  require 'Plist'
7
7
  require 'metaid'
8
- require 'cgi'
8
+ require 'uri'
9
9
 
10
10
  # = What is Musix?
11
11
  #
@@ -70,7 +70,7 @@ module Musix
70
70
 
71
71
  # Searches Grooveshark (tinysong), returns a maximum of +limit+ results
72
72
  def self.search(uri, limit = 3)
73
- get "http://tinysong.com/s/#{CGI::escape uri}", :query => { :limit => limit }
73
+ get "http://tinysong.com/s/#{URI::escape uri}", :query => { :limit => limit }
74
74
  end
75
75
  end
76
76
 
@@ -84,7 +84,7 @@ module Musix
84
84
 
85
85
  # Searches iTunes for +term+.
86
86
  def self.search(term)
87
- result = get 'http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZSearch.woa/wa/search?submit=edit&term=%s' % CGI::escape(term)
87
+ result = get 'http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZSearch.woa/wa/search?submit=edit&term=%s' % URI::escape(term)
88
88
  itms = Nokogiri::XML result
89
89
  Plist::parse_xml(itms.css('TrackList plist').to_s)["items"]
90
90
  end
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- version: "0.2"
7
+ - 21
8
+ version: "0.21"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Kim Burgestrand
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2010-04-26 00:00:00 +02:00
16
+ date: 2010-04-30 00:00:00 +02:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency