rails-archiver 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-archiver/transport/s3.rb +2 -1
- data/rails-archiver.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 631c54ba5ee068f6e555a6e5402a6543af7b117c
|
4
|
+
data.tar.gz: 4d194e22a65b774c3dcce89fe176a9967b834a60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171728f0a785320566a37c212e3758b6de78c9d2d3304e7b477b4f7b383d182df87152c2c1ff19aae6af8f3ad20066ef2c1920f8ed2966b64bafb130855043ee
|
7
|
+
data.tar.gz: 79917bf2e130af7934a1b603bed51d542a69bf038cff449614b2ff6d2f332164a946e11559d618622d5e96535021e0921241d9a161b50f10974bdc3ed6cae574
|
@@ -29,7 +29,8 @@ module RailsArchiver
|
|
29
29
|
def store_archive(hash)
|
30
30
|
json = hash.to_json
|
31
31
|
file_path = "#{@model.id}_#{SecureRandom.hex(8)}.json"
|
32
|
-
|
32
|
+
base_path = @options[:base_path] ? "#{@options[:base_path]}/" : ''
|
33
|
+
s3_key = "#{base_path}#{file_path}.gz"
|
33
34
|
Dir.mktmpdir do |dir|
|
34
35
|
json_filename = "#{dir}/#{file_path}"
|
35
36
|
@logger.info('Writing hash to JSON')
|
data/rails-archiver.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rails-archiver'
|
3
3
|
s.require_paths = %w(. lib lib/rails-archiver)
|
4
|
-
s.version = '0.1.
|
5
|
-
s.date = '2018-06-
|
4
|
+
s.version = '0.1.7'
|
5
|
+
s.date = '2018-06-20'
|
6
6
|
s.summary = 'Fully archive a Rails model'
|
7
7
|
s.description = <<-EOF
|
8
8
|
EOF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-archiver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|