shuffler_fm 1.0.0 → 2.0.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.0.0
2
+ -----
3
+
4
+ Tracks#stream returns String insted of URI
5
+
1
6
  1.0.0
2
7
  -----
3
8
 
@@ -36,10 +36,10 @@ module ShufflerFM
36
36
  #
37
37
  # @param [Integer] id The track id
38
38
  #
39
- # @return [URI] the track streaming URI if avaliable
39
+ # @return [String] the track streaming URI if avaliable
40
40
  #
41
41
  def stream(id)
42
- URI(get("/tracks/#{Integer(id)}/stream", {}, false).headers['location'])
42
+ get("/tracks/#{Integer(id)}/stream", {}, false).headers['location']
43
43
  end
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module ShufflerFM
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -14,6 +14,6 @@ describe ShufflerFM::API::Tracks do
14
14
  end
15
15
 
16
16
  it 'requests a track stream' do
17
- api.stream(1).should be_a(URI)
17
+ api.stream(1).should be_a(String)
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuffler_fm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.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-11-02 00:00:00.000000000 Z
12
+ date: 2012-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday