makit 0.0.41 → 0.0.44

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: 82dcdeebe8b2df25b62196b53214eac4d8d78dd0e7145e2e87f8c319ac91a4c2
4
- data.tar.gz: 89691658b0f60c9be9c347247f57bebf54e488e43a1431af1a7ba8f7dd3b0575
3
+ metadata.gz: '09681d23880d9d9c9bce0e3f5b2180e9b36ca451471ba81be32a42104fb9c989'
4
+ data.tar.gz: 5388fbc07f45ad742618cbc77b5d4402d3dc9acb6e12e1a3c0e63ea6b16457c0
5
5
  SHA512:
6
- metadata.gz: 63e01689bade791c8646cc529e10b50847a373755e58b26116ccd1a4d7c41ed3c6989cd01016aa36075155740b4fc6695b86e1b320fd5ac5c910e09383d9b654
7
- data.tar.gz: '079fb81a96385491778d9f935307c1e3c6e1f32281be5cc5bf5619813553e4ddb1b8917b92e2ca2bbce4748abde6155978fe8ea81de6e9c304211485129d9ea5'
6
+ metadata.gz: 6e6d972b40c3e30c3a9567632ed8ecd46f1a4f212e4dd98647047870fb4369516d6c67635fb694d016eae325ca900d267147523bb5e5b30a395bc89ecbb7f2d7
7
+ data.tar.gz: 11f00098c38f901665f3f03d878d81b0f75f93441bab9565b4cbbc905be430971fde8a5d905aa0c9a4290c4a9e5b966cebb53b6a10e57a0008a6ef020e26e009
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 " dotnet project ".colorize(:grey) + "#{name}".colorize(:green)
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,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 " package ".colorize(:grey) + "#{package_name}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
53
+ puts " #{project_short_name(project_path)} has package #{package_name}".colorize(:grey)
49
54
  end
50
55
  end
51
56
 
@@ -74,7 +79,8 @@ 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 " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
82
+ puts " #{project_short_name(project_path)} references #{project_short_name(reference_path)}".colorize(:grey)
83
+ #puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
78
84
  else
79
85
  "dotnet add #{project_path} reference #{reference_path}".run
80
86
  end
data/lib/makit/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.41"
4
+ VERSION = "0.0.44"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
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.41
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.16
232
+ rubygems_version: 3.5.23
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: CI/CD tools for Ruby developers.