pronto-foodcritic 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/CONTRIBUTING.md +32 -0
- data/lib/pronto/foodcritic/version.rb +1 -1
- data/lib/pronto/foodcritic.rb +4 -4
- data/pronto-foodcritic.gemspec +40 -0
- metadata +21 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d96be9ad97c037ccdeed723dc4f1be5b79369c9
|
4
|
+
data.tar.gz: da2b20f3450a920fc72cb675650dbdb61212b115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2e6ab148e16f4d6047ce3338c758011ca2ef54c9be83bf9e8eb7d7bdfdb06ddc0d61b4231b55a49376da59eac66ceb045ad4f087d616be2335a05632a4c673
|
7
|
+
data.tar.gz: a3fdd1d1fdabeb72118434feb2ef6a76cbee4608d8e2ac65250febee9a9d03097b1484bf9f2e1ba6ae7004773a39d64516b0c3023e68d570b545aa3ad3f616ff
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 0.2.2
|
4
|
+
|
5
|
+
### Bugs fixed
|
6
|
+
|
7
|
+
* Don't crash when none of the changes are to cookbooks and roles.
|
8
|
+
|
9
|
+
## 0.2.1
|
10
|
+
|
11
|
+
### Changes
|
12
|
+
|
13
|
+
* [b1cf62](https://github.com/mmozuras/pronto-foodcritic/commit/b1cf62): Bump foodcritic version to '4.0.0'.
|
14
|
+
* [7aeb64](https://github.com/mmozuras/pronto-foodcritic/commit/7aeb64): Improve performance by reducing the number of linter runs.
|
15
|
+
|
16
|
+
### Bugs fixed
|
17
|
+
|
18
|
+
* [c88509](https://github.com/mmozuras/pronto-foodcritic/commit/c88509): Don't output warnings for paths that aren't part of the diff.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
If you discover issues, have ideas for improvements or new features,
|
4
|
+
please report them to the [issue tracker][1] of the repository or
|
5
|
+
submit a pull request. Please, try to follow these guidelines when you
|
6
|
+
do so.
|
7
|
+
|
8
|
+
## Issue reporting
|
9
|
+
|
10
|
+
* Check that the issue has not already been reported.
|
11
|
+
* Check that the issue has not already been fixed in the latest code
|
12
|
+
(a.k.a. `master`).
|
13
|
+
* Be clear, concise and precise in your description of the problem.
|
14
|
+
* Open an issue with a descriptive title and a summary in grammatically correct,
|
15
|
+
complete sentences.
|
16
|
+
* Include any relevant code or traces in the issue summary.
|
17
|
+
|
18
|
+
## Pull requests
|
19
|
+
|
20
|
+
* Read [how to properly contribute to open source projects on Github][2].
|
21
|
+
* Fork the project.
|
22
|
+
* Use a topic/feature branch to easily amend a pull request later, if necessary.
|
23
|
+
* Write [good commit messages][3].
|
24
|
+
* Use the same coding conventions as the rest of the project.
|
25
|
+
* Commit and push until you are happy with your contribution.
|
26
|
+
* Open a [pull request][4] that relates to *only* one subject with a clear title
|
27
|
+
and description in grammatically correct, complete sentences.
|
28
|
+
|
29
|
+
[1]: https://github.com/mmozuras/pronto-foodcritic/issues
|
30
|
+
[2]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request
|
31
|
+
[3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
32
|
+
[4]: https://help.github.com/articles/using-pull-requests
|
data/lib/pronto/foodcritic.rb
CHANGED
@@ -11,7 +11,7 @@ module Pronto
|
|
11
11
|
return [] unless patches
|
12
12
|
|
13
13
|
ruby_patches = patches.select { |patch| patch.additions > 0 }
|
14
|
-
|
14
|
+
.select { |patch| ruby_file?(patch.new_file_full_path) }
|
15
15
|
|
16
16
|
inspect(ruby_patches)
|
17
17
|
end
|
@@ -22,9 +22,9 @@ module Pronto
|
|
22
22
|
|
23
23
|
@linter.check(paths).warnings.flat_map do |warning|
|
24
24
|
patches.select { |patch| patch.new_file_full_path.to_s == warning.match[:filename] }
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
.flat_map(&:added_lines)
|
26
|
+
.select { |line| line.new_lineno == warning.match[:line] }
|
27
|
+
.flat_map { |line| new_message(warning, line) }
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
4
|
+
require 'English'
|
5
|
+
require 'pronto/foodcritic/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = 'pronto-foodcritic'
|
9
|
+
s.version = Pronto::FoodCriticVersion::VERSION
|
10
|
+
s.platform = Gem::Platform::RUBY
|
11
|
+
s.author = 'Mindaugas Mozūras'
|
12
|
+
s.email = 'mindaugas.mozuras@gmail.com'
|
13
|
+
s.homepage = 'http://github.org/mmozuras/pronto-foodcritic'
|
14
|
+
s.summary = 'Pronto runner for Food Critic, lint tool for chef'
|
15
|
+
|
16
|
+
s.licenses = ['MIT']
|
17
|
+
s.required_ruby_version = '>= 1.9.3'
|
18
|
+
s.rubygems_version = '1.8.23'
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split($RS).reject do |file|
|
21
|
+
file =~ %r{^(?:
|
22
|
+
spec/.*
|
23
|
+
|Gemfile
|
24
|
+
|Rakefile
|
25
|
+
|\.rspec
|
26
|
+
|\.gitignore
|
27
|
+
|\.rubocop.yml
|
28
|
+
|\.travis.yml
|
29
|
+
)$}x
|
30
|
+
end
|
31
|
+
s.test_files = []
|
32
|
+
s.extra_rdoc_files = ['LICENSE', 'README.md']
|
33
|
+
s.require_paths = ['lib']
|
34
|
+
|
35
|
+
s.add_dependency('foodcritic', '~> 5.0.0')
|
36
|
+
s.add_dependency('pronto', '~> 0.5.0')
|
37
|
+
s.add_development_dependency('rake', '~> 10.4')
|
38
|
+
s.add_development_dependency('rspec', '~> 3.3')
|
39
|
+
s.add_development_dependency('rspec-its', '~> 1.2')
|
40
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-foodcritic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foodcritic
|
@@ -16,80 +16,85 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 5.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pronto
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '10.
|
47
|
+
version: '10.4'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '10.
|
54
|
+
version: '10.4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-its
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.2'
|
83
83
|
description:
|
84
84
|
email: mindaugas.mozuras@gmail.com
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
87
|
-
extra_rdoc_files:
|
87
|
+
extra_rdoc_files:
|
88
|
+
- LICENSE
|
89
|
+
- README.md
|
88
90
|
files:
|
91
|
+
- CHANGELOG.md
|
92
|
+
- CONTRIBUTING.md
|
89
93
|
- LICENSE
|
90
94
|
- README.md
|
91
95
|
- lib/pronto/foodcritic.rb
|
92
96
|
- lib/pronto/foodcritic/version.rb
|
97
|
+
- pronto-foodcritic.gemspec
|
93
98
|
homepage: http://github.org/mmozuras/pronto-foodcritic
|
94
99
|
licenses:
|
95
100
|
- MIT
|
@@ -102,17 +107,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
107
|
requirements:
|
103
108
|
- - ">="
|
104
109
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
110
|
+
version: 1.9.3
|
106
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
112
|
requirements:
|
108
113
|
- - ">="
|
109
114
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
115
|
+
version: '0'
|
111
116
|
requirements: []
|
112
117
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.4.5
|
114
119
|
signing_key:
|
115
120
|
specification_version: 4
|
116
121
|
summary: Pronto runner for Food Critic, lint tool for chef
|
117
122
|
test_files: []
|
118
|
-
has_rdoc:
|