raykit 0.0.488 → 0.0.490

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/dotnet.rb +17 -17
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 419c8c95e7743572984410147be5c27a51e5efbab648c36c15039f55c71e3680
4
- data.tar.gz: 38c27712233ceea33999798d2a5de54d7f0278d2514104666995f0324e76e5dd
3
+ metadata.gz: 26035949d692c24448349fc5b985c453bf0d4e61dd0782a42ef87401848895b7
4
+ data.tar.gz: 00d2c59124c1fe4df4db6005aa317f4fff8adae3c6fa7fdb012421c0caabd4b9
5
5
  SHA512:
6
- metadata.gz: 51e0eb145cd8bbfb84b7b0f0931efebf745e862b38a38e5dc2dc06fdc38e69ed231040083ed15c5a861d766f101e66e54809073e7b5241bf69010a81a640fd5d
7
- data.tar.gz: 938c0e423b54c7d0195392aa1f7bf314a55d5dad1483905962fb94aaccfc0c6c67eae06711e242e541ac92eadc7c223ef4d773699ac96af1d427b416209663c1
6
+ metadata.gz: c1bfb9c2eb2ddd8ace2e6de10cee28c39a30e80a41ed7a1933e9613bf504de6faabdfb75d6ddbec2522be5e08fc4172a1c8872efbabaca43d59e531e852a405f
7
+ data.tar.gz: f6488a7d1c5ad3739f06fb8c04d4b0e05335f43a65b81a1d9b3df2afca850268edc051a8d897b640a875ed37e98274d13e337f97e0c9dd6417a222f097a68785
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}")
@@ -163,7 +163,7 @@ module Raykit
163
163
 
164
164
  # create a solution of the specified name and add all projects in the current directory
165
165
  def self.create_solution(name)
166
- PROJECT.run("dotnet new sln --name #{name}")
166
+ PROJECT.run("dotnet new sln --name #{name}") unless File.exist?("#{name}.sln")
167
167
  Dir.glob("**/*.csproj").each do |project|
168
168
  PROJECT.run("dotnet sln #{name}.sln add #{project}")
169
169
  end
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.488
4
+ version: 0.0.490
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow