Skip to content

Commit 95469ea

Browse files
feat: Ruby SDK update for version 23.1.0
1 parent b3157c8 commit 95469ea

189 files changed

Lines changed: 8330 additions & 374 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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+
## 23.1.0
4+
5+
* Added: Introduced `bigint` create/update APIs for legacy Databases attributes
6+
* Added: Introduced `bigint` create/update APIs for `TablesDB` columns
7+
* Updated: Extended key-list query filters with `key`, `resourceType`, `resourceId`, and `secret`
8+
39
## 23.0.0
410

511
* [BREAKING] Renamed Webhook model fields: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`, `signatureKey``secret`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Ruby SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.9.1-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.4-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
9+
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-ruby/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

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 = '23.0.0'
4+
spec.version = '23.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'
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
databases = Databases.new(client)
12+
13+
result = databases.create_big_int_attribute(
14+
database_id: '<DATABASE_ID>',
15+
collection_id: '<COLLECTION_ID>',
16+
key: '',
17+
required: false,
18+
min: null, # optional
19+
max: null, # optional
20+
default: null, # optional
21+
array: false # optional
22+
)
23+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```ruby
2+
require 'appwrite'
3+
4+
include Appwrite
5+
6+
client = Client.new
7+
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
8+
.set_project('<YOUR_PROJECT_ID>') # Your project ID
9+
.set_key('<YOUR_API_KEY>') # Your secret API key
10+
11+
databases = Databases.new(client)
12+
13+
result = databases.update_big_int_attribute(
14+
database_id: '<DATABASE_ID>',
15+
collection_id: '<COLLECTION_ID>',
16+
key: '',
17+
required: false,
18+
default: null,
19+
min: null, # optional
20+
max: null, # optional
21+
new_key: '' # optional
22+
)
23+
```

docs/examples/functions/create-variable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ functions = Functions.new(client)
1212

1313
result = functions.create_variable(
1414
function_id: '<FUNCTION_ID>',
15+
variable_id: '<VARIABLE_ID>',
1516
key: '<KEY>',
1617
value: '<VALUE>',
1718
secret: false # optional

docs/examples/functions/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ result = functions.create(
2323
logging: false, # optional
2424
entrypoint: '<ENTRYPOINT>', # optional
2525
commands: '<COMMANDS>', # optional
26-
scopes: [Scopes::SESSIONS_WRITE], # optional
26+
scopes: [Scopes::PROJECT_READ], # optional
2727
installation_id: '<INSTALLATION_ID>', # optional
2828
provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional
2929
provider_branch: '<PROVIDER_BRANCH>', # optional

docs/examples/functions/list-variables.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ client = Client.new
1111
functions = Functions.new(client)
1212

1313
result = functions.list_variables(
14-
function_id: '<FUNCTION_ID>'
14+
function_id: '<FUNCTION_ID>',
15+
queries: [], # optional
16+
total: false # optional
1517
)
1618
```

docs/examples/functions/update-variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ functions = Functions.new(client)
1313
result = functions.update_variable(
1414
function_id: '<FUNCTION_ID>',
1515
variable_id: '<VARIABLE_ID>',
16-
key: '<KEY>',
16+
key: '<KEY>', # optional
1717
value: '<VALUE>', # optional
1818
secret: false # optional
1919
)

docs/examples/functions/update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ result = functions.update(
2323
logging: false, # optional
2424
entrypoint: '<ENTRYPOINT>', # optional
2525
commands: '<COMMANDS>', # optional
26-
scopes: [Scopes::SESSIONS_WRITE], # optional
26+
scopes: [Scopes::PROJECT_READ], # optional
2727
installation_id: '<INSTALLATION_ID>', # optional
2828
provider_repository_id: '<PROVIDER_REPOSITORY_ID>', # optional
2929
provider_branch: '<PROVIDER_BRANCH>', # optional

0 commit comments

Comments
 (0)