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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5d9d7bf945364e75b449387e94d81b7bc7f2b727d7ac2f8b0dbb5967542c2cf
4
- data.tar.gz: beb82ce8e9af4a5fe17c38154278a91592f11f1a203b5fb76df388d2f6951566
3
+ metadata.gz: 1cf1b560ac0fd68a165ddd89b5c89a197be18092cacbd6b2d7a63fadd33e7f4f
4
+ data.tar.gz: 4909104d1141e17b5a4ba218661e1ead61e535bb688d3672687fe504a62a9cc8
5
5
  SHA512:
6
- metadata.gz: 5d41721998e5048d73d90c28901f925dee374d8ec3ce5b2f19052e75ac13239e6d548ab4ad08163d094f6fdd04c1c93ad5ae7b90850eef82a7209ee7e5101a25
7
- data.tar.gz: 34d26cabc80f71336eac48d4edfb46dbbcf3859da2e56d8a5cbb5e8d132ca7e998fdeeccb36d9547160bcb2215e7a1322a746ed5dcbf3c94b933ec4954535bbf
6
+ metadata.gz: b824025b5d3126181931031214b19fc6bcc13de4ca6852f78d2260f947e1a14d53dbae9f144ac48f0d733fdf5ecd262eff84b862125b7c787ea43ed4b61a392b
7
+ data.tar.gz: 732e37b946bc12be3e999c1d330d4f2668568c854ac1b7aa2149f8e1f3273647bd1b93508b46ce7099bebba96e4f3ca1e31ea1975964df8a04f4a72b80b23396
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PutRake
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
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")[0]
99
- if command
100
- puts "%20s: %s" % [key, command.scan(/#.+/)[0]]
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
@@ -7,7 +7,7 @@ task :default do
7
7
  end
8
8
 
9
9
  namespace :some_name_space do
10
- desc "task desciption" #desc -> descriptin
10
+ desc "task description" #desc -> description
11
11
  task :task_name do # any name on task_name
12
12
  # your code goes
13
13
  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.6
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-05-29 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec