danger 3.0.1 → 3.0.2

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
  SHA1:
3
- metadata.gz: 5470e3277b1e19724742deba78c6b0c708e76480
4
- data.tar.gz: ee0496188ab72f7def503844a089da1d5ce5bf1f
3
+ metadata.gz: c1cd1e958df7f1f9cd250b787aa5d85622dc454c
4
+ data.tar.gz: 4188fcbeaf0d8724b14ba675acf939eeddcccda9
5
5
  SHA512:
6
- metadata.gz: 2cff99b8f7678ce1d1ecbbc938dd89c631d659e4877a46523c6be586251546ede3ddcbb6137e82c0434aa46e7fb8dcf7cb093ed42bc7f6011e61b894bf1650c7
7
- data.tar.gz: 02ecf21a1b09865265cf809a2277f57c74ce66bed58f371334bab6dae783c1979db7828e03cc79896d068629ce79b118e77d7079cc6487863fc7d25523bb59c9
6
+ metadata.gz: c5a00b519f6f820f0c6e40b3f44e2198e2affb5f4e8eed01b02a8d68303bb6c0bf71f04c533be2ea59da9386629e42de228abfcea7612df25ba17abd42077ab8
7
+ data.tar.gz: 5fe87a8daeef371ee6a5f435a510223d862a60c603ec7e3fb8034f1a767cef87d6331f7154d16acb0ca0b32d32f1b95891bd5938d910b86e755511faed7e9ea3
@@ -5,7 +5,7 @@ module Danger
5
5
  # https://jenkins-ci.org
6
6
 
7
7
  # ### CI Setup
8
- # Ah Jenkins, so many memories. So, if you're using Jenkins, you're hosting your own environment. You
8
+ # Ah Jenkins, so many memories. So, if you're using Jenkins, you're hosting your own environment.
9
9
  #
10
10
  # #### GitHub
11
11
  # You will want to be using the [GitHub pull request builder plugin](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin)
@@ -13,16 +13,19 @@ module Danger
13
13
  #
14
14
  # With that set up, you can edit your job to add `bundle exec danger` at the build action.
15
15
  #
16
- # ### GitLab
17
- #
18
- # You will want to be using the [GitLabe Plugin](https://github.com/jenkinsci/gitlab-plugin)
19
- # in order to ensure that you have the build environment set up for PR integration.
16
+ # #### GitLab
17
+ # You will want to be using the [GitLab Plugin](https://github.com/jenkinsci/gitlab-plugin)
18
+ # in order to ensure that you have the build environment set up for MR integration.
20
19
  #
21
20
  # With that set up, you can edit your job to add `bundle exec danger` at the build action.
22
21
  #
23
22
  # ### Token Setup
24
23
  #
25
- # As you own the machine, it's up to you to add the enviroment variable for the `DANGER_GITHUB_API_TOKEN`.
24
+ # #### GitHub
25
+ # As you own the machine, it's up to you to add the environment variable for the `DANGER_GITHUB_API_TOKEN`.
26
+ #
27
+ # #### GitLab
28
+ # As you own the machine, it's up to you to add the environment variable for the `DANGER_GITLAB_API_TOKEN`.
26
29
  #
27
30
  class Jenkins < CI
28
31
  def self.validates_as_ci?(env)
@@ -107,21 +107,10 @@ module Danger
107
107
  dm.env.scm.diff_for_folder(".", from: Danger::EnvironmentManager.danger_base_branch, to: Danger::EnvironmentManager.danger_head_branch)
108
108
 
109
109
  dm.parse(Pathname.new(@dangerfile_path))
110
- check_and_run_org_dangerfile(dm)
111
-
112
110
  dm.print_results
113
111
  ensure
114
112
  dm.env.clean_up
115
113
  end
116
114
  end
117
-
118
- # Check to see if there's a Dangerfile in the organisation, and run it if so
119
- def check_and_run_org_dangerfile(dm)
120
- if dm.env.request_source.organisation && !dm.env.request_source.danger_repo? && (danger_repo = dm.env.request_source.fetch_danger_repo)
121
- url = dm.env.request_source.file_url(repository: danger_repo.name, path: "Dangerfile")
122
- path = dm.plugin.download(url)
123
- dm.parse(Pathname.new(path))
124
- end
125
- end
126
115
  end
127
116
  end
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "3.0.1".freeze
2
+ VERSION = "3.0.2".freeze
3
3
  DESCRIPTION = "Automate your PR etiquette.".freeze
4
4
  end
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: 3.0.1
4
+ version: 3.0.2
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: 2016-08-21 00:00:00.000000000 Z
12
+ date: 2016-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide
@@ -430,8 +430,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  version: '0'
431
431
  requirements: []
432
432
  rubyforge_project:
433
- rubygems_version: 2.2.2
433
+ rubygems_version: 2.4.8
434
434
  signing_key:
435
435
  specification_version: 4
436
436
  summary: Automate your PR etiquette.
437
437
  test_files: []
438
+ has_rdoc: