A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rkh/mustermann/tree/v0.4.0 below:

GitHub - sinatra/mustermann at v0.4.0

This repository contains multiple projects (each installable as separate gems).

Git versions with Bundler

You can easily use the latest edge version from GitHub of any of these gems via Bundler:

git 'https://github.com/rkh/mustermann.git' do
  gem 'mustermann'
  gem 'mustermann-rails'
end

The identity, regexp and sinatra types are included in the mustermann gem, all the other types have their own gems.

<tr>
  <th><a href="mustermann-cake/README.md"><tt>cake</tt></a></th>
  <td><tt>/:prefix/**</tt></td>
  <td><a href="http://cakephp.org/">CakePHP</a></td>
  <td></td>
</tr>

<tr>
  <th><a href="mustermann-express/README.md"><tt>express</tt></a></th>
  <td><tt>/:prefix+/:id(\d+)</tt></td>
  <td>
    <a href="http://expressjs.com/">Express</a>,
    <a href="https://pillarjs.github.io/">pillar.js</a>
  </td>
  <td></td>
</tr>

<tr>
  <th><a href="mustermann-flask/README.md"><tt>flask</tt></a></th>
  <td><tt>/&lt;prefix&gt;/&lt;int:id&gt;</tt></td>
  <td>
    <a href="http://flask.pocoo.org/">Flask</a>,
    <a href="http://werkzeug.pocoo.org/">Werkzeug</a>
  </td>
  <td></td>
</tr>

<tr>
  <th><a href="mustermann/README.md#-identity-pattern"><tt>identity</tt></a></th>
  <td><tt>/image.png</tt></td>
  <td>any software using strings</td>
  <td>
    Exact string matching (no parameter parsing).
  </td>
</tr>

<tr>
  <th><a href="mustermann-pyramid/README.md"><tt>pyramid</tt></a></th>
  <td><tt>/{prefix:.*}/{id}</tt></td>
  <td>
    <a href="http://www.pylonsproject.org/projects/pyramid/about">Pyramid</a>,
    <a href="http://www.pylonsproject.org/projects/pylons-framework/about">Pylons</a>
  </td>
  <td></td>
</tr>

<tr>
  <th><a href="mustermann-rails/README.md"><tt>rails</tt></a></th>
  <td><tt>/:slug(.:ext)</tt></td>
  <td>
    <a href="http://rubyonrails.org/">Ruby on Rails</a>,
    <a href="https://github.com/rails/journey">Journey</a>,
    <a href="https://github.com/joshbuddy/http_router">HTTP Router</a>,
    <a href="http://lotusrb.org/">Lotus</a>,
    <a href="http://www.scalatra.org/">Scalatra</a> (if <a href="http://www.scalatra.org/2.3/guides/http/routes.html#toc_248">configured</a>)</td>
  <td></td>
</tr>

<tr>
  <th><a href="mustermann-regexp/README.md"><tt>regexp</tt></a></th>
  <td><tt>/(?&lt;slug&gt;[^\/]+)</tt></td>
  <td>
    <a href="http://www.geocities.jp/kosako3/oniguruma/">Oniguruma</a>,
    <a href="https://github.com/k-takata/Onigmo">Onigmo<a>,
    regular expressions
  </td>
  <td>
    Created when you pass a regexp to <tt>Mustermann.new</tt>.<br>
    Does not support expanding or generating templates.
  </td>
</tr>

<tr>
  <th><a href="mustermann-shell/README.md"><tt>shell</tt></a></th>
  <td><tt>/*.{png,jpg}</tt></td>
  <td>Unix Shell (bash, zsh)</td>
  <td>Does not support expanding or generating templates.</td>
</tr>

<tr>
  <th><a href="mustermann-simple/README.md"><tt>simple</tt></a></th>
  <td><tt>/:slug.:ext</tt></td>
  <td>
    <a href="http://www.sinatrarb.com/">Sinatra</a> (1.x),
    <a href="http://www.scalatra.org/">Scalatra</a>,
    <a href="http://perldancer.org/">Dancer</a>,
    <a href="https://github.com/julienschmidt/httprouter">HttpRouter (go)</a>,
    <a href="http://finatra.info/">Finatra</a>
  </td>
  <td>
    Implementation is a direct copy from Sinatra 1.3.<br>
    It is the predecessor of <tt>sinatra</tt>.
    Does not support expanding or generating templates.
  </td>
</tr>

<tr>
  <th><a href="mustermann/README.md#-sinatra-pattern"><tt>sinatra</tt></a></th>
  <td><tt>/:slug(.:ext)?</tt></td>
  <td>
    <a href="http://www.sinatrarb.com/">Sinatra</a> (2.x),
    <a href="http://www.padrinorb.com/">Padrino</a> (>= 0.13.0),
    <a href="https://github.com/namusyaka/pendragon">Pendragon</a>,
    <a href="https://github.com/kenichi/angelo">Angelo</a>
  </td>
  <td>
    <u>This is the default</u> and the only type "invented here".<br>
    It is a superset of <tt>simple</tt> and has a common subset with
    <tt>template</tt> (and others).
  </td>
</tr>

<tr>
  <th><a href="mustermann-uri-template/README.md"><tt>uri-template</tt></a></th>
  <td><tt>/{+pre}/{page}{?q}</tt></td>
  <td>
    <a href="https://tools.ietf.org/html/rfc6570">RFC 6570</a>,
    <a href="http://jsonapi.org/">JSON API</a>,
    <a href="http://tools.ietf.org/html/draft-nottingham-json-home-02">JSON Home Documents</a>
    and <a href="https://code.google.com/p/uri-templates/wiki/Implementations">many more</a>
  </td>
  <td>Standardized URI templates, can be <a href="mustermann/README.md#-generating-templates">generated</a> from most other types.</td>
</tr>
Type Example Compatible with Notes

Any software using Mustermann is obviously compatible with at least one of the above.

Mustermann depends on tool (which has been extracted from Mustermann and Sinatra 2.0), and a Ruby 2.1 compatible Ruby implementation.

It is known to work on MRI 2.1.

JRuby will hopefully be supported with the release of JRuby 9000.

Rubinius is not currently supported. As of Rubinius 2.3.1, a large portion of the specs pass (3870 out of 3943), but certain parts are not working yet.

If you need Ruby 1.9 support, you might be able to use the unofficial mustermann19 gem based on namusyaka's fork.

Mustermann follows Semantic Versioning 2.0. Anything documented in the README or via YARD and not declared private is part of the public API.

There have been no stable releases yet. The code base is considered solid but I only know of a small number of actual production usage. As there has been no stable release yet, the API might still change, though I consider this unlikely.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4