stack_master 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a13283a8d2b9fc7717a9f49f38919761f818db3
4
- data.tar.gz: 973ef37d67af339860b676584b92646c2c667b1e
3
+ metadata.gz: b8d7c06c818e3f34290f0cf825ff2edbf0345e7c
4
+ data.tar.gz: 570f49fdf0bb8c83729e3eb3e381a9a5ef1de805
5
5
  SHA512:
6
- metadata.gz: 0a34296f6a8fcf99c0c87ac6f5c3cdd3630de041ea3ee420c5a3a4df6741559caf49e1fcc41c1ea9c4d55ec979edbb1625018c7937b1a2ac7ee3a1c5faa5f703
7
- data.tar.gz: 47902c47d322c770f65a1547a0bf6bdd5997191989f86b58b8bdd2d89714d52c6446b625fac94a4fca7a13d4a29dcf0f2d28dcf2fdd9691c5ab322beff58a5bd
6
+ metadata.gz: 11cc834e25489e928352ee4aa92937b1e63ba12889644decce84b57f57c08dd6c22f777c2f69a4eeda78271bb0c7a655b12354e8d16ed0d2b696664dae36a440
7
+ data.tar.gz: ead584da13331f9714bac80c224aa2f9f59222cb87950a8181b227e334ce41adfbf04a865e568316bbeb06dc30e32df4ba90c37a61f1f6236bff60cac5bc75f9
@@ -7,7 +7,7 @@ module StackMaster
7
7
  ]
8
8
 
9
9
  def self.generate_change_set_name
10
- 'StackMaster' + Time.now.strftime('%Y-%m-%e-%H%M-%s')
10
+ 'StackMaster' + Time.now.strftime('%Y-%m-%d-%H%M-%s')
11
11
  end
12
12
 
13
13
  def self.create(create_options)
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -4,6 +4,14 @@ RSpec.describe StackMaster::ChangeSet do
4
4
  let(:stack_name) { 'myapp-vpc' }
5
5
  let(:change_set_name) { 'changeset-123' }
6
6
 
7
+ describe '.generate_change_set_name' do
8
+ context 'valid name' do
9
+ it 'creates a valid name' do
10
+ expect(StackMaster::ChangeSet.generate_change_set_name).to match(/^[a-zA-Z][-a-zA-Z0-9]*$/)
11
+ end
12
+ end
13
+ end
14
+
7
15
  describe '.create' do
8
16
  before do
9
17
  allow(StackMaster::ChangeSet).to receive(:generate_change_set_name).and_return(change_set_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodgkiss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-31 00:00:00.000000000 Z
12
+ date: 2016-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler