rspotify 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0f3ca7d527ba24376c7a771944c0d85ea1b19e4
4
- data.tar.gz: b3f77aa19fef41454edf329812109ab0c4e7de89
3
+ metadata.gz: fb9507e6fc1146a1d8c83b8b63ead2a6d5f221a6
4
+ data.tar.gz: c30543eca013da23ec51ba403f754e35dbadf61b
5
5
  SHA512:
6
- metadata.gz: c27ab467d8336d1a876fb072e8651970324515f248c6bbac9c8d06dc654efd2cbb1b5b942b1e4ac665eef8b560603593ea08b2a2fda476472b5aa534ecebd8cc
7
- data.tar.gz: f73fc7fca5c41aac95a8a97f44e85e152bd6b643a632500fa54248990d62fe150cefc5eb9fb0afefbde346a2961355ef150cd9d09153f253ac107a01374a0195
6
+ metadata.gz: a8cf7a6e1818c7196fab686640c987f9293f82711ab95672534f59c71fcebb2bc20fc3d4caf65ef67f352aa71ac1835292dfaf252f1a7e496ce1f4786ecba1c0
7
+ data.tar.gz: 7e5191484908a4574ef4f7affdc42428bcf3d15d165604ae27edcb421d958378327e144c3ddf84ccb42e4398e969c5dd155a8bbf63ddaf0e5c6977c9cc5373ad
@@ -96,5 +96,10 @@ module RSpotify
96
96
  return response if RSpotify.raw_response
97
97
  Track.new response["item"]
98
98
  end
99
+
100
+ def seek(position_ms)
101
+ url = "/me/player/seek?position_ms=#{position_ms}"
102
+ User.oauth_put(@user.id, url, {})
103
+ end
99
104
  end
100
105
  end
@@ -1,3 +1,3 @@
1
1
  module RSpotify
2
- VERSION = '2.1.1'
2
+ VERSION = '2.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspotify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Sad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2