makit 0.0.42 → 0.0.44
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 +7 -2
- 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: '09681d23880d9d9c9bce0e3f5b2180e9b36ca451471ba81be32a42104fb9c989'
|
4
|
+
data.tar.gz: 5388fbc07f45ad742618cbc77b5d4402d3dc9acb6e12e1a3c0e63ea6b16457c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e6d972b40c3e30c3a9567632ed8ecd46f1a4f212e4dd98647047870fb4369516d6c67635fb694d016eae325ca900d267147523bb5e5b30a395bc89ecbb7f2d7
|
7
|
+
data.tar.gz: 11f00098c38f901665f3f03d878d81b0f75f93441bab9565b4cbbc905be430971fde8a5d905aa0c9a4290c4a9e5b966cebb53b6a10e57a0008a6ef020e26e009
|
data/lib/makit/dotnet.rb
CHANGED
@@ -8,6 +8,11 @@ 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
18
|
puts " "#{name} project exists".colorize(:gey)
|
@@ -45,7 +50,7 @@ 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 " #{project_path} has package #{package_name}".colorize(:grey)
|
53
|
+
puts " #{project_short_name(project_path)} has package #{package_name}".colorize(:grey)
|
49
54
|
end
|
50
55
|
end
|
51
56
|
|
@@ -74,7 +79,7 @@ module Makit
|
|
74
79
|
end
|
75
80
|
project_content = File.read(project_path)
|
76
81
|
if (project_content.include?(File.basename(reference_path)))
|
77
|
-
puts " #{project_path} references #{reference_path}".colorize(:grey)
|
82
|
+
puts " #{project_short_name(project_path)} references #{project_short_name(reference_path)}".colorize(:grey)
|
78
83
|
#puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
|
79
84
|
else
|
80
85
|
"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.44
|
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.
|