activitypub 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/activitypub/types.rb +6 -0
- data/lib/activitypub/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: 56987420fcce47e1c1c7e1244f804a49bd9e83d80d161c63f90af8ad05c0b669
|
4
|
+
data.tar.gz: a80c527aa688521d97671dcfdbcb3eb55d2b35168fb2dcf1bee5c9ef92123d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6b1f21ab13dfa05f3d9c44f1b3ccf71cc09b83af207800f99dd1ed1d89876cbd3c123385232652285a0e9227edc762a2f8010050f194930d783d11efa4a929
|
7
|
+
data.tar.gz: 9cfdb2e7f56a4b01dfd46f376adbf40843d28347af49d7f281f7588c7650920f29fc1df0b411b45ee9c867c709e71a87d92d3f7d73cf0b133d1375d98db02308
|
data/README.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
# ActivityPub
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
A Ruby gem to make it easy to retrieve and work with ActivityPub/
|
4
|
+
ActivityStreams objects, as used in Mastodon, Lemmy, Pixelfed and
|
5
|
+
similar.
|
6
|
+
|
7
|
+
CAUTION: This is early days and the API is likely to change quickly.
|
8
|
+
If you want to start using this, please follow the project and/or let
|
9
|
+
me know.
|
5
10
|
|
6
11
|
## Goals
|
7
12
|
|
@@ -28,7 +33,10 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
28
33
|
|
29
34
|
## Usage
|
30
35
|
|
31
|
-
TODO: Write usage instructions here
|
36
|
+
TODO: Write usage instructions here.
|
37
|
+
|
38
|
+
For now your best bet is to look at the examples/ dir and the unit
|
39
|
+
tests.
|
32
40
|
|
33
41
|
## Development
|
34
42
|
|
data/lib/activitypub/types.rb
CHANGED
@@ -71,6 +71,9 @@ module ActivityPub
|
|
71
71
|
ap_attr :first, URI
|
72
72
|
ap_attr :last, URI
|
73
73
|
ap_attr :items
|
74
|
+
|
75
|
+
def each(...) = Array(items).each(...)
|
76
|
+
def map(...) = Array(items).map(...)
|
74
77
|
end
|
75
78
|
|
76
79
|
class OrderedCollection < Collection
|
@@ -81,6 +84,9 @@ module ActivityPub
|
|
81
84
|
#
|
82
85
|
# FIXME: Review/consider whether to marge orderedItems/items internally.
|
83
86
|
ap_attr :orderedItems
|
87
|
+
|
88
|
+
def each(...) = Array(orderedItems).each(...)
|
89
|
+
def map(...) = Array(orderedItems).map(...)
|
84
90
|
end
|
85
91
|
|
86
92
|
class CollectionPage < Collection
|
data/lib/activitypub/version.rb
CHANGED