heroku-mongo-backup 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/heroku-mongo-backup.rb +3 -1
  2. metadata +3 -2
@@ -147,9 +147,11 @@ module HerokuMongoBackup
147
147
  uri = ENV['MONGO_URL']
148
148
  else
149
149
  mongoid_config = YAML.load_file("config/mongoid.yml")
150
- config = mongoid_config['defaults']
150
+ config = {}
151
+ defaults = mongoid_config['defaults']
151
152
  dev_config = mongoid_config['development']
152
153
 
154
+ config.merge!(defaults) unless defaults.nil?
153
155
  config.merge!(dev_config)
154
156
 
155
157
  host = config['host']
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-mongo-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alex Kravets
9
9
  - matyi
10
10
  - Stef Lewandowski
11
+ - David Hall
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2012-07-09 00:00:00.000000000 Z
15
+ date: 2012-07-19 00:00:00.000000000 Z
15
16
  dependencies: []
16
17
  description: Rake task for backing up mongo database on heroku and push it to S3 or
17
18
  FTP. Library can be used as rake task or be easily integrated into daily cron job.