peppermint 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -5
- data/README.md +1 -1
- data/lib/peppermint/rake/go.rb +2 -0
- data/lib/peppermint/rake/gwenGPT.rb +1 -1
- data/lib/peppermint/rake/rust.rb +0 -16
- data/lib/peppermint/rake/zig.rb +2 -0
- data/lib/peppermint/rake.rb +7 -6
- data/lib/peppermint/version.rb +1 -1
- data/peppermint.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 143ea683f1bec491dcd5c21bdcace0db1d9ee796c5914e7d4c19b0cb5698195c
|
4
|
+
data.tar.gz: c676b2344ec4fffea25620ab60834c21e31cbe0820134086333c2f8142576e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cd9c4bb64b6aaa24fd9aac7c01de730026df6dd733bfd5a79e93f44912b8512bdb694427417439addba8dc49cf2172026ee67abe37e118a2878a86da7e28097
|
7
|
+
data.tar.gz: dee367a6d07a7d368f0fef4e3cbcf2151346dbae5fd6b8f3c79c5e82eb46a50318cfd90173fa781aa23975c877055125f5833192cd423644ba118175d841c902
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peppermint (0.1.
|
4
|
+
peppermint (0.1.10)
|
5
5
|
pry-byebug (~> 3.10)
|
6
6
|
rake (~> 13.1)
|
7
7
|
rdoc (~> 6.6)
|
@@ -11,7 +11,6 @@ PATH
|
|
11
11
|
rubocop-rspec (~> 2.25)
|
12
12
|
solargraph (~> 0.50)
|
13
13
|
standard (~> 1.3)
|
14
|
-
toml-rb (~> 2.2)
|
15
14
|
yard (~> 0.9)
|
16
15
|
|
17
16
|
GEM
|
@@ -21,7 +20,6 @@ GEM
|
|
21
20
|
backport (1.2.0)
|
22
21
|
benchmark (0.3.0)
|
23
22
|
byebug (11.1.3)
|
24
|
-
citrus (3.0.2)
|
25
23
|
coderay (1.1.3)
|
26
24
|
diff-lcs (1.5.0)
|
27
25
|
e2mmap (0.1.0)
|
@@ -129,8 +127,6 @@ GEM
|
|
129
127
|
stringio (3.1.0)
|
130
128
|
thor (1.3.0)
|
131
129
|
tilt (2.3.0)
|
132
|
-
toml-rb (2.2.0)
|
133
|
-
citrus (~> 3.0, > 3.0)
|
134
130
|
unicode-display_width (2.5.0)
|
135
131
|
yard (0.9.34)
|
136
132
|
|
data/README.md
CHANGED
data/lib/peppermint/rake/go.rb
CHANGED
@@ -9,6 +9,8 @@ task :"go:fmt" do
|
|
9
9
|
find . \\( -not -path '*/target/*' \\) \
|
10
10
|
-and \\( -not -path '*/node_modules/*' \\) \
|
11
11
|
-and \\( -not -path '*/dist/*' \\) \
|
12
|
+
-and \\( -not -path '*/vendor/*' \\) \
|
13
|
+
-and \\( -not -path '*/tmp/*' \\) \
|
12
14
|
-and \\( -not -path '*/doc/*' \\) \
|
13
15
|
-and \\( -name '*.go' \\) \
|
14
16
|
-and -type f | xargs -r go fmt
|
@@ -25,7 +25,7 @@ task :gwenGPT do
|
|
25
25
|
.each_slice(3) { |row|
|
26
26
|
if row.length == 3
|
27
27
|
_, msg = Peppermint::GwenGPT.lint(row[1], row[2])
|
28
|
-
print "%-10s%-
|
28
|
+
print "%-10s%-60s%-30s\n" % ([row[0], row[1], msg].map { |s| s.strip })
|
29
29
|
end
|
30
30
|
}
|
31
31
|
end
|
data/lib/peppermint/rake/rust.rb
CHANGED
@@ -1,24 +1,8 @@
|
|
1
1
|
require "rake"
|
2
|
-
require "toml-rb"
|
3
2
|
|
4
3
|
module Peppermint
|
5
4
|
end
|
6
5
|
|
7
|
-
desc "development build"
|
8
|
-
task :"rust:build_dev" do
|
9
|
-
cargo = TomlRB.load_file("./Cargo.toml")
|
10
|
-
ENV["PEPPERMINT_VERSION"] = cargo["package"]["version"] + "-" + `git rev-parse --short HEAD`.chop
|
11
|
-
sh "cargo build"
|
12
|
-
end
|
13
|
-
|
14
|
-
desc "release build"
|
15
|
-
task :"rust:build_release" do
|
16
|
-
cargo = TomlRB.load_file("./Cargo.toml")
|
17
|
-
ENV["PEPPERMINT_VERSION"] = cargo["package"]["version"] + "-" + `git rev-parse --short HEAD`.chop
|
18
|
-
sh "cargo build -r"
|
19
|
-
end
|
20
|
-
|
21
|
-
desc "install dependencies"
|
22
6
|
task :"rust:deps" do
|
23
7
|
sh "command -v cargo || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" \
|
24
8
|
if File.file? "Cargo.toml"
|
data/lib/peppermint/rake/zig.rb
CHANGED
@@ -9,6 +9,8 @@ task :"zig:fmt" do
|
|
9
9
|
find . \\( -not -path '*/target/*' \\) \
|
10
10
|
-and \\( -not -path '*/node_modules/*' \\) \
|
11
11
|
-and \\( -not -path '*/dist/*' \\) \
|
12
|
+
-and \\( -not -path '*/vendor/*' \\) \
|
13
|
+
-and \\( -not -path '*/tmp/*' \\) \
|
12
14
|
-and \\( -not -path '*/doc/*' \\) \
|
13
15
|
-and \\( -name '*.zig' \\) \
|
14
16
|
-and -type f | xargs -r zig fmt
|
data/lib/peppermint/rake.rb
CHANGED
@@ -10,16 +10,17 @@ module Peppermint
|
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "install peppermint dependencies"
|
13
|
-
task deps: [:"rust:deps"] do
|
13
|
+
task "peppermint:deps": [:"rust:deps"] do
|
14
14
|
sh "command -v deno || curl -fsSL https://deno.land/x/install/install.sh | sh"
|
15
15
|
end
|
16
16
|
|
17
|
-
# desc "run deno fmt"
|
18
17
|
task :deno_fmt do
|
19
18
|
sh <<~SHELL
|
20
19
|
find . \\( -not -path '*/target/*' \\) \
|
21
20
|
-and \\( -not -path '*/node_modules/*' \\) \
|
22
21
|
-and \\( -not -path '*/dist/*' \\) \
|
22
|
+
-and \\( -not -path '*/vendor/*' \\) \
|
23
|
+
-and \\( -not -path '*/tmp/*' \\) \
|
23
24
|
-and \\( -not -path '*/doc/*' \\) \
|
24
25
|
-and \\( -name '*.json' -o -name '*.md' -o -name '*.js' \
|
25
26
|
-o -name '*.ts' -o -name '*.jsx' -o -name '*.tsx' \\) \
|
@@ -32,15 +33,15 @@ end
|
|
32
33
|
desc "update those dev config files...."
|
33
34
|
task :"peppermint:update" do
|
34
35
|
[".solargraph.yml", ".rubocop.yml", ".standard.yml", ".rspec", ".ruby-version"].each do |filename|
|
35
|
-
FileUtils.cp (File.expand_path File.join __dir__, "..", "..",
|
36
|
+
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", filename), Dir.pwd
|
36
37
|
end
|
37
38
|
if File.file? "package.json"
|
38
|
-
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "
|
39
|
+
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "Caddyfile"), Dir.pwd
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
42
43
|
desc "format this repo"
|
43
|
-
task fmt: [:deps, :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"]
|
44
|
+
task fmt: [:"peppermint:deps", :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"]
|
44
45
|
|
45
46
|
desc "fix this repo"
|
46
|
-
task fix: [:deps, :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]
|
47
|
+
task fix: [:"peppermint:deps", :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]
|
data/lib/peppermint/version.rb
CHANGED
data/peppermint.gemspec
CHANGED
@@ -30,7 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "rubocop-rspec", "~> 2.25"
|
31
31
|
spec.add_dependency "solargraph", "~> 0.50"
|
32
32
|
spec.add_dependency "standard", "~> 1.3"
|
33
|
-
spec.add_dependency "toml-rb", "~> 2.2"
|
34
33
|
spec.add_dependency "yard", "~> 0.9"
|
35
34
|
|
36
35
|
### BEGIN: DO NOT EDIT ###
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'j'"
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '1.3'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: toml-rb
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '2.2'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '2.2'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: yard
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|