guard-slim_lint 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +27 -0
- data/.github/workflows/tests.yml +26 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +17 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +3 -1
- data/Guardfile +49 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/bin/console +1 -0
- data/guard-slim_lint.gemspec +5 -4
- data/lib/guard/slimlint/templates/Guardfile +2 -0
- data/lib/guard/slimlint/version.rb +1 -1
- metadata +30 -13
- data/.travis.yml +0 -9
- data/Gemfile.lock +0 -96
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e92baf968e0cbac054206ecf9fd7dfc4abbb5a9e82f1130734bdecdd21fa453
|
4
|
+
data.tar.gz: 2ad77b37c31cfbe6fef9a99795269adab16b386e74a51423e7d6d21f4fdf1b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452e92ad2e339b1c32b840fb2a8f79fd5d58cc1eecd01d3bf2439d3225969e9ae978bef66cafbabaa4d106cdb1e86d69de8fd5c920772b7863348ce89caca2c2
|
7
|
+
data.tar.gz: 47fc9a1939cc91864b1528217f6dc5518c4df104b3f25aabebd9a44f2c990c027ec38057f44c68f48c7d74db2a7fad0e0237d88e4d1a8264383e5733a28caaf7
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: Lint
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ master ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ master ]
|
7
|
+
jobs:
|
8
|
+
rubocop:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version:
|
13
|
+
- "2.5.9"
|
14
|
+
- "2.6.9"
|
15
|
+
- "2.7.6"
|
16
|
+
- "3.0.4"
|
17
|
+
- "3.1.2"
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true
|
25
|
+
- name: Run Rubocop
|
26
|
+
run: bundle exec rubocop
|
27
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
name: Tests
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ master ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ master ]
|
7
|
+
jobs:
|
8
|
+
rspec:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version:
|
13
|
+
- "2.5.9"
|
14
|
+
- "2.6.9"
|
15
|
+
- "2.7.6"
|
16
|
+
- "3.0.4"
|
17
|
+
- "3.1.2"
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
21
|
+
uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
24
|
+
bundler-cache: true
|
25
|
+
- name: Run RSpec
|
26
|
+
run: bundle exec rspec
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
6
|
|
5
7
|
# Specify your gem's dependencies in guard-slim-lint.gemspec
|
6
8
|
gemspec
|
data/Guardfile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# A sample Guardfile
|
4
|
+
# More info at https://github.com/guard/guard#readme
|
5
|
+
|
6
|
+
## Uncomment and set this to only include directories you want to watch
|
7
|
+
# directories %w(app lib config test spec features) \
|
8
|
+
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
9
|
+
|
10
|
+
## Note: if you are using the `directories` clause above and you are not
|
11
|
+
## watching the project directory ('.'), then you will want to move
|
12
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
13
|
+
#
|
14
|
+
# $ mkdir config
|
15
|
+
# $ mv Guardfile config/
|
16
|
+
# $ ln -s config/Guardfile .
|
17
|
+
#
|
18
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
19
|
+
|
20
|
+
guard :rubocop do
|
21
|
+
watch(%r{.+\.rb$})
|
22
|
+
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
|
23
|
+
end
|
24
|
+
|
25
|
+
# NOTE: The cmd option is now required due to the increasing number of ways
|
26
|
+
# rspec may be run, below are examples of the most common uses.
|
27
|
+
# * bundler: 'bundle exec rspec'
|
28
|
+
# * bundler binstubs: 'bin/rspec'
|
29
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
30
|
+
# installed the spring binstubs per the docs)
|
31
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
32
|
+
# * 'just' rspec: 'rspec'
|
33
|
+
|
34
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
35
|
+
require 'guard/rspec/dsl'
|
36
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
37
|
+
|
38
|
+
# Feel free to open issues for suggestions and improvements
|
39
|
+
|
40
|
+
# RSpec files
|
41
|
+
rspec = dsl.rspec
|
42
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
43
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
44
|
+
watch(rspec.spec_files)
|
45
|
+
|
46
|
+
# Ruby files
|
47
|
+
ruby = dsl.ruby
|
48
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
49
|
+
end
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/guard-slim_lint.svg)](https://badge.fury.io/rb/guard-slim_lint)
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/yatmsu/guard-slim-lint/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/yatmsu/guard-slim-lint/actions/workflows/tests.yml?branch=master)
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2829a3c4971e2b4c51fb/maintainability)](https://codeclimate.com/github/yatmsu/guard-slim-lint/maintainability)
|
4
4
|
|
5
5
|
# Guard::SlimLint
|
@@ -8,7 +8,7 @@ A guard to lint your Slim.
|
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
11
|
-
* Ruby 2.
|
11
|
+
* Ruby 2.5+
|
12
12
|
* Slim-Lint 0.17.0+
|
13
13
|
|
14
14
|
## Installation
|
data/bin/console
CHANGED
data/guard-slim_lint.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
lib = File.expand_path('
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'guard/slimlint/version'
|
6
6
|
|
@@ -22,13 +22,14 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.required_ruby_version = '>= 2.
|
25
|
+
spec.required_ruby_version = '>= 2.5.9'
|
26
26
|
|
27
27
|
spec.add_dependency 'guard', '~> 2.2'
|
28
28
|
spec.add_dependency 'guard-compat', '~> 1.2'
|
29
|
-
spec.add_runtime_dependency 'slim_lint', '
|
29
|
+
spec.add_runtime_dependency 'slim_lint', '~> 0.17'
|
30
30
|
|
31
|
-
spec.add_development_dependency '
|
31
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
32
|
+
spec.add_development_dependency 'guard-rubocop', '~> 1.5.0'
|
32
33
|
spec.add_development_dependency 'rake', '~> 12.3'
|
33
34
|
spec.add_development_dependency 'rspec', '~> 3.7.0'
|
34
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-slim_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhiko Katoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -42,30 +42,44 @@ dependencies:
|
|
42
42
|
name: slim_lint
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.17
|
47
|
+
version: '0.17'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.17'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.7.3
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
68
|
+
version: 4.7.3
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: guard-rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: 1.5.0
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: 1.5.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,12 +115,15 @@ executables: []
|
|
101
115
|
extensions: []
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
118
|
+
- ".github/workflows/lint.yml"
|
119
|
+
- ".github/workflows/tests.yml"
|
104
120
|
- ".gitignore"
|
105
121
|
- ".rspec"
|
106
|
-
- ".
|
122
|
+
- ".rubocop.yml"
|
123
|
+
- CHANGELOG.md
|
107
124
|
- CODE_OF_CONDUCT.md
|
108
125
|
- Gemfile
|
109
|
-
-
|
126
|
+
- Guardfile
|
110
127
|
- LICENSE.txt
|
111
128
|
- README.md
|
112
129
|
- Rakefile
|
@@ -128,14 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
145
|
requirements:
|
129
146
|
- - ">="
|
130
147
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
148
|
+
version: 2.5.9
|
132
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
150
|
requirements:
|
134
151
|
- - ">="
|
135
152
|
- !ruby/object:Gem::Version
|
136
153
|
version: '0'
|
137
154
|
requirements: []
|
138
|
-
rubygems_version: 3.
|
155
|
+
rubygems_version: 3.3.22
|
139
156
|
signing_key:
|
140
157
|
specification_version: 4
|
141
158
|
summary: Guard plugin for Slim-Lint
|
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
guard-slim_lint (1.1.0)
|
5
|
-
guard (~> 2.2)
|
6
|
-
guard-compat (~> 1.2)
|
7
|
-
slim_lint (>= 0.17.0)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
ast (2.4.1)
|
13
|
-
coderay (1.1.3)
|
14
|
-
diff-lcs (1.3)
|
15
|
-
ffi (1.13.1)
|
16
|
-
formatador (0.2.5)
|
17
|
-
guard (2.16.2)
|
18
|
-
formatador (>= 0.2.4)
|
19
|
-
listen (>= 2.7, < 4.0)
|
20
|
-
lumberjack (>= 1.0.12, < 2.0)
|
21
|
-
nenv (~> 0.1)
|
22
|
-
notiffany (~> 0.0)
|
23
|
-
pry (>= 0.9.12)
|
24
|
-
shellany (~> 0.0)
|
25
|
-
thor (>= 0.18.1)
|
26
|
-
guard-compat (1.2.1)
|
27
|
-
listen (3.2.1)
|
28
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
29
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
30
|
-
lumberjack (1.2.7)
|
31
|
-
method_source (1.0.0)
|
32
|
-
nenv (0.3.0)
|
33
|
-
notiffany (0.1.3)
|
34
|
-
nenv (~> 0.1)
|
35
|
-
shellany (~> 0.0)
|
36
|
-
parallel (1.19.2)
|
37
|
-
parser (2.7.1.4)
|
38
|
-
ast (~> 2.4.1)
|
39
|
-
pry (0.13.1)
|
40
|
-
coderay (~> 1.1)
|
41
|
-
method_source (~> 1.0)
|
42
|
-
rainbow (3.0.0)
|
43
|
-
rake (12.3.3)
|
44
|
-
rb-fsevent (0.10.4)
|
45
|
-
rb-inotify (0.10.1)
|
46
|
-
ffi (~> 1.0)
|
47
|
-
regexp_parser (1.7.1)
|
48
|
-
rexml (3.2.4)
|
49
|
-
rspec (3.7.0)
|
50
|
-
rspec-core (~> 3.7.0)
|
51
|
-
rspec-expectations (~> 3.7.0)
|
52
|
-
rspec-mocks (~> 3.7.0)
|
53
|
-
rspec-core (3.7.1)
|
54
|
-
rspec-support (~> 3.7.0)
|
55
|
-
rspec-expectations (3.7.0)
|
56
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
-
rspec-support (~> 3.7.0)
|
58
|
-
rspec-mocks (3.7.0)
|
59
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
-
rspec-support (~> 3.7.0)
|
61
|
-
rspec-support (3.7.1)
|
62
|
-
rubocop (0.89.0)
|
63
|
-
parallel (~> 1.10)
|
64
|
-
parser (>= 2.7.1.1)
|
65
|
-
rainbow (>= 2.2.2, < 4.0)
|
66
|
-
regexp_parser (>= 1.7)
|
67
|
-
rexml
|
68
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
69
|
-
ruby-progressbar (~> 1.7)
|
70
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
71
|
-
rubocop-ast (0.3.0)
|
72
|
-
parser (>= 2.7.1.4)
|
73
|
-
ruby-progressbar (1.10.1)
|
74
|
-
shellany (0.0.1)
|
75
|
-
slim (4.1.0)
|
76
|
-
temple (>= 0.7.6, < 0.9)
|
77
|
-
tilt (>= 2.0.6, < 2.1)
|
78
|
-
slim_lint (0.20.1)
|
79
|
-
rubocop (>= 0.78.0)
|
80
|
-
slim (>= 3.0, < 5.0)
|
81
|
-
temple (0.8.2)
|
82
|
-
thor (1.0.1)
|
83
|
-
tilt (2.0.10)
|
84
|
-
unicode-display_width (1.7.0)
|
85
|
-
|
86
|
-
PLATFORMS
|
87
|
-
ruby
|
88
|
-
|
89
|
-
DEPENDENCIES
|
90
|
-
bundler (~> 2.1.4)
|
91
|
-
guard-slim_lint!
|
92
|
-
rake (~> 12.3)
|
93
|
-
rspec (~> 3.7.0)
|
94
|
-
|
95
|
-
BUNDLED WITH
|
96
|
-
2.1.4
|