raykit 0.0.489 → 0.0.491

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: 1e99c79c4135f7c61056df2f7fea7c14d6e56c405b5c0fb372dcc6f9d7459d3b
4
- data.tar.gz: 86dd45e0838a2c9a065a422243410d35c52ceafdaeca5879d5b97c0b7e40d2c0
3
+ metadata.gz: 0ffd4ab34495a530899997cfc83cdff58774e40c498a54d10ce363f174723251
4
+ data.tar.gz: 7e9c3dcb127e6b4a724a26c099c5b62825ec21421a02be2424a7316223bc2f85
5
5
  SHA512:
6
- metadata.gz: ff1af69e182e627fa7eeb458136a87c7c9a3cf1c1a28c161ffb307d27b21ecf87f618f90ced3ab35372f91926e8caae28281114d520be7ef34757c950c9c1951
7
- data.tar.gz: 6556a6bde18680e1872e44ea40263932d5d365c764ca441d676d93ce961ec001564dd99f04507823ede3dac307f35da158e59c001a232859954ee5c276fca715
6
+ metadata.gz: c152d55946328526366ac5b28df03767d8c8eead416df6a787f0a1fa45af2546f0f8d0f130f5332049b995144429ae6b774ea35730c8ce21e1f06e1dddd64231
7
+ data.tar.gz: 6a8c59921204bfca822b09f9aa3dc88ba26e0bf379324d640aab3fe9d9d754f8089004e7e2f018aedff9fb05d52259cb7e337b7155f8ecaedfe970f6284e9811
@@ -38,6 +38,10 @@ module Raykit
38
38
  Raykit::DotNet::initialize_csharp_blazorserver_example app
39
39
  end
40
40
  end
41
- end
41
+
42
+ # count the number of projects in the current directory
43
+ project_count = Dir.glob("**/*.csproj").len
44
+ Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
45
+ end # def self.run
42
46
  end # class AutoSetup
43
47
  end # module Raykit
data/lib/raykit/dotnet.rb CHANGED
@@ -82,20 +82,20 @@ module Raykit
82
82
  # initialize a C# library
83
83
  def self.initialize_csharp_lib(name)
84
84
  # create the solution
85
- puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
86
- PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
85
+ #puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
86
+ #PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
87
87
  # create the library
88
88
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
89
89
  PROJECT.run("dotnet new classlib -lang C# --name #{name} --output src/#{name}") unless File.exist?("src/#{name}/#{name}.csproj")
90
- PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj") unless File.exist?("src/#{name}/#{name}.csproj")
90
+ #PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj") unless File.exist?("src/#{name}/#{name}.csproj")
91
91
  # create the test
92
92
  puts " creating test/#{name}.Test/#{name}.Test.csproj" unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
93
93
  PROJECT.run("dotnet new nunit -lang C# --name #{name}.Test --output test/#{name}.Test") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
94
- PROJECT.run("dotnet sln #{name}.sln add test/#{name}.Test/#{name}.Test.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
94
+ #PROJECT.run("dotnet sln #{name}.sln add test/#{name}.Test/#{name}.Test.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
95
95
  PROJECT.run("dotnet add test/#{name}.Test/#{name}.Test.csproj reference src/#{name}/#{name}.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
96
96
  # create a blazor server example
97
97
  PROJECT.run("dotnet new blazorserver -lang C# --name #{name}.BlazorServer --output examples/#{name}.BlazorServer") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
98
- PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
98
+ #PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
99
99
  PROJECT.run("dotnet add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj reference src/#{name}/#{name}.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
100
100
  # generate project folders
101
101
  ["Interfaces", "Extensions", "Models"].each do |folder|
@@ -108,20 +108,20 @@ module Raykit
108
108
  # initialize a C# razor class library
109
109
  def self.initialize_csharp_razorclasslib(name)
110
110
  # create the solution
111
- puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
112
- PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
111
+ #puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
112
+ #PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
113
113
  # create the library
114
114
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
115
115
  PROJECT.run("dotnet new razorclasslib -lang C# --name #{name} --output src/#{name}") unless File.exist?("src/#{name}/#{name}.csproj")
116
- PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj") unless File.exist?("src/#{name}/#{name}.csproj")
116
+ #PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj") unless File.exist?("src/#{name}/#{name}.csproj")
117
117
  # create the test
118
118
  puts " creating test/#{name}.Test/#{name}.Test.csproj" unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
119
119
  PROJECT.run("dotnet new nunit -lang C# --name #{name}.Test --output test/#{name}.Test") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
120
- PROJECT.run("dotnet sln #{name}.sln add test/#{name}.Test/#{name}.Test.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
120
+ #PROJECT.run("dotnet sln #{name}.sln add test/#{name}.Test/#{name}.Test.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
121
121
  PROJECT.run("dotnet add test/#{name}.Test/#{name}.Test.csproj reference src/#{name}/#{name}.csproj") unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
122
122
  # create a blazor server example
123
123
  PROJECT.run("dotnet new blazorserver -lang C# --name #{name}.BlazorServer --output examples/#{name}.BlazorServer") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
124
- PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
124
+ #PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
125
125
  PROJECT.run("dotnet add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj reference src/#{name}/#{name}.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
126
126
  # generate project folders
127
127
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
@@ -134,12 +134,12 @@ module Raykit
134
134
  # initialize a C# blazor server application
135
135
  def self.initialize_csharp_blazorserver(name)
136
136
  # create the solution
137
- puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
138
- PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
137
+ #puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
138
+ #PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
139
139
  # create the blazor server application
140
140
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
141
141
  PROJECT.run("dotnet new blazorserver -lang C# --name #{name} --output src/#{name}") unless File.exist?("src/#{name}/#{name}.csproj")
142
- PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj")
142
+ #PROJECT.run("dotnet sln #{name}.sln add src/#{name}/#{name}.csproj")
143
143
  # generate project folders
144
144
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
145
145
  FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
@@ -149,12 +149,12 @@ module Raykit
149
149
  # initialize a C# blazor server example application
150
150
  def self.initialize_csharp_blazorserver_example(name)
151
151
  # create the solution
152
- puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
153
- PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
152
+ #puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
153
+ #PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
154
154
  # create the blazor server application
155
155
  puts " creating examples/#{name}/#{name}.csproj" unless File.exist?("examples/#{name}/#{name}.csproj")
156
156
  PROJECT.run("dotnet new blazorserver -lang C# --name #{name} --output examples/#{name}") unless File.exist?("examples/#{name}/#{name}.csproj")
157
- PROJECT.run("dotnet sln #{name}.sln add examples/#{name}/#{name}.csproj")
157
+ #PROJECT.run("dotnet sln #{name}.sln add examples/#{name}/#{name}.csproj")
158
158
  # generate project folders
159
159
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
160
160
  FileUtils.mkdir_p("examples/#{name}/#{folder}") unless Dir.exist?("examples/#{name}/#{folder}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.489
4
+ version: 0.0.491
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow