peppermint 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9704dc6072f7d45f814a63659f782d3b775af412a333f48299b7fd48fbe11605
4
- data.tar.gz: 02b6b8c94240c08bd3de32f171170b2661b42cf78e329367ae79d5084f902d7e
3
+ metadata.gz: 31f1531c73926017b56e9e79acd2bd16254121715a6323ec195ebb184c728d82
4
+ data.tar.gz: 7bbf4017a00d7e4de3f88b4af1fa24d2a18efdb504bb13edac86ee94f623462b
5
5
  SHA512:
6
- metadata.gz: be98ae10d9f06a1ef11abfc9caf18fd8e32bea78924ed4fba00a3a7c5affbebf87a169ed68545a4e037de52a71adfdb7acb3f4a94b15d95422191e786993f276
7
- data.tar.gz: 0a710a4bf513a7779c327596fce7dc5f9e1c8e8d407e6fded575e39f4723e4d1268cfbf83b7311846c1b7e94b69f592bee46dc5caaf41b87bb021ef8c7a97169
6
+ metadata.gz: 31d1995ff49e2af344934cfc1149a03856d8a53a4d40348a1b0989d39c84991396611e4e6404f515bec197a7c55e02793ef99bfd5046fc72bf10d8457a101445
7
+ data.tar.gz: 3fda6c0a2049be8a315d942f9c9926ab9a8a2000029f13b25e51c68aeb44379569f269770a99231678238edc481a64abbba3ccfd0b35bb8ebfa27854cb10f493
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.9)
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`:
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
@@ -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__, "..", "..", "..", filename), Dir.pwd
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__, "..", "..", "..", "Caddyfile"), Dir.pwd
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"]
@@ -1,4 +1,4 @@
1
1
  module Peppermint
2
2
  GEM_NAME = File.basename(__dir__)
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.9"
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.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/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