peppermint 0.1.7 → 0.1.8

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: 9704dc6072f7d45f814a63659f782d3b775af412a333f48299b7fd48fbe11605
4
- data.tar.gz: 02b6b8c94240c08bd3de32f171170b2661b42cf78e329367ae79d5084f902d7e
3
+ metadata.gz: a6009680e190c414214c3576a0ad907fd364672f00f25353f611cde249f84764
4
+ data.tar.gz: 42287fcb94245460625a6db8a54035359ec095c34a3fb14a688c4f5caf7982cf
5
5
  SHA512:
6
- metadata.gz: be98ae10d9f06a1ef11abfc9caf18fd8e32bea78924ed4fba00a3a7c5affbebf87a169ed68545a4e037de52a71adfdb7acb3f4a94b15d95422191e786993f276
7
- data.tar.gz: 0a710a4bf513a7779c327596fce7dc5f9e1c8e8d407e6fded575e39f4723e4d1268cfbf83b7311846c1b7e94b69f592bee46dc5caaf41b87bb021ef8c7a97169
6
+ metadata.gz: ca2ebc05de532510e3e292a29abc5e7e7a1cb6eb30eb9a2be513cfba0e370b954ab7d77630002197ba0e83bd3065536eb1bb600d08427d6352e62c0bcb1a71ab
7
+ data.tar.gz: 3656b52adbadf5dbdbb6010bba08467bc775e971bc0da9be4dc7af5c907d362b6a8d0bd4a0bc8c68ddce4bca462f3f8b38dce95064fb2aea7cdf2cfad8542d95
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peppermint (0.1.7)
4
+ peppermint (0.1.8)
5
5
  pry-byebug (~> 3.10)
6
6
  rake (~> 13.1)
7
7
  rdoc (~> 6.6)
data/README.md CHANGED
@@ -4,20 +4,16 @@ _"A gem of a dev environment."_
4
4
 
5
5
  # Installation
6
6
 
7
- ```ruby
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
- require "peppermint/rake/ruby"
10
+ bundle add peppermint --group development
15
11
  ```
16
12
 
17
- or
13
+ 2. Put the following in your `Rakefile` as appropriate.
18
14
 
19
15
  ```ruby
20
- require "peppermint/rake/rust"
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
- # Update
25
+ # Updating
30
26
 
31
27
  ```bash
32
28
  bundle update peppermint
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/peppermint/rake/shared"
3
+ require_relative "lib/peppermint/rake"
4
4
 
5
5
  task default: :fmt
@@ -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
@@ -1,7 +1,11 @@
1
1
  require "rspec/core/rake_task"
2
2
  require "yard"
3
+ require "rake"
3
4
  require "rubocop/rake_task"
4
5
 
6
+ module Peppermint
7
+ end
8
+
5
9
  RSpec::Core::RakeTask.new(:spec)
6
10
 
7
11
  RuboCop::RakeTask.new do |t|
@@ -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
@@ -38,7 +40,7 @@ task :"peppermint:update" do
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"]
@@ -1,4 +1,4 @@
1
1
  module Peppermint
2
2
  GEM_NAME = File.basename(__dir__)
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
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.7
4
+ version: 0.1.8
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/shared.rb
212
+ - lib/peppermint/rake/zig.rb
211
213
  - lib/peppermint/version.rb
212
214
  - peppermint.gemspec
213
215
  homepage: https://github.com/janie314/peppermint