s3_zipper 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ca5799b444022886fe0fde36a96089889a94e1bb14786863af324b6c1cdd9706
4
+ data.tar.gz: 6663551cd431d8b2a81aed43afc22d309c21171eecdb9b10c209b6c19bb0d854
5
+ SHA512:
6
+ metadata.gz: 3fb1c262daaa22a426d28471d5bc5e71c38a72671b5c811246a729e0ff8294c09da4b645e48c7060aa7f0a577617321bb6f069ab87d785676c46ff86c033f423
7
+ data.tar.gz: be5c2da1e3223029089be6139389a142d36d71d2f755d303411351ccaaec696ddacb0673e17f7a0ef363add24913aa012692b2376d788e12e15a9ed7da64272b
data/.env.test ADDED
@@ -0,0 +1,5 @@
1
+ MOL_TRANSPORTER=redis://localhost
2
+ # AWS KEYS
3
+ AWS_ACCESS_KEY_ID=test-key-id
4
+ AWS_SECRET_ACCESS_KEY=test-secret-key
5
+ AWS_REGION='us-west-2'
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.bundle
10
+ *.so
11
+ *.o
12
+ *.a
13
+ mkmf.log
14
+
15
+ # rspec failure tracking
16
+ .rspec_status
17
+ /.idea/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.5
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.0
7
+ before_install: gem install bundler -v 2.0.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at komarnickolas@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in s3_zipper.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,70 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ s3_zipper (0.1.0)
5
+ aws-sdk-s3 (~> 1)
6
+ ruby-progressbar (~> 1)
7
+ rubyzip (>= 1.0.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ aws-eventstream (1.0.3)
13
+ aws-partitions (1.155.0)
14
+ aws-sdk-core (3.48.6)
15
+ aws-eventstream (~> 1.0, >= 1.0.2)
16
+ aws-partitions (~> 1.0)
17
+ aws-sigv4 (~> 1.1)
18
+ jmespath (~> 1.0)
19
+ aws-sdk-kms (1.17.0)
20
+ aws-sdk-core (~> 3, >= 3.48.2)
21
+ aws-sigv4 (~> 1.1)
22
+ aws-sdk-s3 (1.36.1)
23
+ aws-sdk-core (~> 3, >= 3.48.2)
24
+ aws-sdk-kms (~> 1)
25
+ aws-sigv4 (~> 1.0)
26
+ aws-sigv4 (1.1.0)
27
+ aws-eventstream (~> 1.0, >= 1.0.2)
28
+ diff-lcs (1.3)
29
+ docile (1.3.1)
30
+ jmespath (1.4.0)
31
+ json (2.2.0)
32
+ rake (10.5.0)
33
+ rake-compiler (1.0.7)
34
+ rake
35
+ rspec (3.8.0)
36
+ rspec-core (~> 3.8.0)
37
+ rspec-expectations (~> 3.8.0)
38
+ rspec-mocks (~> 3.8.0)
39
+ rspec-core (3.8.0)
40
+ rspec-support (~> 3.8.0)
41
+ rspec-expectations (3.8.3)
42
+ diff-lcs (>= 1.2.0, < 2.0)
43
+ rspec-support (~> 3.8.0)
44
+ rspec-mocks (3.8.0)
45
+ diff-lcs (>= 1.2.0, < 2.0)
46
+ rspec-support (~> 3.8.0)
47
+ rspec-support (3.8.0)
48
+ ruby-progressbar (1.10.0)
49
+ rubyzip (1.2.2)
50
+ simplecov (0.16.1)
51
+ docile (~> 1.1)
52
+ json (>= 1.8, < 3)
53
+ simplecov-html (~> 0.10.0)
54
+ simplecov-html (0.10.2)
55
+ thor (0.20.3)
56
+
57
+ PLATFORMS
58
+ ruby
59
+
60
+ DEPENDENCIES
61
+ bundler (~> 2.0)
62
+ rake (~> 10.0)
63
+ rake-compiler
64
+ rspec (~> 3.0)
65
+ s3_zipper!
66
+ simplecov
67
+ thor
68
+
69
+ BUNDLED WITH
70
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Nickolas Komarnitsky
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,52 @@
1
+ # S3Zipper
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/s3_zipper`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 's3_zipper'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install s3_zipper
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ zipper = S3Zipper.new(ENV['AWS_BUCKET'])
27
+ files = ["documents/files/790/306/985/original/background-10.jpg", "documents/files/790/307/076/original/background-10.jpg", "documents/files/790/307/029/original/background-10.jpg", "documents/files/790/307/031/original/background-11.jpg", "documents/files/790/307/077/original/background-11.jpg", "documents/files/790/306/983/original/background-11.jpg", "documents/files/790/306/986/original/background-12.jpg", "documents/files/790/307/078/original/background-12.jpg", "documents/files/790/307/032/original/background-12.jpg", "documents/files/790/306/987/original/background-13.jpg"]
28
+ zipper.zip_files(files)
29
+ {
30
+ :filename=>"3dc29e9ba0a069eb5d0783f07b12e1b3.zip",
31
+ :zipped=>["documents/files/790/306/985/original/background-10.jpg", "documents/files/790/307/076/original/background-10.jpg", "documents/files/790/307/029/original/background-10.jpg", "documents/files/790/307/031/original/background-11.jpg", "documents/files/790/307/077/original/background-11.jpg", "documents/files/790/306/983/original/background-11.jpg", "documents/files/790/306/986/original/background-12.jpg", "documents/files/790/307/078/original/background-12.jpg", "documents/files/790/307/032/original/background-12.jpg", "documents/files/790/306/987/original/background-13.jpg"],
32
+ :failed=>[]
33
+ }
34
+ ```
35
+
36
+ ## Development
37
+
38
+ 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.
39
+
40
+ 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).
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/s3_zipper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
49
+
50
+ ## Code of Conduct
51
+
52
+ Everyone interacting in the S3Zipper project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/s3_zipper/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ require "rake/extensiontask"
7
+
8
+ task :build => :compile
9
+
10
+ Rake::ExtensionTask.new("s3_zipper") do |ext|
11
+ ext.lib_dir = "lib/s3_zipper"
12
+ end
13
+
14
+ task :default => [:clobber, :compile, :spec]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "s3_zipper"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/s3_zipper ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "s3_zipper"
4
+ require 'thor'
5
+ require 'awesome_print'
6
+ class CLI < Thor
7
+ desc 'zip_to_ FILES', 'zip files from s3'
8
+ options filename: :string
9
+
10
+ def zip(*files)
11
+ S3Zipper.new(ENV['AWS_BUCKET']).zip_files(files)
12
+ end
13
+ end
14
+ CLI.start(ARGV)
@@ -0,0 +1,57 @@
1
+ require 'aws-sdk-s3'
2
+
3
+ class S3Zipper
4
+ class Client
5
+ attr_accessor :bucket_name, :s3, :options, :pb
6
+
7
+ def initialize bucket_name, options = {}
8
+ @bucket_name = bucket_name
9
+ @s3 = options[:client] || ::Aws::S3::Client.new
10
+ @options = options
11
+ @pb = Progress.new(enabled: options[:progress], format: "%e %c/%C %t", total: nil, length: 80, autofinish: false)
12
+ end
13
+
14
+ def download_keys keys
15
+ pb.reset(total: keys.count, title: 'Downloading Keys')
16
+ keys = keys.map do |key|
17
+ pb.increment
18
+ pb.update 'title', "Downloading Key: #{key}"
19
+ temp = download_to_tempfile(key, cleanup: false)
20
+ [key, temp]
21
+ end
22
+ keys = keys.partition { |_, temp| temp.nil? }
23
+ pb.finish(title: 'Downloaded Keys', format: '%e %c/%C %t')
24
+ keys
25
+ end
26
+
27
+ def download key
28
+ s3.get_object bucket: bucket_name, key: key
29
+ end
30
+
31
+ def download_to_file key, target
32
+ begin
33
+ s3.get_object({ bucket: bucket_name, key: key }, target: target)
34
+ rescue StandardError => e
35
+ return nil
36
+ end
37
+ target
38
+ end
39
+
40
+ def download_to_tempfile key, cleanup: true
41
+ temp = Tempfile.new
42
+ temp.binmode
43
+ temp = download_to_file key, temp
44
+ return if temp.nil?
45
+ yield(temp) if block_given?
46
+ temp
47
+ ensure
48
+ temp&.unlink if cleanup
49
+ end
50
+
51
+ def upload local_path, repo_path
52
+ pb = Progress.new(enabled: options[:progress], format: '%t', title: "Uploading '#{local_path}' to '#{repo_path}'", length: 120)
53
+ s3.put_object(bucket: bucket_name, key: repo_path, body: File.open(local_path).read)
54
+ pb.finish(title: "Uploaded '#{local_path}' to '#{repo_path}'")
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,51 @@
1
+ require 'ruby-progressbar'
2
+ class Progress
3
+ def initialize options = {}
4
+ return unless options[:enabled] || true
5
+ @options = options
6
+ @title = options[:title]
7
+ @total = options[:total]
8
+ @format = options[:format]
9
+ @progress_bar = ProgressBar.create(@options)
10
+ end
11
+
12
+ def reset(title: nil, total: nil, format: nil)
13
+ @progress_bar.progress = 0
14
+ @progress_bar.title = title
15
+ @progress_bar.total = total
16
+ @progress_bar.format = format
17
+ refresh
18
+ end
19
+
20
+ def refresh
21
+ @progress_bar.refresh
22
+ end
23
+
24
+ def progress
25
+ return unless @progress_bar
26
+ @progress_bar.progress
27
+ end
28
+
29
+ def increment
30
+ return unless @progress_bar
31
+ @progress_bar.increment
32
+ end
33
+
34
+ def update attr, value
35
+ return unless @progress_bar
36
+ @progress_bar.send("#{attr}=", value)
37
+ @progress_bar.refresh
38
+ end
39
+
40
+ def finish title: @title, format: @format
41
+ return unless @progress_bar
42
+ @progress_bar.title = title
43
+ @progress_bar.format = format
44
+ @progress_bar.refresh
45
+ @progress_bar.finish
46
+ end
47
+
48
+ def disable
49
+ @progress_bar = nil
50
+ end
51
+ end
@@ -0,0 +1,3 @@
1
+ class S3Zipper
2
+ VERSION = "1.0.0"
3
+ end
data/lib/s3_zipper.rb ADDED
@@ -0,0 +1,62 @@
1
+ require "s3_zipper/version"
2
+ require 's3_zipper/progress'
3
+ require "s3_zipper/client"
4
+ require "zip"
5
+
6
+ class S3Zipper
7
+ attr_accessor :client, :options
8
+
9
+ # @param [String] bucket - bucket that files exist in
10
+ # @param [Hash] options - options for zipper
11
+ # @option options [Boolean] :progress - toggles progress tracking
12
+ # @return [S3Zipper]
13
+ def initialize bucket, options = {}
14
+ @options = options
15
+ @client = Client.new(bucket, options)
16
+ end
17
+
18
+ def zip_to_local_file(keys, file: SecureRandom.hex)
19
+ file = file.is_a?(File) ? file : File.open("#{file}.zip", 'w')
20
+ zip keys, file.path do |progress|
21
+ yield progress if block_given?
22
+ end
23
+ end
24
+
25
+ def zip_to_tempfile(keys, filename: SecureRandom.hex)
26
+ zipfile = Tempfile.new([filename, '.zip'])
27
+ result = zip(keys, zipfile.path)
28
+ yield(zipfile, result) if block_given?
29
+ zipfile.unlink
30
+ result
31
+ end
32
+
33
+ def zip_to_s3 keys, filename: SecureRandom.hex, path: nil
34
+ zip_to_tempfile(keys, filename: filename) do |zipfile, result|
35
+ result[:filename] = "#{path ? "#{path}/" : ''}#{filename}.zip"
36
+ client.upload(zipfile.path, result[:filename])
37
+ end
38
+ end
39
+
40
+ private
41
+
42
+ def zip(keys, path)
43
+ failed, successful = client.download_keys keys
44
+ Zip::File.open(path, Zip::File::CREATE) do |zipfile|
45
+ pb = Progress.new(enabled: options[:progress], format: "%e %c/%C %t", total: keys.count, length: 80, autofinish: false)
46
+ successful.each do |key, file|
47
+ pb.increment
48
+ pb.update 'title', "Adding #{key} to #{path}"
49
+ next if file.nil?
50
+ yield(pb.progress) if block_given?
51
+ zipfile.add(key, file.path)
52
+ end
53
+ pb.finish(title: "Zipped files to #{path}")
54
+ end
55
+ successful.each { |_, temp| temp.unlink }
56
+ {
57
+ filename: path,
58
+ zipped: successful.map(&:first),
59
+ failed: failed.map(&:first)
60
+ }
61
+ end
62
+ end
data/s3_zipper.gemspec ADDED
@@ -0,0 +1,46 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "s3_zipper/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "s3_zipper"
7
+ spec.version = S3Zipper::VERSION
8
+ spec.authors = ["Nickolas Komarnitsky"]
9
+ spec.email = ["komarnickolas@gmail.com"]
10
+
11
+ spec.summary = %q{Gem for zipping files in s3}
12
+ spec.description = %q{}
13
+ spec.homepage = "https://github.com/Jypotheren734x/s3zipper"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = "https://github.com/Jypotheren734x/s3zipper"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_development_dependency "bundler", "~> 2.0"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rake-compiler"
40
+ spec.add_development_dependency "rspec", "~> 3.0"
41
+ spec.add_development_dependency "simplecov"
42
+ spec.add_development_dependency "thor"
43
+ spec.add_dependency 'aws-sdk-s3', '~> 1'
44
+ spec.add_dependency 'rubyzip', '>= 1.0.0'
45
+ spec.add_dependency 'ruby-progressbar', '~> 1'
46
+ end
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: s3_zipper
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nickolas Komarnitsky
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake-compiler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
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: aws-sdk-s3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubyzip
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 1.0.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: ruby-progressbar
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1'
139
+ description: ''
140
+ email:
141
+ - komarnickolas@gmail.com
142
+ executables:
143
+ - s3_zipper
144
+ extensions: []
145
+ extra_rdoc_files: []
146
+ files:
147
+ - ".env.test"
148
+ - ".gitignore"
149
+ - ".rspec"
150
+ - ".ruby-version"
151
+ - ".travis.yml"
152
+ - CODE_OF_CONDUCT.md
153
+ - Gemfile
154
+ - Gemfile.lock
155
+ - LICENSE.txt
156
+ - README.md
157
+ - Rakefile
158
+ - bin/console
159
+ - bin/setup
160
+ - exe/s3_zipper
161
+ - lib/s3_zipper.rb
162
+ - lib/s3_zipper/client.rb
163
+ - lib/s3_zipper/progress.rb
164
+ - lib/s3_zipper/version.rb
165
+ - s3_zipper.gemspec
166
+ homepage: https://github.com/Jypotheren734x/s3zipper
167
+ licenses:
168
+ - MIT
169
+ metadata:
170
+ allowed_push_host: https://rubygems.org
171
+ homepage_uri: https://github.com/Jypotheren734x/s3zipper
172
+ source_code_uri: https://github.com/Jypotheren734x/s3zipper
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.7.6.2
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: Gem for zipping files in s3
193
+ test_files: []