Musix 0.21 → 0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/musix.rb +1 -1
  2. metadata +3 -3
data/lib/musix.rb CHANGED
@@ -45,7 +45,7 @@ module Musix
45
45
 
46
46
  private
47
47
  def self.search(type, query, page)
48
- Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page }).fetch("#{type}s")
48
+ (Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page }) || {}).fetch("#{type}s")
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 21
8
- version: "0.21"
7
+ - 22
8
+ version: "0.22"
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-30 00:00:00 +02:00
16
+ date: 2010-06-05 00:00:00 +02:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency