raykit 0.0.523 → 0.0.525
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 +4 -4
- data/LICENSE +21 -21
- data/README.md +25 -25
- data/bin/raykit +6 -6
- data/lib/raykit/auto_setup.rb +69 -69
- data/lib/raykit/command.rb +374 -374
- data/lib/raykit/conan/buildinfo.rb +69 -69
- data/lib/raykit/conanpackage.rb +49 -49
- data/lib/raykit/configuration.rb +53 -53
- data/lib/raykit/console.rb +310 -310
- data/lib/raykit/default_content.rb +227 -227
- data/lib/raykit/dir.rb +96 -96
- data/lib/raykit/dotnet.rb +174 -174
- data/lib/raykit/environment.rb +115 -115
- data/lib/raykit/filesystem.rb +34 -34
- data/lib/raykit/git/commit.rb +16 -16
- data/lib/raykit/git/directory.rb +216 -216
- data/lib/raykit/git/files.rb +46 -46
- data/lib/raykit/git/repositories.rb +89 -89
- data/lib/raykit/git/repository.rb +362 -362
- data/lib/raykit/installer.rb +17 -17
- data/lib/raykit/log.rb +80 -80
- data/lib/raykit/logevent.rb +29 -29
- data/lib/raykit/logger.rb +100 -100
- data/lib/raykit/logging.rb +57 -57
- data/lib/raykit/markdown.rb +21 -21
- data/lib/raykit/msbuild.rb +54 -54
- data/lib/raykit/nugetpackage.rb +54 -54
- data/lib/raykit/nunit.rb +13 -13
- data/lib/raykit/project.rb +343 -343
- data/lib/raykit/rake.rb +39 -39
- data/lib/raykit/runner.rb +42 -42
- data/lib/raykit/secrets.rb +38 -38
- data/lib/raykit/sourceImport.rb +76 -76
- data/lib/raykit/sourceImports.rb +43 -43
- data/lib/raykit/string.rb +18 -18
- data/lib/raykit/symbols.rb +115 -115
- data/lib/raykit/tasks.rb +91 -91
- data/lib/raykit/text.rb +32 -32
- data/lib/raykit/timer.rb +31 -31
- data/lib/raykit/version.rb +95 -95
- data/lib/raykit/vstest.rb +24 -24
- data/lib/raykit/wix.rb +61 -61
- data/lib/raykit/wt.rb +28 -28
- data/lib/raykit/zip.rb +73 -73
- data/lib/raykit.rb +129 -129
- 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: a5742c63b5b5016ba907c9601adb2599d26394f1b4f1a1c1232462baa6a7de82
|
4
|
+
data.tar.gz: 398ff90c9fc2f590ae6241327488669d2317cc26a9c253572803da5cfa91ea64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add7d85a329244702e7096d8d6d8e906f95b9d98721ac9c8a62578baa028263723c60475cde487e43671902275346f240fc46f0012cfbc375a83375bf00ff1ce
|
7
|
+
data.tar.gz: 7c499040ea6eedfd376ab34447876c563ee55471c17d477751631ce5b1a1d2200b320e90f3a7365a27c82e4f76b6a261cc0e09eac6f97c0c3091d5d351f99d81
|
data/LICENSE
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2019 Louis Parslow
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2019 Louis Parslow
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
# raykit
|
2
|
-
|
3
|
-
ruby gem supporting rake ci/cd tasks
|
4
|
-
|
5
|
-
## raykit console application
|
6
|
-
|
7
|
-
# TODO
|
8
|
-
- consider using https://github.com/tj/terminal-table to display name value pairs
|
9
|
-
|
10
|
-
```secrets.txt
|
11
|
-
{"test":"abc123XYZ"}
|
12
|
-
```
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
ENV['RAYKIT_SECRETS_PATH'] = SOME_VALID_FILENAME
|
16
|
-
if (SECRETS.has_key?("test"))
|
17
|
-
puts "found SECRETS[\"test\"]"
|
18
|
-
else
|
19
|
-
puts "did not find SECRETS[\"test\"]"
|
20
|
-
end
|
21
|
-
```
|
22
|
-
|
23
|
-
|
24
|
-
# raykit work sample output
|
25
|
-
```shell
|
1
|
+
# raykit
|
2
|
+
|
3
|
+
ruby gem supporting rake ci/cd tasks
|
4
|
+
|
5
|
+
## raykit console application
|
6
|
+
|
7
|
+
# TODO
|
8
|
+
- consider using https://github.com/tj/terminal-table to display name value pairs
|
9
|
+
|
10
|
+
```secrets.txt
|
11
|
+
{"test":"abc123XYZ"}
|
12
|
+
```
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
ENV['RAYKIT_SECRETS_PATH'] = SOME_VALID_FILENAME
|
16
|
+
if (SECRETS.has_key?("test"))
|
17
|
+
puts "found SECRETS[\"test\"]"
|
18
|
+
else
|
19
|
+
puts "did not find SECRETS[\"test\"]"
|
20
|
+
end
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
# raykit work sample output
|
25
|
+
```shell
|
26
26
|
```
|
data/bin/raykit
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require_relative '../lib/raykit'
|
5
|
-
console = Raykit::Console.new
|
6
|
-
console.run
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/raykit'
|
5
|
+
console = Raykit::Console.new
|
6
|
+
console.run
|
data/lib/raykit/auto_setup.rb
CHANGED
@@ -1,69 +1,69 @@
|
|
1
|
-
module Raykit
|
2
|
-
class AutoSetup
|
3
|
-
def self.run
|
4
|
-
PROJECT.set_version(VERSION) if (defined?(VERSION))
|
5
|
-
# Default subdirectories
|
6
|
-
DEFAULT_SUBDIRECTORIES.each do |subdirectory|
|
7
|
-
puts " RAYKIT_AUTO_SETUP: creating #{subdirectory}" unless Dir.exist?(subdirectory)
|
8
|
-
FileUtils.mkdir_p(subdirectory) unless Dir.exist?(subdirectory)
|
9
|
-
end
|
10
|
-
puts " RAYKIT_AUTO_SETUP: creating .gitignore" unless File.exist?(".gitignore")
|
11
|
-
|
12
|
-
# Default .gitignore
|
13
|
-
File.write(".gitignore", DEFAULT_GITIGNORE_CONTENT) unless File.exist?(".gitignore")
|
14
|
-
|
15
|
-
#RAYKIT_CSHARP_PROJECTS = [
|
16
|
-
# ["classlib","src","MyCSharpLib",["Interfaces","Models"]],
|
17
|
-
# ["nunit","test","MyCSharpLib.Tests",["Interfaces","Models"]],
|
18
|
-
# ["razorclasslib","src","MyRazorComponents",["Pages","Components"]],
|
19
|
-
# ["nunit","test","MyRazorComponents.Tests",["Pages","Components"]],
|
20
|
-
# ["blazorserver","examples","MyBlazorServerApp",["Pages","Components"]]
|
21
|
-
#]
|
22
|
-
# C# projects
|
23
|
-
if (defined?(RAYKIT_CSHARP_PROJECTS))
|
24
|
-
RAYKIT_CSHARP_PROJECTS.each do |project|
|
25
|
-
Raykit::DotNet::initialize_csharp_project project[0], project[1], project[2], project[3]
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# C# class libs
|
30
|
-
if (defined?(RAYKIT_CSHARPCLASSLIBS))
|
31
|
-
RAYKIT_CSHARPCLASSLIBS.each do |csharpclasslib|
|
32
|
-
Raykit::DotNet::initialize_csharp_razorclasslib csharpclasslib
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# Razor class libs
|
37
|
-
if (defined?(RAYKIT_RAZORCLASSLIBS))
|
38
|
-
RAYKIT_RAZORCLASSLIBS.each do |razorclasslib|
|
39
|
-
Raykit::DotNet::initialize_csharp_razorclasslib razorclasslib
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
# Blazor server apps
|
44
|
-
if (defined?(RAYKIT_BLAZORSERVERAPPS))
|
45
|
-
RAYKIT_BLAZORSERVERAPPS.each do |app|
|
46
|
-
Raykit::DotNet::initialize_csharp_blazorserver app
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
# Blazor server example apps
|
51
|
-
if (defined?(RAYKIT_BLAZORSERVER_EXAMPLE_APPS))
|
52
|
-
RAYKIT_BLAZORSERVER_EXAMPLE_APPS.each do |app|
|
53
|
-
Raykit::DotNet::initialize_csharp_blazorserver_example app
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# WPF example apps
|
58
|
-
if (defined?(RAYKIT_WPF_EXAMPLE_APPS))
|
59
|
-
RAYKIT_WPF_EXAMPLE_APPS.each do |app|
|
60
|
-
Raykit::DotNet::initialize_csharp_wpf_example app
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
# count the number of projects in the current directory
|
65
|
-
project_count = Dir.glob("**/*.csproj").length
|
66
|
-
Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
|
67
|
-
end # def self.run
|
68
|
-
end # class AutoSetup
|
69
|
-
end # module Raykit
|
1
|
+
module Raykit
|
2
|
+
class AutoSetup
|
3
|
+
def self.run
|
4
|
+
PROJECT.set_version(VERSION) if (defined?(VERSION))
|
5
|
+
# Default subdirectories
|
6
|
+
DEFAULT_SUBDIRECTORIES.each do |subdirectory|
|
7
|
+
puts " RAYKIT_AUTO_SETUP: creating #{subdirectory}" unless Dir.exist?(subdirectory)
|
8
|
+
FileUtils.mkdir_p(subdirectory) unless Dir.exist?(subdirectory)
|
9
|
+
end
|
10
|
+
puts " RAYKIT_AUTO_SETUP: creating .gitignore" unless File.exist?(".gitignore")
|
11
|
+
|
12
|
+
# Default .gitignore
|
13
|
+
File.write(".gitignore", DEFAULT_GITIGNORE_CONTENT) unless File.exist?(".gitignore")
|
14
|
+
|
15
|
+
#RAYKIT_CSHARP_PROJECTS = [
|
16
|
+
# ["classlib","src","MyCSharpLib",["Interfaces","Models"]],
|
17
|
+
# ["nunit","test","MyCSharpLib.Tests",["Interfaces","Models"]],
|
18
|
+
# ["razorclasslib","src","MyRazorComponents",["Pages","Components"]],
|
19
|
+
# ["nunit","test","MyRazorComponents.Tests",["Pages","Components"]],
|
20
|
+
# ["blazorserver","examples","MyBlazorServerApp",["Pages","Components"]]
|
21
|
+
#]
|
22
|
+
# C# projects
|
23
|
+
if (defined?(RAYKIT_CSHARP_PROJECTS))
|
24
|
+
RAYKIT_CSHARP_PROJECTS.each do |project|
|
25
|
+
Raykit::DotNet::initialize_csharp_project project[0], project[1], project[2], project[3]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# C# class libs
|
30
|
+
if (defined?(RAYKIT_CSHARPCLASSLIBS))
|
31
|
+
RAYKIT_CSHARPCLASSLIBS.each do |csharpclasslib|
|
32
|
+
Raykit::DotNet::initialize_csharp_razorclasslib csharpclasslib
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# Razor class libs
|
37
|
+
if (defined?(RAYKIT_RAZORCLASSLIBS))
|
38
|
+
RAYKIT_RAZORCLASSLIBS.each do |razorclasslib|
|
39
|
+
Raykit::DotNet::initialize_csharp_razorclasslib razorclasslib
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# Blazor server apps
|
44
|
+
if (defined?(RAYKIT_BLAZORSERVERAPPS))
|
45
|
+
RAYKIT_BLAZORSERVERAPPS.each do |app|
|
46
|
+
Raykit::DotNet::initialize_csharp_blazorserver app
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# Blazor server example apps
|
51
|
+
if (defined?(RAYKIT_BLAZORSERVER_EXAMPLE_APPS))
|
52
|
+
RAYKIT_BLAZORSERVER_EXAMPLE_APPS.each do |app|
|
53
|
+
Raykit::DotNet::initialize_csharp_blazorserver_example app
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# WPF example apps
|
58
|
+
if (defined?(RAYKIT_WPF_EXAMPLE_APPS))
|
59
|
+
RAYKIT_WPF_EXAMPLE_APPS.each do |app|
|
60
|
+
Raykit::DotNet::initialize_csharp_wpf_example app
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# count the number of projects in the current directory
|
65
|
+
project_count = Dir.glob("**/*.csproj").length
|
66
|
+
Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
|
67
|
+
end # def self.run
|
68
|
+
end # class AutoSetup
|
69
|
+
end # module Raykit
|