Skip to content

Commit 8393482

Browse files
authored
Merge pull request #62 from appwrite/dev
feat: Ruby SDK update for version 24.1.0
2 parents 8ef1f02 + 5c2ea14 commit 8393482

12 files changed

Lines changed: 32 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 24.1.0
4+
5+
* Added `size_actual` attribute to `File` model
6+
* Added `DENO_1_21`, `DENO_1_24`, and `DENO_1_35` runtime constants
7+
* Updated advisor examples to use API key authentication
8+
39
## 24.0.0
410

511
* Breaking: Renamed `AuthMethod` enum to `ProjectAuthMethodId`

appwrite.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |spec|
22

33
spec.name = 'appwrite'
4-
spec.version = '24.0.0'
4+
spec.version = '24.1.0'
55
spec.license = 'BSD-3-Clause'
66
spec.summary = 'Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API'
77
spec.author = 'Appwrite Team'

docs/examples/advisor/get-insight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include Appwrite
66
client = Client.new
77
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
88
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9-
.set_session('') # The user session to authenticate with
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
1010

1111
advisor = Advisor.new(client)
1212

docs/examples/advisor/get-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include Appwrite
66
client = Client.new
77
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
88
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9-
.set_session('') # The user session to authenticate with
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
1010

1111
advisor = Advisor.new(client)
1212

docs/examples/advisor/list-insights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include Appwrite
66
client = Client.new
77
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
88
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9-
.set_session('') # The user session to authenticate with
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
1010

1111
advisor = Advisor.new(client)
1212

docs/examples/advisor/list-reports.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include Appwrite
66
client = Client.new
77
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
88
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9-
.set_session('') # The user session to authenticate with
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
1010

1111
advisor = Advisor.new(client)
1212

lib/appwrite/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize
1515
'x-sdk-name'=> 'Ruby',
1616
'x-sdk-platform'=> 'server',
1717
'x-sdk-language'=> 'ruby',
18-
'x-sdk-version'=> '24.0.0',
18+
'x-sdk-version'=> '24.1.0',
1919
'X-Appwrite-Response-Format' => '1.9.5'
2020
}
2121
@endpoint = 'https://cloud.appwrite.io/v1'

lib/appwrite/enums/build_runtime.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ module BuildRuntime
3232
PYTHON_ML_3_11 = 'python-ml-3.11'
3333
PYTHON_ML_3_12 = 'python-ml-3.12'
3434
PYTHON_ML_3_13 = 'python-ml-3.13'
35+
DENO_1_21 = 'deno-1.21'
36+
DENO_1_24 = 'deno-1.24'
37+
DENO_1_35 = 'deno-1.35'
3538
DENO_1_40 = 'deno-1.40'
3639
DENO_1_46 = 'deno-1.46'
3740
DENO_2_0 = 'deno-2.0'

lib/appwrite/enums/runtime.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ module Runtime
3232
PYTHON_ML_3_11 = 'python-ml-3.11'
3333
PYTHON_ML_3_12 = 'python-ml-3.12'
3434
PYTHON_ML_3_13 = 'python-ml-3.13'
35+
DENO_1_21 = 'deno-1.21'
36+
DENO_1_24 = 'deno-1.24'
37+
DENO_1_35 = 'deno-1.35'
3538
DENO_1_40 = 'deno-1.40'
3639
DENO_1_46 = 'deno-1.46'
3740
DENO_2_0 = 'deno-2.0'

lib/appwrite/models/billing_limits.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ class BillingLimits
1313
attr_reader :budget_limit
1414

1515
def initialize(
16-
bandwidth:,
17-
storage:,
18-
users:,
19-
executions:,
20-
gb_hours:,
21-
image_transformations:,
22-
auth_phone:,
23-
budget_limit:
16+
bandwidth: ,
17+
storage: ,
18+
users: ,
19+
executions: ,
20+
gb_hours: ,
21+
image_transformations: ,
22+
auth_phone: ,
23+
budget_limit:
2424
)
2525
@bandwidth = bandwidth
2626
@storage = storage

0 commit comments

Comments
 (0)