spotify 12.0.3 → 12.2.0

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.
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"
@@ -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('../api.h', __FILE__)
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).each do |member|
422
- attached_members.must_include member
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
@@ -22,6 +22,7 @@ Gem::Specification.new do |gem|
22
22
 
23
23
  gem.version = Spotify::VERSION
24
24
  gem.platform = Gem::Platform::RUBY
25
+ gem.required_ruby_version = '>= 1.9'
25
26
 
26
27
  gem.add_dependency 'ffi', ['~> 1.0', '>= 1.0.11']
27
28
  gem.add_development_dependency 'rake'
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.3
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-06-17 00:00:00.000000000 Z
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: '0'
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: 745397349906189207
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: