mockspotify 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mockspotify.rb CHANGED
@@ -3,8 +3,6 @@ require 'rbconfig'
3
3
 
4
4
  module Spotify
5
5
  module Mock
6
- VERSION = '0.1.0'
7
-
8
6
  # @return [String] path to the libmockspotify C extension binary.
9
7
  def self.path
10
8
  File.expand_path('../../src/libmockspotify.', __FILE__) << RbConfig::CONFIG['DLEXT']
@@ -0,0 +1,5 @@
1
+ module Spotify
2
+ module Mock
3
+ VERSION = '0.1.1'
4
+ end
5
+ end
data/mockspotify.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/mockspotify', __FILE__)
2
+ require File.expand_path('../lib/mockspotify/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "mockspotify"
data/src/libmockspotify.h CHANGED
@@ -93,10 +93,10 @@ struct sp_track {
93
93
 
94
94
  struct sp_user {
95
95
  bool loaded;
96
- char *canonical_name;
97
- char *display_name;
98
- char *full_name;
99
- char *picture;
96
+ char canonical_name[1024];
97
+ char display_name[1024];
98
+ char full_name[1024];
99
+ char picture[1024];
100
100
  sp_relation_type relation;
101
101
  };
102
102
 
data/src/link.c CHANGED
@@ -70,8 +70,5 @@ sp_link_type(sp_link *link)
70
70
  sp_user *
71
71
  sp_link_as_user(sp_link *link)
72
72
  {
73
- char *username = ALLOC_N(char, 1024);
74
- strncpy(username, link->data, 1024);
75
- sp_user *user = mocksp_user_create(username, NULL, NULL, NULL, SP_RELATION_TYPE_UNKNOWN, 1);
76
- return user;
73
+ return mocksp_user_create(link->data, "", "", "", SP_RELATION_TYPE_UNKNOWN, 1);
77
74
  }
data/src/session.c CHANGED
@@ -66,8 +66,5 @@ sp_session_logout(sp_session *session)
66
66
  sp_user *
67
67
  sp_session_user(sp_session *session)
68
68
  {
69
- char *username = ALLOC_N(char, 1024);
70
- strncpy(username, session->username, 1024);
71
- sp_user *user = mocksp_user_create(username, NULL, NULL, NULL, SP_RELATION_TYPE_NONE, 1);
72
- return user;
69
+ return mocksp_user_create(session->username, "", "", "", SP_RELATION_TYPE_NONE, 1);
73
70
  }
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.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-07-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spotify
16
- requirement: &2157317180 !ruby/object:Gem::Requirement
16
+ requirement: &2153096540 !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: *2157317180
24
+ version_requirements: *2153096540
25
25
  description:
26
26
  email: kim@burgestrand.se
27
27
  executables: []
@@ -37,6 +37,7 @@ files:
37
37
  - autogen.sh
38
38
  - configure.ac
39
39
  - lib/mockspotify.rb
40
+ - lib/mockspotify/version.rb
40
41
  - mockspotify.gemspec
41
42
  - src/Makefile.am
42
43
  - src/album.c