procemon 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/procemon/mpatch/random.rb +6 -10
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -1,16 +1,13 @@
|
|
1
1
|
class RND
|
2
2
|
class << self
|
3
|
-
def string(length= 7,amount=1)
|
4
|
-
|
5
|
-
first_string = true
|
3
|
+
def string(length= 7,amount=1,hyphen= " ")
|
4
|
+
amount_container= Array.new
|
6
5
|
amount.times do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
first_string ? mrg += mrg_prt : mrg+= " " + "#{mrg_prt}"
|
11
|
-
first_string = false
|
6
|
+
mrg= String.new
|
7
|
+
mrg= (0...length).map{ ('a'..'z').to_a[rand(26)] }.join
|
8
|
+
amount_container.push mrg
|
12
9
|
end
|
13
|
-
return
|
10
|
+
return amount_container.join(hyphen)
|
14
11
|
end
|
15
12
|
def integer(length= 3)
|
16
13
|
Random.rand(length)
|
@@ -30,7 +27,6 @@ class RND
|
|
30
27
|
end
|
31
28
|
end
|
32
29
|
|
33
|
-
|
34
30
|
# alias in Random from RND
|
35
31
|
begin
|
36
32
|
(RND.singleton_methods-Object.singleton_methods).each do |one_method_sym|
|
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.9
|
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-11-
|
12
|
+
date: 2013-11-11 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,
|