tidy_reset 0.1.19 → 0.1.20

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: e0aa5a59fbde641fb81a07fe6db3c0834cccdeab
4
- data.tar.gz: a87f27f29993d8b8adf9450f80b1d838c24284b2
3
+ metadata.gz: d28a126f7d7b56a27d485c498c618e0cc73c5d91
4
+ data.tar.gz: 81867ef490d7ea404691209bdd4d918007454906
5
5
  SHA512:
6
- metadata.gz: af1a846a3d1c2187d0062ab1414eafe24b39b4a0f563a9df8ab1d6ae6f6a71d20d2e2be510790ea3fe5cf8c91a79be5ae1a9fc036e3d1d8d86192700b286f383
7
- data.tar.gz: 9fc87dc8ec9a176be83490ff78107b5b4c2656b7d942a9bf54f9b0b2344d9a6d458de6898f5c9500d1e717fed663de98be7a9a304e9d9069ca8d5ad9834d7798
6
+ metadata.gz: 8e159ee713c84cafc7621675da4393e8dbb80e50e0f96a1b644dd38450f1b2af8adac2583d07a91a0b569d9845bdfc6d1574c6a70572a9f13ead644ac8a8aebf
7
+ data.tar.gz: adcd84e83ed8ba8c765086f2049ae0b42269fa28daaddeb833c4652097dffacb87647cbf8f4db3e754270e1ad7de8fb98ba385c906e7da2e2a8fc7820f1e47de
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Disclamer
4
4
 
5
- This is written for the Thinknear organization. It is not intended and will not be supported for other projeccts. Use at your own risk.
5
+ This is written for the Thinknear organization. It is not intended and will not be supported for other projects. Use at your own risk.
6
6
 
7
7
  ## Using TidyReset rake tasks
8
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.19
1
+ 0.1.20
data/lib/tidy_reset.rb CHANGED
@@ -19,19 +19,28 @@ module TidyReset
19
19
  begin
20
20
  tries ||= 3
21
21
  rake_error = false
22
+ db_seed_completed = false
22
23
  puts "running: #{command}"
23
24
  Open3.popen3(command) do |stdin, stdout, stderr, wait_thr|
24
25
  while line = stdout.gets
25
26
  puts line
26
27
  rake_error = true if line =~ /rake aborted/
28
+ db_seed_completed = true if line =~ /The rake task db:seed finished successfully./
27
29
  end
30
+
28
31
  while line = stderr.gets
29
32
  puts line
30
33
  rake_error = true if line =~ /rake aborted/
31
34
  end
35
+
36
+ if db_seed_completed == false && command =~ /db:seed/
37
+ raise RuntimeError, "ERROR: rake db:seed failed!"
38
+ end
39
+
32
40
  unless wait_thr.value.success?
33
41
  raise RuntimeError, wait_thr.value
34
42
  end
43
+
35
44
  if rake_error
36
45
  raise RuntimeError, "rake aborted"
37
46
  end
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.19 ruby lib
5
+ # stub: tidy_reset 0.1.20 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "tidy_reset"
9
- s.version = "0.1.19"
9
+ s.version = "0.1.20"
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-09-12"
14
+ s.date = "2014-10-02"
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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thinknear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler