bake-gem 0.6.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: 73b07dbaea11129cd0e9022c476330602dbd3aeeec3fe69064bd365d20976665
4
- data.tar.gz: 42675a6c56c29dd54e5a103a6eee4ca5e42febf8f93783ed1633fe9cb9438db6
3
+ metadata.gz: 4dc43e87bb64c81f260c07c1c42f24a0eeed5beca824dad65a0a0cba2d2d5c5c
4
+ data.tar.gz: ed6e4af3881fe730ec346aff04350dfe13d5e03f5219b36daab8434fa1cd2c3e
5
5
  SHA512:
6
- metadata.gz: 99578f4c9aca82a9dda42e006b261f84858a6f282f7f725849af9c566e459e5490569f701b37c5ae1f083bcb414c9b32cd06bbf876a574fa52c71f26f9d741d9
7
- data.tar.gz: fdd496e868dbf915ee81d7f11851cb274770792e39698785c32c38990af88e21b6d7a243f5f0f1a056cca84e1a8cfbd9b49279ecb61d6e541945c353fb6da144
6
+ metadata.gz: e9bc63b0c2107f8d60f93b9cf5f3e8112650a22e667a98abddcf5f53d68928cf14578f2f9ac8dd8ce78a27e0bdf440582865a01253f3e5f8bd2af4011388a513
7
+ data.tar.gz: 79187293665d7ba41a553c1a95b13832e3c9789e548e3af25b9bb74409df1793f5fbfe6850ba98a40dbbc89b3d4e6e9d8dfa93846c40c4871a05d75e5868b77f
checksums.yaml.gz.sig CHANGED
Binary file
data/bake/gem.rb CHANGED
@@ -44,7 +44,10 @@ end
44
44
 
45
45
  def release(tag: true)
46
46
  @helper.guard_clean
47
- @helper.guard_default_branch
47
+
48
+ unless @helper.guard_default_branch
49
+ Console.warn(self, "Not on default branch.")
50
+ end
48
51
 
49
52
  version = @helper.gemspec.version
50
53
 
@@ -74,11 +74,7 @@ module Bake
74
74
  branch = readlines("git", "branch", "--show-current", chdir: @root).first.chomp
75
75
  remote_head_branch = readlines("git", "symbolic-ref", "refs/remotes/origin/HEAD", chdir: @root).first.chomp.split('/').last
76
76
 
77
- if branch != remote_head_branch
78
- raise "Current branch is not the default branch: #{branch} != #{remote_head_branch}"
79
- end
80
-
81
- return true
77
+ return branch == remote_head_branch
82
78
  end
83
79
 
84
80
  # @parameter root [String] The root path for package files.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Gem
8
- VERSION = "0.6.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.6.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-06-10 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
metadata.gz.sig CHANGED
Binary file