├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── lib ├── pry-meta.rb └── pry-meta │ ├── pryrc.rb │ └── version.rb └── pry-meta.gemspec /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | *.rbc 3 | .bundle 4 | .config 5 | .yardoc 6 | Gemfile.lock 7 | InstalledFiles 8 | _yardoc 9 | coverage 10 | doc/ 11 | lib/bundler/man 12 | pkg 13 | rdoc 14 | spec/reports 15 | test/tmp 16 | test/version_tmp 17 | tmp 18 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Specify your gem's dependencies in pry-full.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Nando Vieira 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | A meta package that includes the following gems: 2 | 3 | * [awesome_print](https://github.com/michaeldv/awesome_print) 4 | * [pry](https://github.com/pry/pry) 5 | * [pry-byebug](https://github.com/deivid-rodriguez/pry-byebug) 6 | * [pry-remote](https://github.com/Mon-Ouie/pry-remote) 7 | 8 | ## Installation 9 | 10 | Add this line to your application's Gemfile: 11 | 12 | gem "pry-meta" 13 | 14 | And then execute: 15 | 16 | $ bundle 17 | 18 | Or install it yourself as: 19 | 20 | $ gem install pry-meta 21 | 22 | ## Contributing 23 | 24 | 1. Fork it 25 | 2. Create your feature branch (`git checkout -b my-new-feature`) 26 | 3. Commit your changes (`git commit -am 'Add some feature'`) 27 | 4. Push to the branch (`git push origin my-new-feature`) 28 | 5. Create new Pull Request 29 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /lib/pry-meta.rb: -------------------------------------------------------------------------------- 1 | require 'pry' 2 | require 'pry-byebug' 3 | require 'pry-remote' 4 | require 'awesome_print' 5 | -------------------------------------------------------------------------------- /lib/pry-meta/pryrc.rb: -------------------------------------------------------------------------------- 1 | Pry.config.editor = ENV.fetch('EDITOR', 'subl -w') 2 | 3 | Pry.config.prompt = proc do |obj, level, _| 4 | prompt = '' 5 | prompt << "#{Rails.version}@" if defined?(Rails) 6 | prompt << "#{RUBY_VERSION}" 7 | "#{prompt} (#{obj})> " 8 | end 9 | 10 | Pry.config.exception_handler = proc do |output, exception, _| 11 | output.puts "\e[31m#{exception.class}: #{exception.message}" 12 | output.puts "from #{exception.backtrace.first}\e[0m" 13 | end 14 | 15 | if defined?(Rails) 16 | require 'rails/console/app' 17 | require 'rails/console/helpers' 18 | TOPLEVEL_BINDING.eval('self').extend ::Rails::ConsoleMethods 19 | end 20 | 21 | begin 22 | require 'pry-meta' 23 | 24 | Pry.config.print = proc do |output, value| 25 | Pry::Helpers::BaseHelpers 26 | .stagger_output("=> #{value.ai}", output) 27 | end 28 | 29 | Pry.commands.alias_command 'c', 'continue' 30 | Pry.commands.alias_command 's', 'step' 31 | Pry.commands.alias_command 'n', 'next' 32 | rescue LoadError => error 33 | warn '=> Unable to load pry-meta' 34 | end 35 | -------------------------------------------------------------------------------- /lib/pry-meta/version.rb: -------------------------------------------------------------------------------- 1 | module Pry 2 | module Meta 3 | VERSION = '0.0.10' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /pry-meta.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | require './lib/pry-meta/version' 3 | 4 | Gem::Specification.new do |gem| 5 | gem.name = 'pry-meta' 6 | gem.version = Pry::Meta::VERSION 7 | gem.authors = ['Nando Vieira'] 8 | gem.email = ['fnando.vieira@gmail.com'] 9 | gem.description = 'Meta package that requires several pry extensions.' 10 | gem.summary = gem.description 11 | 12 | gem.files = `git ls-files`.split($/) 13 | gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } 14 | gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) 15 | gem.require_paths = ["lib"] 16 | 17 | gem.add_dependency 'pry' 18 | gem.add_dependency 'pry-byebug' 19 | gem.add_dependency 'pry-remote' 20 | gem.add_dependency 'awesome_print' 21 | end 22 | --------------------------------------------------------------------------------