raka 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/raka +8 -12
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4f6977d2467ab97772b25f068dccc278aaf0934b6f2f22188ae56dfd8580272
4
- data.tar.gz: '093165815fa89e1f144c79d9102fb08215229181141638d3b40da74bcbe5845a'
3
+ metadata.gz: 8e4ea9a3a09591f63ba147a92114c3100a92a673235ec632aad1b5aef56bcc8d
4
+ data.tar.gz: 53c6e86ef4b40bfa8b084c3158f288bdafdec946807ef145fad5cd2fa28df7d3
5
5
  SHA512:
6
- metadata.gz: 6e31fc8179a2b22dd05a1982bfbc5ffb5db96ab57f054365c062c956a617530481eec4c9f8485b775e0493496ad385b34e2fe54798137ce1b4f6a2330d647e12
7
- data.tar.gz: 758e5dc96f9544df4546e7b2955181aa9bfa3c354a3d5f66fd7ece88f292e473d5379fa5e64c1c89fec5a704c28f272f6dc7277825374e8292d2b7cae3fc09b0
6
+ metadata.gz: 4bcd2382221bdeace9ceee90d944ef606c396f4b2ea010533f467f5427715ed1fc05bef50c4c8902844ae386357a6fc1d4d86425ae5a2f2399d8e372cf4a2283
7
+ data.tar.gz: 50a58b7250e1f191134d13f07ebe72793d94685cc136c77b19fef8909f22f923f113e68edfb7eadccb34ec4cc4abe153cac0b89b45a505aadd57a1118fac9d10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
data/bin/raka CHANGED
@@ -62,22 +62,18 @@ cmd = ''
62
62
  opt_str = "-f #{entry}"
63
63
  opt_str += " -m -j #{options[:jobs]}" if options.key?(:jobs)
64
64
  cmd += "#{env}rake #{opt_str} #{extra_args} #{targets}"
65
+ dry_cmd = cmd + ' --dry-run'
66
+ _, dry_msg, status = Open3.capture3(dry_cmd)
67
+ exit(status) if status != 0
68
+ unless (dry_msg.lines.first.chomp =~ /^.*\(.*not_needed.*\)$/).nil?
69
+ puts 'All targets are up to date'
70
+ exit(0)
71
+ end
65
72
  puts cmd
66
- output = []
67
- ro, out = IO.pipe
68
- re, err = IO.pipe
69
73
  pid = fork do
70
- status = system(cmd, out: out, err: err)
74
+ status = system(cmd)
71
75
  puts 'Error: rake returns the following information:' unless status
72
76
  exit($CHILD_STATUS.exitstatus)
73
77
  end
74
- out.close
75
- err.close
76
- ro.each_line do |l|
77
- puts l
78
- output << l.chomp
79
- end
80
- re.each_line { |l| puts l; }
81
78
 
82
79
  Process.wait(pid)
83
- puts 'All targets are up to date' if output.empty? && $CHILD_STATUS.exitstatus == 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - yarray