knife-cloudformation 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5038817ca4a6fbe9658bbd9652b66281b02db80e
4
- data.tar.gz: 4b4da29974e40d7077c56919fb83c7c66de27e6d
3
+ metadata.gz: 06ed7ddbaae0df4f7300893f1e13a5a4868c21bd
4
+ data.tar.gz: a4be11d9182dec352ba5a4316aaa4bb39dbb1a64
5
5
  SHA512:
6
- metadata.gz: e67e6e3bcd675159997cf4627f429a8c492b49d1e9a6ef22bf6820abd51ec74850de2b2997b675cd7de130bb01a6db5ff150578a088172f9b3fe3b16e4ccc423
7
- data.tar.gz: 146d85f4a0db3e29a20335a9383d7bc5cea11d42c39a5a87c92dcad2d9b9959cc16dfeccb842438c0f691981b642f74d6d5def6582d3e09d24c7bcffdb4a3417
6
+ metadata.gz: e5ed947f9660358c072020a8c63cb4c1df4228bfc2b4f59b6439af4a2f3802f2866359e29706a4d6f3bdf91bd96d4aa2148988ea9f4b24627d34a7a64ec9e5ed
7
+ data.tar.gz: 0942609dd232d7f2ed5d8e49261882f8d86cd9c13bc958e9c753408daf951cea1fc2bae4fb3089f33f325b96201233053f933a86dc2254516e05814d478edb93
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.2.2
2
+ * Fix redis-objects loading in cache helper
3
+
1
4
  ## v0.2.0
2
5
  * This release should be considered "breaking"
3
6
  * Underlying cloud API has been changed from fog to miasma
data/README.md CHANGED
@@ -53,5 +53,5 @@ knife[:cloudformation][:credentials] = {
53
53
 
54
54
  # Info
55
55
 
56
- * Repository: https://github.com/heavywater/knife-cloudformation
56
+ * Repository: https://github.com/hw-labs/knife-cloudformation
57
57
  * IRC: Freenode @ #heavywater
@@ -2,13 +2,6 @@ require 'digest/sha2'
2
2
  require 'thread'
3
3
  require 'knife-cloudformation'
4
4
 
5
- begin
6
- require 'redis-objects'
7
- rescue LoadError
8
- $stderr.puts 'The `redis-objects` gem is required for Cache support!'
9
- raise
10
- end
11
-
12
5
  module KnifeCloudformation
13
6
  # Data caching helper
14
7
  class Cache
@@ -23,6 +16,12 @@ module KnifeCloudformation
23
16
  type = type.to_sym
24
17
  case type
25
18
  when :redis
19
+ begin
20
+ require 'redis-objects'
21
+ rescue LoadError
22
+ $stderr.puts 'The `redis-objects` gem is required for Cache support!'
23
+ raise
24
+ end
26
25
  @_pid = Process.pid
27
26
  Redis::Objects.redis = Redis.new(args)
28
27
  when :local
@@ -1,4 +1,4 @@
1
1
  module KnifeCloudformation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.2.0')
3
+ VERSION = Gem::Version.new('0.2.2')
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts