rubysky 0.2.1 → 0.3.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/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: 651d596ed8bca48d094dc4f810d5213f7a872d76b357e2824a8619faa60a4419
|
4
|
+
data.tar.gz: 96e373af9d31fae5413bceea7adb146b598c1569929f26091b9b5f8d3b2ce5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b94f1ec080eff2b4f30b5f011e1e74d8fefad22a0ceaed72da274192d3486237231d08cd77e266fb67e001822213743a1938b6ca9b46f5892873637dd9460a02
|
7
|
+
data.tar.gz: 9bf17f5fb3c1f10e6c40203abdb9589658aeb21c702d63deea0e26ced9c4784ee51b0ef4134d297c729e6de719a646c0d0ecfb66ab229e13b4197c64c6913f27
|
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/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.3.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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|