raykit 0.0.214 → 0.0.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/raykit/project.rb +10 -0
- 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: f33e4a5f6821c9c009275d678b85406865adea8be2c006e887a3da3a6db32b88
|
4
|
+
data.tar.gz: d26dc79ddd6f6619d09c55ea7760d430b54bb972e93e56036dc055ee022811a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a29715a70a5106e94b1d07e7611b82f7411f0a95fcaad1baf74f4929587df74b07ee342bd162aaae84cab8f8c50e7f5ef972f1cafd58be03fc56ed1769e7b3
|
7
|
+
data.tar.gz: 9dea110e6263d355a74baa8611e798a2bbe2dfa02e44361de410fa12cadfd33e37aceeeeb34f3b7a420557c063e13709e44461689174d7306e644d99ef7d5f6d
|
data/lib/raykit/project.rb
CHANGED
@@ -119,6 +119,15 @@ module Raykit
|
|
119
119
|
`git show-ref -s #{latest_tag}`.strip
|
120
120
|
end
|
121
121
|
|
122
|
+
def latest_tag_md5
|
123
|
+
text=`git tag #{latest_tag} -n3`
|
124
|
+
scan = text.scan(/md5=(\w{32})/)
|
125
|
+
if(scan.length > 0 && scan[0].length > 0)
|
126
|
+
return scan[0][0].to_s
|
127
|
+
end
|
128
|
+
''
|
129
|
+
end
|
130
|
+
|
122
131
|
def remote
|
123
132
|
@remote
|
124
133
|
end
|
@@ -169,6 +178,7 @@ module Raykit
|
|
169
178
|
puts "PROJECT.branch".ljust(ljust) + Rainbow(PROJECT.branch).yellow.bright
|
170
179
|
puts "PROJECT.latest_tag".ljust(ljust) + Rainbow(PROJECT.latest_tag).yellow.bright
|
171
180
|
puts "PROJECT.latest_tag_commit".ljust(ljust) + Rainbow(PROJECT.latest_tag_commit).yellow.bright
|
181
|
+
puts "PROJECT.latest_tag_md5".ljust(ljust) + Rainbow(PROJECT.latest_tag_md5).yellow.bright
|
172
182
|
puts "PROJECT.latest_commit".ljust(ljust) + Rainbow(PROJECT.latest_commit).yellow.bright
|
173
183
|
puts "PROJECT.last_modified_filename".ljust(ljust) + Rainbow(PROJECT.last_modified_filename).yellow.bright
|
174
184
|
#puts "PROJECT.elapsed".ljust(ljust) + Rainbow(PROJECT.elapsed).yellow.bright
|