ministryofjustice-danger 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +69 -0
  4. metadata +77 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8df765a9d38c80e4cfabbc90cf6422fd255d42b3
4
+ data.tar.gz: 8af4a140e56b48372b4dc4856807ac7585618ed8
5
+ SHA512:
6
+ metadata.gz: ce47c23cce74c427bcb89bd971fc318e2c8445b354443c8aaa0595441da9c7f983dfd31af34dcb566ff6315537a5e477714ed92cb597ba0fd26b37045762b1bf
7
+ data.tar.gz: c914bcaeb26202b022336bf4682975ba00448a86e931b016fb35c558a8ed1662c736345ba7f1340945a38b8c6fdfdbab92bd2d02808d0ff898da95010a50a7e8
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Ministry of Justice
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # Danger
2
+
3
+ [Danger](http://danger.systems) runs during our CI process, and lets us
4
+ ensure our commits, pull requests, and more meet a minimum level
5
+ of quality.
6
+
7
+ ## Setup
8
+
9
+ Enable Danger for a project within the [ministryofjustice
10
+ organization](https://github.com/ministryofjustice).
11
+
12
+ ### Configure Danger to use this repo's Dangerfile
13
+
14
+ Commit a `Dangerfile` containing linking to this repo:
15
+
16
+ ```ruby
17
+ danger.import_dangerfile(github: 'ministryofjustice/danger')
18
+ ```
19
+
20
+ ### If you're running Ruby
21
+
22
+ Add `danger` to your `Gemfile`.
23
+
24
+ ```ruby
25
+ gem 'danger'
26
+ ```
27
+
28
+ #### Run Danger in Travis
29
+
30
+ Add Danger to `.travis.yml`:
31
+
32
+ ```yaml
33
+ before_script:
34
+ - bundle exec danger
35
+ ```
36
+
37
+ … or add it to your build matrix:
38
+
39
+ ```yaml
40
+ matrix:
41
+ include:
42
+ - rvm: 2.3.1
43
+ script:
44
+ - bundle exec danger
45
+ ```
46
+
47
+ And add the `DANGER_GITHUB_API_TOKEN` as an environment variable in
48
+ Travis's repo settings, which are at a URL like
49
+ `https://travis-ci.org/ministryofjustice/[repo]/settings`. The API token
50
+ itself is in Rattic (search for `Danger`).
51
+
52
+ #### Run Danger in CircleCI
53
+
54
+ Just add `bundle exec danger` to your `circle.yml`, either as an extra
55
+ step in your `test` overrides, or in a new `pre` section. You'll need
56
+ to add the `DANGER_GITHUB_API_TOKEN` to the environment variables like
57
+ with Travis, and [Danger
58
+ recommend](http://danger.systems/guides/getting_started.html#setting-up-danger-to-run-on-your-ci)
59
+ setting “only build pull requests” in the advanced settings.
60
+
61
+ ### If you're not running Ruby
62
+
63
+ If Danger is your only Ruby dependency, you probably don't want to have
64
+ a Gemfile cluttering up your repo. In that case, you can (probably) use
65
+ this command in the Travis config above:
66
+
67
+ ```bash
68
+ rbenv global 2.3.1 && gem install danger --version '~> 5.0' && danger
69
+ ```
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ministryofjustice-danger
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Ministry of Justice
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: danger
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: danger-commit_lint
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - tools+danger@digital.justice.gov.uk
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files:
47
+ - README.md
48
+ files:
49
+ - LICENSE
50
+ - README.md
51
+ homepage: https://github.com/ministryofjustice/danger
52
+ licenses:
53
+ - MIT
54
+ metadata: {}
55
+ post_install_message:
56
+ rdoc_options:
57
+ - "--main"
58
+ - README.md
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 2.3.0
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 2.5.1
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Add Danger and linter gems
77
+ test_files: []