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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e310321408a36e44837cdbebef018b2a43c2959
4
- data.tar.gz: c9b582f69d38bbdd697813e963bf3c3c328edf25
3
+ metadata.gz: 7a6b120c012848d78aa33701f5b4644bea84cb8b
4
+ data.tar.gz: f5ff84909a46ee14d1ff067173baa51bb059c254
5
5
  SHA512:
6
- metadata.gz: 9de48f9a89848753ca4a55b8bf9bc602e679ea4b571eb74d04c1d3cb86e38413f0928f274852d89e8a834982c5b31fb009e79f2add5185fa33328319d7d1179a
7
- data.tar.gz: 55b242e80c050399fa238cd9f6dae42a01f77da6710d348d37c779b0074e0281bdab5ba8d7916eb0bb1d5c1c2a8155554140770df3c4a100a0f23342381026bf
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
@@ -1,5 +1,5 @@
1
1
  module Pry
2
2
  module Meta
3
- VERSION = "0.0.7"
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
data/lib/pry-meta.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "pry"
2
- require "pry-nav"
3
- require "pry-remote"
4
- require "awesome_print"
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 "./lib/pry-meta/version"
2
+ require './lib/pry-meta/version'
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.name = "pry-meta"
5
+ gem.name = 'pry-meta'
6
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."
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 "pry"
18
- gem.add_dependency "pry-nav"
19
- gem.add_dependency "pry-remote"
20
- gem.add_dependency "awesome_print"
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.7
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-05-13 00:00:00.000000000 Z
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: