pry 0.9.8pre8 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/lib/pry/default_commands/input.rb +2 -4
- data/lib/pry/version.rb +1 -1
- metadata +65 -71
data/CHANGELOG
CHANGED
@@ -4,6 +4,8 @@ MAJOR NEW FEATURES
|
|
4
4
|
- upgraded command api, https://github.com/pry/pry/wiki/Custom-commands
|
5
5
|
- added a system of hooks for customizing pry behaviour
|
6
6
|
- changed syntax checking to use eval() for improved accuracy
|
7
|
+
- added save-file command
|
8
|
+
- added gist command (removed gist-method, new gist command is more general)
|
7
9
|
|
8
10
|
|
9
11
|
complete CHANGELOG:
|
@@ -11,7 +13,12 @@ complete CHANGELOG:
|
|
11
13
|
* Better syntax highlighting for rbx code code
|
12
14
|
* added cat --in to show pry input history
|
13
15
|
* prefixed temporary file names with 'pry'
|
16
|
+
* show-doc now supports -l and -b options (line numbers)
|
17
|
+
* play now supports -i and -d options
|
18
|
+
* moved UserCommandAPI command-set to pry-developer_tools plugin
|
19
|
+
* added :when_started event for hooks, called in Pry.start
|
14
20
|
* added a man page
|
21
|
+
* added rename method to Pry::CommandSet (commands can be renamed)
|
15
22
|
* added CommandSet#{before_command,after_command} for enhancing builtin commands
|
16
23
|
* added checking for namespace collisions with pry commands, set Pry.config.collision_warning
|
17
24
|
* work around namespace collisions by ensuring lines starting with a space are executed as
|
@@ -17,13 +17,13 @@ class Pry
|
|
17
17
|
end
|
18
18
|
|
19
19
|
create_command(/amend-line(?: (-?\d+)(?:\.\.(-?\d+))?)?/) do
|
20
|
-
description "Amend a line of input in multi-line mode. Type `amend-line --help` for more information.
|
20
|
+
description "Amend a line of input in multi-line mode. Type `amend-line --help` for more information."
|
21
21
|
command_options :interpolate => false, :listing => "amend-line"
|
22
22
|
|
23
23
|
banner <<-'BANNER'
|
24
24
|
Amend a line of input in multi-line mode. `amend-line N`, where the N in `amend-line N` represents line to replace.
|
25
25
|
|
26
|
-
Can also specify a range of lines using `amend-line N..M` syntax. Passing '!' as replacement content deletes the line(s) instead.
|
26
|
+
Can also specify a range of lines using `amend-line N..M` syntax. Passing '!' as replacement content deletes the line(s) instead.
|
27
27
|
e.g amend-line 1 puts 'hello world! # replace line 1'
|
28
28
|
e.g amend-line 1..4 ! # delete lines 1..4
|
29
29
|
e.g amend-line 3 >puts 'goodbye' # insert before line 3
|
@@ -57,8 +57,6 @@ class Pry
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
alias_command(/%.?(-?\d+)?(?:\.\.(-?\d+))?/, "amend-line")
|
61
|
-
|
62
60
|
create_command "play" do
|
63
61
|
description "Play back a string variable or a method or a file as input. Type `play --help` for more information."
|
64
62
|
|
data/lib/pry/version.rb
CHANGED
metadata
CHANGED
@@ -1,95 +1,92 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.8
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- John Mair (banisterfiend)
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-01-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: coderay
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70335751790200 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.0.5
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: slop
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: *70335751790200
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: slop
|
27
|
+
requirement: &70335751787080 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
34
32
|
version: 2.4.3
|
35
33
|
- - <
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version:
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '3'
|
38
36
|
type: :runtime
|
39
|
-
version_requirements: *id002
|
40
|
-
- !ruby/object:Gem::Dependency
|
41
|
-
name: method_source
|
42
37
|
prerelease: false
|
43
|
-
|
38
|
+
version_requirements: *70335751787080
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: method_source
|
41
|
+
requirement: &70335751784160 !ruby/object:Gem::Requirement
|
44
42
|
none: false
|
45
|
-
requirements:
|
43
|
+
requirements:
|
46
44
|
- - ~>
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version:
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0.7'
|
49
47
|
type: :runtime
|
50
|
-
version_requirements: *id003
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: bacon
|
53
48
|
prerelease: false
|
54
|
-
|
49
|
+
version_requirements: *70335751784160
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: bacon
|
52
|
+
requirement: &70335751782400 !ruby/object:Gem::Requirement
|
55
53
|
none: false
|
56
|
-
requirements:
|
54
|
+
requirements:
|
57
55
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version:
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.1'
|
60
58
|
type: :development
|
61
|
-
version_requirements: *id004
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: open4
|
64
59
|
prerelease: false
|
65
|
-
|
60
|
+
version_requirements: *70335751782400
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: open4
|
63
|
+
requirement: &70335748077440 !ruby/object:Gem::Requirement
|
66
64
|
none: false
|
67
|
-
requirements:
|
65
|
+
requirements:
|
68
66
|
- - ~>
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version:
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
71
69
|
type: :development
|
72
|
-
version_requirements: *id005
|
73
|
-
- !ruby/object:Gem::Dependency
|
74
|
-
name: rake
|
75
70
|
prerelease: false
|
76
|
-
|
71
|
+
version_requirements: *70335748077440
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: rake
|
74
|
+
requirement: &70335748075880 !ruby/object:Gem::Requirement
|
77
75
|
none: false
|
78
|
-
requirements:
|
76
|
+
requirements:
|
79
77
|
- - ~>
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version:
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0.9'
|
82
80
|
type: :development
|
83
|
-
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *70335748075880
|
84
83
|
description: An IRB alternative and runtime developer console
|
85
84
|
email: jrmair@gmail.com
|
86
|
-
executables:
|
85
|
+
executables:
|
87
86
|
- pry
|
88
87
|
extensions: []
|
89
|
-
|
90
88
|
extra_rdoc_files: []
|
91
|
-
|
92
|
-
files:
|
89
|
+
files:
|
93
90
|
- .document
|
94
91
|
- .gemtest
|
95
92
|
- .gitignore
|
@@ -190,32 +187,29 @@ files:
|
|
190
187
|
- wiki/Home.md
|
191
188
|
homepage: http://pry.github.com
|
192
189
|
licenses: []
|
193
|
-
|
194
190
|
post_install_message:
|
195
191
|
rdoc_options: []
|
196
|
-
|
197
|
-
require_paths:
|
192
|
+
require_paths:
|
198
193
|
- lib
|
199
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
194
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
200
195
|
none: false
|
201
|
-
requirements:
|
202
|
-
- -
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
version:
|
205
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ! '>='
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
201
|
none: false
|
207
|
-
requirements:
|
208
|
-
- -
|
209
|
-
- !ruby/object:Gem::Version
|
210
|
-
version:
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
211
206
|
requirements: []
|
212
|
-
|
213
207
|
rubyforge_project:
|
214
|
-
rubygems_version: 1.8.
|
208
|
+
rubygems_version: 1.8.10
|
215
209
|
signing_key:
|
216
210
|
specification_version: 3
|
217
211
|
summary: An IRB alternative and runtime developer console
|
218
|
-
test_files:
|
212
|
+
test_files:
|
219
213
|
- test/helper.rb
|
220
214
|
- test/test_cli.rb
|
221
215
|
- test/test_code.rb
|