pub_grub 0.1.0 → 0.2.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/Gemfile.lock +1 -1
- data/lib/pub_grub/failure_writer.rb +8 -7
- data/lib/pub_grub/solve_failure.rb +5 -1
- data/pub_grub.gemspec +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: 468d7bf24cf059751c1de78456163c371a4b28427f5c91c1185ff50a2e991a04
|
|
4
|
+
data.tar.gz: 46a60ee9a399e4a6736cb729d5acbd6f03a23f392c7aad19070856277f191a9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74ad2d2ea59a0f5fff3cf1121221d5c092f7056acb41eab9f2c3ac83399e7da3f7b3e0f3333486da68a381d707d9eb85e885621a87c68998220292a7701e43b5
|
|
7
|
+
data.tar.gz: a081e3c55d491310631d992360c1e63ca5c5afd66e7db954a86962b805ded63fa2c918c6fb6bcd37ffd36efb5fe6d8d4495e257e4ef82e692bdc44c1e4725043
|
data/Gemfile.lock
CHANGED
|
@@ -25,6 +25,7 @@ module PubGrub
|
|
|
25
25
|
|
|
26
26
|
lead = number ? "(#{number}) " : ""
|
|
27
27
|
lead = lead.ljust(padding)
|
|
28
|
+
message = message.gsub("\n", "\n" + " " * (padding + 2))
|
|
28
29
|
"#{lead}#{message}"
|
|
29
30
|
end.join("\n")
|
|
30
31
|
end
|
|
@@ -55,7 +56,7 @@ module PubGrub
|
|
|
55
56
|
if conflict_line && other_line
|
|
56
57
|
write_line(
|
|
57
58
|
incompatibility,
|
|
58
|
-
"Because #{cause.conflict} (#{conflict_line})
|
|
59
|
+
"Because #{cause.conflict} (#{conflict_line})\nand #{cause.other} (#{other_line}),\n#{incompatibility}.",
|
|
59
60
|
numbered: numbered
|
|
60
61
|
)
|
|
61
62
|
elsif conflict_line || other_line
|
|
@@ -66,7 +67,7 @@ module PubGrub
|
|
|
66
67
|
visit(without_line);
|
|
67
68
|
write_line(
|
|
68
69
|
incompatibility,
|
|
69
|
-
"#{conjunction} because #{with_line} (#{line})
|
|
70
|
+
"#{conjunction} because #{with_line} (#{line}),\n#{incompatibility}.",
|
|
70
71
|
numbered: numbered
|
|
71
72
|
)
|
|
72
73
|
else
|
|
@@ -90,7 +91,7 @@ module PubGrub
|
|
|
90
91
|
|
|
91
92
|
write_line(
|
|
92
93
|
incompatibility,
|
|
93
|
-
"#{conjunction} because #{cause.conflict} (#{@line_numbers[cause.conflict]})
|
|
94
|
+
"#{conjunction} because #{cause.conflict} (#{@line_numbers[cause.conflict]}),\n#{incompatibility}.",
|
|
94
95
|
numbered: numbered
|
|
95
96
|
)
|
|
96
97
|
end
|
|
@@ -103,7 +104,7 @@ module PubGrub
|
|
|
103
104
|
if derived_line
|
|
104
105
|
write_line(
|
|
105
106
|
incompatibility,
|
|
106
|
-
"Because #{ext}
|
|
107
|
+
"Because #{ext}\nand #{derived} (#{derived_line}),\n#{incompatibility}.",
|
|
107
108
|
numbered: numbered
|
|
108
109
|
)
|
|
109
110
|
elsif collapsible?(derived)
|
|
@@ -120,21 +121,21 @@ module PubGrub
|
|
|
120
121
|
|
|
121
122
|
write_line(
|
|
122
123
|
incompatibility,
|
|
123
|
-
"#{conjunction} because #{collapsed_ext}
|
|
124
|
+
"#{conjunction} because #{collapsed_ext}\nand #{ext},\n#{incompatibility}.",
|
|
124
125
|
numbered: numbered
|
|
125
126
|
)
|
|
126
127
|
else
|
|
127
128
|
visit(derived)
|
|
128
129
|
write_line(
|
|
129
130
|
incompatibility,
|
|
130
|
-
"#{conjunction} because #{ext}
|
|
131
|
+
"#{conjunction} because #{ext},\n#{incompatibility}.",
|
|
131
132
|
numbered: numbered
|
|
132
133
|
)
|
|
133
134
|
end
|
|
134
135
|
else
|
|
135
136
|
write_line(
|
|
136
137
|
incompatibility,
|
|
137
|
-
"Because #{cause.conflict}
|
|
138
|
+
"Because #{cause.conflict}\nand #{cause.other},\n#{incompatibility}.",
|
|
138
139
|
numbered: numbered
|
|
139
140
|
)
|
|
140
141
|
end
|
data/pub_grub.gemspec
CHANGED