spotify 11.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ [v11.0.1][]
2
+ - upgrade to libspotify v11.1.60
3
+
4
+ [v11.0.0][]
5
+ - raise more helpful error on missing libspotify
6
+ - upgrade to libspotify v11.1.56
7
+
1
8
  [v10.3.0][]
2
9
  -----------
3
10
  - map :image_id to a ruby string instead of a pointer
data/lib/spotify.rb CHANGED
@@ -511,22 +511,22 @@ module Spotify
511
511
  attach_function :search_create, :sp_search_create, [ :session, :utf8_string, :int, :int, :int, :int, :int, :int, :int, :int, :search_type, :search_complete_cb, :userdata ], :search
512
512
  attach_function :search_is_loaded, :sp_search_is_loaded, [ :search ], :bool
513
513
  attach_function :search_error, :sp_search_error, [ :search ], :error
514
+ attach_function :search_query, :sp_search_query, [ :search ], :utf8_string
515
+ attach_function :search_did_you_mean, :sp_search_did_you_mean, [ :search ], :utf8_string
514
516
  attach_function :search_num_tracks, :sp_search_num_tracks, [ :search ], :int
515
517
  attach_function :search_track, :sp_search_track, [ :search, :int ], :track
516
518
  attach_function :search_num_albums, :sp_search_num_albums, [ :search ], :int
517
519
  attach_function :search_album, :sp_search_album, [ :search, :int ], :album
518
520
  attach_function :search_num_artists, :sp_search_num_artists, [ :search ], :int
519
521
  attach_function :search_artist, :sp_search_artist, [ :search, :int ], :artist
520
- attach_function :search_query, :sp_search_query, [ :search ], :utf8_string
521
- attach_function :search_did_you_mean, :sp_search_did_you_mean, [ :search ], :utf8_string
522
- attach_function :search_total_tracks, :sp_search_total_tracks, [ :search ], :int
523
- attach_function :search_total_albums, :sp_search_total_albums, [ :search ], :int
524
- attach_function :search_total_artists, :sp_search_total_artists, [ :search ], :int
525
-
526
522
  attach_function :search_num_playlists, :sp_search_num_playlists, [ :search ], :int
527
523
  attach_function :search_playlist_name, :sp_search_playlist_name, [ :search, :int ], :utf8_string
528
524
  attach_function :search_playlist_uri, :sp_search_playlist_uri, [ :search, :int ], :utf8_string
529
525
  attach_function :search_playlist_image_uri, :sp_search_playlist_image_uri, [ :search, :int ], :utf8_string
526
+ attach_function :search_total_tracks, :sp_search_total_tracks, [ :search ], :int
527
+ attach_function :search_total_albums, :sp_search_total_albums, [ :search ], :int
528
+ attach_function :search_total_artists, :sp_search_total_artists, [ :search ], :int
529
+ attach_function :search_total_playlists, :sp_search_total_playlists, [ :search ], :int
530
530
 
531
531
  attach_function :search_add_ref, :sp_search_add_ref, [ :search ], :void
532
532
  attach_function :search_release, :sp_search_release, [ :search ], :void
@@ -1,4 +1,4 @@
1
1
  module Spotify
2
2
  # See README for versioning policy.
3
- VERSION = [11, 0, 0].join('.')
3
+ VERSION = [11, 0, 1].join('.')
4
4
  end
data/spec/api.h CHANGED
@@ -2465,6 +2465,17 @@ SP_LIBEXPORT(int) sp_search_total_albums(sp_search *search);
2465
2465
  */
2466
2466
  SP_LIBEXPORT(int) sp_search_total_artists(sp_search *search);
2467
2467
 
2468
+ /**
2469
+ * Return the total number of playlists for the search query - regardless of the interval requested at creation.
2470
+ * If this value is larger than the interval specified at creation of the search object, more search results are available.
2471
+ * To fetch these, create a new search object with a new interval.
2472
+ *
2473
+ * @param[in] search Search object
2474
+ *
2475
+ * @return The total number of playlists matching the original query
2476
+ */
2477
+ SP_LIBEXPORT(int) sp_search_total_playlists(sp_search *search);
2478
+
2468
2479
  /**
2469
2480
  * Increase the reference count of a search result
2470
2481
  *
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-27 00:00:00.000000000 Z
12
+ date: 2012-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &70294145167840 !ruby/object:Gem::Requirement
16
+ requirement: &70219297580520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 1.0.11
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70294145167840
27
+ version_requirements: *70219297580520
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
- requirement: &70294145167120 !ruby/object:Gem::Requirement
30
+ requirement: &70219297578280 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
- version_requirements: *70294145167120
38
+ version_requirements: *70219297578280
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: yard
41
- requirement: &70294145182800 !ruby/object:Gem::Requirement
41
+ requirement: &70219297577520 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :development
48
48
  prerelease: false
49
- version_requirements: *70294145182800
49
+ version_requirements: *70219297577520
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rbgccxml
52
- requirement: &70294145182080 !ruby/object:Gem::Requirement
52
+ requirement: &70219297593400 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *70294145182080
60
+ version_requirements: *70219297593400
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
- requirement: &70294145181320 !ruby/object:Gem::Requirement
63
+ requirement: &70219297592780 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ~>
@@ -68,7 +68,7 @@ dependencies:
68
68
  version: '2.0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70294145181320
71
+ version_requirements: *70219297592780
72
72
  description: ! " Spotify for Ruby is a primitive wrapper around libspotify using
73
73
  Ruby FFI.\n If all you want is libspotify for Ruby, you should probably use at
74
74
  Hallon\n instead: https://rubygems.org/gems/hallon\n"