gem_name 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -2
- 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: a0e802e90b2912cdfbccaa997e0edbbc30ac0489839ef743023d9e5d33045a36
|
4
|
+
data.tar.gz: c6feb718c0925b6bdaec862b2b03aa315eaf3ecb2b4a78097e2981d4e48c6d41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaea306de55a9d4172cca835bf0472088e129dd584b1d35454c74d7e2df6b506282603d48f98071e2558e5665e78286ecdd9b2486371207a9fd0481eea2bc762
|
7
|
+
data.tar.gz: af98c3099730b887d0ebf9455622041039004459522062711d7cb8a5a57d08ed8b4cc6ecdb65960c81b766f612410925ea594f051335accb32951f7f50976c34
|
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,9 +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
|
-
|
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"
|
22
28
|
puts args.to_a.fetch(0, "minor")
|
23
29
|
end
|
24
30
|
|
data/lib/brew_lib/version.rb
CHANGED