gem_name 0.1.4 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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: 140151e145a82fec9aa368ae1635f47a1f8c7845d4e8e8e3d158a630311360e2
4
- data.tar.gz: 3a288434a6981d7debe1275461f40dc4d7f7eda0305562558f623f363ad976f8
3
+ metadata.gz: c6d995c76640823be23e9bdbd9d24dbb48e5b0473d02926a5b34b9dd76a344f0
4
+ data.tar.gz: 9e27ba20b34612c2b44f97245229f1e01d8a9ce7bcfb01bda809d50831c9b853
5
5
  SHA512:
6
- metadata.gz: 70af77a9d0082d8719e99998e5c46d07b2200e2eb2813e0370562e015b2488cfb33257b8230967790c9333c6db8749142db849b24b1ae0c5270aa40447424a00
7
- data.tar.gz: d6adf56263fe80267fec42aa132d1d97cdab34f486abdc16ca39cb99b21fa5a5f36fe8fcd87a63db13be71e793fa07087ce992ca0bdc46a497a36799e043310d
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
- 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 &&
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|
@@ -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.7"
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - root