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.
- data/CHANGELOG.md +4 -0
- data/lib/spice/connection.rb +5 -0
- data/lib/spice/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/lib/spice/connection.rb
CHANGED
@@ -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
|
data/lib/spice/version.rb
CHANGED