vidibus-secure 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vidibus/secure/version.rb +1 -1
- data/lib/vidibus/secure.rb +2 -2
- data/lib/vidibus-secure.rb +0 -1
- metadata +9 -8
data/lib/vidibus/secure.rb
CHANGED
@@ -17,7 +17,7 @@ module Vidibus
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# Returns a truly random string.
|
20
|
-
# Now it is not much more than an interface for
|
20
|
+
# Now it is not much more than an interface for Ruby's SecureRandom,
|
21
21
|
# but that might change over time.
|
22
22
|
#
|
23
23
|
# Options:
|
@@ -30,7 +30,7 @@ module Vidibus
|
|
30
30
|
def random(options = {})
|
31
31
|
options = settings[:random].merge(options)
|
32
32
|
length = options[:length]
|
33
|
-
|
33
|
+
SecureRandom.send(options[:encoding], length)[0,length]
|
34
34
|
end
|
35
35
|
|
36
36
|
# Returns signature of given data with given key.
|
data/lib/vidibus-secure.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-secure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andre Pankratz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-02-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -54,10 +54,11 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
hash:
|
57
|
+
hash: 3
|
58
58
|
segments:
|
59
59
|
- 3
|
60
|
-
|
60
|
+
- 2
|
61
|
+
version: "3.2"
|
61
62
|
type: :runtime
|
62
63
|
version_requirements: *id003
|
63
64
|
- !ruby/object:Gem::Dependency
|
@@ -239,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
240
|
requirements: []
|
240
241
|
|
241
242
|
rubyforge_project: vidibus-resource
|
242
|
-
rubygems_version: 1.
|
243
|
+
rubygems_version: 1.3.7
|
243
244
|
signing_key:
|
244
245
|
specification_version: 3
|
245
246
|
summary: Security tools for Vidibus applications
|