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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc46b26aae5b3712b7befd4f96d2f535e850ea1f8952f37ac50714ecc4407870
4
- data.tar.gz: 10679ea030bf2cf9ce6a78b6bdbb1122cf566bfc4a6b5925b410c5534dd2fd09
3
+ metadata.gz: 7744434ad0ca97e6c958da04dc78b8df6a24af1043ac7c6b1e7b2991f6f58577
4
+ data.tar.gz: 00327c4978912c2688e28109e74c85d2db77fd0de142a01aac60ff0ee79596a4
5
5
  SHA512:
6
- metadata.gz: 4b8ce7e6e66206469bbcf6f795799d14d67400c1e3cee8fc47121ce9df692b16bbe981c5450ef4a053a1eff6166cf82f098bbc1d78b49c84b5511fdba2074f7e
7
- data.tar.gz: ced613b8481056626e4ab05c28abf029ea241ecde066f3950658154a6e80c234d33f959f3d8a5b08ae203f337f712ca146e26163ec2f01199ebb4fd647c8b76c
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 " "#{name} project exists".colorize(:gey)
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 " #{project_path} has package #{package_name}".colorize(:grey)
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 " #{project_path} references #{reference_path}".colorize(:grey)
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
@@ -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.45"
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.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.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.