spice 1.0.5 → 1.0.6

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.
@@ -1,3 +1,7 @@
1
+ # Release Notes - Spice - Version 1.0.6
2
+
3
+ * Passing a string for the client key is now valid, as it should have been for a while.
4
+
1
5
  # Release Notes - Spice - Version 1.0.5
2
6
 
3
7
  * `mixlib-authentication` introduced a breaking change in their bump to 1.3.0. Pinned mixlib-auth to 1.1.4 so Spice works again.
@@ -42,6 +42,11 @@ module Spice
42
42
 
43
43
  def initialize(attrs=Mash.new)
44
44
  attrs = Spice.options.merge(attrs)
45
+
46
+ unless attrs[:client_key].is_a?(OpenSSL::PKey::RSA)
47
+ attrs[:client_key] = OpenSSL::PKey::RSA.new(attrs[:client_key])
48
+ end
49
+
45
50
  Config::VALID_OPTIONS_KEYS.each do |key|
46
51
  instance_variable_set("@#{key}".to_sym, attrs[key])
47
52
  end
@@ -1,3 +1,3 @@
1
1
  module Spice
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: