configure-s3-website-ng 3.0.0 → 3.1.0
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 +4 -4
- data/.github/workflows/build.yml +21 -0
- data/Gemfile +1 -1
- data/README.md +18 -4
- data/changelog.md +13 -0
- data/configure-s3-website.gemspec +3 -2
- data/lib/configure-s3-website/cloudfront_client.rb +2 -4
- data/lib/configure-s3-website/s3_client.rb +1 -1
- data/lib/configure-s3-website/version.rb +1 -1
- data/spec/cloudfront_client_spec.rb +1 -1
- metadata +22 -8
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc8cb49a5d3ff4af42d4b5d7c483086b76df98fe2887d8d41de5f45ba2767cb5
|
|
4
|
+
data.tar.gz: 923148ec51666879a34f484ef5d1619ebe9769ff26d858a2870221edded0eccf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95423c23e8a5962d3cf89b195f736baabb0f55120a0ce49db59a5717dcbf1495022a896bc0c678f27d0ac2f2b885bbd1078c9a2f346784e48d5405c37c33143e
|
|
7
|
+
data.tar.gz: 1e3aa99562d6b42aa60fdacf93b2248f0f5ca2837558ca3f7d40443e8686240040468c565580354b3180525d83de8b5054d55e896a450d5a598a8a50c725318e
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: ['3.2', '3.3', '3.4', '4.0']
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v7
|
|
16
|
+
- uses: ruby/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
|
19
|
+
bundler-cache: true
|
|
20
|
+
- run: bundle exec rake
|
|
21
|
+
- run: bundle exec rake build
|
data/Gemfile
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
source
|
|
1
|
+
source 'https://rubygems.org'
|
|
2
2
|
gemspec
|
data/README.md
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Configure-s3-website-ng
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://rubygems.org/gems/configure-s3-website-ng)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Configure an AWS S3 bucket to function as a website easily from a command-line interface.
|
|
6
|
+
|
|
7
|
+
> [!NOTE]
|
|
8
|
+
> This project is a fork from Lauri Lehmijoki's [configure-s3-website](https://github.com/laurilehmijoki/configure-s3-website). The upstream project [is not actively maintained](https://github.com/laurilehmijoki/configure-s3-website/issues/26#issuecomment-1586534812).
|
|
9
|
+
>
|
|
10
|
+
> The gem has been renamed to `configure-s3-website-ng` to allow uploading to [RubyGems](https://rubygems.org/gems/configure-s3-website-ng) without collisions.
|
|
11
|
+
>
|
|
12
|
+
> Changes in this fork ([full changelog](changelog.md)):
|
|
13
|
+
>
|
|
14
|
+
> - 3.1.0: Switch to the modular AWS SDK v3 gems and add support for Ruby 4.0
|
|
15
|
+
> - 3.0.0: Delete the S3 bucket's public access block before applying the public-read bucket policy. Required since April 2023 due to a change in the default configuration in S3 buckets.
|
|
16
|
+
>
|
|
17
|
+
> The original README follows.
|
|
6
18
|
|
|
7
|
-
|
|
19
|
+
----
|
|
8
20
|
|
|
9
21
|
# Configure-s3-website
|
|
10
22
|
|
|
23
|
+
<!--
|
|
11
24
|
[](http://travis-ci.org/laurilehmijoki/configure-s3-website)
|
|
12
25
|
[](http://badge.fury.io/rb/configure-s3-website)
|
|
26
|
+
-->
|
|
13
27
|
|
|
14
28
|
Configure an AWS S3 bucket to function as a website easily from a command-line interface.
|
|
15
29
|
|
data/changelog.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This project uses [Semantic Versioning](http://semver.org).
|
|
4
4
|
|
|
5
|
+
## 3.1.0
|
|
6
|
+
|
|
7
|
+
* Replace the `aws-sdk` v2 gem with the modular AWS SDK v3 gems (`aws-sdk-s3`
|
|
8
|
+
and `aws-sdk-cloudfront`)
|
|
9
|
+
* Add support for Ruby 4.0
|
|
10
|
+
|
|
11
|
+
## 3.0.0
|
|
12
|
+
|
|
13
|
+
* First release of the fork, published as `configure-s3-website-ng`
|
|
14
|
+
* Delete the bucket's public access block before applying the public-read
|
|
15
|
+
bucket policy. Required since April 2023 due to a change in the default
|
|
16
|
+
configuration in S3 buckets.
|
|
17
|
+
|
|
5
18
|
## 2.3.0
|
|
6
19
|
|
|
7
20
|
* Add support for default credentials providers
|
|
@@ -10,11 +10,12 @@ spec = Gem::Specification.new do |s|
|
|
|
10
10
|
s.bindir = 'bin'
|
|
11
11
|
|
|
12
12
|
s.add_dependency 'deep_merge', '~> 1.0.0'
|
|
13
|
-
s.add_dependency 'aws-sdk', '~>
|
|
13
|
+
s.add_dependency 'aws-sdk-s3', '~> 1'
|
|
14
|
+
s.add_dependency 'aws-sdk-cloudfront', '~> 1'
|
|
14
15
|
|
|
15
16
|
s.add_development_dependency 'rspec', '~> 3'
|
|
16
17
|
s.add_development_dependency 'rspec-expectations', '~> 3'
|
|
17
|
-
s.add_development_dependency 'rake', '~>
|
|
18
|
+
s.add_development_dependency 'rake', '~> 13'
|
|
18
19
|
|
|
19
20
|
s.files = `git ls-files`.split("\n")
|
|
20
21
|
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require "aws-sdk"
|
|
1
|
+
require "aws-sdk-cloudfront"
|
|
2
2
|
require 'deep_merge'
|
|
3
3
|
|
|
4
4
|
module ConfigureS3Website
|
|
@@ -149,9 +149,7 @@ module ConfigureS3Website
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
def self.padding(amount)
|
|
152
|
-
|
|
153
|
-
amount.times { padding << " " }
|
|
154
|
-
padding
|
|
152
|
+
' ' * amount
|
|
155
153
|
end
|
|
156
154
|
|
|
157
155
|
def self.deep_symbolize(value)
|
|
@@ -39,7 +39,7 @@ describe ConfigureS3Website::CloudFrontClient do
|
|
|
39
39
|
}
|
|
40
40
|
})
|
|
41
41
|
allow(get_distribution_response).to receive_message_chain(:distribution, :distribution_config, :caller_reference) { 'ref' }
|
|
42
|
-
allow(cloudfront_client).to receive(:get_distribution).with(:id => 'AEEEE').and_return(get_distribution_response)
|
|
42
|
+
allow(cloudfront_client).to receive(:get_distribution).with({:id => 'AEEEE'}).and_return(get_distribution_response)
|
|
43
43
|
cloudfront_client
|
|
44
44
|
}
|
|
45
45
|
before {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: configure-s3-website-ng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ingelabs
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: deep_merge
|
|
@@ -26,19 +26,33 @@ dependencies:
|
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: 1.0.0
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
|
-
name: aws-sdk
|
|
29
|
+
name: aws-sdk-s3
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
32
|
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '
|
|
34
|
+
version: '1'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '
|
|
41
|
+
version: '1'
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: aws-sdk-cloudfront
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - "~>"
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '1'
|
|
49
|
+
type: :runtime
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - "~>"
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '1'
|
|
42
56
|
- !ruby/object:Gem::Dependency
|
|
43
57
|
name: rspec
|
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -73,14 +87,14 @@ dependencies:
|
|
|
73
87
|
requirements:
|
|
74
88
|
- - "~>"
|
|
75
89
|
- !ruby/object:Gem::Version
|
|
76
|
-
version:
|
|
90
|
+
version: '13'
|
|
77
91
|
type: :development
|
|
78
92
|
prerelease: false
|
|
79
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
94
|
requirements:
|
|
81
95
|
- - "~>"
|
|
82
96
|
- !ruby/object:Gem::Version
|
|
83
|
-
version:
|
|
97
|
+
version: '13'
|
|
84
98
|
description:
|
|
85
99
|
email: info@ingelabs.com
|
|
86
100
|
executables:
|
|
@@ -88,8 +102,8 @@ executables:
|
|
|
88
102
|
extensions: []
|
|
89
103
|
extra_rdoc_files: []
|
|
90
104
|
files:
|
|
105
|
+
- ".github/workflows/build.yml"
|
|
91
106
|
- ".gitignore"
|
|
92
|
-
- ".travis.yml"
|
|
93
107
|
- Gemfile
|
|
94
108
|
- LICENSE
|
|
95
109
|
- README.md
|