tidy_reset 0.1.5 → 0.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 838edc3a1df0b67c4bbfe25332da8b75f82ccbce
4
- data.tar.gz: e098706a63c5f3703c731967c4ab158eef9aa541
3
+ metadata.gz: 7e9439bb71b65acce644e235a1ebde4f5dc04f90
4
+ data.tar.gz: c59d1390e7efaab9e974f32476ac6dd449040ca5
5
5
  SHA512:
6
- metadata.gz: d1345f0323367d325f3761f1f60971b6818d7143f1071c9c6c5bde783002fc7eeba80f68340d2a3f8e582657d21fdb2d27209e5a65b1705951bc8ea9bd32c03d
7
- data.tar.gz: 9390ec3bb82d590493e71589840f2afbb51a541e5a6d10f1f83158700c5f420979d00cd7bd20145eb2fdbc0ff922c8a26a0e1f3a4bf61e88dcfa22d3881b32f2
6
+ metadata.gz: fa4ec703b853b63ace18e701a60a9eae39ce2c0185d814b9b7e050a802ac76fe670c3fd40a4904cd99c44d5175ccdde3116b447c36f4d9d1103691717f69fe3c
7
+ data.tar.gz: f4a8807038b540e0d6460fe3becee71cbf65f01442f70079d5531a20f630633008b8f78966cb0a937e038906afc7bf537fe03396a0399451e6711d3531391e07
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
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.establish_connection(db_config.merge(
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.establish_connection(db_config).connection.execute("CREATE EXTENSION IF NOT EXISTS postgis")
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 ruby lib
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.5"
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-24"
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.5
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-24 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler