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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -3
  3. data/lib/brew_lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ef6aceee4712f9adf68bdf955d6cd2e5b2df7f1e08462da28f5df3de5d97979
4
- data.tar.gz: 1240adbceb34eef3d2499aa4cdd3db615fc046bec289a6d7e8713aa85e0745d4
3
+ metadata.gz: 6c7e6d060766f1d528b349515ab896da90aa2f96836b1ddce3eb38dd30faafa4
4
+ data.tar.gz: 21b5a8716113c25f3db395cccff77ad9eca0de6e42c2f0e8dac6fcc89e924e5c
5
5
  SHA512:
6
- metadata.gz: 2d59329f28735ed302ca2665f1fdda720cb7a32ae1630574b05ba08fde959199e3285f1c28c881140f65f5c7710c0623ce0e74e0021ecdc823a21e6652bfe925
7
- data.tar.gz: 68e4632109992378412e5635d70ee7f55607d0d79d5dc84d5a90b72e76a697ec89f041689fc19b7f8aa7869d1621fb3bd314228223510b00ddae5293156277dc
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
- raise = args.to_a.fetch(0, "minor")
21
- a = sh "git add -A && { git commit -m 'bump #{raise}' || true; } && gem bump --tag --push --release"
22
- puts args.to_a.fetch(0, "minor")
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrewLib
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - root