Socket
Book a DemoInstallSign in
Socket

svcbase

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svcbase

0.1.18
bundlerRubygems
Version published
Maintainers
1
Created
Source

Svcbase

This is a base class for Grape apps following our API methodology.

It includes

  • API Logging, including sensitive data filtering and periodic stat output
  • Configuration (file) support
  • Locale support
  • API request helpers for common data
  • Request ID tracking

Installation

Add this line to your application's Gemfile:

gem 'svcbase'

And then execute:

$ bundle

Or install it yourself as:

$ gem install svcbase

Usage

You can reference the entire stack by simply doing a

require 'svcbase'

but it is recommended that only the relevant parts are required. For example, to start the behind-the-scenes thread server, simply

require 'svcbase/server'

and then later reference ``` Core::Server.


To create a new top-level API, first

```ruby
require 'svcbase/api/base'

and then create a class that inherits from ``` Core::APIBase


## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. 


FAQs

Package last updated on 18 Sep 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.