raykit 0.0.491 → 0.0.493
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 +1 -1
- data/lib/raykit/dotnet.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 188de01d7c5285018ec0babbab647c9435f991df661e46935c64e7ae41ddf557
|
4
|
+
data.tar.gz: 60579d0ccf0d51bc5e634d95448cbff596c70c6fa6e07e93c9c93876c0d02000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e5b12c2e1ade54f1820939668ad6fd04aeaf239fc5c0d04e36a55d31854ce3dd4e4845bf7aa582314c240efe263624a87ec39e937ba13140086f6d20571be1a
|
7
|
+
data.tar.gz: 5b786f1d2845ee6c4e600339cf5a9a4a4bfb5e4f62e13b4735c6e4ca878183225c41615cdd4477f7955d0a8eb0c499c05ab5d38762744036c2b153a82a02e6f7
|
data/lib/raykit/auto_setup.rb
CHANGED
@@ -40,7 +40,7 @@ module Raykit
|
|
40
40
|
end
|
41
41
|
|
42
42
|
# count the number of projects in the current directory
|
43
|
-
project_count = Dir.glob("**/*.csproj").
|
43
|
+
project_count = Dir.glob("**/*.csproj").length
|
44
44
|
Raykit::DotNet::create_solution(PROJECT.name) if (project_count > 0)
|
45
45
|
end # def self.run
|
46
46
|
end # class AutoSetup
|
data/lib/raykit/dotnet.rb
CHANGED
@@ -94,14 +94,14 @@ module Raykit
|
|
94
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
|
-
PROJECT.run("dotnet new blazorserver -lang C# --name #{name}.BlazorServer --output examples/#{name}.BlazorServer") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
|
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
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
|
+
P #ROJECT.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|
|
102
102
|
FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
|
103
103
|
FileUtils.mkdir_p("test/#{name}.Test/#{folder}") unless Dir.exist?("test/#{name}.Test/#{folder}")
|
104
|
-
FileUtils.mkdir_p("examples/#{name}.BlazorServer/#{folder}") unless Dir.exist?("examples/#{name}.BlazorServer/#{folder}")
|
104
|
+
#FileUtils.mkdir_p("examples/#{name}.BlazorServer/#{folder}") unless Dir.exist?("examples/#{name}.BlazorServer/#{folder}")
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -120,14 +120,14 @@ module Raykit
|
|
120
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
|
-
PROJECT.run("dotnet new blazorserver -lang C# --name #{name}.BlazorServer --output examples/#{name}.BlazorServer") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
|
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
124
|
#PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
|
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")
|
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|
|
128
128
|
FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
|
129
129
|
FileUtils.mkdir_p("test/#{name}.Test/#{folder}") unless Dir.exist?("test/#{name}.Test/#{folder}")
|
130
|
-
FileUtils.mkdir_p("examples/#{name}.BlazorServer/#{folder}") unless Dir.exist?("examples/#{name}.BlazorServer/#{folder}")
|
130
|
+
#FileUtils.mkdir_p("examples/#{name}.BlazorServer/#{folder}") unless Dir.exist?("examples/#{name}.BlazorServer/#{folder}")
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|