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 +4 -4
- data/VERSION +1 -1
- data/lib/tidy_reset/tasks/tidy.rake +2 -2
- data/lib/tidy_reset.rb +6 -2
- 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: 20a24f795d8fbf73b6df538ca30cb0465ba94aad
|
4
|
+
data.tar.gz: 9a3667fcf27897987dba479c3e4d89c032061236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb240a163789c03810a667195b6184570868caae9096e586b58283ea2190de455c31ddbf9dcce13f8cd06c8fa4be12a49a2e26a516bf705e3862d74d9dacafb3
|
7
|
+
data.tar.gz: b918b6225c6aa679353164181e20a6417aeae01f281c09e9355e0c83e994458fadc811b4863819728182e369bbaaa65dbca9453fe3ad7535950e38c15c33ddcb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
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 '
|
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
|
-
|
37
|
-
|
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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|