peppermint 0.1.7 → 0.1.9
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -9
- data/Rakefile +1 -1
- data/lib/peppermint/rake/go.rb +23 -0
- data/lib/peppermint/rake/ruby.rb +4 -0
- data/lib/peppermint/rake/zig.rb +17 -0
- data/lib/peppermint/{rake/shared.rb → rake.rb} +9 -7
- data/lib/peppermint/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f1531c73926017b56e9e79acd2bd16254121715a6323ec195ebb184c728d82
|
4
|
+
data.tar.gz: 7bbf4017a00d7e4de3f88b4af1fa24d2a18efdb504bb13edac86ee94f623462b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31d1995ff49e2af344934cfc1149a03856d8a53a4d40348a1b0989d39c84991396611e4e6404f515bec197a7c55e02793ef99bfd5046fc72bf10d8457a101445
|
7
|
+
data.tar.gz: 3fda6c0a2049be8a315d942f9c9926ab9a8a2000029f13b25e51c68aeb44379569f269770a99231678238edc481a64abbba3ccfd0b35bb8ebfa27854cb10f493
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,20 +4,16 @@ _"A gem of a dev environment."_
|
|
4
4
|
|
5
5
|
# Installation
|
6
6
|
|
7
|
-
|
8
|
-
bundle add peppermint --group development
|
9
|
-
```
|
10
|
-
|
11
|
-
2. Put one of the following in your `Rakefile` as appropriate.
|
7
|
+
1. Install the Gem.
|
12
8
|
|
13
9
|
```ruby
|
14
|
-
|
10
|
+
bundle add peppermint --group development
|
15
11
|
```
|
16
12
|
|
17
|
-
|
13
|
+
2. Put the following in your `Rakefile`:
|
18
14
|
|
19
15
|
```ruby
|
20
|
-
require "peppermint/rake
|
16
|
+
require "peppermint/rake"
|
21
17
|
```
|
22
18
|
|
23
19
|
3. Pull down config files.
|
@@ -26,7 +22,7 @@ require "peppermint/rake/rust"
|
|
26
22
|
bundle exec rake peppermint:update
|
27
23
|
```
|
28
24
|
|
29
|
-
#
|
25
|
+
# Updating
|
30
26
|
|
31
27
|
```bash
|
32
28
|
bundle update peppermint
|
data/Rakefile
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
3
|
+
module Peppermint
|
4
|
+
end
|
5
|
+
|
6
|
+
task :"go:fmt" do
|
7
|
+
if File.file? "go.mod"
|
8
|
+
sh <<~SHELL
|
9
|
+
find . \\( -not -path '*/target/*' \\) \
|
10
|
+
-and \\( -not -path '*/node_modules/*' \\) \
|
11
|
+
-and \\( -not -path '*/dist/*' \\) \
|
12
|
+
-and \\( -not -path '*/doc/*' \\) \
|
13
|
+
-and \\( -name '*.go' \\) \
|
14
|
+
-and -type f | xargs -r go fmt
|
15
|
+
SHELL
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
task :"go:fix" do
|
20
|
+
if File.file? "go.mod"
|
21
|
+
sh "go fix"
|
22
|
+
end
|
23
|
+
end
|
data/lib/peppermint/rake/ruby.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
3
|
+
module Peppermint
|
4
|
+
end
|
5
|
+
|
6
|
+
task :"zig:fmt" do
|
7
|
+
if File.file? "build.zig"
|
8
|
+
sh <<~SHELL
|
9
|
+
find . \\( -not -path '*/target/*' \\) \
|
10
|
+
-and \\( -not -path '*/node_modules/*' \\) \
|
11
|
+
-and \\( -not -path '*/dist/*' \\) \
|
12
|
+
-and \\( -not -path '*/doc/*' \\) \
|
13
|
+
-and \\( -name '*.zig' \\) \
|
14
|
+
-and -type f | xargs -r zig fmt
|
15
|
+
SHELL
|
16
|
+
end
|
17
|
+
end
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require "yard"
|
2
2
|
require "rake"
|
3
|
-
require_relative "gwenGPT"
|
4
|
-
require_relative "ruby"
|
5
|
-
require_relative "rust"
|
3
|
+
require_relative "rake/gwenGPT"
|
4
|
+
require_relative "rake/ruby"
|
5
|
+
require_relative "rake/rust"
|
6
|
+
require_relative "rake/go"
|
7
|
+
require_relative "rake/zig"
|
6
8
|
|
7
9
|
module Peppermint
|
8
10
|
end
|
@@ -30,15 +32,15 @@ end
|
|
30
32
|
desc "update those dev config files...."
|
31
33
|
task :"peppermint:update" do
|
32
34
|
[".solargraph.yml", ".rubocop.yml", ".standard.yml", ".rspec", ".ruby-version"].each do |filename|
|
33
|
-
FileUtils.cp (File.expand_path File.join __dir__, "..", "..",
|
35
|
+
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", filename), Dir.pwd
|
34
36
|
end
|
35
37
|
if File.file? "package.json"
|
36
|
-
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "
|
38
|
+
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "Caddyfile"), Dir.pwd
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
desc "format this repo"
|
41
|
-
task fmt: [:deps, :deno_fmt, :"ruby:fmt", :"rust:fmt"]
|
43
|
+
task fmt: [:deps, :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"]
|
42
44
|
|
43
45
|
desc "fix this repo"
|
44
|
-
task fix: [:deps, :fmt, :"ruby:fix", :"rust:fix"]
|
46
|
+
task fix: [:deps, :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]
|
data/lib/peppermint/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peppermint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'j'"
|
@@ -204,10 +204,12 @@ files:
|
|
204
204
|
- doc/method_list.html
|
205
205
|
- doc/top-level-namespace.html
|
206
206
|
- lib/peppermint.rb
|
207
|
+
- lib/peppermint/rake.rb
|
208
|
+
- lib/peppermint/rake/go.rb
|
207
209
|
- lib/peppermint/rake/gwenGPT.rb
|
208
210
|
- lib/peppermint/rake/ruby.rb
|
209
211
|
- lib/peppermint/rake/rust.rb
|
210
|
-
- lib/peppermint/rake/
|
212
|
+
- lib/peppermint/rake/zig.rb
|
211
213
|
- lib/peppermint/version.rb
|
212
214
|
- peppermint.gemspec
|
213
215
|
homepage: https://github.com/janie314/peppermint
|