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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 343021ad862ff0d737a5c1b7abfb78077978812f176256249a349d97170c7549
4
- data.tar.gz: e84d21e51a53fc4b5d2f8fcccc9debc6eda7d6783844a40d49b23a34966c4fad
3
+ metadata.gz: 372290870494840da7e0a2d3702f6ff37c3425b6396c758f21da685c94e911e2
4
+ data.tar.gz: 54d0b685e49ee3d9a166e6a2f0705da345e7d47b754101ba2531ab4046333f93
5
5
  SHA512:
6
- metadata.gz: 93951c33d51b7e57d2fe96637ef27895ed0dc1d874382d030c1d007a221d0f5ee0e9763c4056dcd7b147b6e697b1e6fdc8c79ed59b3636e4b2d9773092407625
7
- data.tar.gz: b6e6624cb5ace1e3a16717d30c1aea72ee930490ea1355550de3095df2e05736f57c3ea5b3412d9633835299d1c36c89ed9d986ced8c2dd43387bedde2dbfde4
6
+ metadata.gz: d7ead69b264293dff93a37f3f426027cd64c55a45d6c4fe90cc158cf0b29c36b92c8448c182e6ae6a69d92fdf9a93b6f26bcda5191c2bbb05f4e59d8a3219eb0
7
+ data.tar.gz: cc16da18d2956bcabb729d608828e25628d911415af792f65676a9d59854f5e4a1d232aee038b5284351cd08f990733f0dd8775b84fceb1b9246dc91e8b8c604
@@ -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.494
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-26 00:00:00.000000000 Z
11
+ date: 2023-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler