stackup 1.5.0 → 1.5.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
  SHA256:
3
- metadata.gz: c15ca8477932ab203176cf7047ba309edae07fe35c36cdf797353d747bb74e5b
4
- data.tar.gz: 195ebfa65f7fa5a3836abf59e855fe803f97e1dbc28965800f89c88f5b56a22d
3
+ metadata.gz: 7a60dfe3184679f98c43d28590feadf40faa968bf5b75531951510d96d38a02f
4
+ data.tar.gz: ab5010d36407547ba7c1f5b09e190c776023303227b72881ea80b2b49a41b717
5
5
  SHA512:
6
- metadata.gz: 8439adf18ef0d019ea73e2205b9c0d33848f2151c48ef45e5b6f8552492d860bf0ad9477d625d62163537da997fc18c763310731a4f8735860e6edc4cf121b91
7
- data.tar.gz: 8022894472208a085f0224c71e2e2bbfb9d896673c6fbd5a5af259c970383c8edec14cba14cc5cc576e8d203a15e1121bb682321ab5c79a224b3a6ac52ceb996
6
+ metadata.gz: cf63917e39f450c29d98e420f872aa5f1d7bd00fbd2543eece6d81795ec64ec349e66ba507230e212d30961a390a8a9f587c0dc45e08b823c78c518f700425ff
7
+ data.tar.gz: 15a86e361a985ca59c7714025fa47308a4e165b5abdf2f0bf8e3020d13a73636e219a6693b208f6d51e4fed8aa28587e7dbd1dda03a654d471a8a432ca4e4632
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES
2
2
 
3
+ ## 1.5.1 (2020-11-16)
4
+
5
+ * Fix: Recognise that template is in S3 when URL is formatted like `s3.REGION.amazonaws.com`
6
+
3
7
  ## 1.5.0 (2020-04-21)
4
8
 
5
9
  * Feature: --preserve-template-formatting
data/README.md CHANGED
@@ -307,11 +307,11 @@ The release process will push tags to GitHub, push the gem to rubygems and push
307
307
  Prerequisites:
308
308
 
309
309
  * logged into dockerhub via `docker login`. Your user must have permission to push to `realestate/stackup`
310
- * logged into rubygems via `gem push`. Your user must have permission to push to the `stackup` gem.
310
+ * You must have a rubygems account with permission to push to the `stackup` gem. (`auto/release` will ask for your username and password)
311
+ * You must have cloned this repo via HTTPS and have a github account with permission to push. (`auto/release` will ask for your username and a GitHub personal access token)
311
312
 
312
313
  To release:
313
314
 
314
315
  ```
315
- bundle install
316
316
  auto/release
317
317
  ```
@@ -15,7 +15,7 @@ module Stackup
15
15
 
16
16
  def s3?
17
17
  uri.scheme == "https" &&
18
- uri.host =~ /(^|\.)s3(-\w+-\w+-\d)?\.amazonaws\.com$/
18
+ uri.host =~ /(^|\.)s3((\.|-)\w+-\w+-\d)?\.amazonaws\.com$/
19
19
  end
20
20
 
21
21
  def body
@@ -1,5 +1,5 @@
1
1
  module Stackup
2
2
 
3
- VERSION = "1.5.0".freeze
3
+ VERSION = "1.5.1".freeze
4
4
 
5
5
  end
@@ -124,6 +124,16 @@ describe Stackup::Source do
124
124
 
125
125
  end
126
126
 
127
+ context "with dot separated bucket and region" do
128
+
129
+ let(:s3_url) { "https://bucket.s3.us-east-1.amazonaws.com/cfn/template.yml" }
130
+
131
+ it "is S3" do
132
+ expect(subject).to be_s3
133
+ end
134
+
135
+ end
136
+
127
137
  end
128
138
 
129
139
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-20 00:00:00.000000000 Z
12
+ date: 2020-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-cloudformation