tidy_reset 0.1.21 → 0.1.22

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: 73885e339b07c70af26560c7b256e6fd17b4e937
4
- data.tar.gz: d61e6423158502650ca76258cd6539a15be2b5c4
3
+ metadata.gz: 20a24f795d8fbf73b6df538ca30cb0465ba94aad
4
+ data.tar.gz: 9a3667fcf27897987dba479c3e4d89c032061236
5
5
  SHA512:
6
- metadata.gz: f35fc0fe77197dc0c4e3c0e0dadcfc96e70b4cda7cb03e5703ac5f50d5e996ab6ca29d404a6119d1d2fb359df14067b6800388bf41adcaefeb06bb52fad9d453
7
- data.tar.gz: ebb8c94763b5bde67a9e83387e2c75ecc27bcd322729c0df3251990302d7ed1df16c004766cd00c611749ebee8abb7859a19e6d496598c3255f92b93d3738cb7
6
+ metadata.gz: fb240a163789c03810a667195b6184570868caae9096e586b58283ea2190de455c31ddbf9dcce13f8cd06c8fa4be12a49a2e26a516bf705e3862d74d9dacafb3
7
+ data.tar.gz: b918b6225c6aa679353164181e20a6417aeae01f281c09e9355e0c83e994458fadc811b4863819728182e369bbaaa65dbca9453fe3ad7535950e38c15c33ddcb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.21
1
+ 0.1.22
@@ -9,7 +9,7 @@ namespace :tidy do
9
9
  # All tidy tasks should :validate as a task dependency.
10
10
  task :validate, [:stage] => [:environment] do |t, args|
11
11
  if (args.stage && !ACCEPTED_ENVIRONMENTS.include?(args.stage)) || !ACCEPTED_ENVIRONMENTS.include?(STAGE)
12
- raise "ERROR: tasks are meant for 'test' and 'sandbox' ONLY."
12
+ raise "ERROR: tasks are meant for 'sandbox', 'test' and 'integration' ONLY."
13
13
  end
14
14
  end
15
15
 
@@ -59,8 +59,8 @@ namespace :tidy do
59
59
  task :purge => [:validate, :environment] do |t, args|
60
60
  TidyReset.configuration.databases.each do |database|
61
61
  TidyReset.database_purge(database)
62
- puts "Tidy task done."
63
62
  end
63
+ puts "Tidy task done."
64
64
  end
65
65
 
66
66
  task :migrate => [:validate, :environment] do |t, args|
data/lib/tidy_reset.rb CHANGED
@@ -33,8 +33,12 @@ module TidyReset
33
33
  puts "running: #{command}"
34
34
 
35
35
  Open3.popen3(command) do |stdin, stdout, stderr, wait_thr|
36
- process(line) while line = stdout.gets
37
- process(line) while line = stderr.gets
36
+ while line = stdout.gets
37
+ process(line)
38
+ end
39
+ while line = stderr.gets
40
+ process(line)
41
+ end
38
42
 
39
43
  raise RakeStatusException, "Non-zero Exit Code: #{wait_thr.value}" unless wait_thr.value.success?
40
44
  raise RakeCompletedException if (@rake_completed == false && command =~ /heroku run rake tidy:db:/ )
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.21 ruby lib
5
+ # stub: tidy_reset 0.1.22 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "tidy_reset"
9
- s.version = "0.1.21"
9
+ s.version = "0.1.22"
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-11-06"
14
+ s.date = "2014-11-07"
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.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thinknear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-06 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler