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

compactdata

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compactdata

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CompactData Parser

This Ruby gem is a CompactData parser and requires Ruby 2.6.0.

Installation

Add this line to your application's Gemfile:

gem 'compactdata'

And then execute:

$ bundle install

Or clone the repository and build and install it yourself as:

$ rake install

or if that fails:

$ sudo rake install

Usage

In irb:

2.6.0 :001 > require 'compactdata'
 => true
2.6.0 :002 > CompactData.parse 'a=b'
 => {"a"=>"b"}
2.6.0 :003 >

In a Ruby file:

require 'compactdata'

str='s=CompactData'
pretty = true
result = CompactData.parse str
puts result

where str is the CompactData to be parsed.

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

License

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

FAQs

Package last updated on 02 Mar 2023

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