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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -2
  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: 140151e145a82fec9aa368ae1635f47a1f8c7845d4e8e8e3d158a630311360e2
4
- data.tar.gz: 3a288434a6981d7debe1275461f40dc4d7f7eda0305562558f623f363ad976f8
3
+ metadata.gz: a0e802e90b2912cdfbccaa997e0edbbc30ac0489839ef743023d9e5d33045a36
4
+ data.tar.gz: c6feb718c0925b6bdaec862b2b03aa315eaf3ecb2b4a78097e2981d4e48c6d41
5
5
  SHA512:
6
- metadata.gz: 70af77a9d0082d8719e99998e5c46d07b2200e2eb2813e0370562e015b2488cfb33257b8230967790c9333c6db8749142db849b24b1ae0c5270aa40447424a00
7
- data.tar.gz: d6adf56263fe80267fec42aa132d1d97cdab34f486abdc16ca39cb99b21fa5a5f36fe8fcd87a63db13be71e793fa07087ce992ca0bdc46a497a36799e043310d
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
- raise = args.to_a.fetch(0, "minor")
21
- a = sh "git add -A && { git commit -m 'bump #{raise}' || true; } && gem bump --tag --push --release"
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrewLib
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - root