pry-syntax-hacks 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pry-syntax-hacks.rb +5 -5
- metadata +11 -11
data/lib/pry-syntax-hacks.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class Pry
|
2
2
|
alias_method :old_retrieve_line, :retrieve_line
|
3
3
|
|
4
|
-
def retrieve_line(*args)
|
5
|
-
|
4
|
+
def retrieve_line(eval_string, *args)
|
5
|
+
old_retrieve_line(eval_string, *args)
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
eval_string.gsub!(/\.(@[a-z0-9_]+)/, '.instance_variable_get("\1")')
|
8
|
+
eval_string.gsub!(/\.:([a-z0-9_]+[?!]?)/, '.method(:\1)')
|
9
|
+
eval_string.gsub!(/\.!([a-z0-9_]+[?!]?)([ \(])(?=(.*))/) { ".send#{$2}:#{$1}#{$3 == ""?"":","}" }
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-syntax-hacks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 2495673787400639531
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Conrad Irwin
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-02-28 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: pry
|
@@ -26,10 +25,12 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
28
|
+
hash: 1677717600019211762
|
30
29
|
segments:
|
31
30
|
- 0
|
32
|
-
|
31
|
+
- 9
|
32
|
+
- 8
|
33
|
+
version: 0.9.8
|
33
34
|
type: :runtime
|
34
35
|
version_requirements: *id001
|
35
36
|
description: Allows you to do object.@instance_var, or object.!private_method(:args), or foo.map &object.:method_name
|
@@ -44,7 +45,6 @@ files:
|
|
44
45
|
- lib/pry-syntax-hacks.rb
|
45
46
|
- README.markdown
|
46
47
|
- LICENSE.MIT
|
47
|
-
has_rdoc: true
|
48
48
|
homepage: http://github.com/ConradIrwin/pry-syntax-hacks
|
49
49
|
licenses: []
|
50
50
|
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 2002549777813010636
|
62
62
|
segments:
|
63
63
|
- 0
|
64
64
|
version: "0"
|
@@ -67,14 +67,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
hash:
|
70
|
+
hash: 2002549777813010636
|
71
71
|
segments:
|
72
72
|
- 0
|
73
73
|
version: "0"
|
74
74
|
requirements: []
|
75
75
|
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.
|
77
|
+
rubygems_version: 1.8.12
|
78
78
|
signing_key:
|
79
79
|
specification_version: 3
|
80
80
|
summary: Allows various short-cuts that make exploring Ruby objects nicer
|