makit 0.0.45 → 0.0.47

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: 7744434ad0ca97e6c958da04dc78b8df6a24af1043ac7c6b1e7b2991f6f58577
4
- data.tar.gz: 00327c4978912c2688e28109e74c85d2db77fd0de142a01aac60ff0ee79596a4
3
+ metadata.gz: 13595d385d61aded5a1b070143d89cc2454b4791e1bdec3cddbbf415ef4d8835
4
+ data.tar.gz: f6c7b0892cae10ba34183bde1fd6f78a7b4fb7ac8d7fbed45c69f8ae660f23d2
5
5
  SHA512:
6
- metadata.gz: 2f7fc2a77910e89c1885c17eed37eff1a4dd24c9b64cba49d813bca77ad4595e15c9932f2114b1f7ba4179b2482b73f1672db3f50db2d613f82901c2f5bd4323
7
- data.tar.gz: d6b63274bad5d2b1607706e9de4d10099ba9dc241e87ee8e7617f008287e5f2f231f7d6d6854bf9233fe92725076746a5caf412a47e098e03cbe3c0d11ffb4a7
6
+ metadata.gz: 15930c7a638107807b538ace1ae3c698efa7479df1b9e695edaf4eaf0bfd100ca763aeb265939924b0d4b4821fe05aadae2cf92c8188f54f84411128748d1255
7
+ data.tar.gz: 0db3b5372728fc41293a93f155f3e62c05ca463a4d849260e6f6f2b6fde0f01f25987b893420d15695114d017a2a6fbd84f82d656e3b356483c62f3838047dba
data/lib/makit/dotnet.rb CHANGED
@@ -15,7 +15,7 @@ module Makit
15
15
 
16
16
  def self.new_project(template, name, output, args = "")
17
17
  if Dir.exist? output
18
- puts " #{name} project exists".colorize(:gey)
18
+ puts " .csproj ".colorize(:grey) + "#{name}".colorize(:green)
19
19
  else
20
20
  "dotnet new #{template} --name #{name} --output #{output} #{args}".run
21
21
  end
data/lib/makit/tasks.rb CHANGED
@@ -45,10 +45,11 @@ end
45
45
  desc "Update dependencies."
46
46
  task :update do
47
47
  Makit::SHOW.task(:update)
48
+ yesterday = Time.now - 24 * 60 * 60
48
49
  system("bundle update") if File.exist?("Gemfile")
49
50
  # glob all *.csproj files
50
51
  Dir.glob("**/*.csproj").each do |file|
51
- "dotnet format #{file}".run
52
+ "dotnet format #{file}".cache_try(yesterday)
52
53
  end
53
54
  end
54
55
 
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.45"
4
+ VERSION = "0.0.47"
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.45
4
+ version: 0.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow