rubomatic-html 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +12 -29
- data/exe/rubomatic-html +1 -1
- data/lib/rubomatic-html/version.rb +1 -1
- data/lib/rubomatic-html.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23652bb0d2323952f7ef849d1bb8c4577fbca79bf3ba529df8666529169e2284
|
|
4
|
+
data.tar.gz: ae6b8cb78b2ec3d29f65e63d4189a2ab803261998dabcca9ef96a850e85a7692
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2782f568f9e7131b2b22f1ead7e8feda3f8b9b8df26c1b0215e97dd49a4824c514d1265793aedc2708ab86eec41579eb1c83ffe9dc81c851ef9b49b47b482149
|
|
7
|
+
data.tar.gz: 2f34bcc73cf35c032f009f8e9e7d22607dc543520236de251714c857da0be6565f36a2ccc5517ac572bff0ec3e18a3190dda06836faa6a9c4821bba2713d7269
|
data/README.adoc
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Gem for shared html linting for BrandsInsurance.
|
|
4
4
|
|
|
5
|
-
Make sure ran from project root
|
|
6
|
-
|
|
7
5
|
== Installation
|
|
8
6
|
|
|
9
7
|
Add this line to your application's Gemfile:
|
|
@@ -23,42 +21,27 @@ Or install it yourself as:
|
|
|
23
21
|
|
|
24
22
|
== Usage
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Run the following command, from your project root
|
|
27
25
|
|
|
28
|
-
[source,
|
|
26
|
+
[source,shell]
|
|
29
27
|
----
|
|
30
|
-
|
|
31
|
-
rubomatic: configs/rubocop.yml
|
|
28
|
+
rubomatic-html
|
|
32
29
|
----
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
Or
|
|
35
32
|
|
|
36
|
-
[source,
|
|
33
|
+
[source,shell]
|
|
37
34
|
----
|
|
38
|
-
|
|
39
|
-
inherit_gem:
|
|
40
|
-
rubomatic: configs/rubocop.yml
|
|
41
|
-
|
|
42
|
-
Naming/VariableNumber:
|
|
43
|
-
inherit_mode:
|
|
44
|
-
merge:
|
|
45
|
-
- AllowedIdentifiers
|
|
46
|
-
AllowedIdentifiers:
|
|
47
|
-
- street_2
|
|
35
|
+
bundle exec rubomatic-html
|
|
48
36
|
----
|
|
49
37
|
|
|
50
|
-
|
|
38
|
+
To ignore specific files, create ``.rubomatic_html_ignore``
|
|
39
|
+
|
|
40
|
+
[source,text]
|
|
51
41
|
----
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Naming/VariableNumber:
|
|
57
|
-
inherit_mode:
|
|
58
|
-
override:
|
|
59
|
-
- AllowedIdentifiers
|
|
60
|
-
AllowedIdentifiers:
|
|
61
|
-
- street_2
|
|
42
|
+
app/views/layouts/partials/_dropzone_preview_template.html.erb
|
|
43
|
+
app/views/shared/_global_email.html.erb
|
|
44
|
+
app/views/shared/_global_email_text.text.erb
|
|
62
45
|
----
|
|
63
46
|
|
|
64
47
|
== Changelog
|
data/exe/rubomatic-html
CHANGED
|
@@ -16,7 +16,7 @@ parser = OptionParser.new do |parser|
|
|
|
16
16
|
'-i',
|
|
17
17
|
'--ignored-files comma,separated,list,of,files',
|
|
18
18
|
Array,
|
|
19
|
-
'List of files to ignore. Additionally ignores contents of .
|
|
19
|
+
'List of files to ignore. Additionally ignores contents of .rubomatic_html_ignore'
|
|
20
20
|
)
|
|
21
21
|
end
|
|
22
22
|
parser.parse!(into: options)
|
data/lib/rubomatic-html.rb
CHANGED
|
@@ -15,7 +15,7 @@ module RubomaticHtml
|
|
|
15
15
|
#
|
|
16
16
|
def initialize(linted_files, ignored_files)
|
|
17
17
|
files_to_ignore = Array(ignored_files)
|
|
18
|
-
ignore_file = '.
|
|
18
|
+
ignore_file = '.rubomatic_html_ignore'
|
|
19
19
|
|
|
20
20
|
if File.exist?(ignore_file)
|
|
21
21
|
files_to_ignore += File.readlines(ignore_file, chomp: true)
|