pry-loudmouth 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +7 -0
- data/README.md +19 -10
- data/lib/pry/loudmouth.rb +14 -10
- data/lib/pry/loudmouth/version.rb +3 -1
- data/pry-loudmouth.gemspec +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3cf50b3aeb32955589bf892ecfbd255c0d8282900d85bdb2452a422e6a8aa9ab
|
4
|
+
data.tar.gz: 15f228049d01877389f682f72d59dd07741027dabf77ef35901ba830f3b8380c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07c79d2eed70392d71028898ecb360cbc45b5135a3beed848c006df7edbad69c9b934aa1fdbc767429e78d79eddae89a168bbff51943d1a63387eb2d2bb9758
|
7
|
+
data.tar.gz: e6ef9bef65888871516bc96bc183bff1086c689b45a6fb26569418c0065ea7424672f7e9fc3a6de2846135f18ddba3614da058fccaf93cbf10a12ea9893239c5
|
data/CHANGELOG
ADDED
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Pry::Loudmouth
|
2
2
|
|
3
|
-
|
3
|
+
Pry-Loudmouth is a dead simple pry plugin. It's actually just 7 lines from my .pryrc that I thought was worth gemifying. Here's what it does:
|
4
4
|
|
5
|
-
|
5
|
+
1. Terminal bell when a pry session starts
|
6
|
+
2. Changes your process name to "pry" when the session starts
|
7
|
+
3. Resets the process name to "ruby" when it ends.
|
8
|
+
|
9
|
+
(The process name appears in your terminal or tmux title.)
|
6
10
|
|
7
11
|
## Installation
|
8
12
|
|
@@ -20,20 +24,25 @@ Or install it yourself as:
|
|
20
24
|
|
21
25
|
$ gem install pry-loudmouth
|
22
26
|
|
23
|
-
##
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
27
|
+
## Local installation
|
26
28
|
|
27
|
-
|
29
|
+
If you're really opinionated about not adding extra cruft to your Gemfile, try this instead.
|
28
30
|
|
29
|
-
|
31
|
+
Install pry-loudmouth
|
32
|
+
$ gem install pry-loudmouth
|
30
33
|
|
31
|
-
|
34
|
+
And add this to your .pryrc:
|
32
35
|
|
33
|
-
|
36
|
+
```ruby
|
37
|
+
require 'rubygems'
|
34
38
|
|
35
|
-
|
39
|
+
Gem.path.each do |gemset|
|
40
|
+
$:.concat(Dir.glob("#{gemset}/gems/pry-*/lib"))
|
41
|
+
end if defined?(Bundler)
|
42
|
+
$:.uniq!
|
36
43
|
|
44
|
+
require 'pry-loudmouth'
|
45
|
+
```
|
37
46
|
|
38
47
|
## License
|
39
48
|
|
data/lib/pry/loudmouth.rb
CHANGED
@@ -1,16 +1,20 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
require 'pry/loudmouth/version'
|
4
|
+
|
5
|
+
class Pry
|
6
|
+
module Loudmouth
|
7
|
+
def self.add_before_hook!
|
8
|
+
Pry.hooks.add_hook :before_eval, 'pry-loudmouth:eval' do
|
9
|
+
Process.setproctitle 'ruby'
|
10
|
+
end
|
8
11
|
end
|
9
|
-
end
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
def self.add_after_hook!
|
14
|
+
Pry.hooks.add_hook :after_eval, 'pry-loudmouth:all-done' do
|
15
|
+
print "\a"
|
16
|
+
Process.setproctitle 'pry'
|
17
|
+
end
|
14
18
|
end
|
15
19
|
end
|
16
20
|
end
|
data/pry-loudmouth.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler"
|
23
|
-
spec.add_development_dependency "rake"
|
22
|
+
spec.add_development_dependency "bundler"#, "~> 1.10"
|
23
|
+
spec.add_development_dependency "rake"#, "~> 10.0"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-loudmouth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Sagotsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
description: When a pry session starts, change the process title and alert user with
|
42
42
|
a terminal bell. Switch back to ruby process afterwards.
|
43
43
|
email:
|
@@ -48,6 +48,7 @@ extra_rdoc_files: []
|
|
48
48
|
files:
|
49
49
|
- ".gitignore"
|
50
50
|
- ".travis.yml"
|
51
|
+
- CHANGELOG
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
53
54
|
- README.md
|
@@ -77,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: '0'
|
79
80
|
requirements: []
|
80
|
-
|
81
|
-
rubygems_version: 2.2.3
|
81
|
+
rubygems_version: 3.0.3
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Make pry sessions announce when they start.
|