rails_pg_restore 0.2.0 → 0.3.0

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: 38cf2529428a15867deec36101befd307f1ada90
4
- data.tar.gz: 819116fecdb91afa78563a5df406f65838a81d65
3
+ metadata.gz: 655f57cebd76977a7b479787ca9554421e83bac8
4
+ data.tar.gz: 45f1e6a5258e349f5ae3a76695273f13bc3351fe
5
5
  SHA512:
6
- metadata.gz: 0d619fc1c9e8fd5f623ed090843a9ebd6c2b9b51f54695be28300aaa2fa765242a2b4e78c1af823d433c6e06056b99abffd99ba614941f3b4a35eef3139a1b44
7
- data.tar.gz: 0c53ed2e5a68e9050ecb89ea24ef3800ed3905d4f91924dc4edf733afd03402cb77d248085a016b733a8d126cdac72add3fbbe3db4025dce7224b0b6d04fce39
6
+ metadata.gz: 7aed1ae94ef6661dc02c2b578deb17ce9ad22e101382c6ab11787d890d00ac3a108aea03dd31b0ce40c84a395c4a52aa8a05009fd89b5702bffa1151d3fba8bd
7
+ data.tar.gz: 3ffd95f664b4a9e04fe9dd724374279e02c78d2952858fff3918cdc387f43c6ad2443e1f1a11b9d09a559e27dd720c4b81db698afda11f2c735929bcc712762d
data/bin/rails_pg_restore CHANGED
@@ -1,10 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'yaml'
4
+ require 'erb'
4
5
  require 'optparse'
6
+ require_relative "#{Dir.pwd}/config/environment"
5
7
 
6
8
  begin
7
- db_config = YAML.load_file('config/database.yml')
9
+ db_config = YAML.load(ERB.new(File.read('config/database.yml')).result)
8
10
  rescue
9
11
  puts "Database config couldn't be read, please make sure there is a config/database.yml"
10
12
  end
@@ -1,3 +1,3 @@
1
1
  module RailsPgRestore
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pg_restore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2017-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,9 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.4.3
98
+ rubygems_version: 2.4.8
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: CLI to restore a postgres database from a backup
102
102
  test_files: []
103
- has_rdoc: