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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ffd4ab34495a530899997cfc83cdff58774e40c498a54d10ce363f174723251
4
- data.tar.gz: 7e9c3dcb127e6b4a724a26c099c5b62825ec21421a02be2424a7316223bc2f85
3
+ metadata.gz: 188de01d7c5285018ec0babbab647c9435f991df661e46935c64e7ae41ddf557
4
+ data.tar.gz: 60579d0ccf0d51bc5e634d95448cbff596c70c6fa6e07e93c9c93876c0d02000
5
5
  SHA512:
6
- metadata.gz: c152d55946328526366ac5b28df03767d8c8eead416df6a787f0a1fa45af2546f0f8d0f130f5332049b995144429ae6b774ea35730c8ce21e1f06e1dddd64231
7
- data.tar.gz: 6a8c59921204bfca822b09f9aa3dc88ba26e0bf379324d640aab3fe9d9d754f8089004e7e2f018aedff9fb05d52259cb7e337b7155f8ecaedfe970f6284e9811
6
+ metadata.gz: 6e5b12c2e1ade54f1820939668ad6fd04aeaf239fc5c0d04e36a55d31854ce3dd4e4845bf7aa582314c240efe263624a87ec39e937ba13140086f6d20571be1a
7
+ data.tar.gz: 5b786f1d2845ee6c4e600339cf5a9a4a4bfb5e4f62e13b4735c6e4ca878183225c41615cdd4477f7955d0a8eb0c499c05ab5d38762744036c2b153a82a02e6f7
@@ -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").len
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
- PROJECT.run("dotnet add examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj reference src/#{name}/#{name}.csproj") unless File.exist?("examples/#{name}.BlazorServer/#{name}.BlazorServer.csproj")
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
 
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.491
4
+ version: 0.0.493
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow