spotify 12.0.3 → 12.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/CHANGELOG.md +5 -0
- data/Rakefile +13 -6
- data/lib/spotify/functions.rb +114 -90
- data/lib/spotify/types/pointer.rb +0 -2
- data/lib/spotify/version.rb +1 -1
- data/spec/api-linux.h +3966 -0
- data/spec/{api.h → api-mac.h} +0 -0
- data/spec/linux-platform.rb +1 -0
- data/spec/mac-platform.rb +1 -0
- data/spec/spotify_spec.rb +11 -3
- data/spotify.gemspec +1 -0
- metadata +12 -9
data/spec/{api.h → api-mac.h}
RENAMED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
ENV["RUBY_PLATFORM"] = "x86_64-linux"
|
@@ -0,0 +1 @@
|
|
1
|
+
ENV["RUBY_PLATFORM"] = "x86_64-darwin11.3.0"
|
data/spec/spotify_spec.rb
CHANGED
@@ -34,6 +34,14 @@ module Spotify
|
|
34
34
|
end
|
35
35
|
|
36
36
|
attr_reader :attached_methods
|
37
|
+
|
38
|
+
RUBY_PLATFORM = ENV.fetch('RUBY_PLATFORM') do
|
39
|
+
puts "[WARN] Tests running with default ruby platform, #{::RUBY_PLATFORM}, please be"
|
40
|
+
puts "[WARN] specific in which platform to target by setting ENV[RUBY_PLATFORM]"
|
41
|
+
puts "(warnings coming from #{__FILE__}:#{__LINE__})"
|
42
|
+
puts
|
43
|
+
::RUBY_PLATFORM
|
44
|
+
end
|
37
45
|
end
|
38
46
|
|
39
47
|
require 'spotify'
|
@@ -64,7 +72,7 @@ end
|
|
64
72
|
# Utility
|
65
73
|
#
|
66
74
|
|
67
|
-
API_H_PATH = File.expand_path(
|
75
|
+
API_H_PATH = File.expand_path("../api-#{Spotify.platform}.h", __FILE__)
|
68
76
|
API_H_SRC = File.read(API_H_PATH)
|
69
77
|
API_H_XML = RbGCCXML.parse(API_H_PATH)
|
70
78
|
|
@@ -418,8 +426,8 @@ describe "structs" do
|
|
418
426
|
|
419
427
|
describe struct["name"] do
|
420
428
|
it "should contain the same attributes" do
|
421
|
-
struct.variables.map(&:name).
|
422
|
-
attached_members.
|
429
|
+
struct.variables.map(&:name).each_with_index do |member, index|
|
430
|
+
attached_members[index].must_equal member
|
423
431
|
end
|
424
432
|
end
|
425
433
|
end
|
data/spotify.gemspec
CHANGED
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: 12.0
|
4
|
+
version: 12.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -122,7 +122,10 @@ files:
|
|
122
122
|
- lib/spotify/types/pointer.rb
|
123
123
|
- lib/spotify/types/utf8_string.rb
|
124
124
|
- lib/spotify/version.rb
|
125
|
-
- spec/api.h
|
125
|
+
- spec/api-linux.h
|
126
|
+
- spec/api-mac.h
|
127
|
+
- spec/linux-platform.rb
|
128
|
+
- spec/mac-platform.rb
|
126
129
|
- spec/spotify_spec.rb
|
127
130
|
- spotify.gemspec
|
128
131
|
homepage: https://github.com/Burgestrand/libspotify-ruby
|
@@ -137,10 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
140
|
requirements:
|
138
141
|
- - ! '>='
|
139
142
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
141
|
-
segments:
|
142
|
-
- 0
|
143
|
-
hash: 745397349906189207
|
143
|
+
version: '1.9'
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
segments:
|
151
151
|
- 0
|
152
|
-
hash:
|
152
|
+
hash: -1782095507785202137
|
153
153
|
requirements: []
|
154
154
|
rubyforge_project:
|
155
155
|
rubygems_version: 1.8.24
|
@@ -157,6 +157,9 @@ signing_key:
|
|
157
157
|
specification_version: 3
|
158
158
|
summary: Bare-bones Ruby bindings for libspotify
|
159
159
|
test_files:
|
160
|
-
- spec/api.h
|
160
|
+
- spec/api-linux.h
|
161
|
+
- spec/api-mac.h
|
162
|
+
- spec/linux-platform.rb
|
163
|
+
- spec/mac-platform.rb
|
161
164
|
- spec/spotify_spec.rb
|
162
165
|
has_rdoc:
|