s3-website-deploy 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +46 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +10 -0
- data/bin/console +7 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/setup +8 -0
- data/exe/s3-website-deploy +5 -0
- data/lib/s3-website-deploy.rb +1 -0
- data/lib/s3_website_deploy.rb +4 -0
- data/lib/s3_website_deploy/cache_policy.rb +29 -0
- data/lib/s3_website_deploy/cli.rb +34 -0
- data/lib/s3_website_deploy/client.rb +122 -0
- data/lib/s3_website_deploy/configuration.rb +14 -0
- data/lib/s3_website_deploy/version.rb +3 -0
- data/s3-website-deploy.gemspec +33 -0
- metadata +178 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ce12647eba2163ed2673a99eecdb8e1a7b564571
|
4
|
+
data.tar.gz: bcdbc3e1f9142971df66774fc550b484f7ec2267
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a42e6fd22c79d2c3280af19d7c7ec09c9b14bab54b30d6b7905b5e22dd7c86c314120783f0f994bf90fa53659fa67d3dc1b75075dbe5dc5e5a596fda9391981
|
7
|
+
data.tar.gz: fb8b198737940737ab3e9e5908afa2f1d6ffc3d9d24474c0922b16a4673cc06840f9fd27a3c67b2e85fdf4d363770d2827c22b1e26438aa78160a86a13114406
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
docker:
|
9
|
+
- image: circleci/ruby:2.4
|
10
|
+
|
11
|
+
working_directory: ~/repo
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- checkout
|
15
|
+
|
16
|
+
- restore_cache:
|
17
|
+
keys:
|
18
|
+
- v1-dependencies-{{ checksum "Gemfile" }}
|
19
|
+
|
20
|
+
- run:
|
21
|
+
name: install dependencies
|
22
|
+
command: |
|
23
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
24
|
+
|
25
|
+
- save_cache:
|
26
|
+
paths:
|
27
|
+
- ./vendor/bundle
|
28
|
+
key: v1-dependencies-{{ checksum "Gemfile" }}
|
29
|
+
|
30
|
+
- run:
|
31
|
+
name: run tests
|
32
|
+
command: |
|
33
|
+
mkdir /tmp/test-results
|
34
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
35
|
+
|
36
|
+
bundle exec rspec --format progress \
|
37
|
+
--format RspecJunitFormatter \
|
38
|
+
--out /tmp/test-results/rspec.xml \
|
39
|
+
--format progress \
|
40
|
+
$TEST_FILES
|
41
|
+
|
42
|
+
- store_test_results:
|
43
|
+
path: /tmp/test-results
|
44
|
+
- store_artifacts:
|
45
|
+
path: /tmp/test-results
|
46
|
+
destination: test-results
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 hogelog
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# S3WebsiteDeploy [![CircleCI](https://circleci.com/gh/hogelog/s3-website-deploy.svg?style=svg)](https://circleci.com/gh/hogelog/s3-website-deploy)
|
2
|
+
|
3
|
+
s3-website-deploy is deploy tool for AWS S3 Website.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 's3-website-deploy'
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
```console
|
16
|
+
$ bundle exec s3-website-deploy --bucket some-bucket --source build/ --region ap-northeast-1
|
17
|
+
I, [2018-05-22T00:18:01.580281 #37788] INFO -- : Start deploying build/ -> s3://some-bucket/
|
18
|
+
I, [2018-05-22T00:18:02.841962 #37788] INFO -- : Creating: favicon.ico
|
19
|
+
I, [2018-05-22T00:18:02.842058 #37788] INFO -- : Creating: index.html
|
20
|
+
I, [2018-05-22T00:18:02.842105 #37788] INFO -- : Finish deploying build/ -> s3://some-bucket/
|
21
|
+
```
|
22
|
+
|
23
|
+
https://github.com/hogelog/s3-website-deploy/blob/master/spec/dummy/deploy.yml is example of deploy config.
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/hogelog/s3-website-deploy.
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/rspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rspec' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
require "pathname"
|
12
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
13
|
+
Pathname.new(__FILE__).realpath)
|
14
|
+
|
15
|
+
bundle_binstub = File.expand_path("../bundle", __FILE__)
|
16
|
+
|
17
|
+
if File.file?(bundle_binstub)
|
18
|
+
if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
|
19
|
+
load(bundle_binstub)
|
20
|
+
else
|
21
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
22
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
require "rubygems"
|
27
|
+
require "bundler/setup"
|
28
|
+
|
29
|
+
load Gem.bin_path("rspec-core", "rspec")
|
data/bin/setup
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "s3_website_deploy"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module S3WebsiteDeploy
|
2
|
+
class CachePolicy
|
3
|
+
attr_reader :config, :policies
|
4
|
+
|
5
|
+
class Policy
|
6
|
+
attr_reader :pattern, :regexp, :value
|
7
|
+
|
8
|
+
def initialize(pattern, value)
|
9
|
+
@pattern = pattern
|
10
|
+
@regexp = Regexp.compile("\\A#{ Regexp.escape(pattern).gsub("\\*", ".*") }\\z")
|
11
|
+
@value = value
|
12
|
+
end
|
13
|
+
|
14
|
+
def match?(path)
|
15
|
+
regexp.match?(path)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def initialize(config)
|
20
|
+
@policies = config.map {|pattern, value| Policy.new(pattern, value) }
|
21
|
+
end
|
22
|
+
|
23
|
+
def cache_control(path)
|
24
|
+
policy = @policies.find{|policy| policy.match?(path) }
|
25
|
+
return unless policy
|
26
|
+
policy.value["cache_control"]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "optparse"
|
2
|
+
require "yaml"
|
3
|
+
|
4
|
+
module S3WebsiteDeploy
|
5
|
+
class CLI
|
6
|
+
def self.run(argv)
|
7
|
+
config = parse_argv(argv)
|
8
|
+
S3WebsiteDeploy::Client.new(config).run
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.parse_argv(argv)
|
12
|
+
opts = {}
|
13
|
+
parser = OptionParser.new
|
14
|
+
parser.on("-c [CONFIG]", "--config", "config YAML") {|v| opts["config"] = v }
|
15
|
+
parser.on("-s [SOURCE]", "--source", "source directory") {|v| opts["source"] = v }
|
16
|
+
parser.on("-r [REGION]", "--region", "target region") {|v| opts["region"] = v }
|
17
|
+
parser.on("-b [BUCKET]", "--bucket", "target bucket") {|v| opts["bucket"] = v }
|
18
|
+
parser.on("-p [PREFIX]", "--prefix", "target prefix") {|v| opts["prefix"] = v }
|
19
|
+
parser.on("--cache-policy POLICY", "cache policy") {|v| opts["cache-policy"] = JSON.parse(v) if v }
|
20
|
+
parser.on("-n", "--dry-run", "dry run") {|v| opts["dryrun"] = v }
|
21
|
+
parser.parse(argv)
|
22
|
+
|
23
|
+
file_opts = opts["config"] ? YAML.load_file(opts["config"]) : {}
|
24
|
+
source = (opts["source"] || file_opts["source"]) or raise ArgumentError, "--source is required"
|
25
|
+
region = (opts["region"] || file_opts["region"] || ENV["AWS_DEFAULT_REGION"]) or raise ArgumentError, "--region is required"
|
26
|
+
bucket = (opts["bucket"] || file_opts["bucket"]) or raise ArgumentError, "--bucket is required"
|
27
|
+
prefix = opts["prefix"] || file_opts["prefix"] || ""
|
28
|
+
cache_policy = opts["cache-policy"] || file_opts["cache_policy"] || {}
|
29
|
+
dryrun = opts["dryrun"]
|
30
|
+
|
31
|
+
S3WebsiteDeploy::Configuration.new(source: source, region: region, bucket: bucket, prefix: prefix, cache_policy: cache_policy, dryrun: dryrun)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,122 @@
|
|
1
|
+
require "logger"
|
2
|
+
require "pathname"
|
3
|
+
|
4
|
+
require "aws-sdk-s3"
|
5
|
+
require "mini_mime"
|
6
|
+
|
7
|
+
module S3WebsiteDeploy
|
8
|
+
class Client
|
9
|
+
LocalFile = Struct.new(:path, :local_path, :content_md5)
|
10
|
+
S3File = Struct.new(:path, :etag)
|
11
|
+
|
12
|
+
def initialize(config, logger: Logger.new(STDOUT))
|
13
|
+
@config = config
|
14
|
+
@cache_policy = config.cache_policy
|
15
|
+
@logger = logger
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
@logger.info("---- DRY RUN ----") if @config.dryrun
|
20
|
+
@logger.info("Start deploying #{@config.source} -> s3://#{@config.bucket}/#{@config.prefix}")
|
21
|
+
file_stats = fetch_file_stats
|
22
|
+
deploy(file_stats)
|
23
|
+
@logger.info("Finish deploying #{@config.source} -> s3://#{@config.bucket}/#{@config.prefix}")
|
24
|
+
end
|
25
|
+
|
26
|
+
def fetch_file_stats
|
27
|
+
stats = {}
|
28
|
+
|
29
|
+
source_files.each do |file|
|
30
|
+
stats[file.path] = { local: file }
|
31
|
+
end
|
32
|
+
remote_files.each do |file|
|
33
|
+
stats[file.path] ||= { }
|
34
|
+
stats[file.path][:remote] = file
|
35
|
+
end
|
36
|
+
stats
|
37
|
+
end
|
38
|
+
|
39
|
+
def deploy(file_stats)
|
40
|
+
file_stats.each do |path, stat|
|
41
|
+
local_file = stat[:local]
|
42
|
+
remote_file = stat[:remote]
|
43
|
+
if local_file
|
44
|
+
if !remote_file
|
45
|
+
@logger.info("Creating: #{local_file.path}")
|
46
|
+
deploy_local_file(local_file)
|
47
|
+
elsif local_file.content_md5 != remote_file.etag
|
48
|
+
@logger.info("Updating: #{local_file.path}")
|
49
|
+
deploy_local_file(local_file)
|
50
|
+
else
|
51
|
+
@logger.info("Skip: #{local_file.path}")
|
52
|
+
end
|
53
|
+
elsif remote_file
|
54
|
+
@logger.info("Deleting: #{remote_file.path}")
|
55
|
+
delete_remote_file(remote_file)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def deploy_local_file(local_file)
|
61
|
+
return if @config.dryrun
|
62
|
+
key = "#{@config.prefix}#{local_file.path}"
|
63
|
+
content_type = MiniMime.lookup_by_filename(local_file.path).content_type
|
64
|
+
File.open(local_file.local_path, "rb") do |file|
|
65
|
+
s3.put_object(
|
66
|
+
body: file,
|
67
|
+
bucket: @config.bucket,
|
68
|
+
key: key,
|
69
|
+
content_type: content_type,
|
70
|
+
cache_control: @cache_policy.cache_control(local_file.path),
|
71
|
+
)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def delete_remote_file(remote_file)
|
76
|
+
return if @config.dryrun
|
77
|
+
key = "#{@config.prefix}#{remote_file.path}"
|
78
|
+
s3.delete_object(
|
79
|
+
bucket: @config.bucket,
|
80
|
+
key: key,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
|
84
|
+
def source_files
|
85
|
+
source_directory = Pathname.new(@config.source)
|
86
|
+
files = []
|
87
|
+
Pathname.glob(source_directory.join("**", "*").to_s).map do |pathname|
|
88
|
+
next if pathname.directory?
|
89
|
+
path = pathname.to_s
|
90
|
+
content_md5 = Digest::MD5.hexdigest(File.binread(path))
|
91
|
+
files << LocalFile.new(pathname.relative_path_from(source_directory).to_s, path, content_md5)
|
92
|
+
end
|
93
|
+
files
|
94
|
+
end
|
95
|
+
|
96
|
+
def remote_files
|
97
|
+
files = []
|
98
|
+
prefix_pathname = Pathname.new(@config.prefix)
|
99
|
+
next_token = nil
|
100
|
+
loop do
|
101
|
+
res = s3.list_objects_v2(
|
102
|
+
bucket: @config.bucket,
|
103
|
+
prefix: @config.prefix,
|
104
|
+
continuation_token: next_token,
|
105
|
+
)
|
106
|
+
res.contents.each do |content|
|
107
|
+
pathname = Pathname.new(content.key)
|
108
|
+
files << S3File.new(pathname.relative_path_from(prefix_pathname).to_s, JSON.parse(content.etag))
|
109
|
+
end
|
110
|
+
next_token = res.next_continuation_token
|
111
|
+
break unless next_token
|
112
|
+
end
|
113
|
+
files
|
114
|
+
end
|
115
|
+
|
116
|
+
private
|
117
|
+
|
118
|
+
def s3
|
119
|
+
@s3 ||= Aws::S3::Client.new(region: @config.region)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module S3WebsiteDeploy
|
2
|
+
class Configuration
|
3
|
+
attr_reader :source, :region, :bucket, :prefix, :cache_policy, :dryrun
|
4
|
+
|
5
|
+
def initialize(source:, region:, bucket:, prefix:, cache_policy:, dryrun:)
|
6
|
+
@source = source
|
7
|
+
@region = region
|
8
|
+
@bucket = bucket
|
9
|
+
@prefix = prefix
|
10
|
+
@cache_policy = S3WebsiteDeploy::CachePolicy.new(cache_policy)
|
11
|
+
@dryrun = dryrun
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "s3_website_deploy/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "s3-website-deploy"
|
8
|
+
spec.version = S3WebsiteDeploy::VERSION
|
9
|
+
spec.authors = ["hogelog"]
|
10
|
+
spec.email = ["konbu.komuro@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{S3 Website deploy tool.}
|
13
|
+
spec.description = %q{S3 Website deploy tool.}
|
14
|
+
spec.homepage = "https://github.com/hogelog/s3-website-deploy"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "aws-sdk-s3", "< 2"
|
25
|
+
spec.add_dependency "mini_mime"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
spec.add_development_dependency "rspec-mocks"
|
31
|
+
spec.add_development_dependency "rspec_junit_formatter"
|
32
|
+
spec.add_development_dependency "pry"
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: s3-website-deploy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- hogelog
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-s3
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "<"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "<"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mini_mime
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.16'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.16'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-mocks
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec_junit_formatter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: S3 Website deploy tool.
|
126
|
+
email:
|
127
|
+
- konbu.komuro@gmail.com
|
128
|
+
executables:
|
129
|
+
- s3-website-deploy
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".circleci/config.yml"
|
134
|
+
- ".gitignore"
|
135
|
+
- ".rspec"
|
136
|
+
- ".travis.yml"
|
137
|
+
- Gemfile
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- bin/console
|
142
|
+
- bin/rake
|
143
|
+
- bin/rspec
|
144
|
+
- bin/setup
|
145
|
+
- exe/s3-website-deploy
|
146
|
+
- lib/s3-website-deploy.rb
|
147
|
+
- lib/s3_website_deploy.rb
|
148
|
+
- lib/s3_website_deploy/cache_policy.rb
|
149
|
+
- lib/s3_website_deploy/cli.rb
|
150
|
+
- lib/s3_website_deploy/client.rb
|
151
|
+
- lib/s3_website_deploy/configuration.rb
|
152
|
+
- lib/s3_website_deploy/version.rb
|
153
|
+
- s3-website-deploy.gemspec
|
154
|
+
homepage: https://github.com/hogelog/s3-website-deploy
|
155
|
+
licenses:
|
156
|
+
- MIT
|
157
|
+
metadata: {}
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options: []
|
160
|
+
require_paths:
|
161
|
+
- lib
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0'
|
172
|
+
requirements: []
|
173
|
+
rubyforge_project:
|
174
|
+
rubygems_version: 2.6.14.1
|
175
|
+
signing_key:
|
176
|
+
specification_version: 4
|
177
|
+
summary: S3 Website deploy tool.
|
178
|
+
test_files: []
|