put_rake 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/put_rake/version.rb +1 -1
- data/lib/put_rake.rb +5 -3
- data/lib/templates/Rakefile_template +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: 1cf1b560ac0fd68a165ddd89b5c89a197be18092cacbd6b2d7a63fadd33e7f4f
|
4
|
+
data.tar.gz: 4909104d1141e17b5a4ba218661e1ead61e535bb688d3672687fe504a62a9cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b824025b5d3126181931031214b19fc6bcc13de4ca6852f78d2260f947e1a14d53dbae9f144ac48f0d733fdf5ecd262eff84b862125b7c787ea43ed4b61a392b
|
7
|
+
data.tar.gz: 732e37b946bc12be3e999c1d330d4f2668568c854ac1b7aa2149f8e1f3273647bd1b93508b46ce7099bebba96e4f3ca1e31ea1975964df8a04f4a72b80b23396
|
data/lib/put_rake/version.rb
CHANGED
data/lib/put_rake.rb
CHANGED
@@ -95,9 +95,11 @@ HEREDOC
|
|
95
95
|
@rake_file_path << file
|
96
96
|
key = file.match(/Rakefile_(.*)/)[1]
|
97
97
|
res = command_line "rake -T -f #{file}"
|
98
|
-
command = res.stdout.split("\n")
|
99
|
-
|
100
|
-
|
98
|
+
command = res.stdout.split("\n").collect do |line|
|
99
|
+
line.include?(key) ? line : nil
|
100
|
+
end
|
101
|
+
if command.compact[0] != nil
|
102
|
+
puts "%20s: %s" % [key, command.compact[0].scan(/#.+/)[0]]
|
101
103
|
else
|
102
104
|
puts "%20s: %s" % [key, File.basename(file)]
|
103
105
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: put_rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeto R. Nishiani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|