tidy_reset 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tidy_reset.rb +4 -4
- data/tidy_reset.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9439bb71b65acce644e235a1ebde4f5dc04f90
|
4
|
+
data.tar.gz: c59d1390e7efaab9e974f32476ac6dd449040ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa4ec703b853b63ace18e701a60a9eae39ce2c0185d814b9b7e050a802ac76fe670c3fd40a4904cd99c44d5175ccdde3116b447c36f4d9d1103691717f69fe3c
|
7
|
+
data.tar.gz: f4a8807038b540e0d6460fe3becee71cbf65f01442f70079d5531a20f630633008b8f78966cb0a937e038906afc7bf537fe03396a0399451e6711d3531391e07
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/lib/tidy_reset.rb
CHANGED
@@ -15,13 +15,13 @@ module TidyReset
|
|
15
15
|
|
16
16
|
def execute(command)
|
17
17
|
puts "running: #{command}"
|
18
|
-
Bundler.with_clean_env do
|
18
|
+
Bundler.with_clean_env do
|
19
19
|
unless system(command)
|
20
20
|
raise RuntimeError, "Error running last command. Return code was #{$?}"
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def app_name(postfix)
|
26
26
|
"#{configuration.app}-#{postfix}"
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module TidyReset
|
|
30
30
|
begin
|
31
31
|
encoding = configuration.database_encoding
|
32
32
|
ActiveRecord::Base.remove_connection
|
33
|
-
pool = ActiveRecord::Base.
|
33
|
+
pool = ActiveRecord::Base.establish_connection_without_activerecord_import(db_config.merge(
|
34
34
|
'database' => 'postgres',
|
35
35
|
'schema_search_path' => 'public'
|
36
36
|
))
|
@@ -42,7 +42,7 @@ module TidyReset
|
|
42
42
|
master_connection.drop_database(db_config['database'])
|
43
43
|
master_connection.create_database(db_config['database'], db_config.merge('encoding' => encoding))
|
44
44
|
ActiveRecord::Base.remove_connection
|
45
|
-
ActiveRecord::Base.
|
45
|
+
ActiveRecord::Base.establish_connection_without_activerecord_import(db_config).connection.execute("CREATE EXTENSION IF NOT EXISTS postgis")
|
46
46
|
rescue ActiveRecord::StatementInvalid => error
|
47
47
|
if /database .* already exists/ === error.message
|
48
48
|
raise DatabaseAlreadyExists
|
data/tidy_reset.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: tidy_reset 0.1.
|
5
|
+
# stub: tidy_reset 0.1.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "tidy_reset"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Thinknear"]
|
14
|
-
s.date = "2014-07-
|
14
|
+
s.date = "2014-07-31"
|
15
15
|
s.description = "Reset dynos, environment variables, deploys master git branch, and purges the database."
|
16
16
|
s.email = "software@thinknear.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tidy_reset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thinknear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|