raykit 0.0.416 → 0.0.419
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/git/directory.rb +13 -0
- data/lib/raykit/log.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f086babde861261986c7d8e1816ace849aad926e58754dd383ff4f065af190da
|
4
|
+
data.tar.gz: a7dad061f75d52167a2a9de3185ffb18ea92136d214ea911c306153481d80843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c91df7579cbb5e4c522ffd01e35870575d3d4b7b6d781e9a48ddabc377a144dd4b8099edbbdce85bdcc62ad1d6956267884a545072876a4d870cd516520a8c3
|
7
|
+
data.tar.gz: e0565b165f6b709a8f9f3518c591b96bf12d552b8d348742a2778ce5bcf99874cb1081eb6b7da68ce55c3cd7406731fbd185e1bd9324e4742b8c43b33436c1b7
|
data/lib/raykit/git/directory.rb
CHANGED
@@ -167,6 +167,19 @@ module Raykit
|
|
167
167
|
end
|
168
168
|
""
|
169
169
|
end
|
170
|
+
|
171
|
+
def tag_version(version)
|
172
|
+
if has_tag "v#{VERSION}"
|
173
|
+
puts " git tag v#{VERSION} already exists"
|
174
|
+
else
|
175
|
+
if outstanding_commit?
|
176
|
+
raise "outstanding commit, will not tag"
|
177
|
+
else
|
178
|
+
puts " git tag v#{VERSION} does not exist"
|
179
|
+
run("git tag -a v#{VERSION} -m\"version #{VERSION}\"")
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
170
183
|
end
|
171
184
|
end
|
172
185
|
end
|
data/lib/raykit/log.rb
CHANGED
@@ -62,7 +62,9 @@ module Raykit
|
|
62
62
|
name = nvp[0]
|
63
63
|
value = nvp[1]
|
64
64
|
max_name_width = name.length if (name.length > max_name_width)
|
65
|
-
|
65
|
+
if (!value.nil?)
|
66
|
+
max_value_width = value.length if (value.length > max_value_width)
|
67
|
+
end
|
66
68
|
}
|
67
69
|
header = " =".ljust(max_name_width + max_value_width + 5, "=")
|
68
70
|
puts header
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.419
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|