procemon 0.0.4 → 0.0.5
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.
- data/VERSION +1 -1
- data/lib/procemon/function/meta/binding/{stack.rb → bindless.rb} +1 -1
- data/lib/procemon/function/meta/binding/proc.rb +1 -1
- data/lib/procemon/function/require.rb +4 -1
- data/lib/procemon/mpatch/class.rb +5 -1
- data/lib/procemon/mpatch/proc.rb +12 -0
- data/scripts/doc_gen.rb +4 -0
- data/test/test.rb +44 -2
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -203,6 +203,7 @@ module Kernel
|
|
203
203
|
|
204
204
|
# get config files
|
205
205
|
begin
|
206
|
+
target_folder= target_folder.split(File::Separator).pinch(3).join(File::Separator)
|
206
207
|
config_yaml_paths= Array.new()
|
207
208
|
Dir.glob(File.join(target_folder, "{config,conf}","*.{yaml,yml}")).uniq.each do |one_path|
|
208
209
|
|
@@ -257,7 +258,9 @@ module Kernel
|
|
257
258
|
end
|
258
259
|
end
|
259
260
|
|
260
|
-
end
|
261
|
+
end if target_folder == File.join(Dir.pwd,"lib", "**","meta")
|
262
|
+
|
263
|
+
return target_config_hash
|
261
264
|
|
262
265
|
end
|
263
266
|
|
@@ -26,7 +26,11 @@ class Class
|
|
26
26
|
# Iterates over all subclasses (direct and indirect)
|
27
27
|
def each_subclass
|
28
28
|
ObjectSpace.each_object(Class) { | candidate |
|
29
|
-
|
29
|
+
begin
|
30
|
+
yield candidate if candidate < self
|
31
|
+
rescue ArgumentError
|
32
|
+
# comparison of Class with Class failed (ArgumentError)
|
33
|
+
end
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
data/scripts/doc_gen.rb
CHANGED
@@ -23,6 +23,10 @@ Dir.glob(File.join(File.dirname(__FILE__),"..","lib","procemon","**","*.{rb,ru}"
|
|
23
23
|
comment.push one_line_per_file.gsub(/\W*#/,"#")
|
24
24
|
end
|
25
25
|
|
26
|
+
if one_file_path == String.new
|
27
|
+
comment.clear
|
28
|
+
end
|
29
|
+
|
26
30
|
if one_line_per_file =~ /\W*def\W/
|
27
31
|
|
28
32
|
if DOC_DATA[one_file_path.split(File::Separator).last.split('.')[0]].nil?
|
data/test/test.rb
CHANGED
@@ -1,8 +1,50 @@
|
|
1
1
|
require_relative "../lib/procemon.rb"
|
2
|
-
require "debugger"
|
3
2
|
|
4
3
|
|
5
|
-
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
a = ->(x){x+1}
|
8
|
+
b = ->(x){x*10}
|
9
|
+
c = b*a
|
10
|
+
puts c.call(1) #=> 20
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
6
48
|
|
7
49
|
|
8
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: procemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'This is a collection of my Ruby Procs in the adventure of becoming
|
15
15
|
the best! In short this provides extra tools in Application configs, argumens processing,daemonise,
|
@@ -37,8 +37,8 @@ files:
|
|
37
37
|
- lib/procemon/function/documentation.rb
|
38
38
|
- lib/procemon/function/eval.rb
|
39
39
|
- lib/procemon/function/meta/binding/binding.rb
|
40
|
+
- lib/procemon/function/meta/binding/bindless.rb
|
40
41
|
- lib/procemon/function/meta/binding/proc.rb
|
41
|
-
- lib/procemon/function/meta/binding/stack.rb
|
42
42
|
- lib/procemon/function/meta/inject_methods.rb
|
43
43
|
- lib/procemon/function/meta/source.rb
|
44
44
|
- lib/procemon/function/name.rb
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/procemon/mpatch/integer.rb
|
56
56
|
- lib/procemon/mpatch/kernel.rb
|
57
57
|
- lib/procemon/mpatch/object.rb
|
58
|
+
- lib/procemon/mpatch/proc.rb
|
58
59
|
- lib/procemon/mpatch/process.rb
|
59
60
|
- lib/procemon/mpatch/random.rb
|
60
61
|
- lib/procemon/mpatch/string.rb
|
@@ -79,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
80
|
version: '0'
|
80
81
|
segments:
|
81
82
|
- 0
|
82
|
-
hash: -
|
83
|
+
hash: -1063597288915900015
|
83
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
85
|
none: false
|
85
86
|
requirements:
|