mockspotify 0.1.1 → 0.1.2
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.
- data/lib/mockspotify.rb +1 -1
- data/lib/mockspotify/version.rb +1 -1
- data/src/image.c +2 -2
- metadata +4 -4
data/lib/mockspotify.rb
CHANGED
@@ -28,7 +28,7 @@ module Spotify
|
|
28
28
|
$VERBOSE = true
|
29
29
|
attach_function :mock_user, :mocksp_user_create, [:string, :string, :string, :string, :relation_type, :bool], :user
|
30
30
|
attach_function :mock_track, :mocksp_track_create, [:string, :int, :array, :pointer, :int, :int, :int, :int, :error, :bool], :track
|
31
|
-
attach_function :mock_image, :mocksp_image_create, [:image_id, :imageformat, :size_t, :
|
31
|
+
attach_function :mock_image, :mocksp_image_create, [:image_id, :imageformat, :size_t, :buffer_in, :error], :image
|
32
32
|
attach_function :mock_artist, :mocksp_artist_create, [:string, :bool], :artist
|
33
33
|
attach_function :mock_album, :mocksp_album_create, [:string, :artist, :int, :pointer, :image_id, :albumtype, :bool, :bool], :album
|
34
34
|
|
data/lib/mockspotify/version.rb
CHANGED
data/src/image.c
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
/*** MockSpotify API ***/
|
4
4
|
sp_image*
|
5
|
-
mocksp_image_create(const byte image_id[20], sp_imageformat format, size_t data_size, byte *data, sp_error error)
|
5
|
+
mocksp_image_create(const byte image_id[20], sp_imageformat format, size_t data_size, const byte *data, sp_error error)
|
6
6
|
{
|
7
7
|
sp_image *image = ALLOC(sp_image);
|
8
8
|
memcpy(image->image_id, image_id, 20);
|
@@ -21,7 +21,7 @@ sp_image_create_from_link(sp_session *session, sp_link *l)
|
|
21
21
|
{
|
22
22
|
byte *real_id = l->data + strlen("spotify:image:");
|
23
23
|
byte *image_id = ALLOC_N(byte, 20);
|
24
|
-
memcpy(image_id, real_id, 20);
|
24
|
+
memcpy(image_id, real_id, 20); // TODO: convert "deadbeef" to array of: [0xDE, 0xAD, 0xBE, 0xEF]
|
25
25
|
return mocksp_image_create(image_id, SP_IMAGE_FORMAT_JPEG, 0, NULL, SP_ERROR_OK);
|
26
26
|
}
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mockspotify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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: 2011-07-
|
12
|
+
date: 2011-07-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spotify
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152836420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152836420
|
25
25
|
description:
|
26
26
|
email: kim@burgestrand.se
|
27
27
|
executables: []
|