rbkb 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/rbkb/extends/enumerable.rb +18 -0
- data/lib/rbkb/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjVlMWViMTgzYTBkNmFhZmRiNzM4ZTQyYTAyMGRlZGIwYTRjNGY2NA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 58635953c26ac4984327eb784b1a0e09d7596e83
|
4
|
+
data.tar.gz: ef209056aa23dd0d492edd1421342fa14c18d994
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ODE3OTQ0MzhlMWY3OGZlYWEwODEwNjU5ZDE1MjFmZjAyZjFhNWVkNjJmMjU0
|
11
|
-
ZTU0OTVmYzM4MjY1MWNiYTZkY2E4MDg5ZDg0ZmRjNDcwNmNlMzE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NmU3MDE1YjRjNTQxZmMyM2Y2YzZlMzRjNjVmZmViNGJjZTJkZDBjZDI3NTBi
|
14
|
-
YzNjYmExMGVkYzMwNmUxNTYyNzk5MTQ1N2Y1MzVmZTI2OTBhMmU3OWFlNjYy
|
15
|
-
ODFmOTFjZWFjYjFjOWU3MzVkZTRkMjc5OTViMmRiZDdiNzAwZjg=
|
6
|
+
metadata.gz: 295d90489ebd6b30a407d96bcf3d9516a001203ae49bf696a86d747c8cffed5dbc29781a8a69421843b15edd0a4bdc39e18015693479481fe17b3d44ed1ab6e0
|
7
|
+
data.tar.gz: c733d100ed93479d5c8bd138a4c3bb141e84da040f10df9a03371bec6902240d22e767034499a5fb6c0be761599bdd2505a3530319f45dea055a41866fc0c0ad
|
@@ -6,4 +6,22 @@ module Enumerable
|
|
6
6
|
n.each_recursive(&block) if Enumerable === n
|
7
7
|
end
|
8
8
|
end
|
9
|
+
|
10
|
+
def sum
|
11
|
+
return self.inject(0){|accum, i| accum + i }
|
12
|
+
end
|
13
|
+
|
14
|
+
def mean
|
15
|
+
return self.sum / self.length.to_f
|
16
|
+
end
|
17
|
+
|
18
|
+
def sample_variance
|
19
|
+
m = self.mean
|
20
|
+
sum = self.inject(0){|accum, i| accum + (i - m) ** 2 }
|
21
|
+
return sum / (self.length - 1).to_f
|
22
|
+
end
|
23
|
+
|
24
|
+
def standard_deviation
|
25
|
+
return Math.sqrt(self.sample_variance)
|
26
|
+
end
|
9
27
|
end
|
data/lib/rbkb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbkb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Monti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -202,17 +202,17 @@ require_paths:
|
|
202
202
|
- lib
|
203
203
|
required_ruby_version: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
|
-
- -
|
205
|
+
- - '>='
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
|
-
- -
|
210
|
+
- - '>='
|
211
211
|
- !ruby/object:Gem::Version
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.2.
|
215
|
+
rubygems_version: 2.2.2
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: Rbkb is a collection of ruby-based pen-testing and reversing tools
|
@@ -239,3 +239,4 @@ test_files:
|
|
239
239
|
- test/test_cli_urlenc.rb
|
240
240
|
- test/test_cli_xor.rb
|
241
241
|
- test/test_helper.rb
|
242
|
+
has_rdoc:
|