peppermint 0.1.14 → 0.1.16

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: d8674e058434fb0861eb1ea45c16415cb9865221fe61c44296afad6e31c169d0
4
- data.tar.gz: a4bea81eea290d0007fc1c760ea6425b4e86afbcc2748e1048395c7051e72141
3
+ metadata.gz: 5430f7e219a9f7a01d53eb0258802822c35a1b1fe7e4cb7957dfa569d4fefa2c
4
+ data.tar.gz: 9e3f91e22f3697f785ce9573bc7044b13e5b93235e32a7cca66bf897c93ffed5
5
5
  SHA512:
6
- metadata.gz: 064bf6685e228c0890bf890fba87cb10e84828ac3bb1776793d022307392fab09d3b1e9c2c6098589559e964a654facfb700efb211b9ba6b7f89ba4bcccea49d
7
- data.tar.gz: 07aea9fc0322ae4cff1fea375d6814ef1b75420ccafda1ff0f26c6d42acf7e1055920fc53080ad6ead400ef629c286a190070e4fb45e105f7089a7ae908e7f3d
6
+ metadata.gz: befad51768276590786a1bbc4fcf39780fb18c5500836b666ef719d423585a8385b6a5c4ff33e34b7682971177493df004151cefddac81ba97d98706ab2b6b4c
7
+ data.tar.gz: d827fb868a6c914887267fb8dece6d5b8a5c2afd640c3ec9ca576f777e44de100f5dac7c998f77e19c242a3a3073b9fe080bfabdca703947bf0b6b85bb71bd28
@@ -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
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" %>
17
25
 
18
26
  inherit_gem:
19
27
  standard: config/base.yml
20
- standard-rails: 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
 
@@ -26,24 +34,30 @@ Layout/LineLength:
26
34
  Enabled: false
27
35
  Layout/EmptyLineBetweenDefs:
28
36
  AllowAdjacentOneLineDefs: true
37
+ Layout/ExtraSpacing:
38
+ Enabled: false
39
+ Layout/SpaceBeforeComma:
40
+ Enabled: false
41
+ Layout/SpaceInsideHashLiteralBraces:
42
+ Enabled: false
29
43
  Style/DisableCopsWithinSourceCodeDirective:
30
44
  Enabled: true
31
45
  Rake/Desc:
32
46
  Enabled: false
47
+ <% if gem_exists "rails" %>
48
+ Rails/ThreeStateBooleanColumn:
49
+ Enabled: false
50
+ <% end %>
51
+ <% if gem_exists "rspec" %>
33
52
  RSpec/MultipleExpectations:
34
53
  Enabled: false
35
54
  RSpec/ExampleLength:
36
55
  Enabled: false
56
+ <% end %>
37
57
 
38
58
  #
39
59
  # Ignore differences from Rails autogeneration
40
60
  #
41
- Layout/SpaceInsideHashLiteralBraces:
42
- Exclude:
43
- - 'config/environments/*'
44
- Layout/ExtraSpacing:
45
- Exclude:
46
- - 'config/environments/*'
47
61
  Style/GlobalStdStream:
48
62
  Exclude:
49
63
  - 'config/environments/*'
@@ -122,3 +136,4 @@ AllCops:
122
136
  - 'vendor/**/*'
123
137
  - '.git/**/*'
124
138
  - 'db/migrate/*.active_storage.rb'
139
+ - 'db/migrate/*.acts_as_taggable_on_engine.rb'
data/Gemfile.lock CHANGED
@@ -1,17 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peppermint (0.1.14)
4
+ peppermint (0.1.16)
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)
@@ -172,4 +147,4 @@ DEPENDENCIES
172
147
  peppermint!
173
148
 
174
149
  BUNDLED WITH
175
- 2.4.19
150
+ 2.5.19
data/README.md CHANGED
@@ -28,3 +28,7 @@ bundle exec rake peppermint:update
28
28
  bundle update peppermint
29
29
  bundle exec rake peppermint:update
30
30
  ```
31
+
32
+ # Links
33
+
34
+ [RubyGems](https://rubygems.org/gems/peppermint/)
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
@@ -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
@@ -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", ".rspec", ".ruby-version",
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: [:"peppermint:deps", :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig: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: [:"peppermint:deps", :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]
25
+ task fix: [:"js:fix", :"ruby:fix", :"rust:fix", :"go:fix"]
@@ -1,4 +1,4 @@
1
1
  module Peppermint
2
2
  GEM_NAME = File.basename(__dir__)
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.16"
4
4
  end
data/package.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "dependencies": {},
3
+ "devDependencies": {
4
+ "@biomejs/biome": "1.9.2"
5
+ }
6
+ }
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.14
4
+ version: 0.1.16
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-07 00:00:00.000000000 Z
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
- - ".rspec"
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
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper