pkgsrc/www/ruby-request_store/Makefile
taca 8ec9c2a873 www/ruby-request_store: add package version 1.5.0
Add ruby-request_store package version 1.5.0 from wip/ruby-request_store.


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...
2020-05-25 14:40:23 +00:00

16 lines
405 B
Makefile

# $NetBSD: Makefile,v 1.1 2020/05/25 14:40:23 taca Exp $
DISTNAME= request_store-1.5.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/steveklabnik/request_store
COMMENT= Per-request global storage for Rack
LICENSE= mit
DEPENDS+= ${RUBY_PKGPREFIX}-rack>=1.4:../../www/ruby-rack
USE_LANGUAGES= # none
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"