bake-gem 0.5.0 → 0.7.0

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: 29280cfd205cc0b3fc62e19e5d7bf726ec77c9334dc9da3cb1cbcbfdfe20cc36
4
- data.tar.gz: 5c2871182830fec5966f3ac16b9856012c16b2a46b07139ce8af0c11350c2a9e
3
+ metadata.gz: 4dc43e87bb64c81f260c07c1c42f24a0eeed5beca824dad65a0a0cba2d2d5c5c
4
+ data.tar.gz: ed6e4af3881fe730ec346aff04350dfe13d5e03f5219b36daab8434fa1cd2c3e
5
5
  SHA512:
6
- metadata.gz: 701980b4f93f6eba2775a3deb3911995472862f9eb736826c252400009ccbbe6580554eea842ebddc64f23189f706119e4e26bfa057d3d2d4be1cd8b90f53864
7
- data.tar.gz: aba19f8f926bfbe7a78ec0d170f59b2d2ceaa55be8c8f3eb0fe4e578424d2c6fcfd62554e335546be23d4973b08eb1851109faefd82786407168893943add50c
6
+ metadata.gz: e9bc63b0c2107f8d60f93b9cf5f3e8112650a22e667a98abddcf5f53d68928cf14578f2f9ac8dd8ce78a27e0bdf440582865a01253f3e5f8bd2af4011388a513
7
+ data.tar.gz: 79187293665d7ba41a553c1a95b13832e3c9789e548e3af25b9bb74409df1793f5fbfe6850ba98a40dbbc89b3d4e6e9d8dfa93846c40c4871a05d75e5868b77f
checksums.yaml.gz.sig CHANGED
@@ -1,5 +1 @@
1
- y�U�y��Yӿ�:��
2
- b��d��W�?3�D��jZi}��h��Ԡ��KP�
3
- c��`FH���x�nc��?~��^�=����Y��nX�k,�"����i�����S��?���X���{ T�ל@ �TEz|��i O���&�3�,P� 1���)�G$�)�=�,��E1��sK(_�ֺ홡 ˑDd
4
- ��{�4@ӄ�84�Һ��)S--�� �g�=���
5
- MsX$��#G�{�#u+ӝ�2���!����{]��؃���_M�����!�_�h���8���cS�07Pa�iv9~�1RG��gP1�^񗖪�
1
+ MpB�����2��sW�N �w�9�g�լ,&$ۺ���JS���[^��{��Ai�S�w���|��?Ne�0o�����%թO���5�,������\_�N�,E��w�hQ"����G冇z�ɠx@@�7h�e�.G�ؑ|Y���Ks�b�X�z��%K�q�MM�_M�U�_hސ �y�ρ�?��EV*��Yg�?ݍ���˲D�) p��ṩ��A����J�nq#o|N;4�1cXU���׌םG%��:3?V�r�=[��g��G��:Tt������+�4 �SԘ���[,#f����Y��(|��Ӱ���.%��_q�RHB�H���I�u��4��9�Og��Y�� r�`�G9�a���, ��\9�
data/bake/gem.rb CHANGED
@@ -45,6 +45,10 @@ end
45
45
  def release(tag: true)
46
46
  @helper.guard_clean
47
47
 
48
+ unless @helper.guard_default_branch
49
+ Console.warn(self, "Not on default branch.")
50
+ end
51
+
48
52
  version = @helper.gemspec.version
49
53
 
50
54
  if tag
@@ -70,6 +70,13 @@ module Bake
70
70
  return true
71
71
  end
72
72
 
73
+ def guard_default_branch
74
+ branch = readlines("git", "branch", "--show-current", chdir: @root).first.chomp
75
+ remote_head_branch = readlines("git", "symbolic-ref", "refs/remotes/origin/HEAD", chdir: @root).first.chomp.split('/').last
76
+
77
+ return branch == remote_head_branch
78
+ end
79
+
73
80
  # @parameter root [String] The root path for package files.
74
81
  # @parameter signing_key [String | Nil] The signing key to use for signing the package.
75
82
  # @returns [String] The path to the built gem package.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Gem
8
- VERSION = "0.5.0"
8
+ VERSION = "0.7.0"
9
9
  end
10
10
  end
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.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2024-05-03 00:00:00.000000000 Z
40
+ date: 2024-06-20 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: console
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.5.3
93
+ rubygems_version: 3.5.9
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Release management for Ruby gems.
metadata.gz.sig CHANGED
Binary file