I hereby claim:
- I am cpetschnig on github.
- I am cpetschnig (https://keybase.io/cpetschnig) on keybase.
- I have a public key whose fingerprint is 9C87 90ED 6ACD 9EF8 DE5C 06D8 B28E 2784 2E6B F4AD
To claim this, I am signing this object:
| Engine | |
| ====== | |
| File structure: | |
| EngineFoo | |
| - app | |
| - db | |
| - seeds.rb |
| # fetch remote tags: | |
| $ git fetch --tags origin | |
| # list all remote tags: | |
| $ git ls-remote --tags | |
| # list all major version tags: | |
| $ git ls-remote --tags | grep -oe "refs/tags[^\^]*" | uniq | grep -E "v2[0-9][0-9][0-9]-[0-9][0-9]$" | |
| # delete all non-version tags: |
| module MyEngine | |
| class Engine < ::Rails::Engine | |
| # Autoload from the lib directory | |
| config.autoload_paths << File.expand_path('../../', __FILE__) | |
| config.my_engine = MyEngine::Configuration.new | |
| # default configuration | |
| config.my_engine.foo.class_for_bar = MyEngine::Bar |
| # Put the following line into the config section in config/application.rb: | |
| # | |
| # config.middleware.use RackAPILogger | |
| class RackAPILogger | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) |
| # encoding: UTF-8 | |
| require 'active_support/all' | |
| MONTHS = %w(Januar Februar März April Mai Juni Juli August September Oktober November Dezember) | |
| DAYS = %w(So Mo Di Mi Do Fr Sa) | |
| year = 2016 | |
| months = (1..12).map do |month| |
I hereby claim:
To claim this, I am signing this object: