mockspotify 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mockspotify/version.rb +1 -1
  2. data/src/link.c +12 -0
  3. metadata +4 -4
@@ -1,5 +1,5 @@
1
1
  module Spotify
2
2
  module Mock
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
  end
5
5
  end
data/src/link.c CHANGED
@@ -82,6 +82,18 @@ sp_link_as_user(sp_link *link)
82
82
  return mocksp_user_create(link->data, "", "", "", SP_RELATION_TYPE_UNKNOWN, 1);
83
83
  }
84
84
 
85
+ sp_artist *
86
+ sp_link_as_artist(sp_link *link)
87
+ {
88
+ return mocksp_artist_create("Jem", 1);
89
+ }
90
+
91
+ sp_album *
92
+ sp_link_as_album(sp_link *link)
93
+ {
94
+ return mocksp_album_create("Think Different", mocksp_artist_create("Jem", 1), 2004, NULL, SP_ALBUMTYPE_SINGLE, 1, 1); /* TODO */
95
+ }
96
+
85
97
  sp_track *
86
98
  sp_link_as_track(sp_link *link)
87
99
  {
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.7
4
+ version: 0.1.8
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-25 00:00:00.000000000Z
12
+ date: 2011-07-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spotify
16
- requirement: &2154623200 !ruby/object:Gem::Requirement
16
+ requirement: &2157104760 !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: *2154623200
24
+ version_requirements: *2157104760
25
25
  description:
26
26
  email: kim@burgestrand.se
27
27
  executables: []