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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc46b26aae5b3712b7befd4f96d2f535e850ea1f8952f37ac50714ecc4407870
4
- data.tar.gz: 10679ea030bf2cf9ce6a78b6bdbb1122cf566bfc4a6b5925b410c5534dd2fd09
3
+ metadata.gz: '09681d23880d9d9c9bce0e3f5b2180e9b36ca451471ba81be32a42104fb9c989'
4
+ data.tar.gz: 5388fbc07f45ad742618cbc77b5d4402d3dc9acb6e12e1a3c0e63ea6b16457c0
5
5
  SHA512:
6
- metadata.gz: 4b8ce7e6e66206469bbcf6f795799d14d67400c1e3cee8fc47121ce9df692b16bbe981c5450ef4a053a1eff6166cf82f098bbc1d78b49c84b5511fdba2074f7e
7
- data.tar.gz: ced613b8481056626e4ab05c28abf029ea241ecde066f3950658154a6e80c234d33f959f3d8a5b08ae203f337f712ca146e26163ec2f01199ebb4fd647c8b76c
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.42"
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.42
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.