dotkit 0.0.27 → 0.0.32
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 +4 -4
- data/lib/dotkit.rb +15 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e84e716fa76a65712541ef1ec28e842d36efaf1528c8260b861fcc720a149436
|
|
4
|
+
data.tar.gz: 3d348b112610bb1baa8ef950c8dece183e9ef35199ac23c6e838c0b3e2a770be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcec675e570c0c3c43149f828ce37b300b77c3e452dba391f7498f6426c2f6e076812638dc5e57459013ba491f0536aec9c7316c4010f1e0123bd5c794f1c8a2
|
|
7
|
+
data.tar.gz: 04d6189d3bd9e4ada6f54df918890ab12a6e387f03e3ee76f55127272fe4e46ec481fc7fa57851e8efe7a5ec38bc6af303ad1c6a0b4f0e1d73ca758a6e524e67
|
data/lib/dotkit.rb
CHANGED
|
@@ -14,7 +14,15 @@ task :build do
|
|
|
14
14
|
end
|
|
15
15
|
if(text.include?('<OutputType>Exe</OutputType>') ||
|
|
16
16
|
text.include?('<OutputType>WinExe</OutputType>'))
|
|
17
|
-
|
|
17
|
+
if(text.include?('<TargetFramework>net5.0-windows</TargetFramework>'))
|
|
18
|
+
PROJECT.run("dotnet publish #{csproj} -c Release -f net5.0-windows -r win-x64 /p:PublishSingleFile=true /p:UseAppHost=true")
|
|
19
|
+
else
|
|
20
|
+
if(text.include?('<TargetFramework>net5.0</TargetFramework>'))
|
|
21
|
+
PROJECT.run("dotnet publish #{csproj} -c Release -f net5.0 -r win-x64 /p:PublishSingleFile=true /p:UseAppHost=true")
|
|
22
|
+
else
|
|
23
|
+
PROJECT.run("dotnet publish #{csproj} -c Release -f netcoreapp3.1 -r win-x64 /p:PublishSingleFile=true /p:UseAppHost=true")
|
|
24
|
+
end
|
|
25
|
+
end
|
|
18
26
|
end
|
|
19
27
|
}
|
|
20
28
|
end
|
|
@@ -102,7 +110,7 @@ task :update do
|
|
|
102
110
|
end
|
|
103
111
|
end
|
|
104
112
|
|
|
105
|
-
task :default
|
|
113
|
+
task :default do
|
|
106
114
|
PROJECT.summary
|
|
107
115
|
end
|
|
108
116
|
|
|
@@ -140,4 +148,9 @@ def compute_code_metrics
|
|
|
140
148
|
if(!File.exist?(metrics_file))
|
|
141
149
|
raise "#{metrics_file} does not exist"
|
|
142
150
|
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
desc 'initialize a dotnet library'
|
|
154
|
+
task :init_lib do
|
|
155
|
+
Raykit::DotNet::initialize_csharp_lib(PROJECT.name)
|
|
143
156
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dotkit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lou Parslow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
|
-
rubygems_version: 3.
|
|
111
|
+
rubygems_version: 3.1.2
|
|
112
112
|
signing_key:
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: ruby gem to support rake ci/cd tasks for dotnet
|