BSD Ports

wip/ruby-request_store 1.5.0 NetBSD

Per-request global storage for Rack

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
License
mit
Categories
wip, devel

Description

Ever needed to use a global variable in Rails? Ugh, that's the worst. If youq need global state, you've probably reached for Thread.current. Like this:

def self.foo
  Thread.current\[:foo\] \|\|= 0
end

def self.foo=(value)
  Thread.current\[:foo\] = value
end

Ugh! I hate it. But you gotta do what you gotta do...

In the other systems

SystemPortVersion
NetBSDwip/ruby-request_store1.5.0
MidnightBSDdevel/rubygem-request_store1.7.0

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/ruby-request_store && make install clean

Dependencies

Run dependencies 1

No port depends on this one.