bake-gem 0.2.7 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ed78721388765693d7d5ac2e3bd9348ab6507d96e1ae438f6b2fc8be980897c
4
- data.tar.gz: a5aa2ea6cb7a455e2408a5b4187f7e6c258c4ecc6ce0e20980cd96c68b65e630
3
+ metadata.gz: 2a0fac78b169ebe250faa9bdab4bb6ec7a699afa543159c90ed96b3c81f5154b
4
+ data.tar.gz: e1a633c2b3afd3b7d3aada1d0fb872f7c6ff6ec9038fd389f57e47ff743bb1b0
5
5
  SHA512:
6
- metadata.gz: f65118a892d934d2ab7ddf0124cb4faed164cbf595a15fe975ae9cba227405efd6a5d1bdac20cfd938b726ebaef899576f8a4b1866b2ac7d4838a897e53c41f5
7
- data.tar.gz: fcf00fff075dd0ec442e9dd7eacc843fa20e7dc2523a1d034a5621df0ff92ca1394185bf2b38bfc012a3b22cb1252c9a049586241107f6a34b4fe061c0294a57
6
+ metadata.gz: 27f946dcb4240f5c534903fc482d23044d36c8c197e40b9ff66132360b67ed13d71d9e33383b29c24743eca8e2f30a78f2c40e91c93299069dfaac6dcdb3070d
7
+ data.tar.gz: 3a4f092b7d727f8f1f450d90bb48b7ccf8969700123a0e3306e422e908010de3731867f351b12cf685afa1c759056d43041b671d2bac3745cc6b710aa9ddec53
checksums.yaml.gz.sig CHANGED
Binary file
data/bake/gem.rb CHANGED
@@ -75,5 +75,22 @@ def release(tag: true)
75
75
  raise
76
76
  end
77
77
 
78
+ # If we are on a branch, push, otherwise just push the tags (assuming shallow checkout):
79
+ if current_branch
80
+ system("git", "push")
81
+ end
82
+
78
83
  system("git", "push", "--tags")
79
84
  end
85
+
86
+ private
87
+
88
+ # Figure out if there is a current branch, if not, return `nil`.
89
+ def current_branch
90
+ # We originally used this but it is not supported by older versions of git.
91
+ # readlines("git", "branch", "--show-current").first&.chomp
92
+
93
+ readlines("git", "symbolic-ref", "--short", "--quiet", "HEAD").first&.chomp
94
+ rescue
95
+ nil
96
+ end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Bake
24
24
  module Gem
25
- VERSION = "0.2.7"
25
+ VERSION = "0.2.10"
26
26
  end
27
27
  end
data/lib/bake/gem.rb CHANGED
@@ -1,8 +1,23 @@
1
- require "bake/gem/version"
1
+ # frozen_string_literal: true
2
2
 
3
- module Bake
4
- module Gem
5
- class Error < StandardError; end
6
- # Your code goes here...
7
- end
8
- end
3
+ # Copyright, 2021, by Samuel G. D. Williams. <http://www.codeotaku.com>
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
22
+
23
+ require_relative "gem/version"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -36,8 +36,50 @@ cert_chain:
36
36
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
37
37
  HiLJ8VOFx6w=
38
38
  -----END CERTIFICATE-----
39
- date: 2021-10-20 00:00:00.000000000 Z
40
- dependencies: []
39
+ date: 2022-06-13 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: covered
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
41
83
  description:
42
84
  email:
43
85
  executables: []
@@ -71,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
113
  - !ruby/object:Gem::Version
72
114
  version: '0'
73
115
  requirements: []
74
- rubygems_version: 3.0.3.1
116
+ rubygems_version: 3.3.7
75
117
  signing_key:
76
118
  specification_version: 4
77
119
  summary: Release management for Ruby gems.
metadata.gz.sig CHANGED
Binary file