raykit 0.0.420 → 0.0.422

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: 4b72f7a7f55cd4b88f34c77275294fbc9307eae4ed42aaa80dbcde25baa583c3
4
- data.tar.gz: 1e797be59039805c9ebc38c85e0b453613ac1c564f6bf627f783bdd0d4b67ea0
3
+ metadata.gz: 96495e0d91ace9341ffcbd1410788b70bd861c7c52750a958e570b31b276ae8a
4
+ data.tar.gz: 2376342bd59bf4bf7e1b91b6fce20ae460109028fd94636221e61cddac51423e
5
5
  SHA512:
6
- metadata.gz: a0922b78b70f1a3c4adb8860bcdd204a93e6474d27c7eb8d17240915627775d243a99d50692a16116bfd533914302ac50728bc5df4c4aaab5ca9e6e1134027da
7
- data.tar.gz: 1ed51bac46c19d95c6f0dbb267e56d9aa56b1c1c6fdcfa2d80de38e89a9102f1ed570350229fe85c19c123526ab73e27cfe5231a598f767b77456888a90490a6
6
+ metadata.gz: 54a7e874bc3009ba77a49958e3ad34ff307875eb001026e8438e4e08ee97231bb54c37dc9006106f6fc0f9ae97b5a2dfbeb070b60af5f3011dcce93f04b25a7e
7
+ data.tar.gz: 7c0197a056125d3fad9b576498551f0d1a03217fb1f1ddeac565fb4b57d53e4415bb5d04cfa77289e7faab55a2ce3808142347a190546881bd4641bdf709e461
@@ -46,6 +46,19 @@ module Raykit
46
46
  end
47
47
  end
48
48
 
49
+ # default branch
50
+ def default_branch
51
+ update_local_clone_directory
52
+ if Dir.exist?(local_clone_directory)
53
+ Dir.chdir(local_clone_directory) do
54
+ # refs/remotes/origin/master
55
+ default_branch = `git symbolic-ref refs/remotes/origin/HEAD`.split("/").last.strip
56
+ return default_branch
57
+ end
58
+ end
59
+ "main"
60
+ end
61
+
49
62
  # The branches for the git repository
50
63
  def branches
51
64
  results = []
@@ -5,8 +5,14 @@ module Raykit
5
5
  def self.fix_msbuild_path
6
6
  # if msbuild in not in the current path,
7
7
  # attempt to modify the path such that is it
8
- cmd = Raykit::Command.new("msbuild --version").run
9
- if (cmd.exitstatus != 0)
8
+ has_msbuild = false
9
+ begin
10
+ cmd = Raykit::Command.new("msbuild --version").run
11
+ has_msbuild = true if (cmd.exitstatus != 0)
12
+ rescue
13
+ has_msbuild = false
14
+ end
15
+ if (!has_msbuild)
10
16
  if (Dir.exists?(msbuild_path))
11
17
  puts " added #{msbuild_path} to PATH for msbuild"
12
18
  ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.420
4
+ version: 0.0.422
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-22 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler