danger 4.3.0 → 4.3.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d77c9d65a92cf78a691b3733ab33238daa75b25d
|
4
|
+
data.tar.gz: 0c689375145b93acc3c788b0690226d67b0152f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da8c5e3e41d0f585def7c3fe2662a14987e38537305e73d570061de4af90a09f07587befd829f52d1e665b5c5de3c252c67341dd00bd4dbd60b9e89c74b3b81c
|
7
|
+
data.tar.gz: 5725e767aa421a772fa8b69c5f50f50c204f78cacef211b3cace46c6a040f2c4d67dde6a02eb356122bc08f876f7a655fea7946418d119c4d9a19ad3de0e29f8
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Danger
|
2
|
+
# ### CI Setup
|
3
|
+
#
|
4
|
+
# Buddybuild has an integration for Danger already built-in.
|
5
|
+
# What you need to do is to upload your `Gemfile` and `Dangerfile` to
|
6
|
+
# the server and you should be all set-up. However, if you want to use
|
7
|
+
# different bot for Danger, you can do it with token setup described below.
|
8
|
+
#
|
9
|
+
# ### Token Setup
|
10
|
+
#
|
11
|
+
# Login to buddybuild and select your app. Go to your *App Settings* and
|
12
|
+
# in the *Build Settings* menu on the left, choose *Environment Variables*.
|
13
|
+
#
|
14
|
+
# #### GitHub
|
15
|
+
# Add the `DANGER_GITHUB_API_TOKEN` to your build user's ENV.
|
16
|
+
#
|
17
|
+
# #### GitLab
|
18
|
+
# Add the `DANGER_GITLAB_API_TOKEN` to your build user's ENV.
|
19
|
+
|
20
|
+
class Buddybuild < CI
|
21
|
+
def self.validates_as_ci?(_)
|
22
|
+
false
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.validates_as_pr?(_)
|
26
|
+
false
|
27
|
+
end
|
28
|
+
|
29
|
+
def initialize(_) end
|
30
|
+
|
31
|
+
def supported_request_sources
|
32
|
+
@supported_request_sources ||= []
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -19,7 +19,7 @@ module Danger
|
|
19
19
|
#
|
20
20
|
# @example Run a Dangerfile from inside a sub-folder
|
21
21
|
#
|
22
|
-
# danger.import_dangerfile(
|
22
|
+
# danger.import_dangerfile(path: "path/to/Dangerfile")
|
23
23
|
#
|
24
24
|
# @example Run a Dangerfile from inside a gem
|
25
25
|
#
|
@@ -353,7 +353,10 @@ module Danger
|
|
353
353
|
# we need to count how many lines in new file we have
|
354
354
|
# so we do it one by one ignoring the deleted lines
|
355
355
|
if !file_line.nil? && !line.start_with?("-")
|
356
|
-
|
356
|
+
if file_line == message.line
|
357
|
+
file_line = nil if dismiss_out_of_range_messages && !line.start_with("+")
|
358
|
+
break
|
359
|
+
end
|
357
360
|
file_line += 1
|
358
361
|
end
|
359
362
|
|
@@ -372,7 +375,7 @@ module Danger
|
|
372
375
|
|
373
376
|
# We are past the line position, just abort
|
374
377
|
break if message.line.to_i < range_start
|
375
|
-
next unless message.line.to_i >= range_start && message.line.to_i
|
378
|
+
next unless message.line.to_i >= range_start && message.line.to_i < range_end
|
376
379
|
|
377
380
|
file_line = range_start
|
378
381
|
end
|
data/lib/danger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: claide
|
@@ -362,6 +362,7 @@ files:
|
|
362
362
|
- lib/assets/DangerfileTemplate
|
363
363
|
- lib/danger.rb
|
364
364
|
- lib/danger/ci_source/bitrise.rb
|
365
|
+
- lib/danger/ci_source/buddybuild.rb
|
365
366
|
- lib/danger/ci_source/buildkite.rb
|
366
367
|
- lib/danger/ci_source/ci_source.rb
|
367
368
|
- lib/danger/ci_source/circle.rb
|
@@ -465,7 +466,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
465
466
|
version: '0'
|
466
467
|
requirements: []
|
467
468
|
rubyforge_project:
|
468
|
-
rubygems_version: 2.
|
469
|
+
rubygems_version: 2.2.2
|
469
470
|
signing_key:
|
470
471
|
specification_version: 4
|
471
472
|
summary: Like Unit Tests, but for your Team Culture.
|