pry-fkeys 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gemspec CHANGED
@@ -1,16 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require 'working/gemspec'
3
- $:.unshift 'lib'
4
- require 'pry-fkeys'
5
- require 'pry-fkeys/version'
3
+
4
+ keys_bound = File.readlines('README.rdoc').grep(/^\[\+\S+\+\]/).join "\n"
6
5
 
7
6
  Working.gemspec(
8
- :name => 'pry-fkeys',
9
- :summary => Working.third_line_of_readme,
10
- :description => Working.third_line_of_readme,
11
- :version => PryFkeys::VERSION,
12
- :authors => %w(☈king),
13
- :email => 'pry-fkeys@sharpsaw.org',
14
- :github => 'rking/pry-fkeys',
15
- :deps => %w(pry),
7
+ name: 'pry-fkeys',
8
+ summary: Working.third_line_of_readme,
9
+ description: (Working.third_line_of_readme + "\n\n" + keys_bound),
10
+ version: PryFkeys::VERSION,
11
+ authors: %w(☈king),
12
+ email: 'pry-fkeys@sharpsaw.org',
13
+ github: 'rking/pry-fkeys',
14
+ deps: %w(pry),
16
15
  )
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@ Help the user get to a place where the speedy F8/F10/F11/etc keys work.
4
4
 
5
5
  At some point, it might be fully automated. For now, it just warns when:
6
6
 
7
- - The weaksauce 'EditLine' Readline is used instead of the GNU Readline one,
7
+ - The weaksauce 'EditLine' Readline is used instead of the GNU Readline one,
8
8
  - The F-key bindings are not in ~/.inputrc
9
9
 
10
10
  == The Shortcuts
@@ -19,6 +19,11 @@ At some point, it might be fully automated. For now, it just warns when:
19
19
  [+F11+] step (step into the next method call)
20
20
  [+Shift-F11+] finish (get back out of the last 'step')
21
21
 
22
- == Why It's Ugly
22
+ == Why It's Internals Are Ugly
23
23
 
24
24
  Because it supports vi *and* emacs keys, in a few different terminal mappings.
25
+
26
+ == Actually
27
+
28
+ It turns out you can configure EditLine. If anyone wants to tackle that, let me
29
+ know and I'll definitely include your work.
data/lib/pry-fkeys.rb CHANGED
@@ -72,7 +72,7 @@ Or, if you just want to suppress the warning, you can put '$if Ruby' anywhere in
72
72
 
73
73
  if on_clunky_readline?
74
74
  warn <<-EOT
75
- \e[31mPry-de found EditLine's Readline wrapper.\e[0m
75
+ \e[31mpry-fkeys found EditLine's Readline wrapper.\e[0m
76
76
  For the full keyboard experience, install GNU Readline:
77
77
 
78
78
  # For RVM:
@@ -93,7 +93,7 @@ For the full keyboard experience, install GNU Readline:
93
93
 
94
94
  unless inputrc_customized_for_ruby?
95
95
  warn <<-EOT
96
- Pry-de found no Ruby customization in ~/.inputrc. Run 'inputrc?' to learn more.
96
+ pry-fkeys found no Ruby customization in ~/.inputrc. Run 'inputrc?' to learn more.
97
97
  EOT
98
98
  end
99
99
 
@@ -115,10 +115,10 @@ $if Ruby
115
115
  "[19;2~": "Itry-again\\n" # <Shift-F8> (xterm/gnome-terminal)
116
116
  "[23;2~": "Ifinish\\n" # Shift+<F11> (xterm/gnome-terminal)
117
117
  "OS": "Ils -l\\n" # <F4>
118
- "OA": previous-history
119
- "[A": previous-history
120
- "OB": next-history
121
- "[B": next-history
118
+ "OA": "kA"
119
+ "[A": "kA"
120
+ "OB": "jA"
121
+ "[B": "jA"
122
122
  $else
123
123
  # Emacs Bindings:
124
124
  "\\e[14~": "ls -l\\n"
@@ -1,3 +1,3 @@
1
1
  module PryFkeys
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-fkeys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,58 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ type: :runtime
15
16
  name: pry
17
+ prerelease: false
16
18
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
19
  requirements:
19
20
  - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
23
  none: false
24
+ version_requirements: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ! '>='
28
27
  - !ruby/object:Gem::Version
29
28
  version: '0'
29
+ none: false
30
30
  description: ! 'Help the user get to a place where the speedy F8/F10/F11/etc keys
31
31
  work.
32
32
 
33
33
 
34
34
  Help the user get to a place where the speedy F8/F10/F11/etc keys work.
35
35
 
36
+
37
+
38
+ [+F4+] ls -l (show all locally-defined variables and values)
39
+
40
+
41
+ [+F5+] whereami (show the code context)
42
+
43
+
44
+ [+F6+] up (a frame, depends on pry-stack_explorer, as does the next one)
45
+
46
+
47
+ [+F7+] down
48
+
49
+
50
+ [+F8+] continue (depends on pry-debugger, as do step/next/finish)
51
+
52
+
53
+ [+Shift-F8+] try-again (restart from last ''raise'', depends on pry-rescue)
54
+
55
+
56
+ [+F10+] next (run the current statement)
57
+
58
+
59
+ [+F11+] step (step into the next method call)
60
+
61
+
62
+ [+Shift-F11+] finish (get back out of the last ''step'')
63
+
36
64
  '
37
65
  email: pry-fkeys@sharpsaw.org
38
66
  executables: []
@@ -56,17 +84,17 @@ rdoc_options: []
56
84
  require_paths:
57
85
  - lib
58
86
  required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
87
  requirements:
61
88
  - - ! '>='
62
89
  - !ruby/object:Gem::Version
63
90
  version: '0'
64
- required_rubygems_version: !ruby/object:Gem::Requirement
65
91
  none: false
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
93
  requirements:
67
94
  - - ! '>='
68
95
  - !ruby/object:Gem::Version
69
96
  version: '0'
97
+ none: false
70
98
  requirements: []
71
99
  rubyforge_project:
72
100
  rubygems_version: 1.8.23