raykit 0.0.327 → 0.0.331

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: f93acb6ca8d1677fbe714816617ebcc206ca1dbcbe34ac6384d006eaab3b14ea
4
- data.tar.gz: 869d995712eee449fd5195cef6df474d95b4fce9530e3262ded3986a8b303344
3
+ metadata.gz: af1ae3e28b6d25078904e509b1d4b533c87b8dbde58265ff77ca64cc070ea9b4
4
+ data.tar.gz: 46f35b5fa8a97cf0cb3bd40cee58ccc8ccee8f99aa2dbcdb5e64666b52f42f83
5
5
  SHA512:
6
- metadata.gz: 6c82df42ad9952c3ae24c37c7b80cde130b738258fe71f6d4e7fbf90ecb7dede76b1d7c753e572b2d7537ab1eaf047ebeb8e90da0898eb00e95f906fc143cd2f
7
- data.tar.gz: 76b1accfa40bd32bfe3847d133e90b1078e20094edb8daa825629f3749fc61272750c54b8d23db44b1c539c3ca7a9a7854e42cf8a5a06a89357624028a4d8b67
6
+ metadata.gz: c34cb304e3dc5892df54236eb7e703bbe2f4b3892a5bd5669a0e36e8ae3d6906148e349bcfee513055c59188370813e22612b9edd9c53ba2933a06aabd3e05cb
7
+ data.tar.gz: 6df4916dde7c6a7effb504d10c930abcf62145b9d6a4b78e016df83f2c812a1eab899bf823385be7ce7a82d202c0f84425e76084061de0c8e7c755172bc54964
@@ -0,0 +1,57 @@
1
+ module Raykit
2
+ module Conan
3
+ # Functionality to manage a git commit
4
+ class BuildInfo < Hash
5
+ def initialize(filename)
6
+ current_section=''
7
+ current_list = Array.new()
8
+ File.readlines(filename).each do |line|
9
+ #puts line
10
+ if(line.index('[') == 0)
11
+ if(current_section.length > 0)
12
+ self.store(current_section,current_list)
13
+ current_list=Array.new()
14
+ end
15
+ current_section=line.strip()
16
+ else
17
+ item = line.strip()
18
+ if(item.length > 0)
19
+ current_list << item
20
+ end
21
+ end
22
+ #
23
+ end
24
+ end
25
+
26
+ def section(name)
27
+ items = Array.new()
28
+ if(self.has_key?(name))
29
+ return self[name]
30
+ end
31
+ items
32
+ end
33
+
34
+ def pdbs
35
+ items = Array.new()
36
+ self.section('[builddirs]').each{|dir|
37
+ Dir.glob("#{dir}/**/*.pdb").sort.each{|pdb|
38
+ items << pdb
39
+ }
40
+ }
41
+ items
42
+ end
43
+
44
+ def copy_pdbs(dir)
45
+ FileUtils.mkdir_p(dir) if !Dir.exists?(dir)
46
+ self.pdbs.each{|pdb|
47
+ target="#{dir}/#{File.basename(pdb)}"
48
+ if(!File.exists?(target))
49
+ puts " copying #{pdb} to #{target}"
50
+ FileUtils.cp(pdb,"#{target}")
51
+ end
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
57
+
@@ -19,5 +19,18 @@ module Raykit
19
19
  end
20
20
  ""
21
21
  end
22
+
23
+ def self.msbuild_2019_path
24
+ ["2019/Enterprise/MSBuild/Current/Bin",
25
+ "2019/Professional/MSBuild/Current/Bin",
26
+ "2019/Community/MSBuild/Current/Bin"].each do |relative_path|
27
+ ["C:/Program Files/Microsoft Visual Studio/",
28
+ "C:/Program Files (x86)/Microsoft Visual Studio/"].each do |prog_path|
29
+ path = "#{prog_path}#{relative_path}"
30
+ return path if Dir.exist?(path)
31
+ end
32
+ end
33
+ ""
34
+ end
22
35
  end
23
36
  end
@@ -221,7 +221,7 @@ module Raykit
221
221
  end
222
222
 
223
223
  def commit(commit_message)
224
- warn "[DEPRECATION] 'commit_message_filename' is deprectated. Use a run command for better transparency."
224
+ warn "[DEPRECATION] 'commit_message_filename' is deprecated. Use a run command for better transparency."
225
225
  Dir.chdir(@directory) do
226
226
  if File.exist?(".gitignore")
227
227
  status = `git status`
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.327
4
+ version: 0.0.331
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-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - bin/raykit
79
79
  - lib/raykit.rb
80
80
  - lib/raykit/command.rb
81
+ - lib/raykit/conan/buildinfo.rb
81
82
  - lib/raykit/console.rb
82
83
  - lib/raykit/dir.rb
83
84
  - lib/raykit/dotnet.rb
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  - !ruby/object:Gem::Version
125
126
  version: '0'
126
127
  requirements: []
127
- rubygems_version: 3.2.22
128
+ rubygems_version: 3.2.15
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: ruby gem to support rake ci/cd tasks