diff --git a/Dangerfile b/Dangerfile new file mode 100644 index 0000000..2c55f10 --- /dev/null +++ b/Dangerfile @@ -0,0 +1,13 @@ +# Sometimes it's a README fix, or something like that - which isn't relevant for +# including in a project's CHANGELOG for example +declared_trivial = github.pr_title.include? "#trivial" + +# Make it more obvious that a PR is a work in progress and shouldn't be merged yet +warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]" + +# Warn when there is a big PR +warn("Big PR") if git.lines_of_code > 500 + +# Don't let testing shortcuts get into master by accident +#fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1 +#fail("fit left in tests") if `grep -r fit specs/ `.length > 1 diff --git a/Gemfile b/Gemfile index 1adc85c..74a3006 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,10 @@ # A sample Gemfile source 'https://rubygems.org' +gem 'danger' +gem 'pry' gem 'rake' -gem 'rubocop' gem 'rspec' -gem 'serverspec' -gem 'pry' +gem 'rubocop' gem 'ruby-progressbar' +gem 'serverspec' diff --git a/Gemfile.lock b/Gemfile.lock index 7d0adbe..e70ada3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,15 +1,47 @@ GEM remote: https://rubygems.org/ specs: + addressable (2.5.0) + public_suffix (~> 2.0, >= 2.0.2) ast (2.3.0) + claide (1.0.1) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) coderay (1.1.1) + colored (1.2) + cork (0.2.0) + colored (~> 1.2) + danger (4.0.3) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored (~> 1.2) + cork (~> 0.1) + faraday (~> 0.9) + faraday-http-cache (~> 1.0) + git (~> 1) + kramdown (~> 1.5) + octokit (~> 4.2) + terminal-table (~> 1) diff-lcs (1.2.5) + faraday (0.10.0) + multipart-post (>= 1.2, < 3) + faraday-http-cache (1.3.1) + faraday (~> 0.8) + git (1.3.0) + kramdown (1.13.1) method_source (0.8.2) multi_json (1.12.1) + multipart-post (2.0.0) + nap (1.1.0) net-scp (1.2.1) net-ssh (>= 2.6.5) net-ssh (3.2.0) net-telnet (0.1.1) + octokit (4.6.2) + sawyer (~> 0.8.0, >= 0.5.3) + open4 (1.3.4) parser (2.3.1.2) ast (~> 2.2) powerpack (0.1.1) @@ -17,6 +49,7 @@ GEM coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) + public_suffix (2.0.4) rainbow (2.1.0) rake (11.2.2) rspec (3.5.0) @@ -42,6 +75,9 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (~> 1.0, >= 1.0.1) ruby-progressbar (1.8.1) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) serverspec (2.36.0) multi_json rspec (~> 3.0) @@ -54,6 +90,8 @@ GEM net-ssh (>= 2.7, < 4.0) net-telnet sfl + terminal-table (1.7.0) + unicode-display_width (~> 1.1) unicode-display_width (1.1.0) PLATFORMS @@ -61,6 +99,7 @@ PLATFORMS x64-mingw32 DEPENDENCIES + danger pry rake rspec