getsource 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/lib/getsource.rb +10 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/lib/getsource.rb
CHANGED
@@ -37,7 +37,11 @@ class Method
|
|
37
37
|
instance_method("body")
|
38
38
|
rescue
|
39
39
|
def body
|
40
|
-
|
40
|
+
if source_location
|
41
|
+
Method::Node.new(source_location[0], source_location[1])
|
42
|
+
else
|
43
|
+
Method::Node.new("",0)
|
44
|
+
end
|
41
45
|
end
|
42
46
|
end
|
43
47
|
end
|
@@ -47,7 +51,11 @@ class UnboundMethod
|
|
47
51
|
instance_method("body")
|
48
52
|
rescue
|
49
53
|
def body
|
50
|
-
|
54
|
+
if source_location
|
55
|
+
Method::Node.new(source_location[0], source_location[1])
|
56
|
+
else
|
57
|
+
Method::Node.new("",0)
|
58
|
+
end
|
51
59
|
end
|
52
60
|
end
|
53
61
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getsource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dario Seminara
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-19 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|