gem_name 0.1.3 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -3
- data/lib/brew_lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c7e6d060766f1d528b349515ab896da90aa2f96836b1ddce3eb38dd30faafa4
|
4
|
+
data.tar.gz: 21b5a8716113c25f3db395cccff77ad9eca0de6e42c2f0e8dac6fcc89e924e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c411a64094fded285c2e7b04c8c974584f17ad12f8437bc8ab6134cb5a2aa0d856d603a017ad1f7e333defcd9a06cf2d966cc30a083d44a9c3a2df83fe74bbb5
|
7
|
+
data.tar.gz: 2eca9bc5b352b5832732f470708989c51009cb4aebb9ef993390b961efca654d5772b28bd082b3677fe6e3b22b52bbe559d5506161b0e4a6de2df7543744be2b
|
data/Rakefile
CHANGED
@@ -4,6 +4,10 @@ require "bundler/gem_tasks"
|
|
4
4
|
require "rake/testtask"
|
5
5
|
require_relative "lib/brew_lib"
|
6
6
|
|
7
|
+
def version
|
8
|
+
`git describe --tags --abbrev=0`.chomp
|
9
|
+
end
|
10
|
+
|
7
11
|
desc "Show all tasks in current Rakefile, to see descriptions rake -T or rake -D"
|
8
12
|
task :all do
|
9
13
|
Rake::Task.tasks.each do |task|
|
@@ -16,10 +20,11 @@ task :tasks do
|
|
16
20
|
sh "rake", "--tasks"
|
17
21
|
end
|
18
22
|
|
23
|
+
desc "Create a new release and push [patch|minor|major], default is patch"
|
19
24
|
task bump: [:test] do |t, args|
|
20
|
-
|
21
|
-
|
22
|
-
|
25
|
+
part = args.to_a.fetch(0, "patch")
|
26
|
+
sh "git add -A && { git commit --quiet -m 'bump #{part}' 2>/dev/null || true; } &&
|
27
|
+
gem bump --silent --quiet --tag --push --release && gh release create #{version} --generate-notes"
|
23
28
|
end
|
24
29
|
|
25
30
|
Rake::TestTask.new(:test) do |t|
|
data/lib/brew_lib/version.rb
CHANGED