Musix 0.23 → 0.24

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 +2 -2
  2. metadata +2 -2
@@ -45,8 +45,8 @@ module Musix
45
45
 
46
46
  private
47
47
  def self.search(type, query, page)
48
- result = Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page }) || Hash.new
49
- return result.fetch("#{type}s", nil)
48
+ result = Spotify::get("/search/1/#{type}", :query => { :q => query, :page => page })
49
+ return result.fetch("#{type}s") unless result.nil?
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 23
8
- version: "0.23"
7
+ - 24
8
+ version: "0.24"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Kim Burgestrand