Coder Social home page Coder Social logo

appwrite / sdk-for-ruby Goto Github PK

View Code? Open in Web Editor NEW
57.0 19.0 6.0 586 KB

[READ-ONLY] Official Appwrite Ruby SDK ๐Ÿ’Ž ๐Ÿ”ด

Home Page: https://appwrite.io

License: BSD 3-Clause "New" or "Revised" License

Ruby 100.00%
ruby baas appwrite hacktoberfest

sdk-for-ruby's Issues

Upgrade our issue templates to use GitHub issue forms โœ๏ธ

Introduction

GitHub has recently rolled out a public beta for their issue forms feature. This would allow you to create interactive issue templates and validate them ๐Ÿคฏ.

Appwrite currently uses the older issue template format. Your task is to create GitHub issue forms for this repository. Please use Appwrite's issue templates as a reference for this PR.

Tasks summary:

  • Fork & clone this repository
  • Prepare bug report issue form in .github/ISSUE_TEMPLATE/bug.yaml
  • Prepare documentation issue form in .github/ISSUE_TEMPLATE/documentation.yaml
  • Prepare feature request issue form in .github/ISSUE_TEMPLATE/feature.yaml
  • Push changes to master and test issue forms on your fork
  • Submit pull request

If you need any help, reach out to us on our Discord server.

Are you ready to work on this issue? ๐Ÿค” Let us know, and we will assign it to you ๐Ÿ˜Š

Happy Appwriting!

๐Ÿ“š Documentation: Update Ruby install command per Appwrite Docs

๐Ÿ’ญ Description

Per this issue and this PR in the Appwrite Docs repo, the Ruby gem install command should be gem install appwrite instead of gem install appwrite --save.

A PR will be submitted to update this in Readme.md.

I do see that this repo is marked as Read Only in the About section on GitHub., If this repo is automatically generated by pushing to a different repo, please let me know and I can make this change upstream instead. ๐Ÿ‘

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

Client raises TypeError when API responds with 204

Hi!
SDK raises exception when calling Appwrite::Database#delete_document because API endpoint responds with 204 No Content without body, but Appwrite::Client expects JSON and tries to parse it.

Ruby version: 3.0.2
SDK version: 2.4.0

Trace:

/Users/anna/.rbenv/versions/3.0.2/lib/ruby/3.0.0/json/common.rb:216:in `initialize': no implicit conversion of nil into String (TypeError)
	from /Users/anna/.rbenv/versions/3.0.2/lib/ruby/3.0.0/json/common.rb:216:in `new'
	from /Users/anna/.rbenv/versions/3.0.2/lib/ruby/3.0.0/json/common.rb:216:in `parse'
	from /Users/anna/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/appwrite-2.4.0/lib/appwrite/client.rb:110:in `fetch'
	from /Users/anna/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/appwrite-2.4.0/lib/appwrite/client.rb:67:in `call'
	from /Users/anna/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/appwrite-2.4.0/lib/appwrite/services/database.rb:294:in `delete_document'

I suppose it is common problem for all DELETE endpoints such as Appwrite::Database#delete_document, Appwrite::Storage#delete_file, Appwrite::Storage#delete_collection

I could try to fix and open PR if it's ok)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.