makit 0.0.60 → 0.0.62

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: 65183029e486e94729cb5dd662314497a2942b15154ca489f6ad81746240c09f
4
- data.tar.gz: e19d66a9fac5a3e1e2e9b86b48c87e19e81fa5c3cf992d811801537bde0bc39d
3
+ metadata.gz: f3a4b95eaa99f25ce2f8643fd6d53afe2dc07f99ec7ec7b677b5b6c44e9ce371
4
+ data.tar.gz: cac9b85198bf5bd9d6ec91b56f986fe6765f9f8cb143088b27179c8593fed6b8
5
5
  SHA512:
6
- metadata.gz: a4db9d51707a47d004dc93ae32ba9b0de35f4be5d0c5cec4461c409b088d61c91acf986f9861ad91c972151da0c11c478031f38d6579ccb6dc6f005b86013b2a
7
- data.tar.gz: 6e4c704c06a113096094982f9bdeda0376e0ffda28030164204a92be38de2e98f210154a14df82a2ff495862ccb22e0c5014ff08757c0e374598d0b2b105ad1b
6
+ metadata.gz: 4e98e80a5be49149e4768cb4ea829c1a42b1a343530bd431211139a51d17c86f408f60f4cbebf5634c4dae0bdde680004fdbfe25c6d5d62347afda36697a0518
7
+ data.tar.gz: d647f02f5418f322cffdd1dcfce4ca530c3abd623833d5a5291e2ecb7cbcf136cc7adacb189d1288df8881b5e82ae668e03f566dae45057b1e8ce8e7b9950325
@@ -19,7 +19,7 @@ module Makit
19
19
  @commands = []
20
20
  @debug = false
21
21
  git_file_infos = Makit::Git::get_file_infos
22
- if(git_file_infos.length > 0)
22
+ if (git_file_infos.length > 0)
23
23
  @default_modified = git_file_infos.first.mtime # Makit::GIT_FILE_INFOS.first.mtime
24
24
  else
25
25
  @default_modified = Time.now
