rails_dump2_s3 0.0.7 → 0.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de13108e4e36eea03af7467dd79c15bd0fbb08d4
4
- data.tar.gz: a173fcac4c65de3a1daba07d9fd1c9892513fd7c
3
+ metadata.gz: ed02eb75dd997dde0e1b40f1c91287bb6bf41887
4
+ data.tar.gz: 3e3290e4d14ff8d11e611c3cf7284f1c6ca1071c
5
5
  SHA512:
6
- metadata.gz: e881649011e306d01f28a11294467f44e5f7c728887c21e5051b1476b8210c571d1a4333b6d290015390d6a6ebe26daae477f2ebe2a0dd206fa8d51f1247bb37
7
- data.tar.gz: a7462bb4fbbc26017a940e95de6fb72833ab1bffd7c61b6bf4032b105ef007f882470bc9c8954badfe83ff32930200a68d6caf46a50477dd3586e9e8349e8029
6
+ metadata.gz: c3623a81f27663d6e01199bad8c462be16c001fd99e3c06b4339081615753f9544b206ff6f09a8fad7868810ba9145c33c8dcf9d67a14003716ba468dfd64db8
7
+ data.tar.gz: 8f2873aac3a60717722d87b54d17db21d5af5c5a01bd013b5856f63d8868e768646d3b461da5d5648268e3cd76bb658696b85064956ee657d8f879641657a807
@@ -1,3 +1,3 @@
1
1
  module RailsDump2S3
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -27,8 +27,8 @@ namespace :rails_dump2_s3 do
27
27
  task :dump => :environment do
28
28
  zipname = "base-#{Rails.env}"
29
29
 
30
- system("bin/rake db:data:dump_dir")
31
- system("zip db/#{zipname}.zip db/base/*")
30
+ system("bin/rake db:data:dump_dir dir=#{zipname}")
31
+ system("zip db/#{zipname}.zip db/#{zipname}/*")
32
32
  s3_object.objects[Time.now.strftime("base-#{Rails.env}-%Y-%m-%d-%H%M%S.zip")].write(file: "db/#{zipname}.zip")
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_dump2_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuto Ogi