tol 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/tol/database.rb +13 -3
  2. data/lib/tol/version.rb +1 -1
  3. metadata +2 -2
data/lib/tol/database.rb CHANGED
@@ -49,16 +49,26 @@ class Database
49
49
 
50
50
  menu.choice "Most Recent Snapshot (Fast)" do
51
51
  puts "... Downloading. Please wait.".foreground(:yellow)
52
- url = `heroku pgbackups:url --app #{heroku_app}`
52
+ url = ""
53
+ Bundler.with_clean_env do
54
+ url = `heroku pgbackups:url --app #{heroku_app}`
55
+ end
53
56
  download = `curl -o /tmp/#{heroku_app}.dump '#{url}' > /dev/null 2>&1`
54
57
  end
55
58
 
56
59
  menu.choice "New Snapshot (Slowest)" do
57
60
  puts "... Capturing database on Heroku. Please wait".foreground(:yellow)
58
- db = `heroku pgbackups:capture --app #{heroku_app} --expire`
61
+ db = ""
62
+ Bundler.with_clean_env do
63
+ db = `heroku pgbackups:capture --app #{heroku_app} --expire`
64
+ end
59
65
 
60
66
  puts "... Downloading. Please wait.".foreground(:yellow)
61
- url = `heroku pgbackups:url --app #{heroku_app}`
67
+ url = ""
68
+ Bundler.with_clean_env do
69
+ url = `heroku pgbackups:url --app #{heroku_app}`
70
+ end
71
+
62
72
  download = `curl -o /tmp/#{heroku_app}.dump '#{url}' > /dev/null 2>&1`
63
73
  end
64
74
  end
data/lib/tol/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tol
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-30 00:00:00.000000000 Z
12
+ date: 2013-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry