pry 0.6.7pre4-i386-mingw32 → 0.6.8-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +88 -75
- data/LICENSE +25 -25
- data/README.markdown +321 -309
- data/Rakefile +103 -103
- data/bin/pry +83 -82
- data/examples/example_basic.rb +17 -17
- data/examples/example_command_override.rb +35 -35
- data/examples/example_commands.rb +39 -39
- data/examples/example_hooks.rb +12 -12
- data/examples/example_image_edit.rb +71 -71
- data/examples/example_input.rb +10 -10
- data/examples/example_input2.rb +32 -32
- data/examples/example_output.rb +14 -14
- data/examples/example_print.rb +9 -9
- data/examples/example_prompt.rb +12 -12
- data/lib/pry.rb +32 -32
- data/lib/pry/command_base.rb +150 -150
- data/lib/pry/commands.rb +616 -577
- data/lib/pry/completion.rb +202 -202
- data/lib/pry/core_extensions.rb +55 -55
- data/lib/pry/hooks.rb +19 -8
- data/lib/pry/print.rb +19 -19
- data/lib/pry/prompts.rb +26 -26
- data/lib/pry/pry_class.rb +219 -186
- data/lib/pry/pry_instance.rb +316 -316
- data/lib/pry/version.rb +3 -3
- data/test/test.rb +725 -681
- data/test/test_helper.rb +46 -38
- data/test/testrc +2 -0
- metadata +102 -66
data/test/test_helper.rb
CHANGED
@@ -1,38 +1,46 @@
|
|
1
|
-
class Module
|
2
|
-
public :remove_const
|
3
|
-
end
|
4
|
-
|
5
|
-
class
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
@actions =
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
1
|
+
class Module
|
2
|
+
public :remove_const
|
3
|
+
end
|
4
|
+
|
5
|
+
class << Pry
|
6
|
+
alias_method :orig_reset_defaults, :reset_defaults
|
7
|
+
def reset_defaults
|
8
|
+
orig_reset_defaults
|
9
|
+
Pry.color = false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class InputTester
|
14
|
+
def initialize(*actions)
|
15
|
+
@orig_actions = actions.dup
|
16
|
+
@actions = actions
|
17
|
+
end
|
18
|
+
|
19
|
+
def readline(*)
|
20
|
+
@actions.shift
|
21
|
+
end
|
22
|
+
|
23
|
+
def rewind
|
24
|
+
@actions = @orig_actions.dup
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class Pry
|
29
|
+
|
30
|
+
# null output class - doesn't write anywwhere.
|
31
|
+
class NullOutput
|
32
|
+
def self.puts(*) end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
class CommandTester < Pry::CommandBase
|
38
|
+
|
39
|
+
command "command1", "command 1 test" do
|
40
|
+
output.puts "command1"
|
41
|
+
end
|
42
|
+
|
43
|
+
command "command2", "command 2 test" do |arg|
|
44
|
+
output.puts arg
|
45
|
+
end
|
46
|
+
end
|
data/test/testrc
ADDED
metadata
CHANGED
@@ -1,131 +1,167 @@
|
|
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
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 8
|
9
|
+
version: 0.6.8
|
6
10
|
platform: i386-mingw32
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- John Mair (banisterfiend)
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
16
|
+
|
17
|
+
date: 2011-03-06 00:00:00 +13:00
|
13
18
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
16
21
|
name: ruby_parser
|
17
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 2
|
30
|
+
- 0
|
31
|
+
- 5
|
22
32
|
version: 2.0.5
|
23
33
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
27
36
|
name: coderay
|
28
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
39
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 9
|
46
|
+
- 7
|
33
47
|
version: 0.9.7
|
34
48
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
38
51
|
name: bacon
|
39
|
-
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
54
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 1
|
61
|
+
- 0
|
44
62
|
version: 1.1.0
|
45
63
|
type: :development
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
49
66
|
name: method_source
|
50
|
-
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
69
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
- 3
|
76
|
+
- 4
|
55
77
|
version: 0.3.4
|
56
78
|
type: :runtime
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
60
81
|
name: win32console
|
61
|
-
|
82
|
+
prerelease: false
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
84
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 1
|
90
|
+
- 3
|
91
|
+
- 0
|
66
92
|
version: 1.3.0
|
67
93
|
type: :runtime
|
68
|
-
|
69
|
-
version_requirements: *17564964
|
94
|
+
version_requirements: *id005
|
70
95
|
description: attach an irb-like session to any object at runtime
|
71
96
|
email: jrmair@gmail.com
|
72
|
-
executables:
|
97
|
+
executables:
|
73
98
|
- pry
|
74
99
|
extensions: []
|
100
|
+
|
75
101
|
extra_rdoc_files: []
|
76
|
-
|
102
|
+
|
103
|
+
files:
|
77
104
|
- lib/pry/commands.rb
|
105
|
+
- lib/pry/version.rb
|
78
106
|
- lib/pry/command_base.rb
|
79
|
-
- lib/pry/
|
80
|
-
- lib/pry/core_extensions.rb
|
107
|
+
- lib/pry/prompts.rb
|
81
108
|
- lib/pry/hooks.rb
|
109
|
+
- lib/pry/core_extensions.rb
|
110
|
+
- lib/pry/completion.rb
|
82
111
|
- lib/pry/print.rb
|
83
|
-
- lib/pry/prompts.rb
|
84
112
|
- lib/pry/pry_class.rb
|
85
113
|
- lib/pry/pry_instance.rb
|
86
|
-
- lib/pry/version.rb
|
87
114
|
- lib/pry.rb
|
88
|
-
- examples/example_basic.rb
|
89
115
|
- examples/example_commands.rb
|
90
|
-
- examples/example_command_override.rb
|
91
|
-
- examples/example_hooks.rb
|
92
116
|
- examples/example_image_edit.rb
|
93
|
-
- examples/example_input.rb
|
94
117
|
- examples/example_input2.rb
|
118
|
+
- examples/example_prompt.rb
|
119
|
+
- examples/example_command_override.rb
|
95
120
|
- examples/example_output.rb
|
121
|
+
- examples/example_hooks.rb
|
96
122
|
- examples/example_print.rb
|
97
|
-
- examples/
|
123
|
+
- examples/example_basic.rb
|
124
|
+
- examples/example_input.rb
|
98
125
|
- test/test.rb
|
99
126
|
- test/test_helper.rb
|
127
|
+
- test/testrc
|
100
128
|
- CHANGELOG
|
101
129
|
- LICENSE
|
102
130
|
- README.markdown
|
103
131
|
- Rakefile
|
104
132
|
- .gemtest
|
105
133
|
- bin/pry
|
106
|
-
has_rdoc:
|
134
|
+
has_rdoc: yard
|
107
135
|
homepage: http://banisterfiend.wordpress.com
|
108
136
|
licenses: []
|
137
|
+
|
109
138
|
post_install_message:
|
110
139
|
rdoc_options: []
|
111
|
-
|
140
|
+
|
141
|
+
require_paths:
|
112
142
|
- lib
|
113
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
144
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
segments:
|
149
|
+
- 0
|
150
|
+
version: "0"
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
152
|
none: false
|
121
|
-
requirements:
|
122
|
-
- -
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
125
159
|
requirements: []
|
160
|
+
|
126
161
|
rubyforge_project:
|
127
|
-
rubygems_version: 1.
|
162
|
+
rubygems_version: 1.3.7
|
128
163
|
signing_key:
|
129
164
|
specification_version: 3
|
130
165
|
summary: attach an irb-like session to any object at runtime
|
131
166
|
test_files: []
|
167
|
+
|