├── .gitignore ├── Gemfile ├── demo.gif ├── config ├── initializers │ ├── assets.rb │ └── basic_auth.rb ├── routes.rb └── config.rb ├── .rubocop.yml ├── spec ├── spec_helper.rb ├── config │ ├── config_spec.rb │ └── initializers │ │ └── basic_auth_spec.rb ├── lib │ └── passages │ │ ├── mount_route_spec.rb │ │ ├── route_collection_spec.rb │ │ ├── engine_route_collection_spec.rb │ │ └── route_spec.rb └── controllers │ └── passages │ └── routes_controller_spec.rb ├── version.rb ├── vendor └── assets │ ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ ├── stylesheets │ └── bootstrap-theme.min.css │ └── javascripts │ ├── bootstrap.min.js │ └── jquery-2.1.4.min.js ├── .travis.yml ├── app ├── views │ └── passages │ │ └── routes │ │ ├── _routes_header.html.erb │ │ ├── _route.html.erb │ │ └── routes.html.erb ├── assets │ ├── stylesheets │ │ └── passages │ │ │ └── application.css │ └── javascripts │ │ └── passages │ │ └── application.js └── controllers │ └── passages │ └── routes_controller.rb ├── lib ├── passages.rb └── passages │ ├── engine_route_collection.rb │ ├── engine_route.rb │ ├── mount_route.rb │ ├── route_collection.rb │ ├── engine.rb │ └── route.rb ├── LICENSE.txt ├── passages.gemspec ├── README.md └── Gemfile.lock /.gitignore: -------------------------------------------------------------------------------- 1 | .ruby-* 2 | *.gem 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gemspec 4 | -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yez/passages/HEAD/demo.gif -------------------------------------------------------------------------------- /config/initializers/assets.rb: -------------------------------------------------------------------------------- 1 | Rails.application.config.assets.version = '1.0' 2 | -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | Passages::Engine.routes.draw do 2 | root to: 'routes#routes' 3 | end 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- 1 | Style/FrozenStringLiteralComment: 2 | Enabled: false 3 | 4 | Style/BlockLength: 5 | Exclude: 6 | - 'spec/**/*.rb' 7 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'active_support' 2 | require 'action_dispatch' 3 | require 'action_controller' 4 | require './lib/passages' 5 | -------------------------------------------------------------------------------- /version.rb: -------------------------------------------------------------------------------- 1 | module Passages 2 | MAJOR = 4 3 | MINOR = 0 4 | TINY = 0 5 | 6 | VERSION = [MAJOR, MINOR, TINY].join('.').freeze 7 | end 8 | -------------------------------------------------------------------------------- /vendor/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yez/passages/HEAD/vendor/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /vendor/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yez/passages/HEAD/vendor/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /vendor/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yez/passages/HEAD/vendor/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /vendor/assets/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yez/passages/HEAD/vendor/assets/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 2.2.2 4 | - 2.3.0 5 | - 2.4.0 6 | 7 | script: 8 | - bundle exec rspec spec 9 | - bundle exec rubocop 10 | -------------------------------------------------------------------------------- /app/views/passages/routes/_routes_header.html.erb: -------------------------------------------------------------------------------- 1 |
| Routes for Engine: <%= engine_hash[:engine] %> | 40 |Mounted at: <%= @mount_routes[engine_hash[:engine]].path %> | 41 ||||