git-recommend 0.2.0 → 0.3.0
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/git_recommend.rb +10 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a8c6fc1c30e588d383f9170e4fb8a00a600e170
|
4
|
+
data.tar.gz: e73e56ba11036ce69a7d8fb0c8d16dc73e07ce24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e70d838c4c4a099b62c58c96fdb798b5ef4e161330d13c4e96024ba701dfc1ca6d4b49abf94b3aea43fea3f7ad64e2c1f2d5732e1e2c6a7c3f2692a969f0a6ee
|
7
|
+
data.tar.gz: d1771a6757a53f9452dcd8655533f3d5fe986f2c0cd90ff800ec30e3e1d2d0f4fbcaff5c016c0e6c83cad873955cce84488bc955b7bbc1b97e16578c3f2b1158
|
data/lib/git_recommend.rb
CHANGED
@@ -70,6 +70,16 @@ class GitRecommend < Thor
|
|
70
70
|
max_size: options[:max_size],
|
71
71
|
measures: options[:measures]})
|
72
72
|
s.call
|
73
|
+
# check if there were some items in the query which could not be found in the history
|
74
|
+
items_in_lhs = s.recommendation.map {|r| r.human_lhs}.flatten.uniq
|
75
|
+
new_items = q - items_in_lhs
|
76
|
+
if new_items.size > 0
|
77
|
+
if new_items.size < 11
|
78
|
+
$stderr.puts "Unable to generate change recommendations for the following items, maybe update the history?:\n #{new_items.to_a.join("\n")}"
|
79
|
+
else
|
80
|
+
$stderr.puts "Unable to generate change recommendations for #{new_items.size} items, maybe update the history?. The first 10 were: \n #{new_items.take(10).join("\n")}"
|
81
|
+
end
|
82
|
+
end
|
73
83
|
s.print
|
74
84
|
else
|
75
85
|
$stderr.puts "No changed files detected. Change some files or run with --help for more options."
|
data/lib/version.rb
CHANGED