danger-rails_best_practices 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -3
- data/.travis.yml +3 -3
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/rails_best_practices/gem_version.rb +1 -1
- data/lib/rails_best_practices/plugin.rb +1 -1
- data/spec/fixtures/added_file.rb +0 -0
- data/spec/fixtures/modified_file.rb +0 -0
- data/spec/rails_best_practices_spec.rb +20 -2
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f68087b7d06bdaeb36834310b7b9c97b0be378fd
|
4
|
+
data.tar.gz: 95cc88e911fb17fa7332f68e35e8d886e52ad0e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d445ac4d66b00c0f8d85ad28f21e38da6e5cd166558b97703c7d5ffaff0ab111beb0c01c292e3dc5b2d72e8152b815a77a0c244f6f85ba1dab1cdab32a645885
|
7
|
+
data.tar.gz: fd5eb99645323af48a752670ae895e280f9a2ecb872215daa43dc426f1ce6bda06115f68b2ff8ec1e58c4afe43d4bdb0a580f8d9d6595233e301e5ca0fcc6b66
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.1.1](https://github.com/blooper05/danger-rails_best_practices/tree/v0.1.1) (2017-10-21)
|
4
|
+
[Full Changelog](https://github.com/blooper05/danger-rails_best_practices/compare/v0.1.0...v0.1.1)
|
5
|
+
|
6
|
+
**Fixed bugs:**
|
7
|
+
|
8
|
+
- CI is failing due to Rubocop settings [\#3](https://github.com/blooper05/danger-rails_best_practices/issues/3)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- :bug: Fix Neverfail test [\#5](https://github.com/blooper05/danger-rails_best_practices/pull/5) ([blooper05](https://github.com/blooper05))
|
13
|
+
- :bug: Fix TargetRubyVersion setting of .rubocop.yml [\#4](https://github.com/blooper05/danger-rails_best_practices/pull/4) ([blooper05](https://github.com/blooper05))
|
14
|
+
- Escape filename regexp [\#1](https://github.com/blooper05/danger-rails_best_practices/pull/1) ([edvakf](https://github.com/edvakf))
|
15
|
+
|
16
|
+
## [v0.1.0](https://github.com/blooper05/danger-rails_best_practices/tree/v0.1.0) (2017-10-05)
|
17
|
+
|
18
|
+
|
19
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
[![Gem Version](https://img.shields.io/gem/v/danger-rails_best_practices.svg)](https://rubygems.org/gems/danger-rails_best_practices)
|
8
8
|
[![License](https://img.shields.io/github/license/blooper05/danger-rails_best_practices.svg)](https://github.com/blooper05/danger-rails_best_practices/blob/master/LICENSE)
|
9
9
|
|
10
|
-
A [
|
10
|
+
A [Danger](https://rubygems.org/gems/danger) plugin for [rails_best_practices](https://rubygems.org/gems/rails_best_practices).
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
File without changes
|
File without changes
|
@@ -26,8 +26,8 @@ module Danger
|
|
26
26
|
let(:violation_reports) { dangerfile.violation_report[:warnings] }
|
27
27
|
|
28
28
|
context 'with changed files' do
|
29
|
-
let(:modified_files) {
|
30
|
-
let(:added_files) {
|
29
|
+
let(:modified_files) { %w(spec/fixtures/modified_file.rb) }
|
30
|
+
let(:added_files) { %w(spec/fixtures/added_file.rb) }
|
31
31
|
|
32
32
|
context 'with lint errors' do
|
33
33
|
let(:stubbings) { changed_files && lint_errors }
|
@@ -73,6 +73,24 @@ module Danger
|
|
73
73
|
expect(violation_reports).to be_empty
|
74
74
|
end
|
75
75
|
end
|
76
|
+
|
77
|
+
describe 'arguments passed to RailsBestPractices::Analyzer.new' do
|
78
|
+
let(:stubbings) { changed_files && analyzer }
|
79
|
+
|
80
|
+
let(:modified_files) { %w(spec/fixtures/modified_file.rb) }
|
81
|
+
let(:added_files) { %w(\*?{}.) }
|
82
|
+
|
83
|
+
let(:analyzer) do
|
84
|
+
expect(::RailsBestPractices::Analyzer).to receive(:new)
|
85
|
+
.with('.', 'silent' => true,
|
86
|
+
'only' => [%r{spec/fixtures/modified_file\.rb},
|
87
|
+
/\\\*\?\{\}\./])
|
88
|
+
.and_call_original
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'escapes filenames correctly' do
|
92
|
+
end
|
93
|
+
end
|
76
94
|
end
|
77
95
|
end
|
78
96
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-rails_best_practices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- blooper05
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -188,6 +188,7 @@ files:
|
|
188
188
|
- ".gitignore"
|
189
189
|
- ".rubocop.yml"
|
190
190
|
- ".travis.yml"
|
191
|
+
- CHANGELOG.md
|
191
192
|
- Gemfile
|
192
193
|
- Guardfile
|
193
194
|
- LICENSE
|
@@ -198,6 +199,8 @@ files:
|
|
198
199
|
- lib/danger_rails_best_practices.rb
|
199
200
|
- lib/rails_best_practices/gem_version.rb
|
200
201
|
- lib/rails_best_practices/plugin.rb
|
202
|
+
- spec/fixtures/added_file.rb
|
203
|
+
- spec/fixtures/modified_file.rb
|
201
204
|
- spec/rails_best_practices_spec.rb
|
202
205
|
- spec/spec_helper.rb
|
203
206
|
homepage: https://github.com/blooper05/danger-rails_best_practices
|
@@ -225,5 +228,7 @@ signing_key:
|
|
225
228
|
specification_version: 4
|
226
229
|
summary: A Danger plugin to lint Ruby files through rails_best_practices.
|
227
230
|
test_files:
|
231
|
+
- spec/fixtures/added_file.rb
|
232
|
+
- spec/fixtures/modified_file.rb
|
228
233
|
- spec/rails_best_practices_spec.rb
|
229
234
|
- spec/spec_helper.rb
|