polishgeeks-dev-tools 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +3 -2
- data/CHANGELOG.md +69 -0
- data/Gemfile.lock +76 -81
- data/README.md +28 -22
- data/Rakefile +4 -3
- data/config/rubocop.yml +16 -16
- data/config/rubocop_todo.yml +14 -0
- data/lib/polish_geeks/dev_tools.rb +26 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/allowed_extensions.rb +4 -4
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/base.rb +18 -3
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/brakeman.rb +5 -2
- data/lib/polish_geeks/dev_tools/commands/bundler_audit.rb +23 -0
- data/lib/{polishgeeks/dev-tools/commands/empty_method.rb → polish_geeks/dev_tools/commands/empty_methods.rb} +3 -13
- data/lib/{polishgeeks/dev-tools/commands/empty_method → polish_geeks/dev_tools/commands/empty_methods}/file_parser.rb +1 -1
- data/lib/{polishgeeks/dev-tools/commands/empty_method → polish_geeks/dev_tools/commands/empty_methods}/string_refinements.rb +2 -2
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/examples_comparator.rb +13 -7
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/expires_in.rb +6 -6
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/final_blank_line.rb +1 -11
- data/lib/polish_geeks/dev_tools/commands/gemfile.rb +39 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/haml_lint.rb +0 -0
- data/lib/polish_geeks/dev_tools/commands/required_files.rb +38 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rspec.rb +24 -5
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rspec_files_names.rb +1 -1
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rspec_files_structure.rb +22 -9
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rubocop.rb +10 -8
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rubycritic.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/simplecov.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/tasks_files_names.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/yard.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/yml_parser.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/config.rb +24 -16
- data/lib/polish_geeks/dev_tools/config_manager.rb +68 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/errors.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/hash.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/logger.rb +3 -3
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/output_storer.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/runner.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/shell.rb +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/tasks/dev-tools.rake +0 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/base.rb +2 -2
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/rails.rb +0 -0
- data/lib/polish_geeks/dev_tools/validators/rubocop.rb +12 -0
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/simplecov.rb +1 -1
- data/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/version.rb +1 -1
- data/lib/polishgeeks-dev-tools.rb +6 -31
- data/polishgeeks_dev_tools.gemspec +6 -5
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/allowed_extensions_spec.rb +5 -17
- data/spec/lib/polish_geeks/dev_tools/commands/base_spec.rb +90 -0
- data/spec/lib/polish_geeks/dev_tools/commands/brakeman_spec.rb +99 -0
- data/spec/lib/polish_geeks/dev_tools/commands/bundler_audit_spec.rb +52 -0
- data/spec/lib/{polishgeeks/dev-tools/commands/empty_method → polish_geeks/dev_tools/commands/empty_methods}/file_parser_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools/commands/empty_method → polish_geeks/dev_tools/commands/empty_methods}/string_refinements_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools/commands/empty_method_spec.rb → polish_geeks/dev_tools/commands/empty_methods_spec.rb} +7 -54
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/examples_comparator_spec.rb +8 -8
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/expires_in_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/final_blank_line_spec.rb +2 -45
- data/spec/lib/polish_geeks/dev_tools/commands/gemfile_spec.rb +91 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/haml_lint_spec.rb +13 -21
- data/spec/lib/polish_geeks/dev_tools/commands/required_files_spec.rb +51 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rspec_files_names_spec.rb +2 -2
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rspec_files_structure_spec.rb +19 -32
- data/spec/lib/polish_geeks/dev_tools/commands/rspec_spec.rb +106 -0
- data/spec/lib/polish_geeks/dev_tools/commands/rubocop_spec.rb +131 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/rubycritic_spec.rb +5 -3
- data/spec/lib/polish_geeks/dev_tools/commands/simplecov_spec.rb +136 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/tasks_files_names_spec.rb +8 -8
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/yard_spec.rb +10 -10
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/commands/yml_parser_spec.rb +2 -2
- data/spec/lib/polish_geeks/dev_tools/config_manager_spec.rb +124 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/config_spec.rb +3 -3
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/errors_spec.rb +0 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/hash_spec.rb +8 -8
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/logger_spec.rb +9 -9
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/output_storer_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/runner_spec.rb +0 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/shell_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/base_spec.rb +0 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/rails_spec.rb +0 -0
- data/spec/lib/polish_geeks/dev_tools/validators/rubocop_spec.rb +29 -0
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/validators/simplecov_spec.rb +1 -1
- data/spec/lib/{polishgeeks/dev-tools → polish_geeks/dev_tools}/version_spec.rb +0 -0
- data/spec/lib/{polishgeeks-dev-tools_spec.rb → polish_geeks/dev_tools_spec.rb} +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +141 -99
- data/lib/polishgeeks/dev-tools/commands/readme.rb +0 -32
- data/spec/lib/polishgeeks/dev-tools/commands/base_spec.rb +0 -55
- data/spec/lib/polishgeeks/dev-tools/commands/brakeman_spec.rb +0 -96
- data/spec/lib/polishgeeks/dev-tools/commands/readme_spec.rb +0 -38
- data/spec/lib/polishgeeks/dev-tools/commands/rspec_spec.rb +0 -63
- data/spec/lib/polishgeeks/dev-tools/commands/rubocop_spec.rb +0 -127
- data/spec/lib/polishgeeks/dev-tools/commands/simplecov_spec.rb +0 -134
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d179da954eaf4443ccc003a8eb4660beb6b2f31b
|
4
|
+
data.tar.gz: 8d8325cf8b7fdb7dcd7aced470f68929ac8a3f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2af6ccd3d2d0dfeb6104715af00db161c33340c5c2d3c15d11c976fcd821dad6a6e10438ea76ef2d2590450c993180d67998e0da07c9c83a207f2743ebd0d582
|
7
|
+
data.tar.gz: 0f130a534b39e4850da865a87e1a72469b5a04372d2b35603ad62d06bf7493cedff523a055d064dd70d080cdd9eb9aa465e378b636fa0000f0046097161452e3
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.3.0
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,78 @@
|
|
1
1
|
# PolishGeeks Dev Tools Changelog
|
2
2
|
|
3
|
+
## master (unreleased)
|
4
|
+
|
5
|
+
## 1.3.0 (03/04/2016)
|
6
|
+
|
7
|
+
- Move to ruby 2.3.0 by default
|
8
|
+
- Bump bundler-audit dependency to 0.5.0
|
9
|
+
- Bump brakeman dependency to 3.2.1
|
10
|
+
- Bump simplecov dependency to 0.11.2
|
11
|
+
- Bump rspec dependency to 3.4.4
|
12
|
+
- Reorganize how we run rubocop-rspec
|
13
|
+
- #44: Bump rubocop dependency to 0.39.0
|
14
|
+
- #17: Bump rubycritic dependency to 2.8.0
|
15
|
+
- #30: Allow to pass config file to brakeman
|
16
|
+
- #18: Add bundler-audit which checks for vulnerable versions of gems
|
17
|
+
- #21: Replace readme validator with required files validators, which allows us to
|
18
|
+
define what files you want to require in your project
|
19
|
+
- #35: Added gemfile validator which checks if Gemfile contains gems from local path
|
20
|
+
|
21
|
+
If you had readme validator turned off like this
|
22
|
+
```ruby
|
23
|
+
PolishGeeks::DevTools.setup do |config|
|
24
|
+
config.readme = false
|
25
|
+
end
|
26
|
+
```
|
27
|
+
Now you need to change that to
|
28
|
+
```ruby
|
29
|
+
PolishGeeks::DevTools.setup do |config|
|
30
|
+
config.required_files = false
|
31
|
+
end
|
32
|
+
```
|
33
|
+
You can now add extra files for validation
|
34
|
+
```ruby
|
35
|
+
PolishGeeks::DevTools.setup do |config|
|
36
|
+
config.required_files_include = %w(REVIEW.md)
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
- #26: Rename empty_method to empty_methods validator
|
41
|
+
|
42
|
+
If you had empty_method validator turned off like this and had files ignored
|
43
|
+
```ruby
|
44
|
+
PolishGeeks::DevTools.setup do |config|
|
45
|
+
config.empty_method = false
|
46
|
+
config.empty_method_ignored = %w(REVIEW.md)
|
47
|
+
end
|
48
|
+
```
|
49
|
+
Now you need to change that to
|
50
|
+
```ruby
|
51
|
+
PolishGeeks::DevTools.setup do |config|
|
52
|
+
config.empty_methods = false
|
53
|
+
config.empty_methods_ignored = %w(REVIEW.md)
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
- #12: Add rubocop-rspec which checks add code style checking for your RSpec files
|
58
|
+
|
59
|
+
- #33: Add an option to disallow pending specs
|
60
|
+
|
61
|
+
If you want to allow pending specs then
|
62
|
+
```ruby
|
63
|
+
PolishGeeks::DevTools.setup do |config|
|
64
|
+
config.rspec_disallow_pending = false
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
3
68
|
## 1.2.1
|
69
|
+
|
4
70
|
- Extracted all errors to PolishGeeks::DevTools::Errors namespace
|
71
|
+
- Add support for validators
|
72
|
+
- Rename Command to Commands namespace
|
5
73
|
|
6
74
|
## 1.2.0
|
75
|
+
|
7
76
|
- Added EmptyMethod command which checks if some files have empty methods
|
8
77
|
|
9
78
|
## 1.1.2
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
polishgeeks-dev-tools (1.
|
4
|
+
polishgeeks-dev-tools (1.3.0)
|
5
5
|
brakeman
|
6
|
+
bundler-audit
|
6
7
|
faker
|
7
8
|
haml-lint
|
8
9
|
mongoid-rspec
|
9
10
|
pry
|
10
11
|
rspec
|
11
12
|
rubocop
|
13
|
+
rubocop-rspec
|
12
14
|
rubycritic
|
13
15
|
shoulda
|
14
16
|
simplecov
|
@@ -18,59 +20,55 @@ PATH
|
|
18
20
|
GEM
|
19
21
|
remote: https://rubygems.org/
|
20
22
|
specs:
|
21
|
-
|
22
|
-
|
23
|
-
activesupport (= 4.2.4)
|
23
|
+
activemodel (4.2.6)
|
24
|
+
activesupport (= 4.2.6)
|
24
25
|
builder (~> 3.1)
|
25
|
-
activesupport (4.2.
|
26
|
+
activesupport (4.2.6)
|
26
27
|
i18n (~> 0.7)
|
27
28
|
json (~> 1.7, >= 1.7.7)
|
28
29
|
minitest (~> 5.1)
|
29
30
|
thread_safe (~> 0.3, >= 0.3.4)
|
30
31
|
tzinfo (~> 1.1)
|
31
|
-
|
32
|
-
|
33
|
-
memoizable (~> 0.4.0)
|
34
|
-
ast (2.1.0)
|
35
|
-
astrolabe (1.3.1)
|
36
|
-
parser (~> 2.2)
|
32
|
+
addressable (2.4.0)
|
33
|
+
ast (2.2.0)
|
37
34
|
axiom-types (0.1.1)
|
38
35
|
descendants_tracker (~> 0.0.4)
|
39
36
|
ice_nine (~> 0.11.0)
|
40
37
|
thread_safe (~> 0.3, >= 0.3.1)
|
41
|
-
brakeman (3.1
|
38
|
+
brakeman (3.2.1)
|
42
39
|
erubis (~> 2.6)
|
43
|
-
fastercsv (~> 1.5)
|
44
40
|
haml (>= 3.0, < 5.0)
|
45
|
-
highline (
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
safe_yaml
|
41
|
+
highline (>= 1.6.20, < 2.0)
|
42
|
+
ruby2ruby (~> 2.3.0)
|
43
|
+
ruby_parser (~> 3.8.1)
|
44
|
+
safe_yaml (>= 1.0)
|
50
45
|
sass (~> 3.0)
|
51
46
|
slim (>= 1.3.6, < 4.0)
|
52
47
|
terminal-table (~> 1.4)
|
53
|
-
bson (
|
48
|
+
bson (4.0.4)
|
54
49
|
builder (3.2.2)
|
55
|
-
|
50
|
+
bundler-audit (0.5.0)
|
51
|
+
bundler (~> 1.2)
|
52
|
+
thor (~> 0.18)
|
53
|
+
codeclimate-engine-rb (0.3.1)
|
54
|
+
virtus (~> 1.0)
|
55
|
+
coderay (1.1.1)
|
56
56
|
coercible (1.0.0)
|
57
57
|
descendants_tracker (~> 0.0.1)
|
58
|
-
|
59
|
-
adamantium (~> 0.2.0)
|
60
|
-
equalizer (~> 0.0.9)
|
58
|
+
colorize (0.7.7)
|
61
59
|
descendants_tracker (0.0.4)
|
62
60
|
thread_safe (~> 0.3, >= 0.3.1)
|
63
61
|
diff-lcs (1.2.5)
|
64
62
|
docile (1.1.5)
|
65
63
|
equalizer (0.0.11)
|
66
64
|
erubis (2.7.0)
|
67
|
-
faker (1.
|
65
|
+
faker (1.6.3)
|
68
66
|
i18n (~> 0.5)
|
69
|
-
|
70
|
-
|
67
|
+
flay (2.7.0)
|
68
|
+
erubis (~> 2.7.0)
|
71
69
|
ruby_parser (~> 3.0)
|
72
70
|
sexp_processor (~> 4.0)
|
73
|
-
flog (4.2
|
71
|
+
flog (4.3.2)
|
74
72
|
ruby_parser (~> 3.1, > 3.1.0)
|
75
73
|
sexp_processor (~> 4.4)
|
76
74
|
haml (4.0.7)
|
@@ -81,80 +79,83 @@ GEM
|
|
81
79
|
sysexits (~> 1.1)
|
82
80
|
highline (1.7.8)
|
83
81
|
i18n (0.7.0)
|
84
|
-
ice_nine (0.11.
|
82
|
+
ice_nine (0.11.2)
|
85
83
|
json (1.8.3)
|
86
|
-
|
87
|
-
|
84
|
+
launchy (2.4.3)
|
85
|
+
addressable (~> 2.3)
|
88
86
|
method_source (0.8.2)
|
89
|
-
minitest (5.8.
|
90
|
-
mongo (2.
|
91
|
-
bson (~>
|
92
|
-
mongoid (5.
|
87
|
+
minitest (5.8.4)
|
88
|
+
mongo (2.2.4)
|
89
|
+
bson (~> 4.0)
|
90
|
+
mongoid (5.1.2)
|
93
91
|
activemodel (~> 4.0)
|
94
92
|
mongo (~> 2.1)
|
95
|
-
origin (~> 2.
|
93
|
+
origin (~> 2.2)
|
96
94
|
tzinfo (>= 0.3.37)
|
97
95
|
mongoid-rspec (3.0.0)
|
98
96
|
mongoid (~> 5.0)
|
99
97
|
rake
|
100
98
|
rspec (~> 3.3)
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
ast (>= 1.1, < 3.0)
|
99
|
+
origin (2.2.0)
|
100
|
+
parser (2.3.0.7)
|
101
|
+
ast (~> 2.2)
|
105
102
|
powerpack (0.1.1)
|
106
|
-
procto (0.0.2)
|
107
103
|
pry (0.10.3)
|
108
104
|
coderay (~> 1.1.0)
|
109
105
|
method_source (~> 0.8.1)
|
110
106
|
slop (~> 3.4)
|
111
|
-
rainbow (2.
|
112
|
-
rake (
|
113
|
-
reek (
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
rspec (3.
|
118
|
-
rspec-core (~> 3.
|
119
|
-
rspec-expectations (~> 3.
|
120
|
-
rspec-mocks (~> 3.
|
121
|
-
rspec-core (3.
|
122
|
-
rspec-support (~> 3.
|
123
|
-
rspec-expectations (3.
|
107
|
+
rainbow (2.1.0)
|
108
|
+
rake (11.1.2)
|
109
|
+
reek (3.11)
|
110
|
+
codeclimate-engine-rb (~> 0.3.1)
|
111
|
+
parser (~> 2.3, >= 2.3.0.6)
|
112
|
+
rainbow (~> 2.0)
|
113
|
+
rspec (3.4.0)
|
114
|
+
rspec-core (~> 3.4.0)
|
115
|
+
rspec-expectations (~> 3.4.0)
|
116
|
+
rspec-mocks (~> 3.4.0)
|
117
|
+
rspec-core (3.4.4)
|
118
|
+
rspec-support (~> 3.4.0)
|
119
|
+
rspec-expectations (3.4.0)
|
124
120
|
diff-lcs (>= 1.2.0, < 2.0)
|
125
|
-
rspec-support (~> 3.
|
126
|
-
rspec-mocks (3.
|
121
|
+
rspec-support (~> 3.4.0)
|
122
|
+
rspec-mocks (3.4.1)
|
127
123
|
diff-lcs (>= 1.2.0, < 2.0)
|
128
|
-
rspec-support (~> 3.
|
129
|
-
rspec-support (3.
|
130
|
-
rubocop (0.
|
131
|
-
|
132
|
-
parser (>= 2.2.3.0, < 3.0)
|
124
|
+
rspec-support (~> 3.4.0)
|
125
|
+
rspec-support (3.4.1)
|
126
|
+
rubocop (0.39.0)
|
127
|
+
parser (>= 2.3.0.7, < 3.0)
|
133
128
|
powerpack (~> 0.1)
|
134
129
|
rainbow (>= 1.99.1, < 3.0)
|
135
130
|
ruby-progressbar (~> 1.7)
|
131
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
132
|
+
rubocop-rspec (1.4.1)
|
133
|
+
rubocop (= 0.39.0)
|
136
134
|
ruby-progressbar (1.7.5)
|
137
|
-
ruby2ruby (2.
|
135
|
+
ruby2ruby (2.3.0)
|
138
136
|
ruby_parser (~> 3.1)
|
139
137
|
sexp_processor (~> 4.0)
|
140
|
-
ruby_parser (3.
|
138
|
+
ruby_parser (3.8.1)
|
141
139
|
sexp_processor (~> 4.1)
|
142
|
-
rubycritic (
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
140
|
+
rubycritic (2.8.0)
|
141
|
+
colorize
|
142
|
+
flay (= 2.7.0)
|
143
|
+
flog (= 4.3.2)
|
144
|
+
launchy (= 2.4.3)
|
145
|
+
parser (~> 2.3)
|
146
|
+
reek (= 3.11)
|
147
|
+
ruby_parser (~> 3.8)
|
147
148
|
virtus (~> 1.0)
|
148
149
|
safe_yaml (1.0.4)
|
149
|
-
sass (3.4.
|
150
|
-
sexp_processor (4.
|
150
|
+
sass (3.4.22)
|
151
|
+
sexp_processor (4.7.0)
|
151
152
|
shoulda (3.5.0)
|
152
153
|
shoulda-context (~> 1.0, >= 1.0.1)
|
153
154
|
shoulda-matchers (>= 1.4.1, < 3.0)
|
154
155
|
shoulda-context (1.2.1)
|
155
156
|
shoulda-matchers (2.8.0)
|
156
157
|
activesupport (>= 3.0.0)
|
157
|
-
simplecov (0.
|
158
|
+
simplecov (0.11.2)
|
158
159
|
docile (~> 1.1.0)
|
159
160
|
json (~> 1.8)
|
160
161
|
simplecov-html (~> 0.10.0)
|
@@ -166,19 +167,13 @@ GEM
|
|
166
167
|
sysexits (1.2.0)
|
167
168
|
temple (0.7.6)
|
168
169
|
terminal-table (1.5.2)
|
170
|
+
thor (0.19.1)
|
169
171
|
thread_safe (0.3.5)
|
170
|
-
tilt (2.0.
|
171
|
-
timecop (0.8.
|
172
|
+
tilt (2.0.2)
|
173
|
+
timecop (0.8.1)
|
172
174
|
tzinfo (1.2.2)
|
173
175
|
thread_safe (~> 0.1)
|
174
|
-
|
175
|
-
abstract_type (~> 0.0.7)
|
176
|
-
adamantium (~> 0.2.0)
|
177
|
-
concord (~> 0.1.5)
|
178
|
-
diff-lcs (~> 1.2.5)
|
179
|
-
equalizer (~> 0.0.9)
|
180
|
-
parser (~> 2.2.2)
|
181
|
-
procto (~> 0.0.2)
|
176
|
+
unicode-display_width (1.0.3)
|
182
177
|
virtus (1.0.5)
|
183
178
|
axiom-types (~> 0.1)
|
184
179
|
coercible (~> 1.0)
|
@@ -195,4 +190,4 @@ DEPENDENCIES
|
|
195
190
|
rake
|
196
191
|
|
197
192
|
BUNDLED WITH
|
198
|
-
1.
|
193
|
+
1.11.2
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# PolishGeeks Dev Tools
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/polishgeeks-dev-tools.svg)](https://rubygems.org/gems/polishgeeks-dev-tools)
|
4
|
+
[![Build Status](https://api.travis-ci.org/polishgeeks/polishgeeks-dev-tools.svg)](https://travis-ci.org/polishgeeks/polishgeeks-dev-tools)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/polishgeeks/polishgeeks-dev-tools/badges/gpa.svg)](https://codeclimate.com/github/polishgeeks/polishgeeks-dev-tools)
|
5
6
|
|
6
7
|
Gem with a set of useful tools used when developing Ruby based applications.
|
@@ -46,26 +47,30 @@ end
|
|
46
47
|
Some options might be available only for given framework (Ruby on Rails, Sinatra, etc). Please refer to this table to
|
47
48
|
determine, which you can use in your project:
|
48
49
|
|
49
|
-
| Option
|
50
|
-
|
51
|
-
| brakeman
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
50
|
+
| Option | Framework | Description |
|
51
|
+
|------------------------|-----------|---------------------------------------------------------------------------------------|
|
52
|
+
| brakeman | Rails | A static analysis security vulnerability scanner for Ruby on Rails |
|
53
|
+
| required_files | - | Check if required files are present and not empty |
|
54
|
+
| rubocop | - | Used to check Ruby syntax according to our styling |
|
55
|
+
| rubocop_rspec | - | Used to check RSpec syntax according to our styling |
|
56
|
+
| final_blank_line | - | Check if all files have final blank line |
|
57
|
+
| empty_methods | - | Check if some files have empty methods |
|
58
|
+
| expires_in | - | Checks if there are typos like expire_in, etc that might brake app caching |
|
59
|
+
| haml_lint | - | User to check HAML syntax in the app views |
|
60
|
+
| yard | - | YARD documentation standards checking |
|
61
|
+
| rspec_files_names | - | Checks if all the rspec files have proper sufix (_spec.rb) |
|
62
|
+
| rspec_files_structure | - | Checks if we have corresponding _spec.rb files for each app/ lib ruby file |
|
63
|
+
| tasks_files_names | - | Checks if all the tasks for Capistrano and Rake files have proper extensions |
|
64
|
+
| rspec | - | Specs framework |
|
65
|
+
| rspec_disallow_pending | - | Disallow pending tests in specs |
|
66
|
+
| simplecov | - | Simplecov code coverage threshold checking |
|
67
|
+
| simplecov_threshold | - | Threshold level for code coverage |
|
68
|
+
| examples_comparator | - | Compares yml *.example files with non-examples and checks if they have same structure |
|
69
|
+
| rubycritic | - | Generates a RubyCritic for given project |
|
70
|
+
| allowed_extensions | - | Checks that all the files in ./config directory have an allowed extension |
|
71
|
+
| yml_parser | - | Checks that parameters of all yaml files in ./config directory have some value |
|
72
|
+
| bundler_audit | - | Checks for vulnerable versions of gems in Gemfile.lock |
|
73
|
+
| gemfile | - | Checks if Gemfile contains gems from local path |
|
69
74
|
|
70
75
|
## Config options
|
71
76
|
|
@@ -73,9 +78,10 @@ Some validators might accept additional config settings - please refer to this t
|
|
73
78
|
|
74
79
|
| Option | Validator | Description |
|
75
80
|
|-------------------------------|-----------------------|-------------------------------------------------------------------------------------------------------------|
|
81
|
+
| required_files_include | required_files | You can provide an array of files that should be included in the check |
|
76
82
|
| rspec_files_structure_ignored | rspec_files_structure | You can provide an array of files that should be ignored |
|
77
83
|
| final_blank_line_ignored | final_blank_line | You can provide an array of files (ex. lib/file.rb) or directories (ex. lib/command) that should be ignored |
|
78
|
-
|
|
84
|
+
| empty_methods_ignored | empty_methods | You can provide an array of files (ex. lib/file.rb) or directories (ex. lib/command) that should be ignored |
|
79
85
|
|
80
86
|
## Usage in any Rails/Ruby application
|
81
87
|
|
data/Rakefile
CHANGED
@@ -8,12 +8,13 @@ task :check do
|
|
8
8
|
config.brakeman = false
|
9
9
|
config.haml_lint = false
|
10
10
|
config.expires_in_files_ignored = %w(
|
11
|
-
lib/
|
11
|
+
lib/polish_geeks/dev_tools/commands/expires_in.rb
|
12
12
|
)
|
13
|
-
config.
|
14
|
-
|
13
|
+
config.empty_methods_ignored = %w(
|
14
|
+
empty_methods_spec.rb
|
15
15
|
file_parser_spec.rb
|
16
16
|
)
|
17
|
+
config.rspec_files_structure_ignored = %w(lib/polishgeeks-dev-tools.rb)
|
17
18
|
end
|
18
19
|
|
19
20
|
PolishGeeks::DevTools::Runner.new.execute(
|