peppermint 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.forgejo/workflows/test-and-lint.yml +20 -0
- data/.rubocop.yml +20 -8
- data/Gemfile.lock +1 -26
- data/README.md +4 -0
- data/biome.json +21 -0
- data/bun.lockb +0 -0
- data/lib/peppermint/rake/js.rb +17 -0
- data/lib/peppermint/rake/ruby.rb +0 -3
- data/lib/peppermint/rake.rb +5 -28
- data/lib/peppermint/version.rb +1 -1
- data/package.json +6 -0
- data/peppermint.gemspec +0 -5
- data/tsconfig.json +27 -0
- metadata +7 -79
- data/.rspec +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c84d4e2a0388ac8536fc3cfd8cc5c87f40c2f4d1e5d138b2f12e6597327470
|
4
|
+
data.tar.gz: c0eaa95720187c97cb27ef96313409673ce3fcd6a2406916414eb1dc24eb28c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524fbb1a1ed6212adc128c441256139f5ad9694d4af3e41738223ca6f809620babe08832b9c67c93d185d416d5a0ff6d1feda2aa112101701c264e5aa97015ef
|
7
|
+
data.tar.gz: 69c811a5faac61aa463ebcc7bb11d82c2589f6683e5e1b7b972c0eeb90502c91b0d3188a3fe9424672b2831fc6844796f2ddb63b4a02ddbdc7ee7845bcf6444c
|
@@ -0,0 +1,20 @@
|
|
1
|
+
on:
|
2
|
+
pull_request:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- main
|
6
|
+
jobs:
|
7
|
+
check:
|
8
|
+
name: test and lint this branch
|
9
|
+
runs-on: gnuplex
|
10
|
+
steps:
|
11
|
+
- name: checkout this branch
|
12
|
+
uses: actions/checkout@v4
|
13
|
+
- name: rubocop
|
14
|
+
run: |
|
15
|
+
bundle
|
16
|
+
bundle exec rubocop
|
17
|
+
- name: biomejs
|
18
|
+
run: |
|
19
|
+
bun i
|
20
|
+
bun run biome ci
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
<%
|
2
|
+
require "open3"
|
3
|
+
def gem_exists(gem)
|
4
|
+
res = Open3.popen3("bundle", "info", "^#{gem}$") do |i, o, e, t|
|
5
|
+
t.value.success?
|
6
|
+
end
|
7
|
+
end
|
8
|
+
%>
|
1
9
|
---
|
2
10
|
inherit_mode:
|
3
11
|
merge:
|
@@ -5,19 +13,19 @@ inherit_mode:
|
|
5
13
|
|
6
14
|
require:
|
7
15
|
- standard
|
8
|
-
- standard-rails
|
16
|
+
<%= "- standard-rails" if gem_exists "rails" %>
|
9
17
|
- standard-custom
|
10
18
|
- standard-performance
|
11
19
|
- rubocop-performance
|
12
20
|
- rubocop-rake
|
13
|
-
- rubocop-rspec
|
14
|
-
- rubocop-rails
|
15
|
-
- rubocop-rspec_rails
|
16
|
-
- rubocop-capybara
|
17
|
-
|
21
|
+
<%= "- rubocop-rspec" if gem_exists "rspec" %>
|
22
|
+
<%= "- rubocop-rails" if gem_exists "rails" %>
|
23
|
+
<%= "- rubocop-rspec_rails" if gem_exists "rails" %>
|
24
|
+
<%= "- rubocop-capybara" if gem_exists "capybara" %>
|
25
|
+
|
18
26
|
inherit_gem:
|
19
|
-
standard: config/base.yml
|
20
|
-
standard-rails: config/base.yml
|
27
|
+
standard: config/base.yml
|
28
|
+
<%= "standard-rails: config/base.yml" if gem_exists "rails" %>
|
21
29
|
standard-performance: config/base.yml
|
22
30
|
standard-custom: config/base.yml
|
23
31
|
|
@@ -30,10 +38,14 @@ Style/DisableCopsWithinSourceCodeDirective:
|
|
30
38
|
Enabled: true
|
31
39
|
Rake/Desc:
|
32
40
|
Enabled: false
|
41
|
+
<%
|
42
|
+
<<RSPEC if gem_exists "rspec"
|
33
43
|
RSpec/MultipleExpectations:
|
34
44
|
Enabled: false
|
35
45
|
RSpec/ExampleLength:
|
36
46
|
Enabled: false
|
47
|
+
RSPEC
|
48
|
+
%>
|
37
49
|
|
38
50
|
#
|
39
51
|
# Ignore differences from Rails autogeneration
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peppermint (0.1.
|
4
|
+
peppermint (0.1.15)
|
5
5
|
pry-byebug (~> 3.10)
|
6
6
|
rake (~> 13.2)
|
7
7
|
rdoc (~> 6.7)
|
8
|
-
rspec (~> 3.13)
|
9
8
|
rubocop (~> 1.65)
|
10
|
-
rubocop-capybara (~> 2.21)
|
11
|
-
rubocop-rails (~> 2.26)
|
12
9
|
rubocop-rake (~> 0.6)
|
13
|
-
rubocop-rspec (~> 3.0, >= 3.0.5)
|
14
|
-
rubocop-rspec_rails (~> 2.30)
|
15
10
|
solargraph (~> 0.50)
|
16
11
|
standard (~> 1.40)
|
17
12
|
standard-rails (~> 1.2)
|
@@ -81,19 +76,6 @@ GEM
|
|
81
76
|
reverse_markdown (2.1.1)
|
82
77
|
nokogiri
|
83
78
|
rexml (3.3.7)
|
84
|
-
rspec (3.13.0)
|
85
|
-
rspec-core (~> 3.13.0)
|
86
|
-
rspec-expectations (~> 3.13.0)
|
87
|
-
rspec-mocks (~> 3.13.0)
|
88
|
-
rspec-core (3.13.1)
|
89
|
-
rspec-support (~> 3.13.0)
|
90
|
-
rspec-expectations (3.13.3)
|
91
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
92
|
-
rspec-support (~> 3.13.0)
|
93
|
-
rspec-mocks (3.13.1)
|
94
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
-
rspec-support (~> 3.13.0)
|
96
|
-
rspec-support (3.13.1)
|
97
79
|
rubocop (1.65.1)
|
98
80
|
json (~> 2.3)
|
99
81
|
language_server-protocol (>= 3.17.0)
|
@@ -107,8 +89,6 @@ GEM
|
|
107
89
|
unicode-display_width (>= 2.4.0, < 3.0)
|
108
90
|
rubocop-ast (1.32.3)
|
109
91
|
parser (>= 3.3.1.0)
|
110
|
-
rubocop-capybara (2.21.0)
|
111
|
-
rubocop (~> 1.41)
|
112
92
|
rubocop-performance (1.21.1)
|
113
93
|
rubocop (>= 1.48.1, < 2.0)
|
114
94
|
rubocop-ast (>= 1.31.1, < 2.0)
|
@@ -119,11 +99,6 @@ GEM
|
|
119
99
|
rubocop-ast (>= 1.31.1, < 2.0)
|
120
100
|
rubocop-rake (0.6.0)
|
121
101
|
rubocop (~> 1.0)
|
122
|
-
rubocop-rspec (3.0.5)
|
123
|
-
rubocop (~> 1.61)
|
124
|
-
rubocop-rspec_rails (2.30.0)
|
125
|
-
rubocop (~> 1.61)
|
126
|
-
rubocop-rspec (~> 3, >= 3.0.1)
|
127
102
|
ruby-progressbar (1.13.0)
|
128
103
|
securerandom (0.3.1)
|
129
104
|
solargraph (0.50.0)
|
data/README.md
CHANGED
data/biome.json
CHANGED
@@ -1,4 +1,25 @@
|
|
1
1
|
{
|
2
|
+
"linter": {
|
3
|
+
"ignore": [
|
4
|
+
"app/assets/builds/**",
|
5
|
+
"app/assets/stylesheets/application.tailwind.css",
|
6
|
+
"config/provision/production.json",
|
7
|
+
"node_modules",
|
8
|
+
"doc",
|
9
|
+
".yardoc"
|
10
|
+
]
|
11
|
+
},
|
12
|
+
"formatter": {
|
13
|
+
"ignore": [
|
14
|
+
"app/assets/builds/**",
|
15
|
+
"app/assets/stylesheets/application.tailwind.css",
|
16
|
+
"doc",
|
17
|
+
"package.json",
|
18
|
+
"node_modules",
|
19
|
+
".yardoc",
|
20
|
+
"config/provision/production.json"
|
21
|
+
]
|
22
|
+
},
|
2
23
|
"css": {
|
3
24
|
"formatter": {
|
4
25
|
"indentStyle": "space"
|
data/bun.lockb
ADDED
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
3
|
+
module Peppermint
|
4
|
+
end
|
5
|
+
|
6
|
+
task :"js:deps" do
|
7
|
+
sh "command -v bun || curl -fsSL https://bun.sh/install | bash"
|
8
|
+
sh "bun add @biomejs/biome --dev"
|
9
|
+
end
|
10
|
+
|
11
|
+
task :"js:fmt" do
|
12
|
+
sh "bun run biome format --write"
|
13
|
+
end
|
14
|
+
|
15
|
+
task :"js:fix" do
|
16
|
+
sh "bun run biome lint --write"
|
17
|
+
end
|
data/lib/peppermint/rake/ruby.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require "rspec/core/rake_task"
|
2
1
|
require "yard"
|
3
2
|
require "rake"
|
4
3
|
require "rubocop/rake_task"
|
@@ -6,8 +5,6 @@ require "rubocop/rake_task"
|
|
6
5
|
module Peppermint
|
7
6
|
end
|
8
7
|
|
9
|
-
RSpec::Core::RakeTask.new(:spec)
|
10
|
-
|
11
8
|
RuboCop::RakeTask.new do |t|
|
12
9
|
t.requires << "rubocop-rake"
|
13
10
|
end
|
data/lib/peppermint/rake.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "yard"
|
2
2
|
require "rake"
|
3
3
|
require_relative "rake/gwenGPT"
|
4
|
+
require_relative "rake/js"
|
4
5
|
require_relative "rake/ruby"
|
5
6
|
require_relative "rake/rust"
|
6
7
|
require_relative "rake/go"
|
@@ -9,40 +10,16 @@ require_relative "rake/zig"
|
|
9
10
|
module Peppermint
|
10
11
|
end
|
11
12
|
|
12
|
-
desc "install peppermint dependencies"
|
13
|
-
task "peppermint:deps": [:"rust:deps"] do
|
14
|
-
sh "command -v deno || curl -fsSL https://deno.land/x/install/install.sh | sh"
|
15
|
-
end
|
16
|
-
|
17
|
-
task :deno_fmt do
|
18
|
-
sh <<~SHELL
|
19
|
-
find . \\( -not -path '*/target/*' \\) \
|
20
|
-
-and \\( -not -path '*/node_modules/*' \\) \
|
21
|
-
-and \\( -not -path '*/dist/*' \\) \
|
22
|
-
-and \\( -not -path '*/vendor/*' \\) \
|
23
|
-
-and \\( -not -path '*/tmp/*' \\) \
|
24
|
-
-and \\( -not -path '*/doc/*' \\) \
|
25
|
-
-and \\( -name '*.json' -o -name '*.md' -o -name '*.js' \
|
26
|
-
-o -name '*.ts' -o -name '*.jsx' -o -name '*.tsx' \\) \
|
27
|
-
-and \\( -not -name 'package.json' \\) \
|
28
|
-
-and \\( -not -name 'package-lock.json' \\) \
|
29
|
-
-and -type f | xargs -r deno fmt
|
30
|
-
SHELL
|
31
|
-
end
|
32
|
-
|
33
13
|
desc "update those dev config files...."
|
34
14
|
task :"peppermint:update" do
|
35
|
-
[".solargraph.yml", ".rubocop.yml", ".standard.yml", ".
|
36
|
-
"biome.json"].each do |filename|
|
15
|
+
[".solargraph.yml", ".rubocop.yml", ".standard.yml", ".ruby-version",
|
16
|
+
"biome.json", "Caddyfile"].each do |filename|
|
37
17
|
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", filename), Dir.pwd
|
38
18
|
end
|
39
|
-
if File.file? "package.json"
|
40
|
-
FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "Caddyfile"), Dir.pwd
|
41
|
-
end
|
42
19
|
end
|
43
20
|
|
44
21
|
desc "format this repo"
|
45
|
-
task fmt: [:"
|
22
|
+
task fmt: [:"js:fmt", :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"]
|
46
23
|
|
47
24
|
desc "fix this repo"
|
48
|
-
task fix: [:"
|
25
|
+
task fix: [:"js:fix", :"ruby:fix", :"rust:fix", :"go:fix"]
|
data/lib/peppermint/version.rb
CHANGED
data/package.json
ADDED
data/peppermint.gemspec
CHANGED
@@ -24,13 +24,8 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "pry-byebug", "~> 3.10"
|
25
25
|
spec.add_dependency "rake", "~> 13.2"
|
26
26
|
spec.add_dependency "rdoc", "~> 6.7"
|
27
|
-
spec.add_dependency "rspec", "~> 3.13"
|
28
27
|
spec.add_dependency "rubocop", "~> 1.65"
|
29
|
-
spec.add_dependency "rubocop-capybara", "~> 2.21"
|
30
|
-
spec.add_dependency "rubocop-rails", "~> 2.26"
|
31
28
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
32
|
-
spec.add_dependency "rubocop-rspec", "~> 3.0", ">= 3.0.5"
|
33
|
-
spec.add_dependency "rubocop-rspec_rails", "~> 2.30"
|
34
29
|
spec.add_dependency "solargraph", "~> 0.50"
|
35
30
|
spec.add_dependency "standard", "~> 1.40"
|
36
31
|
spec.add_dependency "standard-rails", "~> 1.2"
|
data/tsconfig.json
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
// Enable latest features
|
4
|
+
"lib": ["ESNext", "DOM"],
|
5
|
+
"target": "ESNext",
|
6
|
+
"module": "ESNext",
|
7
|
+
"moduleDetection": "force",
|
8
|
+
"jsx": "react-jsx",
|
9
|
+
"allowJs": true,
|
10
|
+
|
11
|
+
// Bundler mode
|
12
|
+
"moduleResolution": "bundler",
|
13
|
+
"allowImportingTsExtensions": true,
|
14
|
+
"verbatimModuleSyntax": true,
|
15
|
+
"noEmit": true,
|
16
|
+
|
17
|
+
// Best practices
|
18
|
+
"strict": true,
|
19
|
+
"skipLibCheck": true,
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
21
|
+
|
22
|
+
// Some stricter flags (disabled by default)
|
23
|
+
"noUnusedLocals": false,
|
24
|
+
"noUnusedParameters": false,
|
25
|
+
"noPropertyAccessFromIndexSignature": false
|
26
|
+
}
|
27
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'j'"
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '6.7'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.13'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.13'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rubocop
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,34 +66,6 @@ dependencies:
|
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '1.65'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-capybara
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.21'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.21'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-rails
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '2.26'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '2.26'
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
70
|
name: rubocop-rake
|
113
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,40 +80,6 @@ dependencies:
|
|
122
80
|
- - "~>"
|
123
81
|
- !ruby/object:Gem::Version
|
124
82
|
version: '0.6'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '3.0'
|
132
|
-
- - ">="
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: 3.0.5
|
135
|
-
type: :runtime
|
136
|
-
prerelease: false
|
137
|
-
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
requirements:
|
139
|
-
- - "~>"
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '3.0'
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 3.0.5
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: rubocop-rspec_rails
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '2.30'
|
152
|
-
type: :runtime
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '2.30'
|
159
83
|
- !ruby/object:Gem::Dependency
|
160
84
|
name: solargraph
|
161
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +143,7 @@ executables: []
|
|
219
143
|
extensions: []
|
220
144
|
extra_rdoc_files: []
|
221
145
|
files:
|
222
|
-
- ".
|
146
|
+
- ".forgejo/workflows/test-and-lint.yml"
|
223
147
|
- ".rubocop.yml"
|
224
148
|
- ".ruby-version"
|
225
149
|
- ".solargraph.yml"
|
@@ -236,6 +160,7 @@ files:
|
|
236
160
|
- README.md
|
237
161
|
- Rakefile
|
238
162
|
- biome.json
|
163
|
+
- bun.lockb
|
239
164
|
- doc/Peppermint.html
|
240
165
|
- doc/Peppermint/GwenGPT.html
|
241
166
|
- doc/_index.html
|
@@ -256,11 +181,14 @@ files:
|
|
256
181
|
- lib/peppermint/rake.rb
|
257
182
|
- lib/peppermint/rake/go.rb
|
258
183
|
- lib/peppermint/rake/gwenGPT.rb
|
184
|
+
- lib/peppermint/rake/js.rb
|
259
185
|
- lib/peppermint/rake/ruby.rb
|
260
186
|
- lib/peppermint/rake/rust.rb
|
261
187
|
- lib/peppermint/rake/zig.rb
|
262
188
|
- lib/peppermint/version.rb
|
189
|
+
- package.json
|
263
190
|
- peppermint.gemspec
|
191
|
+
- tsconfig.json
|
264
192
|
homepage: https://codeberg.org/janie314/peppermint
|
265
193
|
licenses:
|
266
194
|
- BSD-3-Clause
|
data/.rspec
DELETED