danger-additional-logging 0.0.19 → 0.0.21
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8064c84da90023bac2d3e6fa3709d90bfd3f81083e5da7f07bfab9b80b1d664d
|
4
|
+
data.tar.gz: a43e69b4e018911f6dea2aafc6f6a136235c00795317eb5c9e0242a15f077dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71eff7377a561c42eed3247b2da4ace017f310061fd33b968f4f967e13d4c361d63ec37166bccc7991e04ecd3f4ddab848b5f2a04dca33ef8cb1aceffe048d03
|
7
|
+
data.tar.gz: 5e6a0d568e6db42363f60a79667943983a3705a4b945c652ba7c8615e6d86a2ecc9a0c87e002f97769d14fa4632df82d3d0d2f886ec7746498213bf50ca03d28
|
@@ -178,7 +178,13 @@ module Danger
|
|
178
178
|
def parse(path, contents = nil)
|
179
179
|
print_known_info if verbose
|
180
180
|
|
181
|
-
contents ||= File.open(path, "r:utf-8", &:read)
|
181
|
+
# contents ||= File.open(path, "r:utf-8", &:read)
|
182
|
+
File.open(path, "r:utf-8") do |file|
|
183
|
+
contents = file.each_line.take(17).join
|
184
|
+
|
185
|
+
puts "contents:"
|
186
|
+
puts contents
|
187
|
+
end
|
182
188
|
|
183
189
|
# Work around for Rubinius incomplete encoding in 1.9 mode
|
184
190
|
if contents.respond_to?(:encoding) && contents.encoding.name != "UTF-8"
|
@@ -200,7 +206,6 @@ module Danger
|
|
200
206
|
self.defined_in_file = path
|
201
207
|
instance_eval do
|
202
208
|
# rubocop:disable Lint/RescueException
|
203
|
-
|
204
209
|
eval_file(contents, path)
|
205
210
|
rescue Exception => e
|
206
211
|
message = "Invalid `#{path.basename}` file: #{e.message}"
|
@@ -68,7 +68,7 @@ module Danger
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def update_pull_request!(warnings: [], errors: [], messages: [], markdowns: [], danger_id: "danger", new_comment: false, remove_previous_comments: false)
|
71
|
-
puts "update_pull_request(warnings=#{warnings.size}, messages=#{messages.size}, markdowns=#{markdowns}, new_comment=#{new_comment}, remove_previous_comments=#{remove_previous_comments})"
|
71
|
+
puts "update_pull_request(warnings=#{warnings.size}, messages=#{messages.size}, markdowns=#{markdowns.size}, new_comment=#{new_comment}, remove_previous_comments=#{remove_previous_comments})"
|
72
72
|
delete_old_comments(danger_id: danger_id) if !new_comment || remove_previous_comments
|
73
73
|
|
74
74
|
warnings = update_inline_comments_for_kind!(:warnings, warnings, danger_id: danger_id)
|
data/lib/danger/version.rb
CHANGED