rocksky 0.2.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rocksky/generated/types.rb +3 -1
- data/lib/rocksky/resources/feed.rb +5 -3
- data/lib/rocksky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49ece2a26c96c4edb2110ec0ac28f0c5dcc46d4eb6e7a1b3526cf0f82b045599
|
|
4
|
+
data.tar.gz: 63a9342d472e413572ef7c5e9c756d930dd95c0571ccac56a16bb5f4e0a1a49b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59b15a62bef85d1beb4f281dfa24388b92a0887d0101f2a5f6d88693f947fc0d70affe522ee19191bbce09a101480953ce1f16abe6ac28530dea573ce4af4fec
|
|
7
|
+
data.tar.gz: 728673d1cf68236bacb64c155e086659a22bfd0a57bb1f81ffe1522cd593f40151e4c1d6cbf892afef7ecc3dee043fc2188d1e93f1de2a4e242ba3a38a39f552
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
- `feed.get_stories` now accepts optional `feed:` (at-uri) and `following:`
|
|
6
|
+
(boolean) kwargs. `feed:` narrows results to scrobbles in that feed
|
|
7
|
+
generator; `following: true` restricts to users the viewer follows and
|
|
8
|
+
requires an authenticated client. Filters intersect when both are supplied.
|
|
9
|
+
|
|
3
10
|
## 0.2.0
|
|
4
11
|
|
|
5
12
|
- Added lexicon-derived `Struct`s under `Rocksky::Generated::*` covering every
|
|
@@ -112,6 +112,7 @@ module Rocksky
|
|
|
112
112
|
GetFollowersParams = Struct.new(:actor, :limit, :dids, :cursor, keyword_init: true)
|
|
113
113
|
GetFollowsOutput = Struct.new(:subject, :follows, :cursor, :count, keyword_init: true)
|
|
114
114
|
GetFollowsParams = Struct.new(:actor, :limit, :dids, :cursor, keyword_init: true)
|
|
115
|
+
GetGlobalStatsParams = Struct.new(keyword_init: true)
|
|
115
116
|
GetKnownFollowersOutput = Struct.new(:subject, :followers, :cursor, keyword_init: true)
|
|
116
117
|
GetKnownFollowersParams = Struct.new(:actor, :limit, :cursor, keyword_init: true)
|
|
117
118
|
GetMetadataParams = Struct.new(:path, keyword_init: true)
|
|
@@ -137,7 +138,7 @@ module Rocksky
|
|
|
137
138
|
GetSongsOutput = Struct.new(:songs, keyword_init: true)
|
|
138
139
|
GetSongsParams = Struct.new(:limit, :offset, :genre, :mbid, :isrc, :spotifyId, keyword_init: true)
|
|
139
140
|
GetStatsParams = Struct.new(:did, keyword_init: true)
|
|
140
|
-
GetStoriesParams = Struct.new(:size, keyword_init: true)
|
|
141
|
+
GetStoriesParams = Struct.new(:size, :feed, :following, keyword_init: true)
|
|
141
142
|
GetTemporaryLinkParams = Struct.new(:path, keyword_init: true)
|
|
142
143
|
GetTopArtistsOutput = Struct.new(:artists, keyword_init: true)
|
|
143
144
|
GetTopArtistsParams = Struct.new(:limit, :offset, :startDate, :endDate, keyword_init: true)
|
|
@@ -199,6 +200,7 @@ module Rocksky
|
|
|
199
200
|
SongViewDetailed = Struct.new(:id, :title, :artist, :albumArtist, :albumArt, :uri, :album, :duration, :trackNumber, :discNumber, :playCount, :uniqueListeners, :albumUri, :artistUri, :sha256, :mbid, :isrc, :tags, :createdAt, :artists, :firstScrobble, keyword_init: true)
|
|
200
201
|
SpotifyTrackView = Struct.new(:id, :name, :artist, :album, :duration, :previewUrl, keyword_init: true)
|
|
201
202
|
StartPlaylistParams = Struct.new(:uri, :shuffle, :position, keyword_init: true)
|
|
203
|
+
StatsGlobalStatsView = Struct.new(:scrobbles, :users, :artists, :albums, :tracks, keyword_init: true)
|
|
202
204
|
StatsView = Struct.new(:scrobbles, :artists, :lovedTracks, :albums, :tracks, keyword_init: true)
|
|
203
205
|
StatsWrappedAlbum = Struct.new(:id, :title, :artist, :albumArt, :uri, :playCount, keyword_init: true)
|
|
204
206
|
StatsWrappedArtist = Struct.new(:id, :name, :picture, :uri, :playCount, keyword_init: true)
|
|
@@ -27,9 +27,11 @@ module Rocksky
|
|
|
27
27
|
query("app.rocksky.feed.getFeed", feed: feed, limit: limit, cursor: cursor)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
# Latest scrobble per user. Pass `feed:` (at-uri) to restrict to scrobbles
|
|
31
|
+
# in that feed generator, and/or `following: true` to restrict to users
|
|
32
|
+
# the viewer follows (requires an authenticated client).
|
|
33
|
+
def get_stories(size: nil, feed: nil, following: nil)
|
|
34
|
+
query("app.rocksky.feed.getStories", size: size, feed: feed, following: following)
|
|
33
35
|
end
|
|
34
36
|
|
|
35
37
|
# Track recommendations for an actor.
|
data/lib/rocksky/version.rb
CHANGED