rivet 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
1
  Rivet CHANGELOG
2
2
  ===
3
3
 
4
+ 1.0.8 - Released 11/12/13
5
+ ---
6
+ * Fixes the unit tests which were incorrect.
7
+
4
8
  1.0.7 - Released 11/12/13
5
9
  ---
6
10
  * Fixes a bug where the run_list json was not rendered properly
7
- * Adds the iam_instance_profile option to the launch config.
11
+ * Adds the iam_instance_profile option to the launch config.
8
12
 
9
13
  1.0.6 - Released 11/11/2013
10
14
  ---
data/lib/rivet/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Rivet
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
4
4
 
@@ -38,8 +38,8 @@ describe 'rivet bootstrap' do
38
38
  end
39
39
 
40
40
  it 'returns a string that contains the run_list as json' do
41
- run_list = { :run_list => bootstrap_def['run_list'].join(",") }.to_json
42
- bootstrap.user_data.should =~ /#{run_list}/
41
+ run_list = { :run_list => bootstrap_def['run_list'].flatten }.to_json
42
+ bootstrap.user_data.should =~ /#{Regexp.escape(run_list)}/
43
43
  end
44
44
 
45
45
  it 'returns a string that contains each gem to install' do
@@ -27,6 +27,7 @@ module SpecHelpers
27
27
  'instance_type' => 'm1.large',
28
28
  'security_groups' => ['unit_tests1','unit_tests2'],
29
29
  'image_id' => 'ami-12345678',
30
+ 'iam_instance_profile' => 'unit_test_profile',
30
31
  'bootstrap' => {
31
32
  'chef_organization' => 'unit_tests',
32
33
  'template' => 'default.erb',
@@ -41,6 +42,7 @@ module SpecHelpers
41
42
  "image_id#{Base64.encode64(AUTOSCALE_DEF['image_id'])}"\
42
43
  "instance_type#{Base64.encode64(AUTOSCALE_DEF['instance_type'])}"\
43
44
  "security_groups#{Base64.encode64(AUTOSCALE_DEF['security_groups'].join("\t"))}"\
45
+ "iam_instance_profile#{Base64.encode64(AUTOSCALE_DEF['iam_instance_profile'])}"\
44
46
  "bootstrap#{Base64.encode64('unit_test_user_data')}"\
45
47
 
46
48
  def tempdir_context(name, &block)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rivet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: