backup-rails 1.0.4 → 1.0.5

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: f8cd2e4d9e64049a721765d72e290e764049e39d
4
- data.tar.gz: 3f6d172c14532cf5f3087713deeb8f8afd7fc597
3
+ metadata.gz: 1b7d6e24fb2e614f692553b006a9cdb57202aa61
4
+ data.tar.gz: c78e47b50d945461907235f81e735ea0cd36dc37
5
5
  SHA512:
6
- metadata.gz: f20d4af065b31de09866b4805cb75cc6064a24e51384d095e98c15fbcc3cf0a43bb855c3ea556cd71fd03767562faa5c3ce35999f6e1076fddfa28c614fa62f4
7
- data.tar.gz: c5ed381c6fac0c32ad900ada7718e3c6a72100afde4192b6f388451f8fa018c7f1ba5a5ac232f15798ea5a871b532d512beb9cd90be3d917cf5fdfc540fb296a
6
+ metadata.gz: ef0a6a172d7acd9281ebf024dee4904198a0119d1fe88d69e9d5025e00e2783256ff60241b7adb9ada570a9bdec1baa0e709b3b660ca76e53123a9ff870ae3ac
7
+ data.tar.gz: 6e7fbf90ce2e53f1192c1661d75a463eb4b7db441c5d7c4b33c7c2f1c1c0d154099c6a6e24871059bb25346d73bb06b98235330b12aad6fab6d0760e2ae5396f
data/backup-rails.gemspec CHANGED
@@ -24,5 +24,6 @@ Gem::Specification.new do |gem|
24
24
  gem.add_runtime_dependency 'fog', '~> 1.9.0'
25
25
  gem.add_runtime_dependency 'net-ssh', '>= 2.3.0', '<= 2.5.2'
26
26
  gem.add_runtime_dependency 'excon', '~> 0.17.0'
27
+ gem.add_runtime_dependency 'mail', '~> 2.5.0'
27
28
  end
28
29
 
@@ -1,5 +1,5 @@
1
1
  module Backup
2
2
  module Rails
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
@@ -16,10 +16,10 @@ module Backup
16
16
  template "general.rb", "config/backup/models/general.rb"
17
17
  if File.exists? ".env"
18
18
  append_file ".env" do
19
- File.read(File.expand_path(find_in_source_paths('.env')))
19
+ File.read(File.expand_path(find_in_source_paths('env.env')))
20
20
  end
21
21
  else
22
- template ".env"
22
+ template "env.env", ".env"
23
23
  end
24
24
  run "bundle exec wheneverize ." unless File.exists?("config/schedule.rb")
25
25
  append_file "config/schedule.rb" do
@@ -21,6 +21,7 @@
21
21
  # S3_SECRET_ACCESS_KEY="lMz1zjhjKHJhfdjhFJtnv+o,mnnbMBNmASSVbwgm"
22
22
  # S3_REGION="us-east-1"
23
23
  # S3_BUCKET="backups"
24
+ # S3_PATH="path/to/upload"
24
25
 
25
26
  ###
26
27
  # if set NOTIFY_MAIL_USER_NAME
@@ -89,7 +89,7 @@ Backup::Model.new(:general, 'Description for general') do
89
89
 
90
90
  s3.region = ENV['S3_REGION']
91
91
  s3.bucket = ENV['S3_BUCKET']
92
- #s3.path = ENV['S3_PATH']
92
+ s3.path = ENV['S3_PATH'].dup
93
93
  end
94
94
  end
95
95
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backup-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bavaev
@@ -100,6 +100,20 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 0.17.0
103
+ - !ruby/object:Gem::Dependency
104
+ name: mail
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 2.5.0
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 2.5.0
103
117
  description: Backup rails project with backup & whenever gems
104
118
  email:
105
119
  - jesoba7@gmail.com
@@ -120,7 +134,7 @@ files:
120
134
  - lib/backup-rails.rb
121
135
  - lib/backup-rails/version.rb
122
136
  - lib/generators/backup/rails/install_generator.rb
123
- - lib/generators/backup/rails/templates/.env
137
+ - lib/generators/backup/rails/templates/env.env
124
138
  - lib/generators/backup/rails/templates/general.rb
125
139
  - lib/generators/backup/rails/templates/schedule.rb
126
140
  - lib/tasks/backup.rake