rubysky 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c621e0b59495030464ebde168fae4d352db32b458c213be1300277928d9656f
4
- data.tar.gz: 7c5bed2c73fbbc141866d922a308de16bfe994bca83db10b762f3ef5d22d3905
3
+ metadata.gz: abfa017f4c050d17a07d93db832007f506123c6f0f2a46fdd87358b4909a6541
4
+ data.tar.gz: cd63c213b9e59c40d4da5a6f04c963fa0083143f2c771e5171afde1e598daac1
5
5
  SHA512:
6
- metadata.gz: ab3ab4c9c159586c2a3dce504d2bc9f60a31bb1ed08cfe677cfe94e946f97168e259838f27dde6cec5cceaf13f3c7d6faef839772c0d9d21adad599b8e7b7740
7
- data.tar.gz: 86b71204df8732eae6b29e539540ae3a8fe156340f3d138880b9db9676cdd325ce2009b606cd0da7569f25ed98e35bccacc216e8b9812e7a135c7a77c3889c2f
6
+ metadata.gz: 1dfa8d610b4e3ff419968bf421358642b8596ea86bdf802308df3f997bd4ba25031e8ad49b1f577f60f74df37ac30a44b00d10a26fe43d93eac701b32ee27a91
7
+ data.tar.gz: 46569ac22fbbbdf3fd48e3cb0769678793874ebca337ac11a529c56e010cfa8257286adf802c9d70b56255bdfb890b2cd864eafde5f5b7605cc117f91148dcd6
@@ -36,5 +36,13 @@ module RubySky
36
36
  def refresh_jwt
37
37
  @client.session.refresh_jwt
38
38
  end
39
+
40
+ def user_did
41
+ @client.session.did_doc.did_doc
42
+ end
43
+
44
+ def handle
45
+ @client.session.handle
46
+ end
39
47
  end
40
48
  end
@@ -4,7 +4,7 @@ module RubySky
4
4
  module Raw
5
5
  # DID Document
6
6
  class DIDDoc
7
- attr_reader :did
7
+ attr_reader :did, :did_doc
8
8
 
9
9
  def initialize(did:, did_doc:)
10
10
  @did = did
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubySky
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
data/sig/rubysky.rbs CHANGED
@@ -10,6 +10,8 @@ module RubySky
10
10
  def initialize: (client: Raw::Client) -> void
11
11
  def post: (text: String, images: Array[{data: IO, mime_type: String, ?alt: String}]) -> Post
12
12
  def refresh_jwt: () -> String
13
+ def user_did: () -> Hash[String, untyped]
14
+ def handle: () -> String
13
15
 
14
16
  attr_reader client: Raw::Client
15
17
  end
@@ -61,6 +63,7 @@ module RubySky
61
63
  def to_json: () -> String
62
64
 
63
65
  attr_reader did: String
66
+ attr_reader did_doc: Hash[String, untyped]
64
67
  @did_doc: Hash[String, untyped]
65
68
  end
66
69
 
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.1.0
4
+ version: 0.2.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-05 00:00:00.000000000 Z
11
+ date: 2024-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt