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.
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Secure
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -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 ActiveSupport::SecureRandom,
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
- ActiveSupport::SecureRandom.send(options[:encoding], length)[0,length]
33
+ SecureRandom.send(options[:encoding], length)[0,length]
34
34
  end
35
35
 
36
36
  # Returns signature of given data with given key.
@@ -1,7 +1,6 @@
1
1
  require "openssl"
2
2
  require "rack"
3
3
  require "uri"
4
- require "active_support/secure_random"
5
4
  require "active_support/core_ext"
6
5
  require "json"
7
6
  require "vidibus-core_extensions"
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: 29
5
- prerelease:
4
+ hash: 19
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
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: 2011-08-11 00:00:00 +02:00
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: 5
57
+ hash: 3
58
58
  segments:
59
59
  - 3
60
- version: "3"
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.6.2
243
+ rubygems_version: 1.3.7
243
244
  signing_key:
244
245
  specification_version: 3
245
246
  summary: Security tools for Vidibus applications