gem_name 0.1.4 → 0.1.7
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: c6d995c76640823be23e9bdbd9d24dbb48e5b0473d02926a5b34b9dd76a344f0
|
4
|
+
data.tar.gz: 9e27ba20b34612c2b44f97245229f1e01d8a9ce7bcfb01bda809d50831c9b853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a20d4f209caa0e016301f4f9174d7666e89dadf643bd71a3911f6f9cb595056680130f61ad5bbd55293998849ac443d783db83c09aaf22a4405c9552e52f6129
|
7
|
+
data.tar.gz: 7cc58e7f3d427af6c44d08ccaa3bb1564d181f51352283ff312331cc593969a403969d231e7129ca107b4374a956ab411a2253d8da806e0dea1040cea8875266
|
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 &&
|
27
|
+
gem bump --silent --quiet --tag --push --release && gh release create #{version} --generate-notes; } || true"
|
23
28
|
end
|
24
29
|
|
25
30
|
Rake::TestTask.new(:test) do |t|
|
data/lib/brew_lib/version.rb
CHANGED