Importing ruby-templater package version 1.0.0.

Templater has the ability to both copy files from A to B and also to
render templates using ERB. Templater consists of four parts:

- Actions (File copying routines, templates generation and directories
  creation routines).
- Generators (set of rules).
- Manifolds (generator suites).
- The command line interface.

Hierarchy is pretty simple: manifold has one or many public and
private generators. Public ones are supposed to be called by end
user. Generators have one or more action that specify what they do,
where they take files, how they name resulting files and so forth.
This commit is contained in:
taca 2011-08-12 16:08:19 +00:00
parent ce7b144390
commit b5102a7797
4 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,13 @@
Templater has the ability to both copy files from A to B and also to render
templates using ERB. Templater consists of four parts:
- Actions (File copying routines, templates generation and directories
creation routines).
- Generators (set of rules).
- Manifolds (generator suites).
- The command line interface.
Hierarchy is pretty simple: manifold has one or many public and private
generators. Public ones are supposed to be called by end user. Generators have
one or more action that specify what they do, where they take files, how they
name resulting files and so forth.

View file

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/08/12 16:08:19 taca Exp $
DISTNAME= templater-1.0.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/jnicklas/templater
COMMENT= Tool copy files and render templates using ERB
LICENSE= mit
DEPENDS+= ${RUBY_PKGPREFIX}-highline>=1.4.0:../../devel/ruby-highline
DEPENDS+= ${RUBY_PKGPREFIX}-diff-lcs>=1.1.2:../../textproc/ruby-diff-lcs
DEPENDS+= ${RUBY_PKGPREFIX}-extlib>=0.9.5:../../devel/ruby-extlib
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,67 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/08/12 16:08:19 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/History.txt
${GEM_LIBDIR}/Manifest.txt
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/lib/templater.rb
${GEM_LIBDIR}/lib/templater/actions/action.rb
${GEM_LIBDIR}/lib/templater/actions/directory.rb
${GEM_LIBDIR}/lib/templater/actions/empty_directory.rb
${GEM_LIBDIR}/lib/templater/actions/file.rb
${GEM_LIBDIR}/lib/templater/actions/template.rb
${GEM_LIBDIR}/lib/templater/capture_helpers.rb
${GEM_LIBDIR}/lib/templater/cli/generator.rb
${GEM_LIBDIR}/lib/templater/cli/manifold.rb
${GEM_LIBDIR}/lib/templater/cli/parser.rb
${GEM_LIBDIR}/lib/templater/core_ext/kernel.rb
${GEM_LIBDIR}/lib/templater/core_ext/string.rb
${GEM_LIBDIR}/lib/templater/description.rb
${GEM_LIBDIR}/lib/templater/discovery.rb
${GEM_LIBDIR}/lib/templater/generator.rb
${GEM_LIBDIR}/lib/templater/manifold.rb
${GEM_LIBDIR}/lib/templater/spec/helpers.rb
${GEM_LIBDIR}/script/console
${GEM_LIBDIR}/script/destroy
${GEM_LIBDIR}/script/generate
${GEM_LIBDIR}/spec/actions/directory_spec.rb
${GEM_LIBDIR}/spec/actions/empty_directory_spec.rb
${GEM_LIBDIR}/spec/actions/file_spec.rb
${GEM_LIBDIR}/spec/actions/template_spec.rb
${GEM_LIBDIR}/spec/core_ext/string_spec.rb
${GEM_LIBDIR}/spec/generator/actions_spec.rb
${GEM_LIBDIR}/spec/generator/arguments_spec.rb
${GEM_LIBDIR}/spec/generator/desc_spec.rb
${GEM_LIBDIR}/spec/generator/destination_root_spec.rb
${GEM_LIBDIR}/spec/generator/empty_directories_spec.rb
${GEM_LIBDIR}/spec/generator/files_spec.rb
${GEM_LIBDIR}/spec/generator/generators_spec.rb
${GEM_LIBDIR}/spec/generator/glob_spec.rb
${GEM_LIBDIR}/spec/generator/invocations_spec.rb
${GEM_LIBDIR}/spec/generator/invoke_spec.rb
${GEM_LIBDIR}/spec/generator/options_spec.rb
${GEM_LIBDIR}/spec/generator/render_spec.rb
${GEM_LIBDIR}/spec/generator/source_root_spec.rb
${GEM_LIBDIR}/spec/generator/templates_spec.rb
${GEM_LIBDIR}/spec/manifold_spec.rb
${GEM_LIBDIR}/spec/options_parser_spec.rb
${GEM_LIBDIR}/spec/results/erb.rbs
${GEM_LIBDIR}/spec/results/file.rbs
${GEM_LIBDIR}/spec/results/random.rbs
${GEM_LIBDIR}/spec/results/simple_erb.rbs
${GEM_LIBDIR}/spec/spec_helper.rb
${GEM_LIBDIR}/spec/spec_helpers_spec.rb
${GEM_LIBDIR}/spec/templater_spec.rb
${GEM_LIBDIR}/spec/templates/erb.rbt
${GEM_LIBDIR}/spec/templates/glob/README
${GEM_LIBDIR}/spec/templates/glob/arg.js
${GEM_LIBDIR}/spec/templates/glob/hellothar.%feh%
${GEM_LIBDIR}/spec/templates/glob/hellothar.html.%feh%
${GEM_LIBDIR}/spec/templates/glob/subfolder/jessica_alba.jpg
${GEM_LIBDIR}/spec/templates/glob/subfolder/monkey.rb
${GEM_LIBDIR}/spec/templates/glob/test.rb
${GEM_LIBDIR}/spec/templates/literals_erb.rbt
${GEM_LIBDIR}/spec/templates/simple.rbt
${GEM_LIBDIR}/spec/templates/simple_erb.rbt
${GEM_LIBDIR}/templater.gemspec
${GEM_HOME}/specifications/${GEM_NAME}.gemspec

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2011/08/12 16:08:19 taca Exp $
SHA1 (templater-1.0.0.gem) = 0b2e19f9ac3fb6e4d9fbfcb437c552e5b158604b
RMD160 (templater-1.0.0.gem) = a2963e7e9da0d11cf851a5f484cfab4500c6103c
Size (templater-1.0.0.gem) = 32256 bytes