Received: by mail.netbsd.org (Postfix, from userid 605) id 3554C84DB1; Mon, 25 May 2020 14:40:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3206984D6F for ; Mon, 25 May 2020 14:40:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id fkRR2K4lFOGd for ; Mon, 25 May 2020 14:40:23 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 98B7684CDB for ; Mon, 25 May 2020 14:40:23 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 92FC6FB27; Mon, 25 May 2020 14:40:23 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1590417623238190" MIME-Version: 1.0 Date: Mon, 25 May 2020 14:40:23 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/www/ruby-request_store To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20200525144023.92FC6FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1590417623238190 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: taca Date: Mon May 25 14:40:23 UTC 2020 Added Files: pkgsrc/www/ruby-request_store: DESCR Makefile PLIST distinfo Log Message: 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... To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/www/ruby-request_store/DESCR \ pkgsrc/www/ruby-request_store/Makefile \ pkgsrc/www/ruby-request_store/PLIST \ pkgsrc/www/ruby-request_store/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1590417623238190 Content-Disposition: inline Content-Length: 2729 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/www/ruby-request_store/DESCR diff -u /dev/null pkgsrc/www/ruby-request_store/DESCR:1.1 --- /dev/null Mon May 25 14:40:23 2020 +++ pkgsrc/www/ruby-request_store/DESCR Mon May 25 14:40:23 2020 @@ -0,0 +1,12 @@ +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... Index: pkgsrc/www/ruby-request_store/Makefile diff -u /dev/null pkgsrc/www/ruby-request_store/Makefile:1.1 --- /dev/null Mon May 25 14:40:23 2020 +++ pkgsrc/www/ruby-request_store/Makefile Mon May 25 14:40:23 2020 @@ -0,0 +1,16 @@ +# $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" Index: pkgsrc/www/ruby-request_store/PLIST diff -u /dev/null pkgsrc/www/ruby-request_store/PLIST:1.1 --- /dev/null Mon May 25 14:40:23 2020 +++ pkgsrc/www/ruby-request_store/PLIST Mon May 25 14:40:23 2020 @@ -0,0 +1,17 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/25 14:40:23 taca Exp $ +${GEM_HOME}/cache/${GEM_NAME}.gem +${GEM_LIBDIR}/.gitignore +${GEM_LIBDIR}/.travis.yml +${GEM_LIBDIR}/Gemfile +${GEM_LIBDIR}/LICENSE.txt +${GEM_LIBDIR}/README.md +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/lib/request_store.rb +${GEM_LIBDIR}/lib/request_store/middleware.rb +${GEM_LIBDIR}/lib/request_store/railtie.rb +${GEM_LIBDIR}/lib/request_store/version.rb +${GEM_LIBDIR}/request_store.gemspec +${GEM_LIBDIR}/test/middleware_test.rb +${GEM_LIBDIR}/test/request_store_test.rb +${GEM_LIBDIR}/test/test_helper.rb +${GEM_HOME}/specifications/${GEM_NAME}.gemspec Index: pkgsrc/www/ruby-request_store/distinfo diff -u /dev/null pkgsrc/www/ruby-request_store/distinfo:1.1 --- /dev/null Mon May 25 14:40:23 2020 +++ pkgsrc/www/ruby-request_store/distinfo Mon May 25 14:40:23 2020 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/05/25 14:40:23 taca Exp $ + +SHA1 (request_store-1.5.0.gem) = 885c89acee5d7ee49804085090ff91d79babac8a +RMD160 (request_store-1.5.0.gem) = d93bbff6e4f84f0f4ff5c1af794ce16bec109888 +SHA512 (request_store-1.5.0.gem) = c01d4505d2bc0b88456d0bc49416fcbea67da1e2ab6ef0c7fc900fae8856d82157dc39d2e1d2f299000f74b140f6f13d7352f4684e247d103bbaab7b1705910f +Size (request_store-1.5.0.gem) = 9216 bytes --_----------=_1590417623238190--