raka 0.3.6 → 0.3.9
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/bin/raka +8 -12
- data/lib/raka/token.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ccb27b371fa0183eee0f7565fcd7d2b6aa36a6c39c7847039145a3bf6943f5d
|
4
|
+
data.tar.gz: 2e93c39c9239bafe828e42d3a5fb2cc8e0fd01455ab449eccfbedc1a025f861e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce8a48cd3900e9f993957e176cd8db769f1920a9a0f08cecf8b3f1b0d947e729ffed1cf42a7f855f7cdf8aea547d2aedd760f79d6a4d2645a3fd18be63ca6e2
|
7
|
+
data.tar.gz: 9090923bef7bd1e1bd6311104df9fec12ec59febc42e2b05fdc4b2df49cb71a0766a57f220c94440e759d9b7b159c342f0f93f9cc855978467a793f6d1f6e777
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
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
|
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,
|
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.
|
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-
|
11
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|