strongbox 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/strongbox.rb +1 -1
  2. data/lib/strongbox/lock.rb +1 -1
  3. metadata +2 -2
data/lib/strongbox.rb CHANGED
@@ -5,7 +5,7 @@ require 'strongbox/lock'
5
5
 
6
6
  module Strongbox
7
7
 
8
- VERSION = "0.3.1"
8
+ VERSION = "0.3.2"
9
9
 
10
10
  RSA_PKCS1_PADDING = OpenSSL::PKey::RSA::PKCS1_PADDING
11
11
  RSA_SSLV23_PADDING = OpenSSL::PKey::RSA::SSLV23_PADDING
@@ -114,7 +114,7 @@ module Strongbox
114
114
  private
115
115
  def get_rsa_key(key,password = '')
116
116
  return key if key.is_a?(OpenSSL::PKey::RSA)
117
- if key !~ /^-----BEGIN RSA/
117
+ if key !~ /^-+BEGIN .* KEY-+$/
118
118
  key = File.read(key)
119
119
  end
120
120
  return OpenSSL::PKey::RSA.new(key,password)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spike Ilacqua
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-24 00:00:00 -07:00
12
+ date: 2010-06-08 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency