mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
initial commit
This commit is contained in:
commit
61fd6842f1
7 changed files with 56 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
*.gem
|
||||
.bundle
|
||||
Gemfile.lock
|
||||
pkg/*
|
4
Gemfile
Normal file
4
Gemfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
source "http://rubygems.org"
|
||||
|
||||
# Specify your gem's dependencies in pry-rails.gemspec
|
||||
gemspec
|
1
Rakefile
Normal file
1
Rakefile
Normal file
|
@ -0,0 +1 @@
|
|||
require "bundler/gem_tasks"
|
5
Readme.textile
Normal file
5
Readme.textile
Normal file
|
@ -0,0 +1,5 @@
|
|||
Avoid repeating yourself, use pry-rails instead of copying the initializer to every rails project. Add this line to your gemfile:
|
||||
|
||||
bc. gem 'pry-rails', :git => 'git://github.com/rweng/pry-rails.git', :group => :development
|
||||
|
||||
@bundle install@ and enjoy pry.
|
14
lib/pry-rails.rb
Normal file
14
lib/pry-rails.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "pry-rails/version"
|
||||
|
||||
module PryRails
|
||||
class Railtie < ::Rails::Railtie
|
||||
silence_warnings do
|
||||
begin
|
||||
require 'pry'
|
||||
::IRB = Pry
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
3
lib/pry-rails/version.rb
Normal file
3
lib/pry-rails/version.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
module PryRails
|
||||
VERSION = "0.0.1"
|
||||
end
|
25
pry-rails.gemspec
Normal file
25
pry-rails.gemspec
Normal file
|
@ -0,0 +1,25 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
$:.push File.expand_path("../lib", __FILE__)
|
||||
require "pry-rails/version"
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "pry-rails"
|
||||
s.version = PryRails::VERSION
|
||||
s.authors = ["Robin Wenglewski"]
|
||||
s.email = ["robin@wenglewski.de"]
|
||||
s.homepage = ""
|
||||
s.summary = %q{Use Pry as your rails console}
|
||||
# s.description = %q{TODO: Write a gem description}
|
||||
|
||||
# s.rubyforge_project = "pry-rails"
|
||||
|
||||
s.files = `git ls-files`.split("\n")
|
||||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
||||
s.require_paths = ["lib"]
|
||||
|
||||
# specify any dependencies here; for example:
|
||||
# s.add_development_dependency "rspec"
|
||||
# s.add_runtime_dependency "rest-client"
|
||||
%w(pry pry-doc).each {|d| s.add_dependency d}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue