procemon 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require File.join "bundler","gem_tasks"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
data/dump/uuid.rb CHANGED
@@ -19,10 +19,10 @@
19
19
  # OUT OF OR IN CONNECTION WITH THE CODE OR THE USE OR OTHER DEALINGS IN THE
20
20
  # CODE.
21
21
 
22
- %w[
23
- digest/md5
24
- digest/sha1
25
- tmpdir
22
+ [
23
+ File.join("digest","md5"),
24
+ File.join("digest","sha1"),
25
+ "tmpdir"
26
26
  ].each do |f|
27
27
  require f
28
28
  end
@@ -22,9 +22,6 @@ module Procemon
22
22
  when "--kill","-kill"
23
23
  Application.daemon= "stop"
24
24
 
25
- when "--debuger","-bugger"
26
- require "debugger"
27
- debugger
28
25
 
29
26
  when "--config","-c"
30
27
  Application.config_file= ARGV[(ARGV.index(one_param)+1)]
@@ -54,8 +51,6 @@ module Procemon
54
51
  "--environment","-e","",
55
52
  "this is for target a config file:",
56
53
  "--config","-c","",
57
- "This is for use debugger (development tool)",
58
- "--debug","-bug","",
59
54
  "This is for start application as a forked background process",
60
55
  "--daemon","-d","",
61
56
  "This is for drop database data",
@@ -22,6 +22,7 @@
22
22
 
23
23
 
24
24
  module Mac
25
+
25
26
  VERSION = '1.6.1'
26
27
 
27
28
  def Mac.version
@@ -72,7 +72,7 @@ module Kernel
72
72
  # Offline repo activate
73
73
  def mount_modules(target_folder= File.join(Dir.pwd,"{module,modules}","{gem,gems}") )
74
74
  Dir.glob(File.join(target_folder,"**","lib")).select{|f| File.directory?(f)}.each do |one_path|
75
- $LOAD_PATH << one_path
75
+ $LOAD_PATH.unshift one_path
76
76
  end
77
77
  end
78
78
 
data/test/lab.rb ADDED
@@ -0,0 +1,83 @@
1
+ require "procemon"
2
+
3
+
4
+ #class Hello
5
+ #
6
+ # def world arg
7
+ # puts arg
8
+ # end
9
+ #
10
+ # def hello
11
+ # puts "this is hello, hy!"
12
+ # end
13
+ #
14
+ #end
15
+ #
16
+ #class Proc
17
+ #
18
+ # def source_code
19
+ # puts self.source_location.inspect
20
+ #
21
+ # end
22
+ #
23
+ #end
24
+ #
25
+ #
26
+ #
27
+ ##.to_proc.source_code
28
+ #TestProc= Proc.new do
29
+ # puts "hello world!"
30
+ #end
31
+ #
32
+ #SecurityProc = Proc.new{ |*args|
33
+ # puts "hello world!"
34
+ #}
35
+ #
36
+ #class Test
37
+ #
38
+ #
39
+ # attr_accessor :test1
40
+ # Test= Proc.new do
41
+ # puts "hello world"
42
+ # end
43
+ #
44
+ # class << self
45
+ # attr_accessor :test2
46
+ # end
47
+ #
48
+ # def hello *args
49
+ # puts self.test1.inspect
50
+ # end
51
+ #
52
+ # def self.hello *args
53
+ # puts self.test2.inspect
54
+ # end
55
+ #
56
+ # def security_proc *args
57
+ # self.class::Test.call *args
58
+ # end
59
+ #
60
+ #
61
+ #end
62
+ #
63
+ ##test= Test.new
64
+ ##test.security_proc
65
+ #
66
+ ##require "sourcify"
67
+ ##require "debugger"
68
+ ##debugger
69
+ #
70
+ #puts SecurityProc.source_location.inspect
71
+ #puts Test.method(:hello).to_proc.source_location.inspect
72
+ #puts TestProc.source_location.inspect
73
+
74
+
75
+
76
+
77
+
78
+
79
+ #method(:world).get_binding
80
+
81
+ #puts test.get_binding
82
+ #puts test.get_binding2
83
+ #puts test.get_binding
data/test/test.rb CHANGED
@@ -4,129 +4,3 @@ require_relative "../lib/procemon.rb"
4
4
 
5
5
 
6
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
-
48
-
49
-
50
-
51
- #class Hello
52
- #
53
- # def world arg
54
- # puts arg
55
- # end
56
- #
57
- # def hello
58
- # puts "this is hello, hy!"
59
- # end
60
- #
61
- #end
62
- #
63
- #class Proc
64
- #
65
- # def source_code
66
- # puts self.source_location.inspect
67
- #
68
- # end
69
- #
70
- #end
71
- #
72
- #
73
- #
74
- ##.to_proc.source_code
75
- #TestProc= Proc.new do
76
- # puts "hello world!"
77
- #end
78
- #
79
- #SecurityProc = Proc.new{ |*args|
80
- # puts "hello world!"
81
- #}
82
- #
83
- #class Test
84
- #
85
- #
86
- # attr_accessor :test1
87
- # Test= Proc.new do
88
- # puts "hello world"
89
- # end
90
- #
91
- # class << self
92
- # attr_accessor :test2
93
- # end
94
- #
95
- # def hello *args
96
- # puts self.test1.inspect
97
- # end
98
- #
99
- # def self.hello *args
100
- # puts self.test2.inspect
101
- # end
102
- #
103
- # def security_proc *args
104
- # self.class::Test.call *args
105
- # end
106
- #
107
- #
108
- #end
109
- #
110
- ##test= Test.new
111
- ##test.security_proc
112
- #
113
- ##require "sourcify"
114
- ##require "debugger"
115
- ##debugger
116
- #
117
- #puts SecurityProc.source_location.inspect
118
- #puts Test.method(:hello).to_proc.source_location.inspect
119
- #puts TestProc.source_location.inspect
120
-
121
-
122
-
123
-
124
-
125
-
126
- #method(:world).get_binding
127
-
128
- #puts test.get_binding
129
- #puts test.get_binding2
130
- #puts test.get_binding
131
-
132
-
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,7 +27,6 @@ files:
27
27
  - README.md
28
28
  - Rakefile
29
29
  - VERSION
30
- - dump/macaddr.rb
31
30
  - dump/uuid.rb
32
31
  - files.rb
33
32
  - lib/procemon.rb
@@ -36,6 +35,7 @@ files:
36
35
  - lib/procemon/function/daemon.rb
37
36
  - lib/procemon/function/documentation.rb
38
37
  - lib/procemon/function/eval.rb
38
+ - lib/procemon/function/macaddr.rb
39
39
  - lib/procemon/function/meta/binding/binding.rb
40
40
  - lib/procemon/function/meta/binding/bindless.rb
41
41
  - lib/procemon/function/meta/binding/proc.rb
@@ -63,7 +63,7 @@ files:
63
63
  - procemon.gemspec
64
64
  - scripts/doc_gen.rb
65
65
  - scripts/test.txt
66
- - test/bump/test2.rb
66
+ - test/lab.rb
67
67
  - test/test.rb
68
68
  homepage: https://github.com/adamluzsi/procemon
69
69
  licenses:
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  segments:
82
82
  - 0
83
- hash: -1480907638773472527
83
+ hash: -1780409337957780611
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
@@ -94,5 +94,5 @@ signing_key:
94
94
  specification_version: 3
95
95
  summary: Gotta catch em all!
96
96
  test_files:
97
- - test/bump/test2.rb
97
+ - test/lab.rb
98
98
  - test/test.rb
data/test/bump/test2.rb DELETED
@@ -1,2 +0,0 @@
1
- puts "hello world"
2
-