spotify 10.1.1 → 10.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ [v10.2.0][]
2
+ -----------
3
+ - make :sampletypes an array of *actual* FFI types that can be read
4
+
1
5
  [v10.1.1][]
2
6
  -----------
3
7
  - mark ALL libspotify functions as blocking
@@ -73,6 +77,7 @@ v0.0.0
73
77
  ------
74
78
  - release to register rubygems.org name
75
79
 
80
+ [v10.2.0]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.1.1...v10.2.0
76
81
  [v10.1.1]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.1.0...v10.1.1
77
82
  [v10.1.0]: https://github.com/Burgestrand/libspotify-ruby/compare/v10.0.0...v10.1.0
78
83
  [v10.0.0]: https://github.com/Burgestrand/libspotify-ruby/compare/v9.1.0...v10.0.0
@@ -94,7 +94,7 @@ module Spotify
94
94
  # @see http://developer.spotify.com/en/libspotify/docs/group__session.html
95
95
 
96
96
  #
97
- enum :sampletype, [:int16_native_endian]
97
+ enum :sampletype, [:int16] # int16_native_endian
98
98
  enum :bitrate, %w(160k 320k 96k).map(&:to_sym)
99
99
 
100
100
  # FFI::Struct for Audio Format.
@@ -1,4 +1,4 @@
1
1
  module Spotify
2
2
  # See README for versioning policy.
3
- VERSION = [10, 1, 1].join('.')
3
+ VERSION = [10, 2, 0].join('.')
4
4
  end
@@ -85,6 +85,17 @@ describe Spotify do
85
85
  subject[:syncing].must_equal true
86
86
  end
87
87
  end
88
+
89
+ describe "audio sample types" do
90
+ # this is so we can just read audio frames easily based on the sample type
91
+ Spotify.enum_type(:sampletype).symbols.each do |type|
92
+ describe type do
93
+ it "should have a corresponding FFI::Pointer#read_array_of_#{type}" do
94
+ FFI::Pointer.new(1).must_respond_to "read_array_of_#{type}"
95
+ end
96
+ end
97
+ end
98
+ end
88
99
  end
89
100
 
90
101
  describe "functions" do
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: 10.1.1
4
+ version: 10.2.0
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-11-30 00:00:00.000000000Z
12
+ date: 2011-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &70261854253800 !ruby/object:Gem::Requirement
16
+ requirement: &70158630598380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 1.0.11
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70261854253800
27
+ version_requirements: *70158630598380
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
- requirement: &70261854253120 !ruby/object:Gem::Requirement
30
+ requirement: &70158630597040 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
- version_requirements: *70261854253120
38
+ version_requirements: *70158630597040
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: yard
41
- requirement: &70261848428400 !ruby/object:Gem::Requirement
41
+ requirement: &70158630594380 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :development
48
48
  prerelease: false
49
- version_requirements: *70261848428400
49
+ version_requirements: *70158630594380
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: rbgccxml
52
- requirement: &70261848427980 !ruby/object:Gem::Requirement
52
+ requirement: &70158630605980 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *70261848427980
60
+ version_requirements: *70158630605980
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: gccxml_gem
63
- requirement: &70261848427480 !ruby/object:Gem::Requirement
63
+ requirement: &70158630603140 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '!='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: 0.9.3
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70261848427480
71
+ version_requirements: *70158630603140
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: minitest
74
- requirement: &70261848426980 !ruby/object:Gem::Requirement
74
+ requirement: &70158630602340 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ~>
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '2.0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70261848426980
82
+ version_requirements: *70158630602340
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
- requirement: &70261848426520 !ruby/object:Gem::Requirement
85
+ requirement: &70158630616080 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ~>
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: '1.0'
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70261848426520
93
+ version_requirements: *70158630616080
94
94
  description: ! " Spotify for Ruby is a primitive wrapper around libspotify using
95
95
  Ruby FFI.\n If all you want is libspotify for Ruby, you should probably use at
96
96
  Hallon\n instead: https://rubygems.org/gems/hallon\n"
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 1.8.10
136
+ rubygems_version: 1.8.12
137
137
  signing_key:
138
138
  specification_version: 3
139
139
  summary: Bare-bones Ruby bindings for libspotify