A Ruby gem for streaming data from the Bluesky/ATProto firehose

added starter pack record type

+26 -24
+13 -12
lib/skyfall/collection.rb
··· 1 1 module Skyfall 2 2 module Collection 3 - BSKY_PROFILE = "app.bsky.actor.profile" 4 - BSKY_FEED = "app.bsky.feed.generator" 5 - BSKY_LIKE = "app.bsky.feed.like" 6 - BSKY_POST = "app.bsky.feed.post" 7 - BSKY_REPOST = "app.bsky.feed.repost" 8 - BSKY_THREADGATE = "app.bsky.feed.threadgate" 9 - BSKY_BLOCK = "app.bsky.graph.block" 10 - BSKY_FOLLOW = "app.bsky.graph.follow" 11 - BSKY_LIST = "app.bsky.graph.list" 12 - BSKY_LISTBLOCK = "app.bsky.graph.listblock" 13 - BSKY_LISTITEM = "app.bsky.graph.listitem" 14 - BSKY_LABELER = "app.bsky.labeler.service" 3 + BSKY_PROFILE = "app.bsky.actor.profile" 4 + BSKY_FEED = "app.bsky.feed.generator" 5 + BSKY_LIKE = "app.bsky.feed.like" 6 + BSKY_POST = "app.bsky.feed.post" 7 + BSKY_REPOST = "app.bsky.feed.repost" 8 + BSKY_THREADGATE = "app.bsky.feed.threadgate" 9 + BSKY_BLOCK = "app.bsky.graph.block" 10 + BSKY_FOLLOW = "app.bsky.graph.follow" 11 + BSKY_LIST = "app.bsky.graph.list" 12 + BSKY_LISTBLOCK = "app.bsky.graph.listblock" 13 + BSKY_LISTITEM = "app.bsky.graph.listitem" 14 + BSKY_STARTERPACK = "app.bsky.graph.starterpack" 15 + BSKY_LABELER = "app.bsky.labeler.service" 15 16 16 17 BSKY_CHAT_DECLARATION = "chat.bsky.actor.declaration" 17 18 end
+13 -12
lib/skyfall/operation.rb
··· 43 43 44 44 def type 45 45 case collection 46 - when Collection::BSKY_BLOCK then :bsky_block 47 - when Collection::BSKY_FEED then :bsky_feed 48 - when Collection::BSKY_FOLLOW then :bsky_follow 49 - when Collection::BSKY_LABELER then :bsky_labeler 50 - when Collection::BSKY_LIKE then :bsky_like 51 - when Collection::BSKY_LIST then :bsky_list 52 - when Collection::BSKY_LISTBLOCK then :bsky_listblock 53 - when Collection::BSKY_LISTITEM then :bsky_listitem 54 - when Collection::BSKY_POST then :bsky_post 55 - when Collection::BSKY_PROFILE then :bsky_profile 56 - when Collection::BSKY_REPOST then :bsky_repost 57 - when Collection::BSKY_THREADGATE then :bsky_threadgate 46 + when Collection::BSKY_BLOCK then :bsky_block 47 + when Collection::BSKY_FEED then :bsky_feed 48 + when Collection::BSKY_FOLLOW then :bsky_follow 49 + when Collection::BSKY_LABELER then :bsky_labeler 50 + when Collection::BSKY_LIKE then :bsky_like 51 + when Collection::BSKY_LIST then :bsky_list 52 + when Collection::BSKY_LISTBLOCK then :bsky_listblock 53 + when Collection::BSKY_LISTITEM then :bsky_listitem 54 + when Collection::BSKY_POST then :bsky_post 55 + when Collection::BSKY_PROFILE then :bsky_profile 56 + when Collection::BSKY_REPOST then :bsky_repost 57 + when Collection::BSKY_STARTERPACK then :bsky_starterpack 58 + when Collection::BSKY_THREADGATE then :bsky_threadgate 58 59 when Collection::BSKY_CHAT_DECLARATION then :bsky_chat_declaration 59 60 else :unknown 60 61 end