makit 0.0.29 → 0.0.31

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: 3f69da10261fd8fdf398fa81783f7be21278e492547674a56c240b922b798ab2
4
- data.tar.gz: 5cfe2763cc3172e634e3faefa675aa9f42219ae96c5cb6e9d471ec7af8da4ee3
3
+ metadata.gz: dd32600c16b343af0aca4d27302ce500be167858bc54f1b57006cffbf7cdcf06
4
+ data.tar.gz: 70564e6b73998614ec7a9e86fd9ca06e3d9226014fce028af9476bd57c844311
5
5
  SHA512:
6
- metadata.gz: 39d78c936fdf074a701c2ef20c987cec2fb07e7d22782acceec340b151e2ed3b783d0694715c8ce67fa33059d4c3b7d2762a399a3f7f16a9a0c7084cde355854
7
- data.tar.gz: 97fb0e8bfdc1f6acf96d1e71b8919a7eb7d83ba46dcdb78c8b4f4d35ec1fbf88ab9507b8eae10ee35863f1af83a1d6f2df25e79a972445df2c881930caea8e97
6
+ metadata.gz: af741663354f9ba23a1aae56572bb101c2947c2936bb51891e9e3c913162fda4d17da954c29941a34db94841f10b0b21b68cc4c646e3bec1f96c734f0b0e8cf5
7
+ data.tar.gz: 358dd573c9f5f149297ca7acbdcda8257f1732e7d122ff37246206cd5622d24cd48dffe8c27b84d1d923829b8937699157360b7ca6953658c38a8c62a0bec66e
data/lib/makit/git.rb CHANGED
@@ -35,6 +35,12 @@ module Makit
35
35
  end
36
36
  end
37
37
 
38
+ def self.pull
39
+ if is_git_repo && !detached
40
+ "git pull".try
41
+ end
42
+ end
43
+
38
44
  def self.zip_source_files(zipfilename)
39
45
  "git archive --format zip --output #{zipfilename} HEAD".run
40
46
  end
data/lib/makit/show.rb CHANGED
@@ -50,6 +50,12 @@ module Makit
50
50
  "\u{1F4C1}"
51
51
  end
52
52
 
53
+ def task_symbol
54
+ # 🛠️ (U+1F6E0) Hammer and Wrench – Represents tools, suitable for tasks and automation.
55
+ "\u{1F6E0}"
56
+
57
+ end
58
+
53
59
  def size(path)
54
60
  if File.file?(path)
55
61
  puts "#{path} size is ".colorize(:grey) + "#{Makit::Humanize.get_humanized_size(File.size(path))}".colorize(:cyan)
@@ -61,7 +67,9 @@ module Makit
61
67
  end
62
68
 
63
69
  def task(task)
64
- puts ":#{task}".colorize(:green)
70
+ puts ("=" * 80).colorize(:grey)
71
+ puts " ".colorize(:grey) + "#{task}".colorize(:green)
72
+ #puts ("=" * 100).colorize(:grey)
65
73
  end
66
74
  end
67
75
  end
data/lib/makit/tasks.rb CHANGED
@@ -31,6 +31,11 @@ task :sync do
31
31
  Makit::Git.sync
32
32
  end
33
33
 
34
+ task :pull do
35
+ Makit::SHOW.task(:pull)
36
+ Makit::Git.pull
37
+ end
38
+
34
39
  desc "Format source code."
35
40
  task :format do
36
41
  puts ":format".colorize(:blue)
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.29"
4
+ VERSION = "0.0.31"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-30 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0.3'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rainbow
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.1'
139
153
  description: CI/CD tools for Ruby developers.
140
154
  email:
141
155
  - lou.parslow@gmail.com