makit 0.0.175 → 0.0.176

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d811745f6d57e697eb726bb6b79001973bba19dcabbd96f49c5b55cd2c995424
4
- data.tar.gz: 2719eecb159e666bb272b4cdc99ca9bcab674e4dcd3c2ae4f00a9c9fe50c5c1d
3
+ metadata.gz: 1b822415fae8239531e9bb0f5df0a3fc83e5103fb2e26bfa02339097ab52b964
4
+ data.tar.gz: b7ded409a3abe37aee2fda3d6ef8d0cd4520449fd47fc5063c83d99c0bdafc2d
5
5
  SHA512:
6
- metadata.gz: d05040b42fdb3beb3df1506cd4bf91bb0993b143fc17f55f66aef29f8dadbce734989bc3cb058b165165859ceb9077088e96f2b23dd4387b348392125696b265
7
- data.tar.gz: 43287a6a96f220ef17cf17034ef70ebb44a43e7546f0c46ec800fb3b6bbe92193c86448bce297105ef73e745b7c366afcfafd821dd9002571fe3f65a08c85d28
6
+ metadata.gz: ea552a44f6da66c4b14536cbe7b1b3c20c248b23602d98c186876652c63b59f130cd9eeb26567f12352e77f75d0dd4b445f12366ef42598ea0963abc95b338e4
7
+ data.tar.gz: 96e51fc6aaac95794555122796b0f983cd56c1e2d11a30e35ba8d2712c56d1a781049d16464fa413d805f74f0fa78613727dacf93ee0affaf5696b290a487b9b
@@ -25,6 +25,13 @@ if Dir.exist?(".git")
25
25
  rescue
26
26
  # If we can't determine default branch, assume it's 'main'
27
27
  default_branch = 'main'
28
+ # list branches, if main is not present, we will use master
29
+ branches = `git branch --list`.split("\n")
30
+ if branches.include?('main')
31
+ default_branch = 'main'
32
+ else
33
+ default_branch = 'master'
34
+ end
28
35
  end
29
36
 
30
37
  # Fallback to 'main' if default_branch is still nil
data/lib/makit/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Makit
4
4
  # Static version for now to avoid circular dependency issues
5
- #VERSION = "0.0.175"
5
+ #VERSION = "0.0.176"
6
6
 
7
7
  # Version management utilities for various file formats
8
8
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.175
4
+ version: 0.0.176
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow