makit 0.0.42 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/makit/dotnet.rb +10 -3
- data/lib/makit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7744434ad0ca97e6c958da04dc78b8df6a24af1043ac7c6b1e7b2991f6f58577
|
4
|
+
data.tar.gz: 00327c4978912c2688e28109e74c85d2db77fd0de142a01aac60ff0ee79596a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7fc2a77910e89c1885c17eed37eff1a4dd24c9b64cba49d813bca77ad4595e15c9932f2114b1f7ba4179b2482b73f1672db3f50db2d613f82901c2f5bd4323
|
7
|
+
data.tar.gz: d6b63274bad5d2b1607706e9de4d10099ba9dc241e87ee8e7617f008287e5f2f231f7d6d6854bf9233fe92725076746a5caf412a47e098e03cbe3c0d11ffb4a7
|
data/lib/makit/dotnet.rb
CHANGED
@@ -8,9 +8,14 @@ module Makit
|
|
8
8
|
`dotnet --version`
|
9
9
|
end
|
10
10
|
|
11
|
+
def self.project_short_name(project_path)
|
12
|
+
project_name = File.basename(project_path, ".csproj")
|
13
|
+
project_name
|
14
|
+
end
|
15
|
+
|
11
16
|
def self.new_project(template, name, output, args = "")
|
12
17
|
if Dir.exist? output
|
13
|
-
puts "
|
18
|
+
puts " #{name} project exists".colorize(:gey)
|
14
19
|
else
|
15
20
|
"dotnet new #{template} --name #{name} --output #{output} #{args}".run
|
16
21
|
end
|
@@ -45,7 +50,8 @@ module Makit
|
|
45
50
|
if (!project_content.include?("\"#{package_name}\""))
|
46
51
|
"dotnet add #{project_path} package #{package_name}".run
|
47
52
|
else
|
48
|
-
puts "
|
53
|
+
puts " package ".colorize(:grey) + "#{package_name}".colorize(:green)
|
54
|
+
#puts " #{project_short_name(project_path)} has package #{package_name}".colorize(:grey)
|
49
55
|
end
|
50
56
|
end
|
51
57
|
|
@@ -74,7 +80,8 @@ module Makit
|
|
74
80
|
end
|
75
81
|
project_content = File.read(project_path)
|
76
82
|
if (project_content.include?(File.basename(reference_path)))
|
77
|
-
puts "
|
83
|
+
puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:green)
|
84
|
+
#puts " #{project_short_name(project_path)} references #{project_short_name(reference_path)}".colorize(:grey)
|
78
85
|
#puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
|
79
86
|
else
|
80
87
|
"dotnet add #{project_path} reference #{reference_path}".run
|
data/lib/makit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
- !ruby/object:Gem::Version
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
|
-
rubygems_version: 3.5.
|
232
|
+
rubygems_version: 3.5.23
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: CI/CD tools for Ruby developers.
|