@@ -1,222 +1,222 @@
1
- # General
2
- [Aa]rtifacts/
3
- [Ii]ntermediate/
4
- [Gg]enerated/
5
- third_party/
6
-
7
- # Ruby
8
- *.gem
9
- *.rbc
10
- /.config
11
- /coverage/
12
- /InstalledFiles
13
- /pkg/
14
- /spec/reports/
15
- /spec/examples.txt
16
- /test/tmp/
17
- /test/version_tmp/
18
- /tmp/
19
- /.yardoc/
20
- /_yardoc/
21
- /doc/
22
- /rdoc/
23
- /.bundle/
24
- /vendor/bundle
25
- /lib/bundler/man/
26
- .rvmrc
27
-
28
- # Rust
29
- /target/
30
- Cargo.lock
31
- **/*.rs.bk
32
- /target
33
- /Cargo.lock
34
-
35
- # DotNet
36
- *.rsuser
37
- *.suo
38
- *.user
39
- *.userosscache
40
- *.sln.docstates
41
- *.txt
42
- *.userprefs
43
- BenchmarkDotNet.Artifacts/
44
- [Dd]ebug/
45
- [Dd]ebugPublic/
46
- [Rr]elease/
47
- [Rr]eleases/
48
- x64/
49
- x86/
50
- [Aa][Rr][Mm]/
51
- [Aa][Rr][Mm]64/
52
- bld/
53
- [Bb]in/
54
- [Oo]bj/
55
- [Ll]og/
56
- [Aa]rtifacts/
57
- .vs/
58
- Generated\ Files/
59
- [Tt]est[Rr]esult*/
60
- [Bb]uild[Ll]og.*
61
- *.VisualState.xml
62
- TestResult.xml
63
- [Dd]ebugPS/
64
- [Rr]eleasePS/
65
- dlldata.c
66
- BenchmarkDotNet.Artifacts/
67
-
68
- project.lock.json
69
- project.fragment.lock.json
70
- artifacts/
71
- StyleCopReport.xml
72
- *_i.c
73
- *_p.c
74
- *_h.h
75
- *.ilk
76
- *.meta
77
- *.obj
78
- *.iobj
79
- *.pch
80
- *.pdb
81
- *.ipdb
82
- *.pgc
83
- *.pgd
84
- *.rsp
85
- *.sbr
86
- *.tlb
87
- *.tli
88
- *.tlh
89
- *.tmp
90
- *.tmp_proj
91
- *_wpftmp.csproj
92
- *.log
93
- *.vspscc
94
- *.vssscc
95
- .builds
96
- *.pidb
97
- *.svclog
98
- *.scc
99
- _Chutzpah*
100
- ipch/
101
- *.aps
102
- *.ncb
103
- *.opendb
104
- *.opensdf
105
- *.sdf
106
- *.cachefile
107
- *.VC.db
108
- *.VC.VC.opendb
109
- *.psess
110
- *.vsp
111
- *.vspx
112
- *.sap
113
- *.e2e
114
- $tf/
115
- *.gpState
116
- _ReSharper*/
117
- *.[Rr]e[Ss]harper
118
- *.DotSettings.user
119
- .JustCode
120
- _TeamCity*
121
- *.dotCover
122
- .axoCover/*
123
- !.axoCover/settings.json
124
- *.coverage
125
- *.coveragexml
126
- _NCrunch_*
127
- .*crunch*.local.xml
128
- nCrunchTemp_*
129
- *.mm.*
130
- AutoTest.Net/
131
- .sass-cache/
132
- [Ee]xpress/
133
- DocProject/buildhelp/
134
- DocProject/Help/*.HxT
135
- DocProject/Help/*.HxC
136
- DocProject/Help/*.hhc
137
- DocProject/Help/*.hhk
138
- DocProject/Help/*.hhp
139
- DocProject/Help/Html2
140
- DocProject/Help/html
141
- publish/
142
- *.[Pp]ublish.xml
143
- *.azurePubxml
144
- *.pubxml
145
- *.publishproj
146
- PublishScripts/
147
- *.nupkg
148
- **/[Pp]ackages/*
149
- !**/[Pp]ackages/build/
150
- *.nuget.props
151
- *.nuget.targets
152
- csx/
153
- *.build.csdef
154
- ecf/
155
- rcf/
156
- AppPackages/
157
- BundleArtifacts/
158
- Package.StoreAssociation.xml
159
- _pkginfo.txt
160
- *.appx
161
- *.[Cc]ache
162
- # but keep track of directories ending in .cache
163
- !*.[Cc]ache/
164
- ClientBin/
165
- ~$*
166
- *~
167
- *.dbmdl
168
- *.dbproj.schemaview
169
- *.jfm
170
- *.pfx
171
- *.publishsettings
172
- orleans.codegen.cs
173
- **/wwwroot/lib/
174
- Generated_Code/
175
- _UpgradeReport_Files/
176
- Backup*/
177
- UpgradeLog*.XML
178
- UpgradeLog*.htm
179
- ServiceFabricBackup/
180
- *.rptproj.bak
181
- *.mdf
182
- *.ldf
183
- *.ndf
184
- *.rdl.data
185
- *.bim.layout
186
- *.bim_*.settings
187
- *.rptproj.rsuser
188
- FakesAssemblies/
189
- *.GhostDoc.xml
190
- .ntvs_analysis.dat
191
- node_modules/
192
- *.plg
193
- *.opt
194
- *.vbw
195
- **/*.HTMLClient/GeneratedArtifacts
196
- **/*.DesktopClient/GeneratedArtifacts
197
- **/*.DesktopClient/ModelManifest.xml
198
- **/*.Server/GeneratedArtifacts
199
- **/*.Server/ModelManifest.xml
200
- _Pvt_Extensions
201
- .paket/paket.exe
202
- paket-files/
203
- .fake/
204
- .idea/
205
- *.sln.iml
206
- .cr/personal
207
- __pycache__/
208
- *.pyc
209
- tools/**
210
- !tools/packages.config
211
- *.tss
212
- *.jmconfig
213
- *.btp.cs
214
- *.btm.cs
215
- *.odx.cs
216
- *.xsd.cs
217
- OpenCover/
218
- ASALocalRun/
219
- *.binlog
220
- *.nvuser
221
- .mfractor/
222
- .localhistory/
1
+ # General
2
+ [Aa]rtifacts/
3
+ [Ii]ntermediate/
4
+ [Gg]enerated/
5
+ third_party/
6
+
7
+ # Ruby
8
+ *.gem
9
+ *.rbc
10
+ /.config
11
+ /coverage/
12
+ /InstalledFiles
13
+ /pkg/
14
+ /spec/reports/
15
+ /spec/examples.txt
16
+ /test/tmp/
17
+ /test/version_tmp/
18
+ /tmp/
19
+ /.yardoc/
20
+ /_yardoc/
21
+ /doc/
22
+ /rdoc/
23
+ /.bundle/
24
+ /vendor/bundle
25
+ /lib/bundler/man/
26
+ .rvmrc
27
+
28
+ # Rust
29
+ /target/
30
+ Cargo.lock
31
+ **/*.rs.bk
32
+ /target
33
+ /Cargo.lock
34
+
35
+ # DotNet
36
+ *.rsuser
37
+ *.suo
38
+ *.user
39
+ *.userosscache
40
+ *.sln.docstates
41
+ *.txt
42
+ *.userprefs
43
+ BenchmarkDotNet.Artifacts/
44
+ [Dd]ebug/
45
+ [Dd]ebugPublic/
46
+ [Rr]elease/
47
+ [Rr]eleases/
48
+ x64/
49
+ x86/
50
+ [Aa][Rr][Mm]/
51
+ [Aa][Rr][Mm]64/
52
+ bld/
53
+ [Bb]in/
54
+ [Oo]bj/
55
+ [Ll]og/
56
+ [Aa]rtifacts/
57
+ .vs/
58
+ Generated\ Files/
59
+ [Tt]est[Rr]esult*/
60
+ [Bb]uild[Ll]og.*
61
+ *.VisualState.xml
62
+ TestResult.xml
63
+ [Dd]ebugPS/
64
+ [Rr]eleasePS/
65
+ dlldata.c
66
+ BenchmarkDotNet.Artifacts/
67
+
68
+ project.lock.json
69
+ project.fragment.lock.json
70
+ artifacts/
71
+ StyleCopReport.xml
72
+ *_i.c
73
+ *_p.c
74
+ *_h.h
75
+ *.ilk
76
+ *.meta
77
+ *.obj
78
+ *.iobj
79
+ *.pch
80
+ *.pdb
81
+ *.ipdb
82
+ *.pgc
83
+ *.pgd
84
+ *.rsp
85
+ *.sbr
86
+ *.tlb
87
+ *.tli
88
+ *.tlh
89
+ *.tmp
90
+ *.tmp_proj
91
+ *_wpftmp.csproj
92
+ *.log
93
+ *.vspscc
94
+ *.vssscc
95
+ .builds
96
+ *.pidb
97
+ *.svclog
98
+ *.scc
99
+ _Chutzpah*
100
+ ipch/
101
+ *.aps
102
+ *.ncb
103
+ *.opendb
104
+ *.opensdf
105
+ *.sdf
106
+ *.cachefile
107
+ *.VC.db
108
+ *.VC.VC.opendb
109
+ *.psess
110
+ *.vsp
111
+ *.vspx
112
+ *.sap
113
+ *.e2e
114
+ $tf/
115
+ *.gpState
116
+ _ReSharper*/
117
+ *.[Rr]e[Ss]harper
118
+ *.DotSettings.user
119
+ .JustCode
120
+ _TeamCity*
121
+ *.dotCover
122
+ .axoCover/*
123
+ !.axoCover/settings.json
124
+ *.coverage
125
+ *.coveragexml
126
+ _NCrunch_*
127
+ .*crunch*.local.xml
128
+ nCrunchTemp_*
129
+ *.mm.*
130
+ AutoTest.Net/
131
+ .sass-cache/
132
+ [Ee]xpress/
133
+ DocProject/buildhelp/
134
+ DocProject/Help/*.HxT
135
+ DocProject/Help/*.HxC
136
+ DocProject/Help/*.hhc
137
+ DocProject/Help/*.hhk
138
+ DocProject/Help/*.hhp
139
+ DocProject/Help/Html2
140
+ DocProject/Help/html
141
+ publish/
142
+ *.[Pp]ublish.xml
143
+ *.azurePubxml
144
+ *.pubxml
145
+ *.publishproj
146
+ PublishScripts/
147
+ *.nupkg
148
+ **/[Pp]ackages/*
149
+ !**/[Pp]ackages/build/
150
+ *.nuget.props
151
+ *.nuget.targets
152
+ csx/
153
+ *.build.csdef
154
+ ecf/
155
+ rcf/
156
+ AppPackages/
157
+ BundleArtifacts/
158
+ Package.StoreAssociation.xml
159
+ _pkginfo.txt
160
+ *.appx
161
+ *.[Cc]ache
162
+ # but keep track of directories ending in .cache
163
+ !*.[Cc]ache/
164
+ ClientBin/
165
+ ~$*
166
+ *~
167
+ *.dbmdl
168
+ *.dbproj.schemaview
169
+ *.jfm
170
+ *.pfx
171
+ *.publishsettings
172
+ orleans.codegen.cs
173
+ **/wwwroot/lib/
174
+ Generated_Code/
175
+ _UpgradeReport_Files/
176
+ Backup*/
177
+ UpgradeLog*.XML
178
+ UpgradeLog*.htm
179
+ ServiceFabricBackup/
180
+ *.rptproj.bak
181
+ *.mdf
182
+ *.ldf
183
+ *.ndf
184
+ *.rdl.data
185
+ *.bim.layout
186
+ *.bim_*.settings
187
+ *.rptproj.rsuser
188
+ FakesAssemblies/
189
+ *.GhostDoc.xml
190
+ .ntvs_analysis.dat
191
+ node_modules/
192
+ *.plg
193
+ *.opt
194
+ *.vbw
195
+ **/*.HTMLClient/GeneratedArtifacts
196
+ **/*.DesktopClient/GeneratedArtifacts
197
+ **/*.DesktopClient/ModelManifest.xml
198
+ **/*.Server/GeneratedArtifacts
199
+ **/*.Server/ModelManifest.xml
200
+ _Pvt_Extensions
201
+ .paket/paket.exe
202
+ paket-files/
203
+ .fake/
204
+ .idea/
205
+ *.sln.iml
206
+ .cr/personal
207
+ __pycache__/
208
+ *.pyc
209
+ tools/**
210
+ !tools/packages.config
211
+ *.tss
212
+ *.jmconfig
213
+ *.btp.cs
214
+ *.btm.cs
215
+ *.odx.cs
216
+ *.xsd.cs
217
+ OpenCover/
218
+ ASALocalRun/
219
+ *.binlog
220
+ *.nvuser
221
+ .mfractor/
222
+ .localhistory/
@@ -20,6 +20,7 @@ module Makit
20
20
  REPOS = File.join(Dir.home, ".makit", "repos")
21
21
  TEMP = File.join(Dir.home, ".makit", "temp")
22
22
  INSTALL = File.join(Dir.home, ".makit", "install")
23
+ NUGET = File.join(Dir.home, ".makit", "nuget")
23
24
  HOME = Makit::Directory.normalize(Dir.home)
24
25
  ONEDRIVE = File.join(Dir.home, "OneDrive")
25
26
  CURRENT = Dir.pwd
@@ -200,13 +200,13 @@ module Makit
200
200
  def self.deep_clean(dir)
201
201
  git_dirs = []
202
202
  #Dir.chdir(dir) do
203
- # scan all subdirectories for git repositories
204
- puts " scanning #{dir} for git repositories".colorize(:green)
205
- Find.find(dir) do |path|
206
- if File.directory?(path) && File.exist?("#{path}/.git")
207
- git_dirs << path
208
- end
203
+ # scan all subdirectories for git repositories
204
+ puts " scanning #{dir} for git repositories".colorize(:green)
205
+ Find.find(dir) do |path|
206
+ if File.directory?(path) && File.exist?("#{path}/.git")
207
+ git_dirs << path
209
208
  end
209
+ end
210
210
  #end
211
211
  git_dirs.each do |path|
212
212
  puts " cleaning #{path} of untracked files".colorize(:green)
data/lib/makit/nuget.rb CHANGED
@@ -53,5 +53,10 @@ module Makit
53
53
  end
54
54
  nil
55
55
  end
56
+
57
+ # publish a package to a nuget directory feed
58
+ def self.add_package(package, path)
59
+ system("dotnet nuget push #{path} --source #{path}")
60
+ end
56
61
  end
57
62
  end
@@ -0,0 +1,26 @@
1
+ # This module provides classes for the Makit gem.
2
+ module Makit
3
+ class Process
4
+ def self.is_running?(name)
5
+ # provide a cross-platform way to check if a process is running
6
+ if RUBY_PLATFORM.include?("win")
7
+ # on windows, use the tasklist command
8
+ results = `tasklist /FI "imagename eq #{name}.exe"`
9
+ results.include?(name)
10
+ else
11
+ # on linux, use the ps command
12
+ results = `ps aux | grep #{name} | grep -v grep`
13
+ results.include?(name)
14
+ end
15
+ end
16
+
17
+ def self.kill(name)
18
+ # provide a cross-platform way to kill a process
19
+ if RUBY_PLATFORM.include?("win")
20
+ `taskkill /IM #{name}.exe /F`
21
+ else
22
+ `kill -9 #{name}`
23
+ end
24
+ end
25
+ end
26
+ end
data/lib/makit/secrets.rb CHANGED
@@ -1,53 +1,51 @@
1
-
2
- module Makit
3
- class Secrets
4
-
5
- def add(key, value)
6
- secrets_hash = get_secrets_hash()
7
- secrets_hash[key] = value
8
- save_secrets_hash(secrets_hash)
9
- end
10
-
11
- def remove(key)
12
- secrets_hash = get_secrets_hash()
13
- secrets_hash.delete(key)
14
- save_secrets_hash(secrets_hash)
15
- end
16
-
17
- def has_key?(key)
18
- secrets_hash = get_secrets_hash()
19
- return secrets_hash.key?(key)
20
- end
21
-
22
- def get(key)
23
- secrets_hash = get_secrets_hash()
24
- return secrets_hash[key]
25
- end
26
-
27
- def set(key, value)
28
- secrets_hash = get_secrets_hash()
29
- secrets_hash[key] = value
30
- save_secrets_hash(secrets_hash)
31
- end
32
-
33
- def get_secrets_filename()
34
- return "#{Makit::Directories::ROOT}/secrets.json"
35
- end
36
-
37
- def get_secrets_hash()
38
- secrets_file = get_secrets_filename()
39
- if File.exist?(secrets_file)
40
- text = IO.read(secrets_file)
41
- return JSON.parse(text)
42
- else
43
- return {}
44
- end
45
- end
46
-
47
- def save_secrets_hash(hash)
48
- secrets_file = get_secrets_filename()
49
- # pretty print the hash
50
- File.open(secrets_file, "w") { |f| f.puts JSON.pretty_generate(hash) }
51
- end
52
- end
53
- end
1
+ module Makit
2
+ class Secrets
3
+ def add(key, value)
4
+ secrets_hash = get_secrets_hash()
5
+ secrets_hash[key] = value
6
+ save_secrets_hash(secrets_hash)
7
+ end
8
+
9
+ def remove(key)
10
+ secrets_hash = get_secrets_hash()
11
+ secrets_hash.delete(key)
12
+ save_secrets_hash(secrets_hash)
13
+ end
14
+
15
+ def has_key?(key)
16
+ secrets_hash = get_secrets_hash()
17
+ return secrets_hash.key?(key)
18
+ end
19
+
20
+ def get(key)
21
+ secrets_hash = get_secrets_hash()
22
+ return secrets_hash[key]
23
+ end
24
+
25
+ def set(key, value)
26
+ secrets_hash = get_secrets_hash()
27
+ secrets_hash[key] = value
28
+ save_secrets_hash(secrets_hash)
29
+ end
30
+
31
+ def get_secrets_filename()
32
+ return "#{Makit::Directories::ROOT}/secrets.json"
33
+ end
34
+
35
+ def get_secrets_hash()
36
+ secrets_file = get_secrets_filename()
37
+ if File.exist?(secrets_file)
38
+ text = IO.read(secrets_file)
39
+ return JSON.parse(text)
40
+ else
41
+ return {}
42
+ end
43
+ end
44
+
45
+ def save_secrets_hash(hash)
46
+ secrets_file = get_secrets_filename()
47
+ # pretty print the hash
48
+ File.open(secrets_file, "w") { |f| f.puts JSON.pretty_generate(hash) }
49
+ end
50
+ end
51
+ end
data/lib/makit/show.rb CHANGED
@@ -36,7 +36,7 @@ module Makit
36
36
  age = (Time.now - modified).to_f
37
37
  humanized_size = Makit::Humanize.get_humanized_size(File.size(path))
38
38
  #puts "#{file_symbol} ".colorize(:grey) + "#{humanized_size.rjust(10)} ".colorize(:cyan) + " #{path} ".colorize(:grey)
39
- puts "#{file_symbol} ".colorize(:grey) + "#{File.basename(path)} ".colorize(:green) + "#{humanized_size.rjust(10)} ".colorize(:cyan) + " #{path} ".colorize(:grey)# + "modified #{Makit::Humanize.get_humanized_timestamp(modified)}".colorize(:grey) + " age #{Makit::Humanize.get_humanized_duration(age)}".colorize(:grey)
39
+ puts "#{file_symbol} ".colorize(:grey) + "#{File.basename(path)} ".colorize(:green) + "#{humanized_size.rjust(10)} ".colorize(:cyan) + " #{path} ".colorize(:grey) # + "modified #{Makit::Humanize.get_humanized_timestamp(modified)}".colorize(:grey) + " age #{Makit::Humanize.get_humanized_duration(age)}".colorize(:grey)
40
40
  else
41
41
  puts "#{path} does not exist"
42
42
  end
@@ -108,4 +108,3 @@ module Makit
108
108
  end
109
109
  end
110
110
  end
111
-
data/lib/makit/tasks.rb CHANGED
@@ -53,9 +53,6 @@ task :update do
53
53
  end
54
54
  end
55
55
 
56
-
57
-
58
-
59
56
  # Register the at_exit hook for cleanup
60
57
  at_exit do
61
58
  #puts "at_exit in tasks.rb...."
@@ -1,35 +1,34 @@
1
- # frozen_string_literal: true
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: lib/makit/v1/makit.v1.proto
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/protobuf/timestamp_pb'
8
- require 'google/protobuf/duration_pb'
9
-
10
-
11
- descriptor_data = "\n\x1blib/makit/v1/makit.v1.proto\x12\x08makit.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"/\n\x0b\x45nvironment\x12\n\n\x02os\x18\x01 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\"\x92\x02\n\rDotNetProject\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x10\n\x08packages\x18\x04 \x03(\t\x12\x12\n\nreferences\x18\x05 \x03(\t\x12\n\n\x02os\x18\x06 \x01(\t\x12\x10\n\x08\x63ommands\x18\x07 \x03(\t\x12-\n\nbuild_args\x18\x08 \x03(\x0b\x32\x19.makit.v1.DotNetBuildArgs\x12\x31\n\x0cpublish_args\x18\t \x03(\x0b\x32\x1b.makit.v1.DotNetPublishArgs\x12+\n\ttest_args\x18\n \x03(\x0b\x32\x18.makit.v1.DotNetTestArgs\"8\n\x0f\x44otNetBuildArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\":\n\x11\x44otNetPublishArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"7\n\x0e\x44otNetTestArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"\xa8\x01\n\x07Project\x12\x16\n\x0egit_remote_url\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tartifacts\x18\x03 \x03(\t\x12\x32\n\x10\x63ommand_requests\x18\x04 \x03(\x0b\x32\x18.makit.v1.CommandRequest\x12\x30\n\x0f\x64otnet_projects\x18\x05 \x03(\x0b\x32\x17.makit.v1.DotNetProject\"\xa5\x01\n\x0e\x43ommandRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x03(\t\x12+\n\x07timeout\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdirectory\x18\x04 \x01(\t\x12\x0c\n\x04task\x18\x05 \x01(\t\x12\r\n\x05input\x18\x06 \x01(\x0c\x12\x15\n\rexit_on_error\x18\x07 \x01(\x08\"\x91\x02\n\x07\x43ommand\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\targuments\x18\x03 \x03(\t\x12\x11\n\texit_code\x18\x04 \x01(\x05\x12\r\n\x05input\x18\x05 \x01(\x0c\x12\x0e\n\x06output\x18\x06 \x01(\x0c\x12\r\n\x05\x65rror\x18\x07 \x01(\x0c\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04user\x18\n \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x0b \x01(\t\x12\n\n\x02os\x18\x0c \x01(\t\x12\x11\n\tdirectory\x18\r \x01(\t\"I\n\rConfiguration\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\x18.makit.v1.CommandRequest\"3\n\rGitRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"h\n\x0bGitLogEntry\x12\x0e\n\x06\x63ommit\x18\x01 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x02 \x01(\t\x12(\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x04 \x01(\t\"\xc8\x01\n\nMakeResult\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0e\n\x06\x63ommit\x18\x02 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x05 \x01(\t\x12\x1a\n\x12runtime_identifier\x18\x06 \x01(\t\x12#\n\x08\x63ommands\x18\x07 \x03(\x0b\x32\x11.makit.v1.Command\x12\x14\n\x0cinitial_size\x18\x08 \x01(\x05\x12\x12\n\nfinal_size\x18\t \x01(\x05\"?\n\rDotNetNewArgs\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\"^\n\rManifestEntry\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x31\n\rlast_modified\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\x03 \x01(\x03**\n\x08Language\x12\x08\n\x04RUBY\x10\x00\x12\n\n\x06\x43SHARP\x10\x01\x12\x08\n\x04RUST\x10\x02*,\n\x0bPackageType\x12\x07\n\x03GEM\x10\x00\x12\t\n\x05NUGET\x10\x01\x12\t\n\x05\x43RATE\x10\x03\x32H\n\x0e\x43ommandService\x12\x36\n\x07\x45xecute\x12\x18.makit.v1.CommandRequest\x1a\x11.makit.v1.Commandb\x06proto3"
12
-
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
- pool.add_serialized_file(descriptor_data)
15
-
16
- module Makit
17
- module V1
18
- Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Environment").msgclass
19
- DotNetProject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetProject").msgclass
20
- DotNetBuildArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetBuildArgs").msgclass
21
- DotNetPublishArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetPublishArgs").msgclass
22
- DotNetTestArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetTestArgs").msgclass
23
- Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Project").msgclass
24
- CommandRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.CommandRequest").msgclass
25
- Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Command").msgclass
26
- Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Configuration").msgclass
27
- GitRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitRepository").msgclass
28
- GitLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitLogEntry").msgclass
29
- MakeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.MakeResult").msgclass
30
- DotNetNewArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetNewArgs").msgclass
31
- ManifestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.ManifestEntry").msgclass
32
- Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Language").enummodule
33
- PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.PackageType").enummodule
34
- end
35
- end
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: lib/makit/v1/makit.v1.proto
4
+
5
+ require "google/protobuf"
6
+
7
+ require "google/protobuf/timestamp_pb"
8
+ require "google/protobuf/duration_pb"
9
+
10
+ descriptor_data = "\n\x1blib/makit/v1/makit.v1.proto\x12\x08makit.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"/\n\x0b\x45nvironment\x12\n\n\x02os\x18\x01 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\"\x92\x02\n\rDotNetProject\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x10\n\x08packages\x18\x04 \x03(\t\x12\x12\n\nreferences\x18\x05 \x03(\t\x12\n\n\x02os\x18\x06 \x01(\t\x12\x10\n\x08\x63ommands\x18\x07 \x03(\t\x12-\n\nbuild_args\x18\x08 \x03(\x0b\x32\x19.makit.v1.DotNetBuildArgs\x12\x31\n\x0cpublish_args\x18\t \x03(\x0b\x32\x1b.makit.v1.DotNetPublishArgs\x12+\n\ttest_args\x18\n \x03(\x0b\x32\x18.makit.v1.DotNetTestArgs\"8\n\x0f\x44otNetBuildArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\":\n\x11\x44otNetPublishArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"7\n\x0e\x44otNetTestArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"\xa8\x01\n\x07Project\x12\x16\n\x0egit_remote_url\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tartifacts\x18\x03 \x03(\t\x12\x32\n\x10\x63ommand_requests\x18\x04 \x03(\x0b\x32\x18.makit.v1.CommandRequest\x12\x30\n\x0f\x64otnet_projects\x18\x05 \x03(\x0b\x32\x17.makit.v1.DotNetProject\"\xa5\x01\n\x0e\x43ommandRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x03(\t\x12+\n\x07timeout\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdirectory\x18\x04 \x01(\t\x12\x0c\n\x04task\x18\x05 \x01(\t\x12\r\n\x05input\x18\x06 \x01(\x0c\x12\x15\n\rexit_on_error\x18\x07 \x01(\x08\"\x91\x02\n\x07\x43ommand\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\targuments\x18\x03 \x03(\t\x12\x11\n\texit_code\x18\x04 \x01(\x05\x12\r\n\x05input\x18\x05 \x01(\x0c\x12\x0e\n\x06output\x18\x06 \x01(\x0c\x12\r\n\x05\x65rror\x18\x07 \x01(\x0c\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04user\x18\n \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x0b \x01(\t\x12\n\n\x02os\x18\x0c \x01(\t\x12\x11\n\tdirectory\x18\r \x01(\t\"I\n\rConfiguration\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\x18.makit.v1.CommandRequest\"3\n\rGitRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"h\n\x0bGitLogEntry\x12\x0e\n\x06\x63ommit\x18\x01 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x02 \x01(\t\x12(\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x04 \x01(\t\"\xc8\x01\n\nMakeResult\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0e\n\x06\x63ommit\x18\x02 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x05 \x01(\t\x12\x1a\n\x12runtime_identifier\x18\x06 \x01(\t\x12#\n\x08\x63ommands\x18\x07 \x03(\x0b\x32\x11.makit.v1.Command\x12\x14\n\x0cinitial_size\x18\x08 \x01(\x05\x12\x12\n\nfinal_size\x18\t \x01(\x05\"?\n\rDotNetNewArgs\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\"^\n\rManifestEntry\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x31\n\rlast_modified\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\x03 \x01(\x03**\n\x08Language\x12\x08\n\x04RUBY\x10\x00\x12\n\n\x06\x43SHARP\x10\x01\x12\x08\n\x04RUST\x10\x02*,\n\x0bPackageType\x12\x07\n\x03GEM\x10\x00\x12\t\n\x05NUGET\x10\x01\x12\t\n\x05\x43RATE\x10\x03\x32H\n\x0e\x43ommandService\x12\x36\n\x07\x45xecute\x12\x18.makit.v1.CommandRequest\x1a\x11.makit.v1.Commandb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Makit
16
+ module V1
17
+ Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Environment").msgclass
18
+ DotNetProject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetProject").msgclass
19
+ DotNetBuildArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetBuildArgs").msgclass
20
+ DotNetPublishArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetPublishArgs").msgclass
21
+ DotNetTestArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetTestArgs").msgclass
22
+ Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Project").msgclass
23
+ CommandRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.CommandRequest").msgclass
24
+ Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Command").msgclass
25
+ Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Configuration").msgclass
26
+ GitRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitRepository").msgclass
27
+ GitLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitLogEntry").msgclass
28
+ MakeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.MakeResult").msgclass
29
+ DotNetNewArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetNewArgs").msgclass
30
+ ManifestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.ManifestEntry").msgclass
31
+ Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Language").enummodule
32
+ PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.PackageType").enummodule
33
+ end
34
+ end
data/lib/makit/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.60"
4
+ VERSION = "0.0.62"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
@@ -9,13 +9,10 @@ module Makit
9
9
  versions.sort { |a, b| Gem::Version.new(a) <=> Gem::Version.new(b) }.last
10
10
  end
11
11
 
12
-
13
12
  # example content from .gitlab-ci.yml
14
13
  #variables:
15
14
  # VERSION: "0.0.26" # Define the version here
16
15
 
17
-
18
-
19
16
  def self.get_version_from_file(path)
20
17
  if (!File.exist?(path))
21
18
  raise "file #{path}does not exist"
data/lib/makit/yaml.rb CHANGED
@@ -1,19 +1,17 @@
1
- require 'yaml'
1
+ require "yaml"
2
2
 
3
3
  # frozen_string_literal: true
4
4
 
5
5
  # This module provides classes for the Makit gem.
6
6
  module Makit
7
- class Yaml
8
- def self.validate_yaml(file_path)
9
- begin
10
- YAML.load_file(file_path)
11
- puts "#{file_path} is a valid YAML file."
12
- rescue Psych::SyntaxError => e
13
- raise"YAML validation failed for #{file_path}: #{e}"
14
- end
15
- end
7
+ class Yaml
8
+ def self.validate_yaml(file_path)
9
+ begin
10
+ YAML.load_file(file_path)
11
+ puts "#{file_path} is a valid YAML file."
12
+ rescue Psych::SyntaxError => e
13
+ raise "YAML validation failed for #{file_path}: #{e}"
14
+ end
16
15
  end
16
+ end
17
17
  end
18
-
19
-
data/lib/makit.rb CHANGED
@@ -48,7 +48,6 @@ module Makit
48
48
  DEVICE = Socket.gethostname
49
49
  LOGGER = Makit::Logging::MultiLogger.create_logger
50
50
 
51
-
52
51
  # Git Commit and Branch/Tag constants
53
52
  ENV["COMMIT_SHA"] = Makit::Git::commitsha
54
53
  ENV["COMMIT_BRANCH"] = Makit::Git::branch
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.60
4
+ version: 0.0.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-01 00:00:00.000000000 Z
11
+ date: 2025-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -193,6 +193,7 @@ files:
193
193
  - lib/makit/mp/project_mp.rb
194
194
  - lib/makit/mp/string_mp.rb
195
195
  - lib/makit/nuget.rb
196
+ - lib/makit/process.rb
196
197
  - lib/makit/protoc.rb
197
198
  - lib/makit/secrets.rb
198
199
  - lib/makit/serializer.rb
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
230
  - !ruby/object:Gem::Version
230
231
  version: '0'
231
232
  requirements: []
232
- rubygems_version: 3.5.23
233
+ rubygems_version: 3.5.20
233
234
  signing_key:
234
235
  specification_version: 4
235
236
  summary: CI/CD tools for Ruby developers.