procemon 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/procemon/function/proc_source/method.rb +7 -1
- data/lib/procemon/function/proc_source/proc.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MGRmYzFmYjIzNDdhMWU5NTJiM2ZlNDA0OGVhMmNjMzg4NjE2OGRkNg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YmUyMTFhODliMjg4NzU0Y2JiYmYwNjg5MTQwMTc3MjdhZDMxZGVhZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWQ5ZGU3Y2Q5NWZkNjNmYTE4NDA4ZjY1N2Y4YTRiMTViZGRmMGY4ZDJkM2Uy
|
|
10
|
+
ZWZlZGNmMzA5NzljOTk1NWMxODk5YTA4Mjc1NTQwYzhkZGRjOTg0OTgyYWQy
|
|
11
|
+
MTAwYTMxNjc4MGU1MjliM2ZjYjczYjllMjRmOWQwZDc3MTVkZDM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZWJmYWYyODQyYWRlMzhiMjE1ODk4NTk3NjU0OGI3MzQwY2MyYmY5YmNlNWZh
|
|
14
|
+
NjIwMDM1NWE4ZGU1NTFhNjQ0MTVhN2ZmNTVjMWI3NDBkMjVkOGQyNTgzOWRi
|
|
15
|
+
YTEzYjU1ODUwMWI0MjA1YmE3M2QzMTI4OWY4MTBiNTFjOTNhNzY=
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.2
|
|
@@ -14,6 +14,10 @@ module MethodToProcSource
|
|
|
14
14
|
return ProcSource.source_cache[self.inspect]
|
|
15
15
|
else
|
|
16
16
|
|
|
17
|
+
if self.source_location.nil?
|
|
18
|
+
return "Proc.new { }"
|
|
19
|
+
end
|
|
20
|
+
|
|
17
21
|
File.open(File.expand_path(self.source_location[0])
|
|
18
22
|
).each_line_from self.source_location[1] do |line|
|
|
19
23
|
block += line.source_formater_for_line_sub
|
|
@@ -44,7 +48,9 @@ module MethodToProcSource
|
|
|
44
48
|
return_string.sub!(/^[^{]*(?!={)/,'Proc.new')
|
|
45
49
|
end
|
|
46
50
|
|
|
47
|
-
|
|
51
|
+
if !self.source_location.nil?
|
|
52
|
+
ProcSource.source_cache[self.inspect]= return_string
|
|
53
|
+
end
|
|
48
54
|
|
|
49
55
|
return return_string
|
|
50
56
|
end
|
|
@@ -14,6 +14,10 @@ class Proc
|
|
|
14
14
|
return ProcSource.source_cache[self.inspect]
|
|
15
15
|
else
|
|
16
16
|
|
|
17
|
+
if self.source_location.nil?
|
|
18
|
+
return "Proc.new { }"
|
|
19
|
+
end
|
|
20
|
+
|
|
17
21
|
File.open(File.expand_path(self.source_location[0])
|
|
18
22
|
).each_line_from self.source_location[1] do |line|
|
|
19
23
|
block += line.source_formater_for_line_sub
|
|
@@ -28,7 +32,9 @@ class Proc
|
|
|
28
32
|
return_string.sub!(/^[^{]*(?!={)/,'Proc.new')
|
|
29
33
|
end
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
if !self.source_location.nil?
|
|
36
|
+
ProcSource.source_cache[self.inspect]= return_string
|
|
37
|
+
end
|
|
32
38
|
|
|
33
39
|
return return_string
|
|
34
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: procemon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Luzsi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asynchronous
|