danger-warnings_next_generation 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 376645863b3395fb2236750da8d2ea8eccee50a8e99dc805d41f577cd68aa9f6
4
- data.tar.gz: 3be7c4925398bcc80ce75690cc78a961cc6466c928e1e8cfd93dc64c9e13ba7c
3
+ metadata.gz: e491de1fafb3fbdd4e2dd7d979b892ec91a0500b5ae3126e9e1eb5668e7a10c9
4
+ data.tar.gz: 6a81ea59d7cce5f9b6abc3285a9b57b9edc9550ee3d5197b9d005f383ace42cd
5
5
  SHA512:
6
- metadata.gz: cb291593edf3dc7001d57bc585e31e1cc61e9ab95dcd79b7ad5cbc65ad70d53fd91fc215d1330170ea8ed7338ba49f65f25e59052df4f5c9c469e6f0a39988de
7
- data.tar.gz: bee9338b11923f09d46e5ba11d1be3ee42d3d8e99f4102f6a6c28e8ee27d5f87c2e6d9af2aa66ddb1330cf9b8c8eda970e6832d0228c40a46b8d27b03692e935
6
+ metadata.gz: a3b9e1f02a8a9bacb0ca5045582b9dd98bcc181c1550c52fe06ff8c15fd6cde52d6690550c59c443b750c90360ffd90b7fe8cf31b1163f2416a3a22456055166
7
+ data.tar.gz: 37e834d9785592e8546fdfc56f71b3f18185db2b8e60c92ad90d54bf9224b433e020bbbebaa969b04ce3544ed97892c4d60c32b310b5bb81131292bf87b837c2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.4] - 2019-5-28
8
+ ### Fixed
9
+ - Modify frozen baseline string
10
+
7
11
  ## [0.1.3] - 2019-5-28
8
12
  ### Fixed
9
13
  - Target files not initialized
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WarningsNextGeneration
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -119,6 +119,7 @@ module Danger
119
119
 
120
120
  def baseline(options)
121
121
  base = options && !options[:baseline].nil? ? options[:baseline] : nil
122
+ base = base.dup if base
122
123
  if base && !base.chars.last.eql?("/")
123
124
  base << "/"
124
125
  end
@@ -207,6 +207,22 @@ module Danger
207
207
  expect(messages.length).to be(8)
208
208
  end
209
209
 
210
+ it "baseline frozen string is modifiable" do
211
+ aggregation_return("/assets/aggregation_single.json")
212
+ details_return("/assets/java_detail_all.json")
213
+ baseline = JAVA_ALL_BASELINE.chomp("/").freeze
214
+ expect(baseline.chars.last).not_to be("/")
215
+ expect(baseline.frozen?).to be_truthy
216
+
217
+ @my_plugin.tools_report(inline: true, baseline: baseline)
218
+
219
+ markdowns = @dangerfile.status_report[:markdowns]
220
+ expect(markdowns.length).to be(0)
221
+
222
+ messages = @dangerfile.status_report[:messages]
223
+ expect(messages.length).to be(8)
224
+ end
225
+
210
226
  it "inline comments remove baseline" do
211
227
  aggregation_return("/assets/aggregation_single.json")
212
228
  details_return("/assets/java_detail_all.json")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-warnings_next_generation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Schwamberger