Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kagaribi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kagaribi

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Kagaribi(篝火) :fire:

Simple client for Cloud Firestore

Gem Version test

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add kagaribi

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install kagaribi

Usage

Authentication

Pass environment variables for Firestore authentication

see https://cloud.google.com/ruby/docs/reference/google-cloud-firestore/latest/AUTHENTICATION

Requirements

Firestore CRUD(Create/Read/Update/Delete) requires at least the following IAM Role

Simple usage

require "kagaribi"

collection = Kagaribi.collection("users")

# or

class UsersCollection < Kagaribi::Collection
  def initialize
    super("users")
  end
end
collection = UsersCollection.new

collection.set("sue445", name: "sue445", url: "https://github.com/sue445")
#=> document is stored in a key named "users/sue445" to Firestore collection

collection.get("sue445")
#=> { name: "sue445", url: "https://github.com/sue445" }

All methods are followings

https://sue445.github.io/kagaribi/Kagaribi/Collection

Development

At first, install Firebase Local Emulator Suite

Mac

brew install firebase-cli

Unix

sudo wget https://firebase.tools/bin/linux/latest -O /usr/local/bin/firebase --quiet
sudo chmod 755 /usr/local/bin/firebase
firebase setup:emulators:firestore

Run tests with Firebase Local Emulator

bundle exec rake spec

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sue445/kagaribi.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 12 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc