rubomatic-html 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24500e8be719d33394abf55f3acb746181fb5507fc32e4084bbb09c17dff2b7f
4
- data.tar.gz: b029dfee3fcec76a9a96e45a74f81fa63ce8440fcb130c060a1763a99d704bfc
3
+ metadata.gz: 23652bb0d2323952f7ef849d1bb8c4577fbca79bf3ba529df8666529169e2284
4
+ data.tar.gz: ae6b8cb78b2ec3d29f65e63d4189a2ab803261998dabcca9ef96a850e85a7692
5
5
  SHA512:
6
- metadata.gz: 7c80e7b5db8754f5ce084d2fd0a888e15e8c60d3069fd21d5f1ce90443d4984410bbeb0dbf814f86a3c5443bcea99de07f812b47cf41762763ba318b96951541
7
- data.tar.gz: ff966b0a358954f84a3345c358969110bc06d9797eac5e724f601f51a7b16fca75514a25ffecdf615072687be8ce8d999f7d7f250fbe10eae11730872ceff3bd
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
- Add the following to your ``.rubocop.yml`` config file
24
+ Run the following command, from your project root
27
25
 
28
- [source,yaml]
26
+ [source,shell]
29
27
  ----
30
- inherit_gem:
31
- rubomatic: configs/rubocop.yml
28
+ rubomatic-html
32
29
  ----
33
30
 
34
- If you need to override a setting:
31
+ Or
35
32
 
36
- [source,yaml]
33
+ [source,shell]
37
34
  ----
38
- # Add to Naming/VariableNumber.AllowedIdentifiers
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
- [source,yaml]
38
+ To ignore specific files, create ``.rubomatic_html_ignore``
39
+
40
+ [source,text]
51
41
  ----
52
- # Completely override Naming/VariableNumber.AllowedIdentifiers
53
- inherit_gem:
54
- rubomatic: configs/rubocop.yml
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 .lint_html_ignore'
19
+ 'List of files to ignore. Additionally ignores contents of .rubomatic_html_ignore'
20
20
  )
21
21
  end
22
22
  parser.parse!(into: options)
@@ -2,5 +2,6 @@
2
2
 
3
3
  require_relative 'base'
4
4
  require_relative 'layout/line_length'
5
+ require_relative 'layout/multiple_line_breaks'
5
6
  require_relative 'layout/trailing_whitespace'
6
7
  require_relative 'style/partial_instance_variable'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubomaticHtml
4
- VERSION = '0.4.0'
4
+ VERSION = '0.5.0'
5
5
  end
@@ -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 = '.lint_html_ignore'
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubomatic-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brands Insurance