justonedb 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,6 @@ The PostgreSQL client program 'pg_dump' must be installed in order to use the mi
21
21
  * Migrate JustOneDB database from current to 'NEW' on Heroku
22
22
 
23
23
  $ justonedb heroku migrate
24
-
25
24
  Extracting data from JUSTONEDB_DBI_URL using pg_dump
26
25
  Importing data into JUSTONEDB_NEW_DBI_URL using psql
27
26
  Data imported successfully, please fully check your application before running 'justonedb heroku promote'
@@ -38,11 +37,13 @@ The PostgreSQL client program 'pg_dump' must be installed in order to use the mi
38
37
  Purging JustOneDB 'OLD' configuration variables
39
38
 
40
39
  * Set default Heroku database to connect to JustOneDB
40
+
41
41
  $ justonedb heroku make-default
42
42
  Making JUSTONEDB_DBI_URL the default Rails database
43
43
  DATABASE_URL now points directly to the JustOneDB database; application restarting
44
44
 
45
45
  * Reset default Heroku database from saved settings
46
+
46
47
  $ justonedb heroku reset-default
47
48
  Resetting DATABASE_URL from JUSTONEDB_SAVED_DATABASE_URL
48
49
  DATABASE_URL has now been reset, application restarting
@@ -69,7 +69,7 @@ class JustOneDB::Command::Base
69
69
 
70
70
  # Get a psql process read to read from us (pipe it's input, so that we can remove anything that we don't like
71
71
  new_dbi = URI.parse(to)
72
- username, password = dbi.userinfo.split(':')
72
+ username, password = new_dbi.userinfo.split(':')
73
73
  path = new_dbi.path.sub('/', '')
74
74
  psqlcmd = "psql --set=ON_ERROR_STOP=on -h #{new_dbi.host} -p #{new_dbi.port} -U #{username} -d #{path}"
75
75
  psqlin, psqlout, psqlerr, wait_thr = Open3.popen3({ "PGPASSWORD" => password }, psqlcmd)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justonedb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-03 00:00:00.000000000Z
12
+ date: 2012-02-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku
16
- requirement: &74239400 !ruby/object:Gem::Requirement
16
+ requirement: &73691380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.15'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *74239400
24
+ version_requirements: *73691380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: require_all
27
- requirement: &74238590 !ruby/object:Gem::Requirement
27
+ requirement: &73690750 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *74238590
35
+ version_requirements: *73690750
36
36
  description: Command-line tool for JustOneDB to assist with deployments on Heroku
37
37
  email: support@justonedb.com
38
38
  executables: