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

compressed-cookie

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compressed-cookie

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

CompressedCookie

This gem provides a wrapper around key-based cookie accessors.

Installation

gem install compressed_cookie

Examples

# define your cookie class
class MyCookie < CompressedCookie
  cookie_index :foo => 0,
               :bar => 1
end

# use it to write to a raw cookie object
raw_cookie = []
MyCookie.write(raw_cookie) do |writer|
  writer.foo = 'hello world'
end
puts raw_cookie
# => ['hello world', nil]

# use it to read from a raw cookie object
MyCookie.read(raw_cookie) do |reader|
  puts reader.foo
  # => 'hello world'
end

Development

`bundle install`

`bundle exec rspec spec`

License

Copyright 2011 Jens Bissinger. All rights reserved. MIT-LICENSE

FAQs

Package last updated on 28 Nov 2011

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