maximus 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +99 -12
- data/lib/maximus/cli.rb +39 -20
- data/lib/maximus/config/maximus-example.yml +129 -0
- data/lib/maximus/config/maximus.yml +2 -0
- data/lib/maximus/config.rb +329 -0
- data/lib/maximus/git_control.rb +29 -47
- data/lib/maximus/helper.rb +10 -23
- data/lib/maximus/lint.rb +47 -26
- data/lib/maximus/lints/brakeman.rb +5 -2
- data/lib/maximus/lints/jshint.rb +7 -2
- data/lib/maximus/lints/railsbp.rb +5 -2
- data/lib/maximus/lints/rubocop.rb +5 -2
- data/lib/maximus/lints/scsslint.rb +4 -2
- data/lib/maximus/statistic.rb +23 -23
- data/lib/maximus/statistics/phantomas.rb +12 -7
- data/lib/maximus/statistics/stylestats.rb +20 -21
- data/lib/maximus/statistics/wraith.rb +34 -60
- data/lib/maximus/version.rb +1 -1
- data/lib/maximus.rb +1 -1
- data/maximus.gemspec +6 -6
- data/roadmap.md +2 -1
- metadata +25 -30
- data/lib/maximus/config/.jshintignore +0 -2
- data/lib/maximus/config/jshint.json +0 -9
- data/lib/maximus/config/phantomas.json +0 -4
- data/lib/maximus/config/phantomas_urls.yaml +0 -1
- data/lib/maximus/config/scsslint.yml +0 -58
- data/lib/maximus/config/stylestats.json +0 -30
- data/lib/maximus/config/wraith.yaml +0 -56
- data/lib/maximus/constants.rb +0 -5
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maximus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Shedor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -28,86 +28,86 @@ dependencies:
|
|
28
28
|
name: scss-lint
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.31.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
40
|
version: 0.31.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rainbow
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 2.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.23'
|
62
62
|
type: :runtime
|
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: '0'
|
68
|
+
version: '0.23'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails_best_practices
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.15'
|
76
76
|
type: :runtime
|
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: '
|
82
|
+
version: '1.15'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: brakeman
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.6'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: wraith
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 2.1.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 2.1.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: activesupport
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,18 +166,13 @@ files:
|
|
166
166
|
- bin/maximus
|
167
167
|
- lib/maximus.rb
|
168
168
|
- lib/maximus/cli.rb
|
169
|
-
- lib/maximus/config
|
170
|
-
- lib/maximus/config/
|
171
|
-
- lib/maximus/config/
|
172
|
-
- lib/maximus/config/phantomas_urls.yaml
|
169
|
+
- lib/maximus/config.rb
|
170
|
+
- lib/maximus/config/maximus-example.yml
|
171
|
+
- lib/maximus/config/maximus.yml
|
173
172
|
- lib/maximus/config/rubocop.yml
|
174
|
-
- lib/maximus/config/scsslint.yml
|
175
|
-
- lib/maximus/config/stylestats.json
|
176
|
-
- lib/maximus/config/wraith.yaml
|
177
173
|
- lib/maximus/config/wraith/casper.js
|
178
174
|
- lib/maximus/config/wraith/nojs.js
|
179
175
|
- lib/maximus/config/wraith/snap.js
|
180
|
-
- lib/maximus/constants.rb
|
181
176
|
- lib/maximus/git_control.rb
|
182
177
|
- lib/maximus/helper.rb
|
183
178
|
- lib/maximus/lint.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
home: /
|
@@ -1,58 +0,0 @@
|
|
1
|
-
scss_files: 'app/assets/stylesheets/'
|
2
|
-
|
3
|
-
# exclude: 'app/assets/stylesheets/admin/'
|
4
|
-
|
5
|
-
format: 'JSON'
|
6
|
-
|
7
|
-
linters:
|
8
|
-
Compass::*:
|
9
|
-
enabled: true
|
10
|
-
Compass::PropertyWithMixin:
|
11
|
-
ignore:
|
12
|
-
- 'inline-block'
|
13
|
-
- 'border-radius'
|
14
|
-
- 'box-shadow'
|
15
|
-
- 'opacity'
|
16
|
-
- 'text-shadow'
|
17
|
-
Indentation:
|
18
|
-
enabled: false
|
19
|
-
character: tab
|
20
|
-
severity: warning
|
21
|
-
width: 1
|
22
|
-
NameFormat:
|
23
|
-
convention: BEM
|
24
|
-
enabled: false
|
25
|
-
SelectorFormat:
|
26
|
-
enabled: false
|
27
|
-
DeclarationOrder:
|
28
|
-
enabled: false
|
29
|
-
EmptyLineBetweenBlocks:
|
30
|
-
enabled: false
|
31
|
-
NestingDepth:
|
32
|
-
max_depth: 6
|
33
|
-
severity: error
|
34
|
-
SelectorDepth:
|
35
|
-
max_depth: 5
|
36
|
-
severity: error
|
37
|
-
LeadingZero:
|
38
|
-
enabled: false
|
39
|
-
PlaceholderInExtend:
|
40
|
-
enabled: false
|
41
|
-
PropertySortOrder:
|
42
|
-
enabled: false
|
43
|
-
QualifyingElement:
|
44
|
-
enabled: true
|
45
|
-
allow_element_with_attribute: true
|
46
|
-
SpaceAfterPropertyColon:
|
47
|
-
enabled: false
|
48
|
-
UnnecessaryParentReference:
|
49
|
-
severity: error
|
50
|
-
VendorPrefixes:
|
51
|
-
exclude:
|
52
|
-
- '-webkit-tap-highlight-color'
|
53
|
-
- '-webkit-font-smoothing'
|
54
|
-
- '-moz-osx-font-smoothing'
|
55
|
-
- '-webkit-appearance'
|
56
|
-
- '-moz-placeholder'
|
57
|
-
- '-ms-input-placeholder'
|
58
|
-
- '-moz-pre-wrap'
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"published": false,
|
3
|
-
"paths": false,
|
4
|
-
"stylesheets": false,
|
5
|
-
"styleElements": true,
|
6
|
-
"size": true,
|
7
|
-
"dataUriSize": true,
|
8
|
-
"ratioOfDataUriSize": true,
|
9
|
-
"gzippedSize": false,
|
10
|
-
"simplicity": true,
|
11
|
-
"rules": true,
|
12
|
-
"selectors": true,
|
13
|
-
"mostIdentifier": true,
|
14
|
-
"mostIdentifierSelector": true,
|
15
|
-
"lowestCohesion": true,
|
16
|
-
"lowestCohesionSelector": true,
|
17
|
-
"totalUniqueFontSizes": true,
|
18
|
-
"uniqueFontSize": true,
|
19
|
-
"totalUniqueColors": true,
|
20
|
-
"uniqueColor": true,
|
21
|
-
"idSelectors": true,
|
22
|
-
"universalSelectors": true,
|
23
|
-
"unqualifiedAttributeSelectors": true,
|
24
|
-
"javascriptSpecificSelectors": "[#\\.]js\\-",
|
25
|
-
"importantKeywords": true,
|
26
|
-
"floatProperties": true,
|
27
|
-
"mediaQueries": true,
|
28
|
-
"propertiesCount": 10,
|
29
|
-
"requestOptions": {}
|
30
|
-
}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
#Headless browser option
|
2
|
-
browser:
|
3
|
-
phantomjs: "phantomjs"
|
4
|
-
# slimerjs: "slimerjs"
|
5
|
-
# phantomjs: "casperjs"
|
6
|
-
|
7
|
-
#If you want to have multiple snapping files, set the file name here
|
8
|
-
snap_file: "config/wraith/snap.js"
|
9
|
-
# snap_file: "config/wraith/nojs.js"
|
10
|
-
|
11
|
-
# Type the name of the directory that shots will be stored in
|
12
|
-
directory: 'maximus_wraith'
|
13
|
-
history_dir: 'maximus_wraith_history'
|
14
|
-
|
15
|
-
domains:
|
16
|
-
main: "http://localhost:3000"
|
17
|
-
|
18
|
-
#Type screen widths below, here are a couple of examples
|
19
|
-
screen_widths:
|
20
|
-
- 767
|
21
|
-
- 1024
|
22
|
-
- 1280
|
23
|
-
|
24
|
-
#Type page URL paths below
|
25
|
-
paths:
|
26
|
-
home: /
|
27
|
-
|
28
|
-
# Casper/component example config
|
29
|
-
# paths:
|
30
|
-
# home:
|
31
|
-
# path: /
|
32
|
-
# selector: '.site-brand'
|
33
|
-
|
34
|
-
#Amount of fuzz ImageMagick will use
|
35
|
-
fuzz: '20%'
|
36
|
-
|
37
|
-
#Set the filename of the spider file to use, if not specified it will fallback to spider.txt
|
38
|
-
# spider_file: bbc_co_uk_spider.txt
|
39
|
-
|
40
|
-
#Set the number of days to keep the site spider file
|
41
|
-
spider_days:
|
42
|
-
- 10
|
43
|
-
|
44
|
-
#A list of URLs to skip when spidering. Ruby regular expressions can be
|
45
|
-
#used, if prefixed with !ruby/regexp as defined in the YAML Cookbook
|
46
|
-
#http://www.yaml.org/YAML_for_ruby.html#regexps
|
47
|
-
#
|
48
|
-
# spider_skips:
|
49
|
-
# - /foo/bar.html # Matches /foo/bar.html explcitly
|
50
|
-
# - !ruby/regexp /^\/baz\// # Matches any URLs that start with /baz
|
51
|
-
|
52
|
-
#Choose how results are displayed, by default alphanumeric. Different screen widths are always grouped.
|
53
|
-
#alphanumeric - all paths (with, and without, a difference) are shown, sorted by path
|
54
|
-
#diffs_first - all paths (with, and without, a difference) are shown, sorted by difference size (largest first)
|
55
|
-
#diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
|
56
|
-
#mode: diffs_first
|