raykit 0.0.492 → 0.0.494

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: 39d466f90dc3f33613140488b8f1bcfacc432e0f3428d10a529e835ba9d32806
4
- data.tar.gz: 4947f89135326fb4c94a34eae833ae5931f2b300be83e6b88fd79e69b2f3600f
3
+ metadata.gz: 343021ad862ff0d737a5c1b7abfb78077978812f176256249a349d97170c7549
4
+ data.tar.gz: e84d21e51a53fc4b5d2f8fcccc9debc6eda7d6783844a40d49b23a34966c4fad
5
5
  SHA512:
6
- metadata.gz: e8583255ca3f0c99fe32f67f30bfe8e10117664906996f57fcdd1f1cc3d88083dad5c2202e32353cbfb1b32a913313f437d6078bbab35c94351db6f017552e1d
7
- data.tar.gz: f401a7611e1cf7476d283cdb3529b301fe9e322f39f54ccb027e0f41fd4d4832d610e409432147d657cc155067b6f5d90612d9844424005727d39c3d4a5b10d7
6
+ metadata.gz: 93951c33d51b7e57d2fe96637ef27895ed0dc1d874382d030c1d007a221d0f5ee0e9763c4056dcd7b147b6e697b1e6fdc8c79ed59b3636e4b2d9773092407625
7
+ data.tar.gz: b6e6624cb5ace1e3a16717d30c1aea72ee930490ea1355550de3095df2e05736f57c3ea5b3412d9633835299d1c36c89ed9d986ced8c2dd43387bedde2dbfde4
@@ -1,6 +1,7 @@
1
1
  module Raykit
2
2
  class AutoSetup
3
3
  def self.run
4
+ PROJECT.set_version(VERSION) if (defined?(VERSION))
4
5
  # Default subdirectories
5
6
  DEFAULT_SUBDIRECTORIES.each do |subdirectory|
6
7
  puts " RAYKIT_AUTO_SETUP: creating #{subdirectory}" unless Dir.exist?(subdirectory)
data/lib/raykit/dotnet.rb CHANGED
@@ -81,65 +81,41 @@ module Raykit
81
81
 
82
82
  # initialize a C# library
83
83
  def self.initialize_csharp_lib(name)
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")
87
84
  # create the library
88
85
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
89
86
  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")
91
87
  # create the test
92
88
  puts " creating test/#{name}.Test/#{name}.Test.csproj" unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
93
89
  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")
95
90
  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
- # 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")
98
- #PROJECT.run("dotnet sln #{name}.sln add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
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
91
  # generate project folders
101
92
  ["Interfaces", "Extensions", "Models"].each do |folder|
102
93
  FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
103
94
  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}")
105
95
  end
106
96
  end
107
97
 
108
98
  # initialize a C# razor class library
109
99
  def self.initialize_csharp_razorclasslib(name)
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")
113
100
  # create the library
114
101
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
115
102
  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")
117
103
  # create the test
118
104
  puts " creating test/#{name}.Test/#{name}.Test.csproj" unless File.exist?("test/#{name}.Test/#{name}.Test.csproj")
119
105
  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")
121
106
  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
- # 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")
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")
126
107
  # generate project folders
127
108
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
128
109
  FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
129
110
  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}")
131
111
  end
132
112
  end
133
113
 
134
114
  # initialize a C# blazor server application
135
115
  def self.initialize_csharp_blazorserver(name)
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")
139
116
  # create the blazor server application
140
117
  puts " creating src/#{name}/#{name}.csproj" unless File.exist?("src/#{name}/#{name}.csproj")
141
118
  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")
143
119
  # generate project folders
144
120
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
145
121
  FileUtils.mkdir_p("src/#{name}/#{folder}") unless Dir.exist?("src/#{name}/#{folder}")
@@ -148,13 +124,19 @@ module Raykit
148
124
 
149
125
  # initialize a C# blazor server example application
150
126
  def self.initialize_csharp_blazorserver_example(name)
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")
154
127
  # create the blazor server application
155
128
  puts " creating examples/#{name}/#{name}.csproj" unless File.exist?("examples/#{name}/#{name}.csproj")
156
129
  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")
130
+ # generate project folders
131
+ ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
132
+ FileUtils.mkdir_p("examples/#{name}/#{folder}") unless Dir.exist?("examples/#{name}/#{folder}")
133
+ end
134
+ end
135
+
136
+ def self.initialize_csharp_wpf_example(name)
137
+ # create the wpf application
138
+ puts " creating examples/#{name}/#{name}.csproj" unless File.exist?("examples/#{name}/#{name}.csproj")
139
+ PROJECT.run("dotnet new wpf -lang C# --name #{name} --output examples/#{name}") unless File.exist?("examples/#{name}/#{name}.csproj")
158
140
  # generate project folders
159
141
  ["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
160
142
  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.492
4
+ version: 0.0.494
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow