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 +4 -4
- data/lib/raykit/git/repository.rb +13 -0
- data/lib/raykit/msbuild.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96495e0d91ace9341ffcbd1410788b70bd861c7c52750a958e570b31b276ae8a
|
4
|
+
data.tar.gz: 2376342bd59bf4bf7e1b91b6fce20ae460109028fd94636221e61cddac51423e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = []
|
data/lib/raykit/msbuild.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
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.
|
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-
|
11
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|