lara-sdk 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lara/models/glossaries.rb +5 -2
- data/lib/lara/models/memories.rb +5 -2
- data/lib/lara/models/shares.rb +4 -3
- data/lib/lara/models/text.rb +5 -2
- data/lib/lara/version.rb +1 -1
- 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: 370e00f8aea75a62aaa75afe314ccdac0917176902accfdeed31742b83cb1fdd
|
|
4
|
+
data.tar.gz: 251d5fb842d8aae2a055fd3705ac1af73def99396b342610accc07224e3f0569
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 006a24cc826bd26ddef6f73ff54f1721d8fa45f21358b51bab6a502c824ac2313f4c2ee38cc2ca8dd83952df8f961d8b9ce082aa6b0fb5e8c93867c9b5e978ce
|
|
7
|
+
data.tar.gz: e48c25fc3d1207010b55051516e1c50b83532127fdc57cbd11752680a973348557e78b5345a70fa856e43913bfca0cd87d437004361611f8b4212a3e8857321d
|
|
@@ -5,10 +5,10 @@ require_relative "base"
|
|
|
5
5
|
module Lara
|
|
6
6
|
module Models
|
|
7
7
|
class Glossary < Base
|
|
8
|
-
attr_reader :id, :name, :owner_id, :created_at, :updated_at, :shared_at, :is_personal
|
|
8
|
+
attr_reader :id, :name, :owner_id, :created_at, :updated_at, :shared_at, :is_personal, :permission_mask
|
|
9
9
|
|
|
10
10
|
def initialize(id:, name:, owner_id:, created_at: nil, updated_at: nil, shared_at: nil,
|
|
11
|
-
is_personal: nil, **_kwargs)
|
|
11
|
+
is_personal: nil, permission_mask: nil, **_kwargs)
|
|
12
12
|
super()
|
|
13
13
|
@id = id
|
|
14
14
|
@name = name
|
|
@@ -18,6 +18,9 @@ module Lara
|
|
|
18
18
|
@shared_at = Base.parse_time(shared_at)
|
|
19
19
|
# The API sends is_personal: true and omits the key otherwise; it never sends false or null.
|
|
20
20
|
@is_personal = is_personal || false
|
|
21
|
+
# Effective combined mask in GET list/detail; selected share's stored mask in GET /shares.
|
|
22
|
+
# Nil when omitted, including non-GET responses.
|
|
23
|
+
@permission_mask = permission_mask
|
|
21
24
|
end
|
|
22
25
|
end
|
|
23
26
|
|
data/lib/lara/models/memories.rb
CHANGED
|
@@ -6,11 +6,11 @@ module Lara
|
|
|
6
6
|
module Models
|
|
7
7
|
class Memory < Base
|
|
8
8
|
attr_reader :id, :created_at, :updated_at, :name, :external_id, :secret,
|
|
9
|
-
:owner_id, :collaborators_count, :shared_at, :is_personal
|
|
9
|
+
:owner_id, :collaborators_count, :shared_at, :is_personal, :permission_mask
|
|
10
10
|
|
|
11
11
|
def initialize(id:, name:, owner_id:, created_at: nil, updated_at: nil,
|
|
12
12
|
external_id: nil, secret: nil, collaborators_count: nil, shared_at: nil,
|
|
13
|
-
is_personal: nil, **_kwargs)
|
|
13
|
+
is_personal: nil, permission_mask: nil, **_kwargs)
|
|
14
14
|
super()
|
|
15
15
|
@id = id
|
|
16
16
|
@name = name
|
|
@@ -23,6 +23,9 @@ module Lara
|
|
|
23
23
|
@shared_at = Base.parse_time(shared_at)
|
|
24
24
|
# The API sends is_personal: true and omits the key otherwise; it never sends false or null.
|
|
25
25
|
@is_personal = is_personal || false
|
|
26
|
+
# Effective combined mask in GET list/detail; selected share's stored mask in GET /shares.
|
|
27
|
+
# Nil when omitted, including non-GET responses.
|
|
28
|
+
@permission_mask = permission_mask
|
|
26
29
|
end
|
|
27
30
|
end
|
|
28
31
|
|
data/lib/lara/models/shares.rb
CHANGED
|
@@ -5,15 +5,16 @@ require_relative "base"
|
|
|
5
5
|
module Lara
|
|
6
6
|
module Models
|
|
7
7
|
class ResourceShareEntry < Base
|
|
8
|
-
attr_reader :id, :name, :share_name, :shared_at, :
|
|
8
|
+
attr_reader :id, :name, :share_name, :shared_at, :permission_mask
|
|
9
9
|
|
|
10
|
-
def initialize(id:, name:, share_name:, shared_at:,
|
|
10
|
+
def initialize(id:, name:, share_name:, shared_at:, permission_mask:, **_kwargs)
|
|
11
11
|
super()
|
|
12
12
|
@id = id
|
|
13
13
|
@name = name
|
|
14
14
|
@share_name = share_name
|
|
15
15
|
@shared_at = Base.parse_time(shared_at)
|
|
16
|
-
|
|
16
|
+
# The permissions stored on this share.
|
|
17
|
+
@permission_mask = permission_mask
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
|
data/lib/lara/models/text.rb
CHANGED
|
@@ -115,10 +115,10 @@ module Lara
|
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
class Styleguide < Base
|
|
118
|
-
attr_reader :id, :name, :content, :owner_id, :created_at, :updated_at, :shared_at, :is_personal
|
|
118
|
+
attr_reader :id, :name, :content, :owner_id, :created_at, :updated_at, :shared_at, :is_personal, :permission_mask
|
|
119
119
|
|
|
120
120
|
def initialize(id:, name:, content: nil, owner_id: nil, created_at: nil, updated_at: nil,
|
|
121
|
-
shared_at: nil, is_personal: nil, **_kwargs)
|
|
121
|
+
shared_at: nil, is_personal: nil, permission_mask: nil, **_kwargs)
|
|
122
122
|
super()
|
|
123
123
|
@id = id
|
|
124
124
|
@name = name
|
|
@@ -129,6 +129,9 @@ module Lara
|
|
|
129
129
|
@shared_at = Base.parse_time(shared_at)
|
|
130
130
|
# The API sends is_personal: true and omits the key otherwise; it never sends false or null.
|
|
131
131
|
@is_personal = is_personal || false
|
|
132
|
+
# Effective combined mask in GET list/detail; selected share's stored mask in GET /shares.
|
|
133
|
+
# Nil when omitted, including non-GET responses.
|
|
134
|
+
@permission_mask = permission_mask
|
|
132
135
|
end
|
|
133
136
|
|
|
134
137
|
def to_s
|
data/lib/lara/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lara-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Translated
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|