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 +4 -4
- data/lib/makit/dotnet.rb +1 -1
- data/lib/makit/tasks.rb +2 -1
- data/lib/makit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13595d385d61aded5a1b070143d89cc2454b4791e1bdec3cddbbf415ef4d8835
|
4
|
+
data.tar.gz: f6c7b0892cae10ba34183bde1fd6f78a7b4fb7ac8d7fbed45c69f8ae660f23d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}
|
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}".
|
52
|
+
"dotnet format #{file}".cache_try(yesterday)
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
data/lib/makit/version.rb
CHANGED