put_rake 0.1.7 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cf1b560ac0fd68a165ddd89b5c89a197be18092cacbd6b2d7a63fadd33e7f4f
4
- data.tar.gz: 4909104d1141e17b5a4ba218661e1ead61e535bb688d3672687fe504a62a9cc8
3
+ metadata.gz: 02d551c439ad35a2c7f1b8dfe78f00807fc5c9f1b91c34d2c2eabae564462f9c
4
+ data.tar.gz: 1d5d568ec4b4706ca950106d741a46e4ec45207bc8a4641569a9084fb223dad3
5
5
  SHA512:
6
- metadata.gz: b824025b5d3126181931031214b19fc6bcc13de4ca6852f78d2260f947e1a14d53dbae9f144ac48f0d733fdf5ecd262eff84b862125b7c787ea43ed4b61a392b
7
- data.tar.gz: 732e37b946bc12be3e999c1d330d4f2668568c854ac1b7aa2149f8e1f3273647bd1b93508b46ce7099bebba96e4f3ca1e31ea1975964df8a04f4a72b80b23396
6
+ metadata.gz: 57af2bb5e732c78a9fdc4f5cb4359ce0f6eda3e63f04bb9fac2956e6f0b4cff4e5db82b86f40b002ae17a9dd9d29edf1d21e25cd475d21b5d79d25b935f35acf
7
+ data.tar.gz: ee7c7210625ce993438230dc85ab3c969490035feb36ff0721f006bc311613c5296cc5fc669b736c79a61648da987fdbe84de43fdecd56325fa962afa0880d6d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- put_rake (0.1.6)
4
+ put_rake (0.1.7)
5
5
  colorize
6
6
  command_line
7
7
  thor
@@ -26,10 +26,11 @@ GEM
26
26
  diff-lcs (>= 1.2.0, < 2.0)
27
27
  rspec-support (~> 3.12.0)
28
28
  rspec-support (3.12.0)
29
- thor (1.3.1)
29
+ thor (1.3.2)
30
30
 
31
31
  PLATFORMS
32
32
  arm64-darwin-20
33
+ x86_64-linux
33
34
 
34
35
  DEPENDENCIES
35
36
  put_rake!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PutRake
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.10"
5
5
  end
data/lib/put_rake.rb CHANGED
@@ -32,14 +32,17 @@ module PutRake
32
32
  puts "* Rakefile template paths\n #{@gem_template_dirs.join("\n ")}"
33
33
  end
34
34
 
35
- desc "add PATH", "add Rakefile template PATH"
35
+ desc "add PATH", "How to add Rakefile template PATH"
36
36
  def add(*args)
37
37
  add = args[0]
38
38
  puts "Additional template paths are obtained from ENV['PUT_RAKE_PATH']."
39
- puts "Add default paths, put 'setenv PUT_RAKE_PATH ...' on ~/.config/fish/fishconfig.fish."
40
- p additional_path = [ENV["PUT_RAKE_PATH"].split(":"), add].join(":")
41
- p comm = "setenv #{additional_path}"
42
- system comm
39
+ ENV["PUT_RAKE_PATH"] ||= ''
40
+ p additional_path = [add, ENV["PUT_RAKE_PATH"].split(" ")].join(" ")
41
+ puts "Add default paths, put
42
+ \'setenv PUT_RAKE_PATH \'#{additional_path}\'\'
43
+ on ~/.config/fish/fishconfig.fish."
44
+ # p comm = "set -Ux PUT_RAKE_PATH \'#{additional_path}\'"
45
+ # system comm
43
46
  end
44
47
 
45
48
  desc "for [EXT]", "put Rakefile for [EXT]"
@@ -2,13 +2,17 @@
2
2
  require "colorize"
3
3
  require 'command_line/global'
4
4
 
5
+ Rake::TaskManager.record_task_metadata = true
6
+
5
7
  task :default do
6
- system "rake -T"
8
+ Rake.application.options.show_tasks = :tasks
9
+ Rake.application.options.show_task_pattern = //
10
+ Rake.application.display_tasks_and_comments
7
11
  end
8
12
 
9
13
  namespace :some_name_space do
10
14
  desc "task description" #desc -> description
11
15
  task :task_name do # any name on task_name
12
- # your code goes
16
+ # your code goes here
13
17
  end
14
18
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: put_rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishiani
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rspec
@@ -87,16 +86,14 @@ files:
87
86
  - exe/put_rake
88
87
  - lib/put_rake.rb
89
88
  - lib/put_rake/version.rb
90
- - lib/templates/Rakefile_git_auto
91
- - lib/templates/Rakefile_template
89
+ - lib/templates/git_auto.rake
90
+ - lib/templates/template.rake
92
91
  - put_rake.gemspec
93
92
  - sig/put_rake.rbs
94
- homepage:
95
93
  licenses:
96
94
  - MIT
97
95
  metadata:
98
96
  source_code_uri: https://github.com/daddygongon/put_rake
99
- post_install_message:
100
97
  rdoc_options: []
101
98
  require_paths:
102
99
  - lib
@@ -111,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
108
  - !ruby/object:Gem::Version
112
109
  version: '0'
113
110
  requirements: []
114
- rubygems_version: 3.5.6
115
- signing_key:
111
+ rubygems_version: 3.6.9
116
112
  specification_version: 4
117
113
  summary: Put a template of Rakefiles on the local dir.
118
114
  test_files: []
File without changes