Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2017 15:28:51 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438522 - in head/www: . rubygem-rails_serve_static_assets
Message-ID:  <201704141528.v3EFSpWw092556@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jrm
Date: Fri Apr 14 15:28:51 2017
New Revision: 438522
URL: https://svnweb.freebsd.org/changeset/ports/438522

Log:
  New port, www/rubygem-rails_serve_static_assets: Enables serving assets in
  production
  
  Adding www/rubygem-rails_serve_static_assets, because it is required for
  the upcoming www/mastodon port.
  
  WWW: https://github.com/heroku/rails_serve_static_assets/
  
  Approved by:	swills (mentor, implicit)

Added:
  head/www/rubygem-rails_serve_static_assets/
  head/www/rubygem-rails_serve_static_assets/Makefile   (contents, props changed)
  head/www/rubygem-rails_serve_static_assets/distinfo   (contents, props changed)
  head/www/rubygem-rails_serve_static_assets/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Apr 14 15:19:30 2017	(r438521)
+++ head/www/Makefile	Fri Apr 14 15:28:51 2017	(r438522)
@@ -2066,6 +2066,7 @@
     SUBDIR += rubygem-rack16
     SUBDIR += rubygem-rails4
     SUBDIR += rubygem-rails_autolink
+    SUBDIR += rubygem-rails_serve_static_assets
     SUBDIR += rubygem-rails-settings-cached
     SUBDIR += rubygem-railties4
     SUBDIR += rubygem-railties5

Added: head/www/rubygem-rails_serve_static_assets/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/rubygem-rails_serve_static_assets/Makefile	Fri Apr 14 15:28:51 2017	(r438522)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PORTNAME=	rails_serve_static_assets
+PORTVERSION=	0.0.5
+CATEGORIES=	www rubygems
+MASTER_SITES=	RG
+
+MAINTAINER=	jrm@FreeBSD.org
+COMMENT=	Enables serving assets in production
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+NO_ARCH=	yes
+
+USE_RUBY=	yes
+USES=		gem
+
+.include <bsd.port.mk>

Added: head/www/rubygem-rails_serve_static_assets/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/rubygem-rails_serve_static_assets/distinfo	Fri Apr 14 15:28:51 2017	(r438522)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1492183315
+SHA256 (rubygem/rails_serve_static_assets-0.0.5.gem) = 203bf07eaf188512ef5c7e2243285564b29dcf77a0909b9693983495ae1380e9
+SIZE (rubygem/rails_serve_static_assets-0.0.5.gem) = 1285632

Added: head/www/rubygem-rails_serve_static_assets/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/rubygem-rails_serve_static_assets/pkg-descr	Fri Apr 14 15:28:51 2017	(r438522)
@@ -0,0 +1,8 @@
+This gem forces Rails to serve static assets.
+
+By default Rails4 will return a 404 if an asset is not handled via an external
+proxy such as Nginx.  While this default behavior may help you debug your Nginx
+configuration, it makes a default Rails application with assets unusable on a
+12factor platform.  This gem fixes that.
+
+WWW: https://github.com/heroku/rails_serve_static_assets/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704141528.v3EFSpWw092556>