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: 162fb45ba515fdf18d27c7293e1eeeb66f20144026c384ae666c60769617d4d8
4
- data.tar.gz: 07ce4010639f915a2b7726caa20beba5c0f59aac9db310a6d3c90f762dce90f4
3
+ metadata.gz: 8064c84da90023bac2d3e6fa3709d90bfd3f81083e5da7f07bfab9b80b1d664d
4
+ data.tar.gz: a43e69b4e018911f6dea2aafc6f6a136235c00795317eb5c9e0242a15f077dc9
5
5
  SHA512:
6
- metadata.gz: c627be950937987daabacc7f09ddd0c7e19ee73fb92402f0dec728a7feaa16d279759a67f918acf644d30031b94fb6af0d50228b913977d54e536fd85c9352c9
7
- data.tar.gz: 9377b33cd6465dc3ac94c6590a9958b5a3c00b40f50e5b8453646e9b40eab645ec30c52912a6cf9360cd4053100a1cd012af148416f0c5d05c01675810f38a45
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)
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.19".freeze
2
+ VERSION = "0.0.21".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-additional-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox