pry-note 0.2.3 → 0.2.4
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/README.md +37 -0
- data/lib/pry-note/commands.rb +2 -2
- data/lib/pry-note/version.rb +1 -1
- data/pry-note.gemspec +2 -2
- metadata +2 -1
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
Pry-note
|
2
|
+
========
|
3
|
+
|
4
|
+
__Ease refactoring and exploration by attaching notes to methods and classes in Pry__
|
5
|
+
|
6
|
+
```
|
7
|
+
[1] pry(main)> note -h
|
8
|
+
add
|
9
|
+
-m, --message Provide the note inline (without opening an editor).
|
10
|
+
|
11
|
+
show
|
12
|
+
-v, --verbose Show all notes together with source code.
|
13
|
+
|
14
|
+
list
|
15
|
+
-v, --verbose List all notes and content with source code.
|
16
|
+
|
17
|
+
delete
|
18
|
+
--all Delete all notes.
|
19
|
+
|
20
|
+
edit
|
21
|
+
-m, --message Update the note inline (without opening an editor).
|
22
|
+
|
23
|
+
Other options
|
24
|
+
Usage: note [OPTIONS]
|
25
|
+
Add notes to classes and methods.
|
26
|
+
|
27
|
+
e.g note -a Pry#repl "this is my note" #=> add a note without opening editor
|
28
|
+
e.g note -a Pry#repl #=> add a note (with editor) to Pry#repl method
|
29
|
+
e.g note -d Pry#repl:1 #=> delete the 1st note from Pry#repl
|
30
|
+
e.g note -d Pry#repl #=> delete all notes from Pry#repl
|
31
|
+
e.g note -l #=> list all notes
|
32
|
+
|
33
|
+
-h, --help Show this message.
|
34
|
+
```
|
35
|
+
|
36
|
+
|
37
|
+
See the following showterm for an example session: http://showterm.io/c194f02da5545e9210cb9#fast
|
data/lib/pry-note/commands.rb
CHANGED
@@ -204,10 +204,10 @@ Pry::Commands.create_command "note" do
|
|
204
204
|
def list_all
|
205
205
|
if notes.any?
|
206
206
|
out = ""
|
207
|
-
out << text.bold("Showing all available notes:\n
|
207
|
+
out << text.bold("Showing all available notes:\n")
|
208
208
|
notes.each do |key, content|
|
209
209
|
begin
|
210
|
-
out << create_note_output(key, true) << "\n"
|
210
|
+
out << "\n" << create_note_output(key, true) << "\n"
|
211
211
|
rescue
|
212
212
|
end
|
213
213
|
end
|
data/lib/pry-note/version.rb
CHANGED
data/pry-note.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "pry-note"
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["John Mair (banisterfiend)"]
|
9
9
|
s.date = "2012-12-01"
|
10
10
|
s.description = "Ease refactoring and exploration by attaching notes to methods and classes in Pry"
|
11
11
|
s.email = "jrmair@gmail.com"
|
12
|
-
s.files = ["Rakefile", "lib/pry-note.rb", "lib/pry-note/commands.rb", "lib/pry-note/hooks.rb", "lib/pry-note/version.rb", "pry-note.gemspec", "test/helper.rb", "test/test_pry_note.rb"]
|
12
|
+
s.files = ["README.md", "Rakefile", "lib/pry-note.rb", "lib/pry-note/commands.rb", "lib/pry-note/hooks.rb", "lib/pry-note/version.rb", "pry-note.gemspec", "test/helper.rb", "test/test_pry_note.rb"]
|
13
13
|
s.homepage = "https://github.com/banister"
|
14
14
|
s.require_paths = ["lib"]
|
15
15
|
s.rubygems_version = "1.8.23"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-note
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -34,6 +34,7 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
+
- README.md
|
37
38
|
- Rakefile
|
38
39
|
- lib/pry-note.rb
|
39
40
|
- lib/pry-note/commands.rb
|