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