Skip to content

Commit e5a1028

Browse files
committed
Fix header casting and more minor fixes
1 parent 33273d3 commit e5a1028

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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 |s|
22

33
s.name = 'appwrite'
4-
s.version = '2.1.0'
4+
s.version = '2.1.1'
55
s.summary = "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API"
66
s.author = 'Appwrite Team'
77
s.homepage = 'https://appwrite.io/support'

docs/examples/functions/create-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ client
1010

1111
functions = Appwrite::Functions.new(client);
1212

13-
response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: Appwrite::File.new());
13+
response = functions.create_tag(function_id: '[FUNCTION_ID]', command: '[COMMAND]', code: '');
1414

1515
puts response

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ client
1010

1111
storage = Appwrite::Storage.new(client);
1212

13-
response = storage.create_file(file: Appwrite::File.new());
13+
response = storage.create_file(file: '');
1414

1515
puts response

lib/appwrite/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize()
2020
@headers = {
2121
'content-type' => '',
2222
'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
23-
'x-sdk-version' => 'appwrite:ruby:2.1.0',
23+
'x-sdk-version' => 'appwrite:ruby:2.1.1',
2424
'X-Appwrite-Response-Format' => '0.8.0'
2525
}
2626
@endpoint = 'https://appwrite.io/v1';
@@ -57,7 +57,7 @@ def set_endpoint(endpoint)
5757
end
5858

5959
def add_header(key, value)
60-
@headers[key.downcase] = value.downcase
60+
@headers[key.downcase] = value
6161

6262
return self
6363
end

0 commit comments

Comments
 (0)