pry-meta 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pry-meta/pryrc.rb +34 -0
- data/lib/pry-meta/version.rb +1 -1
- data/lib/pry-meta.rb +4 -4
- data/pry-meta.gemspec +9 -9
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a6b120c012848d78aa33701f5b4644bea84cb8b
|
4
|
+
data.tar.gz: f5ff84909a46ee14d1ff067173baa51bb059c254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89762f624896a47b519abba0f1dbb91658af9740adc1f7fa29d44f5843e6b4d7437bd8c2ad434a3153ffd940a018c8d5760425f1756d30899f2753a5af4b4f1d
|
7
|
+
data.tar.gz: 5cb81988351536efb29694dc4a9418246995fad81445e6b076e38699290ec9a7e45422001e205faa44bbdaffdaaef7be840af548fc57ede606061dea22749c01
|
@@ -0,0 +1,34 @@
|
|
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
|
data/lib/pry-meta/version.rb
CHANGED
data/lib/pry-meta.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
1
|
+
require 'pry'
|
2
|
+
require 'pry-nav'
|
3
|
+
require 'pry-remote'
|
4
|
+
require 'awesome_print'
|
data/pry-meta.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require
|
2
|
+
require './lib/pry-meta/version'
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.name =
|
5
|
+
gem.name = 'pry-meta'
|
6
6
|
gem.version = Pry::Meta::VERSION
|
7
|
-
gem.authors = [
|
8
|
-
gem.email = [
|
9
|
-
gem.description =
|
7
|
+
gem.authors = ['Nando Vieira']
|
8
|
+
gem.email = ['fnando.vieira@gmail.com']
|
9
|
+
gem.description = 'Meta package that requires several pry extensions.'
|
10
10
|
gem.summary = gem.description
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($/)
|
@@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
|
17
|
-
gem.add_dependency
|
18
|
-
gem.add_dependency
|
19
|
-
gem.add_dependency
|
20
|
-
gem.add_dependency
|
17
|
+
gem.add_dependency 'pry'
|
18
|
+
gem.add_dependency 'pry-nav'
|
19
|
+
gem.add_dependency 'pry-remote'
|
20
|
+
gem.add_dependency 'awesome_print'
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-meta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- README.md
|
80
80
|
- Rakefile
|
81
81
|
- lib/pry-meta.rb
|
82
|
+
- lib/pry-meta/pryrc.rb
|
82
83
|
- lib/pry-meta/version.rb
|
83
84
|
- pry-meta.gemspec
|
84
85
|
homepage:
|