rubysky 0.2.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubysky/client.rb +15 -0
- data/lib/rubysky/raw/embed.rb +6 -2
- data/lib/rubysky/version.rb +1 -1
- data/sig/rubysky.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6be362a96034c153bc6cd9e9d5737a9ef5eeef478f475a67ebf602f38f5dae8
|
4
|
+
data.tar.gz: 1ef05e55261c62a371bf01bc35407597a4bd60588d372319b899779afcda702e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62fe028987c92fc49e4db38b47a570ff999ca000ac0510b554c8e510faf59315929481dca4045209c7754cf0c6d98f6687e748e475907314d9dc16f2d974e261
|
7
|
+
data.tar.gz: c6c34eda9ba22628a5124a7051146cafe3a88cee6c926326c0ed171c030035808a9a32b25d99b26c3afd6f53d3f424b9dc66f1d4309505f9b281091cd7002b5f
|
data/lib/rubysky/client.rb
CHANGED
@@ -41,6 +41,21 @@ module RubySky
|
|
41
41
|
@client.session.did_doc.did_doc
|
42
42
|
end
|
43
43
|
|
44
|
+
def user_info
|
45
|
+
{
|
46
|
+
"pds" => @client.pds,
|
47
|
+
"access_jwt" => @client.session.access_jwt,
|
48
|
+
"refresh_jwt" => @client.session.refresh_jwt,
|
49
|
+
"did" => @client.session.did_doc.did,
|
50
|
+
"did_doc" => @client.session.did_doc.did_doc,
|
51
|
+
"email" => @client.session.email,
|
52
|
+
"email_confirmed" => @client.session.email_confirmed,
|
53
|
+
"email_auth_factor" => @client.session.email_auth_factor,
|
54
|
+
"active" => @client.session.active,
|
55
|
+
"status" => @client.session.status
|
56
|
+
}.compact
|
57
|
+
end
|
58
|
+
|
44
59
|
def handle
|
45
60
|
@client.session.handle
|
46
61
|
end
|
data/lib/rubysky/raw/embed.rb
CHANGED
data/lib/rubysky/version.rb
CHANGED
data/sig/rubysky.rbs
CHANGED
@@ -11,6 +11,7 @@ module RubySky
|
|
11
11
|
def post: (text: String, images: Array[{data: IO, mime_type: String, ?alt: String}]) -> Post
|
12
12
|
def refresh_jwt: () -> String
|
13
13
|
def user_did: () -> Hash[String, untyped]
|
14
|
+
def user_info: () -> Hash[String, untyped]
|
14
15
|
def handle: () -> String
|
15
16
|
|
16
17
|
attr_reader client: Raw::Client
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kugayama Nana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|