peek-host-1.0.0/0000755000175000017500000000000013152453231012432 5ustar pravipravipeek-host-1.0.0/CHANGELOG.md0000644000175000017500000000000013152453231014231 0ustar pravipravipeek-host-1.0.0/README.md0000644000175000017500000000124413152453231013712 0ustar pravipravi# Peek::Host Take a peek into the host which serves your reuest. Things this peek view provides: - Hostname of the instance which served your request. ## Installation Add this line to your application's Gemfile: gem 'peek-host' And then execute: $ bundle Or install it yourself as: $ gem install peek-host ## Usage Add the following to your `config/initializers/peek.rb`: ```ruby Peek.into Peek::Views::Host ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request peek-host-1.0.0/lib/0000755000175000017500000000000013152453231013200 5ustar pravipravipeek-host-1.0.0/lib/peek/0000755000175000017500000000000013152453231014124 5ustar pravipravipeek-host-1.0.0/lib/peek/views/0000755000175000017500000000000013152453231015261 5ustar pravipravipeek-host-1.0.0/lib/peek/views/host.rb0000644000175000017500000000034713152453231016567 0ustar pravipravimodule Peek module Views class Host < View # Returns Peek::Views::Host def initialize(options = {}) @hostname = hostname end def hostname `hostname` end end end end peek-host-1.0.0/lib/peek-host.rb0000644000175000017500000000012213152453231015417 0ustar pravipravirequire 'peek/views/host' require 'peek-host/version' require 'peek-host/railtie' peek-host-1.0.0/lib/peek-host/0000755000175000017500000000000013152453231015077 5ustar pravipravipeek-host-1.0.0/lib/peek-host/railtie.rb0000644000175000017500000000012013152453231017046 0ustar pravipravimodule Peek module Host class Railtie < ::Rails::Engine end end end peek-host-1.0.0/lib/peek-host/version.rb0000644000175000017500000000007213152453231017110 0ustar pravipravimodule Peek module Host VERSION = '1.0.0' end end peek-host-1.0.0/peek-host.gemspec0000644000175000017500000000151013152453231015673 0ustar pravipravi# -*- encoding: utf-8 -*- lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'peek-host/version' Gem::Specification.new do |gem| gem.name = 'peek-host' gem.version = Peek::Host::VERSION gem.authors = ['Jacob Bednarz'] gem.email = ['jacob.bednarz@gmail.com'] gem.description = %q{Take a peek into the host which served your Rails request.} gem.summary = %q{Take a peek into the host which served your Rails request.} gem.homepage = 'https://github.com/jacobbednarz/peek-host' gem.files = `git ls-files`.split($/) gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ['lib'] gem.add_dependency 'peek' end peek-host-1.0.0/LICENSE.txt0000644000175000017500000000205613152453231014260 0ustar pravipraviCopyright (c) 2015 Jacob Bednarz MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. peek-host-1.0.0/.gitignore0000644000175000017500000000023213152453231014417 0ustar pravipravi*.gem *.rbc .bundle .config .yardoc Gemfile.lock InstalledFiles _yardoc coverage doc/ lib/bundler/man pkg rdoc spec/reports test/tmp test/version_tmp tmp peek-host-1.0.0/Rakefile0000644000175000017500000000003413152453231014074 0ustar pravipravirequire "bundler/gem_tasks" peek-host-1.0.0/app/0000755000175000017500000000000013152453231013212 5ustar pravipravipeek-host-1.0.0/app/views/0000755000175000017500000000000013152453231014347 5ustar pravipravipeek-host-1.0.0/app/views/peek/0000755000175000017500000000000013152453231015273 5ustar pravipravipeek-host-1.0.0/app/views/peek/views/0000755000175000017500000000000013152453231016430 5ustar pravipravipeek-host-1.0.0/app/views/peek/views/_host.html.erb0000644000175000017500000000007313152453231021201 0ustar pravipravi <%= view.hostname %> peek-host-1.0.0/Gemfile0000644000175000017500000000013513152453231013724 0ustar pravipravisource 'https://rubygems.org' # Specify your gem's dependencies in peek-git.gemspec gemspec