mlabs-danger 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/.rspec +2 -0
- data/.rubocop.yml +22 -0
- data/.rubocop_todo.yml +0 -0
- data/CHANGELOG.md +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Dangerfile +48 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +116 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/Rakefile +9 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/mlabs/danger.rb +6 -0
- data/lib/mlabs/danger/version.rb +5 -0
- data/mlabs-danger.gemspec +40 -0
- data/spec/mlabs/danger_spec.rb +7 -0
- data/spec/spec_helper.rb +11 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e4fde434c3b275814a12ba439c97d6e1d8b11562
|
4
|
+
data.tar.gz: 9b3c41b01004ee2d620d59b3f758680bc402bbf8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 54aac477db3be787cc36dc999c83f1b738aff949482d77ece21cc8b687334b065be4fa595a9a0917f024d29909ec9d52ed1dcf91a49fcdc2ce235c82d0363bb8
|
7
|
+
data.tar.gz: 3f656d4cde79a85ed6611b7d7a51117a5d855d4d78fe88761b8f32ad76f5a39a3f4de74169a81c34865ebef96a2c5a158036b1e4632aa95b6ec97f470db184a2
|
data/.gitignore
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
*.bridgesupport
|
21
|
+
build-iPhoneOS/
|
22
|
+
build-iPhoneSimulator/
|
23
|
+
|
24
|
+
## Specific to RubyMotion (use of CocoaPods):
|
25
|
+
#
|
26
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
27
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
28
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
29
|
+
#
|
30
|
+
# vendor/Pods/
|
31
|
+
|
32
|
+
## Documentation cache and generated files:
|
33
|
+
/.yardoc/
|
34
|
+
/_yardoc/
|
35
|
+
/doc/
|
36
|
+
/rdoc/
|
37
|
+
|
38
|
+
## Environment normalization:
|
39
|
+
/.bundle/
|
40
|
+
/vendor/bundle
|
41
|
+
/lib/bundler/man/
|
42
|
+
|
43
|
+
# for a library or gem, you might want to ignore these files since the code is
|
44
|
+
# intended to run in multiple environments; otherwise, check them in:
|
45
|
+
# Gemfile.lock
|
46
|
+
# .ruby-version
|
47
|
+
# .ruby-gemset
|
48
|
+
|
49
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
50
|
+
.rvmrc
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'tmp/**/*'
|
6
|
+
- 'Guardfile'
|
7
|
+
|
8
|
+
Documentation:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Exclude:
|
13
|
+
- 'mlabs-danger.gemspec'
|
14
|
+
|
15
|
+
Metrics/LineLength:
|
16
|
+
Max: 120
|
17
|
+
|
18
|
+
Style/AccessorMethodName:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Style/FrozenStringLiteralComment:
|
22
|
+
Enabled: false
|
data/.rubocop_todo.yml
ADDED
File without changes
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
### Changelog
|
2
|
+
|
3
|
+
#### 0.1.0 (18/06/2017)
|
4
|
+
|
5
|
+
* [#1](https://github.com/magrathealabs/mlabs-danger/issues/3): Add CHANGELOG.md - [@alfakini](https://github.com/alfakini)
|
6
|
+
* [#2](https://github.com/magrathealabs/mlabs-danger/issues/1): Create the mlabs-danger gem - [@alfakini](https://github.com/alfakini)
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at alfakini@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Dangerfile
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# GIT & GITHUB
|
2
|
+
|
3
|
+
## MAKE IT MORE OBVIOUS THAT A PR IS A WORK IN PROGRESS AND SHOULDN'T BE MERGED YET
|
4
|
+
warn('PR is classed as Work in Progress') if github.pr_title.include?('[WIP]')
|
5
|
+
|
6
|
+
## WARN WHEN THERE IS A BIG PR
|
7
|
+
warn('Big PR') if git.lines_of_code > 500
|
8
|
+
|
9
|
+
# DATABASE
|
10
|
+
|
11
|
+
added_migration = git.added_files.include?('db/migrate/*.rb')
|
12
|
+
has_schema_changes = git.modified_files.include?('db/schema.rb')
|
13
|
+
|
14
|
+
## ADDED MIGRATIONS AND DIDN'T UPDATE schema.rb
|
15
|
+
if added_migration && !has_schema_changes
|
16
|
+
warn("Don't blame you, you're a human. Please run db:migrate and commit changes of schema.rb file!")
|
17
|
+
end
|
18
|
+
|
19
|
+
# TESTS
|
20
|
+
|
21
|
+
has_app_changes = !git.modified_files.grep(/(lib|app)/).empty?
|
22
|
+
has_test_changes = !git.modified_files.grep(/(spec|test)/).empty?
|
23
|
+
|
24
|
+
## CHANGED THE CODE, BUT DIDN'T ADDED OR UPDATED A TEST CASE?
|
25
|
+
if has_app_changes && !has_test_changes
|
26
|
+
message = <<-MESSAGE
|
27
|
+
I think you ought to know I'm feeling very depressed with the fact that you didn't add any test case.
|
28
|
+
That's OK as long as you're refactoring existing code.
|
29
|
+
MESSAGE
|
30
|
+
|
31
|
+
warn(message.strip, sticky: false)
|
32
|
+
end
|
33
|
+
|
34
|
+
# CHECKLIST
|
35
|
+
message = <<-MESSAGE
|
36
|
+
### Hello, hitchhiker. Not that anyone cares about what I say, but please, ensure you did check these things:
|
37
|
+
|
38
|
+
- [ ] Run all tests locally
|
39
|
+
- [ ] If you introduced front-end changes, are there desktop and mobile screenshots attached?
|
40
|
+
- [ ] Review the added i18n texts and ensure you added i18n keys for all needed cases
|
41
|
+
- [ ] Do manual tests in the pages affected by the changes you're introducing in this PR
|
42
|
+
- [ ] Fix all FIXME and remove all TODO comments
|
43
|
+
- [ ] [Rails Security Checklist](https://github.com/brunofacca/zen-rails-security-checklist)
|
44
|
+
- [ ] [Rails Style Guide](https://github.com/bbatsov/rails-style-guide)
|
45
|
+
- [ ] [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide)
|
46
|
+
MESSAGE
|
47
|
+
|
48
|
+
markdown(message)
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mlabs-danger (0.1.0)
|
5
|
+
danger (~> 5.3.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.5.1)
|
11
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
12
|
+
claide (1.0.2)
|
13
|
+
claide-plugins (0.9.2)
|
14
|
+
cork
|
15
|
+
nap
|
16
|
+
open4 (~> 1.3)
|
17
|
+
coderay (1.1.1)
|
18
|
+
colored2 (3.1.2)
|
19
|
+
cork (0.3.0)
|
20
|
+
colored2 (~> 3.1)
|
21
|
+
danger (5.3.0)
|
22
|
+
claide (~> 1.0)
|
23
|
+
claide-plugins (>= 0.9.2)
|
24
|
+
colored2 (~> 3.1)
|
25
|
+
cork (~> 0.1)
|
26
|
+
faraday (~> 0.9)
|
27
|
+
faraday-http-cache (~> 1.0)
|
28
|
+
git (~> 1)
|
29
|
+
kramdown (~> 1.5)
|
30
|
+
octokit (~> 4.2)
|
31
|
+
terminal-table (~> 1)
|
32
|
+
diff-lcs (1.3)
|
33
|
+
faraday (0.12.1)
|
34
|
+
multipart-post (>= 1.2, < 3)
|
35
|
+
faraday-http-cache (1.3.1)
|
36
|
+
faraday (~> 0.8)
|
37
|
+
ffi (1.9.18)
|
38
|
+
formatador (0.2.5)
|
39
|
+
git (1.3.0)
|
40
|
+
guard (2.14.1)
|
41
|
+
formatador (>= 0.2.4)
|
42
|
+
listen (>= 2.7, < 4.0)
|
43
|
+
lumberjack (~> 1.0)
|
44
|
+
nenv (~> 0.1)
|
45
|
+
notiffany (~> 0.0)
|
46
|
+
pry (>= 0.9.12)
|
47
|
+
shellany (~> 0.0)
|
48
|
+
thor (>= 0.18.1)
|
49
|
+
guard-compat (1.2.1)
|
50
|
+
guard-rspec (4.7.3)
|
51
|
+
guard (~> 2.1)
|
52
|
+
guard-compat (~> 1.1)
|
53
|
+
rspec (>= 2.99.0, < 4.0)
|
54
|
+
kramdown (1.13.2)
|
55
|
+
listen (3.1.5)
|
56
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
57
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
58
|
+
ruby_dep (~> 1.2)
|
59
|
+
lumberjack (1.0.12)
|
60
|
+
method_source (0.8.2)
|
61
|
+
multipart-post (2.0.0)
|
62
|
+
nap (1.1.0)
|
63
|
+
nenv (0.3.0)
|
64
|
+
notiffany (0.1.1)
|
65
|
+
nenv (~> 0.1)
|
66
|
+
shellany (~> 0.0)
|
67
|
+
octokit (4.7.0)
|
68
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
69
|
+
open4 (1.3.4)
|
70
|
+
pry (0.10.4)
|
71
|
+
coderay (~> 1.1.0)
|
72
|
+
method_source (~> 0.8.1)
|
73
|
+
slop (~> 3.4)
|
74
|
+
public_suffix (2.0.5)
|
75
|
+
rake (12.0.0)
|
76
|
+
rb-fsevent (0.9.8)
|
77
|
+
rb-inotify (0.9.10)
|
78
|
+
ffi (>= 0.5.0, < 2)
|
79
|
+
rspec (3.6.0)
|
80
|
+
rspec-core (~> 3.6.0)
|
81
|
+
rspec-expectations (~> 3.6.0)
|
82
|
+
rspec-mocks (~> 3.6.0)
|
83
|
+
rspec-core (3.6.0)
|
84
|
+
rspec-support (~> 3.6.0)
|
85
|
+
rspec-expectations (3.6.0)
|
86
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
+
rspec-support (~> 3.6.0)
|
88
|
+
rspec-mocks (3.6.0)
|
89
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
90
|
+
rspec-support (~> 3.6.0)
|
91
|
+
rspec-support (3.6.0)
|
92
|
+
ruby_dep (1.5.0)
|
93
|
+
sawyer (0.8.1)
|
94
|
+
addressable (>= 2.3.5, < 2.6)
|
95
|
+
faraday (~> 0.8, < 1.0)
|
96
|
+
shellany (0.0.1)
|
97
|
+
slop (3.6.0)
|
98
|
+
terminal-table (1.8.0)
|
99
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
100
|
+
thor (0.19.4)
|
101
|
+
unicode-display_width (1.2.1)
|
102
|
+
|
103
|
+
PLATFORMS
|
104
|
+
ruby
|
105
|
+
|
106
|
+
DEPENDENCIES
|
107
|
+
bundler (~> 1.15.1)
|
108
|
+
guard (~> 2.14.1)
|
109
|
+
guard-rspec (~> 4.7.3)
|
110
|
+
mlabs-danger!
|
111
|
+
pry (~> 0.10.4)
|
112
|
+
rake (~> 12.0.0)
|
113
|
+
rspec (~> 3.6.0)
|
114
|
+
|
115
|
+
BUNDLED WITH
|
116
|
+
1.15.1
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 Magrathea Labs
|
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,43 @@
|
|
1
|
+
# MLabs Code Quality report
|
2
|
+
|
3
|
+
[Danger](http://danger.systems) runs on CI and reports common code review chores, code quality and test coverage.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Set `DANGER_GITHUB_API_TOKEN` in Circle CI.
|
8
|
+
|
9
|
+
Add `mlabs-danger` to your application's `Gemfile`. And then execute `bundle install`:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'mlabs-danger', '~> 0.1.0'
|
13
|
+
```
|
14
|
+
|
15
|
+
Add the `Dangerfile` to your project:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
danger.import_dangerfile(gem: 'mlabs-danger')
|
19
|
+
```
|
20
|
+
|
21
|
+
Execute Danger on Circle CI, by adding the command to `circle.yml`:
|
22
|
+
|
23
|
+
```yaml
|
24
|
+
test:
|
25
|
+
override:
|
26
|
+
- bundle exec danger
|
27
|
+
```
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
32
|
+
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/magrathealabs/mlabs-danger/issues). This project is
|
38
|
+
intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
|
39
|
+
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
40
|
+
|
41
|
+
# License
|
42
|
+
|
43
|
+
MIT License. See [LICENSE](LICENSE) for details.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'mlabs/danger'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/mlabs/danger.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'mlabs/danger/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'mlabs-danger'
|
9
|
+
spec.version = Mlabs::Danger::VERSION
|
10
|
+
spec.authors = ['Magrathea Labs']
|
11
|
+
spec.email = ['contact@magrathealabs.com']
|
12
|
+
|
13
|
+
spec.summary = 'MLabs automated code review config'
|
14
|
+
spec.description = 'Danger runs on CI and reports common code review ' \
|
15
|
+
'chores, code quality and test coverage.'
|
16
|
+
spec.homepage = 'https://github.com/magrathealabs/mlabs-danger'
|
17
|
+
spec.license = 'MIT'
|
18
|
+
|
19
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' to
|
20
|
+
# allow pushing to a single host or delete this section to allow pushing to any host.
|
21
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
|
22
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
23
|
+
|
24
|
+
spec.files = `git ls-files`.split("\n")
|
25
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
26
|
+
spec.bindir = 'bin'
|
27
|
+
spec.executables = []
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
|
30
|
+
spec.required_ruby_version = '>= 2.2.2'
|
31
|
+
|
32
|
+
spec.add_runtime_dependency 'danger', '~> 5.3.0'
|
33
|
+
|
34
|
+
spec.add_development_dependency 'bundler', '~> 1.15.1'
|
35
|
+
spec.add_development_dependency 'guard', '~> 2.14.1'
|
36
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
37
|
+
spec.add_development_dependency 'pry', '~> 0.10.4'
|
38
|
+
spec.add_development_dependency 'rake', '~> 12.0.0'
|
39
|
+
spec.add_development_dependency 'rspec', '~> 3.6.0'
|
40
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'mlabs/danger'
|
3
|
+
|
4
|
+
RSpec.configure do |config|
|
5
|
+
# Enable flags like --only-failures and --next-failure
|
6
|
+
config.example_status_persistence_file_path = '.rspec_status'
|
7
|
+
|
8
|
+
config.expect_with :rspec do |c|
|
9
|
+
c.syntax = :expect
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mlabs-danger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Magrathea Labs
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-18 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: 5.3.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.3.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.15.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.15.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: guard
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.14.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.14.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.7.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.7.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.10.4
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.10.4
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 12.0.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 12.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 3.6.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 3.6.0
|
111
|
+
description: Danger runs on CI and reports common code review chores, code quality
|
112
|
+
and test coverage.
|
113
|
+
email:
|
114
|
+
- contact@magrathealabs.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".rubocop.yml"
|
122
|
+
- ".rubocop_todo.yml"
|
123
|
+
- CHANGELOG.md
|
124
|
+
- CODE_OF_CONDUCT.md
|
125
|
+
- Dangerfile
|
126
|
+
- Gemfile
|
127
|
+
- Gemfile.lock
|
128
|
+
- LICENSE
|
129
|
+
- README.md
|
130
|
+
- Rakefile
|
131
|
+
- bin/console
|
132
|
+
- bin/setup
|
133
|
+
- lib/mlabs/danger.rb
|
134
|
+
- lib/mlabs/danger/version.rb
|
135
|
+
- mlabs-danger.gemspec
|
136
|
+
- spec/mlabs/danger_spec.rb
|
137
|
+
- spec/spec_helper.rb
|
138
|
+
homepage: https://github.com/magrathealabs/mlabs-danger
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata:
|
142
|
+
allowed_push_host: https://rubygems.org
|
143
|
+
post_install_message:
|
144
|
+
rdoc_options: []
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 2.2.2
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
requirements: []
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 2.6.11
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: MLabs automated code review config
|
163
|
+
test_files:
|
164
|
+
- spec/mlabs/danger_spec.rb
|
165
|
+
- spec/spec_helper.rb
|