raykit 0.0.494 → 0.0.496
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/auto_setup.rb +21 -0
- data/lib/raykit/dotnet.rb +8 -0
- 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: 372290870494840da7e0a2d3702f6ff37c3425b6396c758f21da685c94e911e2
|
4
|
+
data.tar.gz: 54d0b685e49ee3d9a166e6a2f0705da345e7d47b754101ba2531ab4046333f93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ead69b264293dff93a37f3f426027cd64c55a45d6c4fe90cc158cf0b29c36b92c8448c182e6ae6a69d92fdf9a93b6f26bcda5191c2bbb05f4e59d8a3219eb0
|
7
|
+
data.tar.gz: cc16da18d2956bcabb729d608828e25628d911415af792f65676a9d59854f5e4a1d232aee038b5284351cd08f990733f0dd8775b84fceb1b9246dc91e8b8c604
|
data/lib/raykit/auto_setup.rb
CHANGED
@@ -12,6 +12,20 @@ module Raykit
|
|
12
12
|
# Default .gitignore
|
13
13
|
File.write(".gitignore", DEFAULT_GITIGNORE_CONTENT) unless File.exist?(".gitignore")
|
14
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
|
+
|
15
29
|
# C# class libs
|
16
30
|
if (defined?(RAYKIT_CSHARPCLASSLIBS))
|
17
31
|
RAYKIT_CSHARPCLASSLIBS.each do |csharpclasslib|
|
@@ -40,6 +54,13 @@ module Raykit
|
|
40
54
|
end
|
41
55
|
end
|
42
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
|
+
|
43
64
|
# count the number of projects in the current directory
|
44
65
|
project_count = Dir.glob("**/*.csproj").length
|
45
66
|
Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
|
data/lib/raykit/dotnet.rb
CHANGED
@@ -79,6 +79,14 @@ module Raykit
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
+
def self.new_csharp(template_name, dir, name, folders)
|
83
|
+
puts " creating #{dir}/#{name}/#{name}.csproj" unless File.exist?("#{dir}/#{name}/#{name}.csproj")
|
84
|
+
PROJECT.run("dotnet new #{template_name} -lang C# --name #{name} --output #{dir}/#{name}") unless File.exist?("#{dir}/#{name}/#{name}.csproj")
|
85
|
+
folders.each do |folder|
|
86
|
+
FileUtils.mkdir_p("#{dir}/#{name}/#{folder}") unless Dir.exist?("#{dir}/#{name}/#{folder}")
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
82
90
|
# initialize a C# library
|
83
91
|
def self.initialize_csharp_lib(name)
|
84
92
|
# create the library
|
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.496
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|