raka 0.3.6 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/raka +8 -12
  4. data/lib/raka/token.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4f6977d2467ab97772b25f068dccc278aaf0934b6f2f22188ae56dfd8580272
4
- data.tar.gz: '093165815fa89e1f144c79d9102fb08215229181141638d3b40da74bcbe5845a'
3
+ metadata.gz: 7ccb27b371fa0183eee0f7565fcd7d2b6aa36a6c39c7847039145a3bf6943f5d
4
+ data.tar.gz: 2e93c39c9239bafe828e42d3a5fb2cc8e0fd01455ab449eccfbedc1a025f861e
5
5
  SHA512:
6
- metadata.gz: 6e31fc8179a2b22dd05a1982bfbc5ffb5db96ab57f054365c062c956a617530481eec4c9f8485b775e0493496ad385b34e2fe54798137ce1b4f6a2330d647e12
7
- data.tar.gz: 758e5dc96f9544df4546e7b2955181aa9bfa3c354a3d5f66fd7ece88f292e473d5379fa5e64c1c89fec5a704c28f272f6dc7277825374e8292d2b7cae3fc09b0
6
+ metadata.gz: 4ce8a48cd3900e9f993957e176cd8db769f1920a9a0f08cecf8b3f1b0d947e729ffed1cf42a7f855f7cdf8aea547d2aedd760f79d6a4d2645a3fd18be63ca6e2
7
+ data.tar.gz: 9090923bef7bd1e1bd6311104df9fec12ec59febc42e2b05fdc4b2df49cb71a0766a57f220c94440e759d9b7b159c342f0f93f9cc855978467a793f6d1f6e777
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.9
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 = 'RUBYOPT="-W0" ' + 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
data/lib/raka/token.rb CHANGED
@@ -80,7 +80,7 @@ class Token
80
80
 
81
81
  # attach a new item to the chain
82
82
  def _attach_(item)
83
- Token.new(@compiler, @context, @chain + [item], @inline_scope, @options)
83
+ Token.new(@compiler, @context, @chain + [item], @inline_scope, **@options)
84
84
  end
85
85
 
86
86
  # rubocop:disable Style/MissingRespondToMissing # for DSL not essential
metadata CHANGED
@@ -1,14 +1,14 @@
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.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - yarray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake