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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca3e0face6f9a1c35335bd8863be14ad33d114f9
4
- data.tar.gz: 3dfe6020b3699ff6f542c2523bf3f6cc3f9ce9d3
3
+ metadata.gz: 631c54ba5ee068f6e555a6e5402a6543af7b117c
4
+ data.tar.gz: 4d194e22a65b774c3dcce89fe176a9967b834a60
5
5
  SHA512:
6
- metadata.gz: d93da3f91309bbe039a53c207836c64b12f48e6d9250fbef9f58badf663fe9875a83bbcec150a67c4540423b7cafee7ae1d94c419661a23c3d4071f27dd62482
7
- data.tar.gz: 9dc75efa7583d6d931bf0e1c7b955fd7739bbae9c33846e7b2d7b05d360718c90ad0369d9d8fe369686332f292671fdc0be3a7f7611cd441cce05fe779aa0b8d
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
- s3_key = "#{@options[:base_path]}/#{file_path}.gz"
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')
@@ -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.6'
5
- s.date = '2018-06-05'
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.6
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-05 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails