dotkit 0.0.23 → 0.0.28
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 +29 -3
- 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: 036164bb704a6eae6f6796adb2180eb640f12125678dd46540d30d9483f14b7f
|
|
4
|
+
data.tar.gz: 26a9a85e62a43317f498ba8dc2f2af215e0728e3a65ad3ff1d0c3e1a740f92ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96dbce4a06ed2441356e0895fe4662353649eb9550dec2149f33e1e09363c2abe9663c736ab18cfe49a913c33fee5bf58e739ca75c461d6417bd05a020607cc2
|
|
7
|
+
data.tar.gz: '0629810596e693c42226ac868ad7923ef6b33319b2e814b4da59da5fe05071fc1105cd9451567e14c445a448633847650842fac7d0a849851a8f222c7fb76d2b'
|
data/lib/dotkit.rb
CHANGED
|
@@ -12,7 +12,8 @@ task :build do
|
|
|
12
12
|
if(text.include?('<GeneratePackageOnBuild>true</GeneratePackageOnBuild>'))
|
|
13
13
|
PROJECT.run("dotnet pack #{csproj} --configuration Release")
|
|
14
14
|
end
|
|
15
|
-
if(text.include?('<OutputType>Exe</OutputType>')
|
|
15
|
+
if(text.include?('<OutputType>Exe</OutputType>') ||
|
|
16
|
+
text.include?('<OutputType>WinExe</OutputType>'))
|
|
16
17
|
PROJECT.run("dotnet publish #{csproj} -c Release -f netcoreapp3.1 -r win-x64 /p:PublishSingleFile=true /p:UseAppHost=true")
|
|
17
18
|
end
|
|
18
19
|
}
|
|
@@ -77,9 +78,13 @@ task :bump do
|
|
|
77
78
|
old_version = Raykit::Version.detect(PROJECT.name)
|
|
78
79
|
new_version = Raykit::Version.bump_file("#{PROJECT.name}/#{PROJECT.name}.csproj")
|
|
79
80
|
puts " bumped version from #{old_version} to #{new_version}"
|
|
80
|
-
puts " perform rake :integrate to integrate this change."
|
|
81
|
+
#puts " perform rake :integrate to integrate this change."
|
|
81
82
|
puts ''
|
|
82
|
-
|
|
83
|
+
if(PROJECT.outstanding_commit?)
|
|
84
|
+
if(Rake::Task.task_defined?("integrate"))
|
|
85
|
+
Rake::Task["integrate"].invoke
|
|
86
|
+
end
|
|
87
|
+
end
|
|
83
88
|
end
|
|
84
89
|
|
|
85
90
|
desc 'update package versions'
|
|
@@ -90,6 +95,11 @@ task :update do
|
|
|
90
95
|
PROJECT.run("dotnet add #{csproj} package #{package}")
|
|
91
96
|
}
|
|
92
97
|
}
|
|
98
|
+
if(PROJECT.outstanding_commit?)
|
|
99
|
+
if(Rake::Task.task_defined?("integrate"))
|
|
100
|
+
Rake::Task["integrate"].invoke
|
|
101
|
+
end
|
|
102
|
+
end
|
|
93
103
|
end
|
|
94
104
|
|
|
95
105
|
task :default => [:integrate] do
|
|
@@ -120,3 +130,19 @@ def copy_files(source_dir,glob_pattern,target_dir,exclude_pattern)
|
|
|
120
130
|
end
|
|
121
131
|
puts " copied #{count} files to " + target_dir
|
|
122
132
|
end
|
|
133
|
+
|
|
134
|
+
# https://docs.microsoft.com/en-us/visualstudio/code-quality/how-to-generate-code-metrics-data?view=vs-2019
|
|
135
|
+
def compute_code_metrics
|
|
136
|
+
metrics_file='artifacts/Code-Metrics.xml'
|
|
137
|
+
FileUtils.mkdir('artifacts') if(!Dir.exists?('artifacts'))
|
|
138
|
+
File.delete('artifacts/Code-Metrics.xml') if(File.exists?('artifacts/Code-Metrics.xml'))
|
|
139
|
+
PROJECT.run("metrics /s:#{PROJECT.name}.sln /o:artifacts/Code-Metrics.xml")
|
|
140
|
+
if(!File.exist?(metrics_file))
|
|
141
|
+
raise "#{metrics_file} does not exist"
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
desc 'initialize a dotnet library'
|
|
146
|
+
task :init_lib do
|
|
147
|
+
Raykit::DotNet::initialize_csharp_lib(PROJECT.name)
|
|
148
|
+
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.28
|
|
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-05-26 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
|