guard-slimlint 1.3.0 → 1.4.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/CHANGELOG.md +82 -0
- data/README.md +70 -16
- data/lib/guard/slimlint/templates/Guardfile +1 -1
- data/lib/guard/slimlint/version.rb +3 -1
- data/lib/guard/slimlint.rb +55 -12
- metadata +83 -72
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.rubocop.yml +0 -5
- data/.travis.yml +0 -4
- data/CODE_OF_CONDUCT.md +0 -49
- data/Gemfile +0 -4
- data/Guardfile +0 -6
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/guard-slimlint.gemspec +0 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b281a7110ec5e1176f8e57dc91b18c1569b3eec1a14c19d17f7cf99ab814e2
|
|
4
|
+
data.tar.gz: a2ec22b0621349fadca501979d70687eceb86b4232a25241d5e78ba9987d0611
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6096c002fa6518d50a22fcf29e9c98b9fc38f6b500f9cf043074feedd896c6e394bf96e3b949831044dd0517e6323de4a145ba90066c934443c3b68f67c01dde
|
|
7
|
+
data.tar.gz: 2864c784c00d06c76fdae85d2c1ea2c4b9ea5a689853ad5d376cc391e74482fb75a1c2bbaef7155052b2b9f86e0cf974f9efac618a378ffaf7bc3ad9a7dfd4e1
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project
|
|
5
|
+
follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [1.4.0] - 2026-09-04
|
|
10
|
+
|
|
11
|
+
The gem had not been touched since 2019 and could no longer be developed on any
|
|
12
|
+
supported Ruby. This release makes it buildable, testable and correct again
|
|
13
|
+
without changing the plugin's interface.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- slim-lint failures are no longer reported as lint offences. slim-lint uses
|
|
18
|
+
sysexits codes, and only status 65 means offences were found. Crashes, usage
|
|
19
|
+
errors, missing files and bad configuration now go to `Guard::UI.error` with
|
|
20
|
+
the exit status instead of printing the red "offences detected" line.
|
|
21
|
+
- Paths are passed to slim-lint as separate arguments rather than interpolated
|
|
22
|
+
into a shell string, so files whose names contain spaces or shell
|
|
23
|
+
metacharacters are linted correctly.
|
|
24
|
+
- The plugin throws `:task_has_failed` when a run fails, so Guard's
|
|
25
|
+
`halt_on_fail` group option now works.
|
|
26
|
+
- `bundle install` works again. The gemspec required Bundler 1.x, which no Ruby
|
|
27
|
+
since 2.7 ships.
|
|
28
|
+
- `.rubocop.yml` used the long-since-renamed `Metrics/LineLength` cop, which
|
|
29
|
+
crashed slim-lint's RuboCop linter on every file in this repository.
|
|
30
|
+
- The spec suite no longer deletes the repository's own `Guardfile` on every
|
|
31
|
+
example, and runs in about four seconds instead of ten.
|
|
32
|
+
- Corrected "Slim offences has been detected" to "have been detected".
|
|
33
|
+
- The Guardfile template written by `guard init slimlint` used
|
|
34
|
+
`notify_on: :both`, the noisiest of the four settings, contradicting the
|
|
35
|
+
plugin's own `:failure` default. Every new user got a desktop notification
|
|
36
|
+
on every successful save. The template now matches the documented default,
|
|
37
|
+
and a spec keeps the two in step.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- GitHub Actions CI covering Ruby 3.1 through 3.4, plus RuboCop.
|
|
42
|
+
- Dependabot configuration for Bundler and GitHub Actions.
|
|
43
|
+
- This changelog.
|
|
44
|
+
- Regression tests for every slim-lint exit status, for paths containing
|
|
45
|
+
spaces, and for `run_on_additions` and `run_all`.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- `required_ruby_version` is now declared as `>= 3.1`.
|
|
50
|
+
- Dependencies relaxed and modernised: `slim_lint` `>= 0.20, < 2.0`,
|
|
51
|
+
`colorize` `>= 0.8, < 2.0`, `rake` 13, `rspec` 3.13.
|
|
52
|
+
- Gemspec now carries `metadata` links and requires MFA for releases, and
|
|
53
|
+
builds its file list with `Dir.glob` rather than `git ls-files`.
|
|
54
|
+
|
|
55
|
+
### Removed
|
|
56
|
+
|
|
57
|
+
- Travis CI configuration. travis-ci.org shut down in 2021.
|
|
58
|
+
|
|
59
|
+
## [1.3.2] - 2019-11-13
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
|
|
63
|
+
- Corrected the maintainer email address.
|
|
64
|
+
|
|
65
|
+
## [1.3.1] - 2019-11-13
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
|
|
69
|
+
- Bumped the `slim_lint` dependency to 0.15.
|
|
70
|
+
|
|
71
|
+
## [1.3.0] - 2018-04-15
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- `all_on_start` is honoured, so the plugin no longer lints everything on
|
|
76
|
+
startup when the option is disabled.
|
|
77
|
+
|
|
78
|
+
[Unreleased]: https://github.com/mike927/guard-slimlint/compare/v1.4.0...HEAD
|
|
79
|
+
[1.4.0]: https://github.com/mike927/guard-slimlint/compare/v1.3.2...v1.4.0
|
|
80
|
+
[1.3.2]: https://github.com/mike927/guard-slimlint/compare/v1.3.1...v1.3.2
|
|
81
|
+
[1.3.1]: https://github.com/mike927/guard-slimlint/compare/v1.3.0...v1.3.1
|
|
82
|
+
[1.3.0]: https://github.com/mike927/guard-slimlint/releases/tag/v1.3.0
|
data/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# Guard::SlimLint
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/mike927/guard-slimlint/actions/workflows/ci.yml)
|
|
4
|
+
[](https://rubygems.org/gems/guard-slimlint)
|
|
4
5
|
|
|
6
|
+
Guard::SlimLint runs [slim-lint](https://github.com/sds/slim-lint) automatically
|
|
7
|
+
every time a Slim template is added or changed.
|
|
8
|
+
|
|
9
|
+
Requires Ruby 3.1 or newer.
|
|
5
10
|
|
|
6
11
|
## Installation
|
|
7
12
|
|
|
8
|
-
Add this
|
|
13
|
+
Add this to your application's Gemfile:
|
|
9
14
|
|
|
10
15
|
```ruby
|
|
11
16
|
group :development do
|
|
@@ -13,31 +18,80 @@ group :development do
|
|
|
13
18
|
end
|
|
14
19
|
```
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$ bundle
|
|
21
|
+
Then run:
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
```
|
|
24
|
+
bundle install
|
|
25
|
+
```
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
Or install it yourself:
|
|
23
28
|
|
|
29
|
+
```
|
|
30
|
+
gem install guard-slimlint
|
|
31
|
+
```
|
|
24
32
|
|
|
25
33
|
## Usage
|
|
26
|
-
After gem instalation generate an empty ```Guardfile``` with:
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
and run guard through Bundler with:
|
|
35
|
+
Add the plugin to your Guardfile:
|
|
31
36
|
|
|
32
|
-
|
|
37
|
+
```
|
|
38
|
+
bundle exec guard init slimlint
|
|
39
|
+
```
|
|
33
40
|
|
|
41
|
+
Then start Guard:
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
```
|
|
44
|
+
bundle exec guard
|
|
45
|
+
```
|
|
36
46
|
|
|
37
|
-
|
|
47
|
+
Linting itself is configured by slim-lint, not by this plugin. Put a
|
|
48
|
+
`.slim-lint.yml` in your project root to choose linters and their options.
|
|
38
49
|
|
|
50
|
+
## Options
|
|
39
51
|
|
|
40
|
-
|
|
52
|
+
```ruby
|
|
53
|
+
guard :slimlint, notify_on: :failure, all_on_start: true do
|
|
54
|
+
watch(%r{^app/views/.+\.slim$})
|
|
55
|
+
end
|
|
56
|
+
```
|
|
41
57
|
|
|
42
|
-
|
|
58
|
+
| Option | Default | Meaning |
|
|
59
|
+
|--------|---------|---------|
|
|
60
|
+
| `notify_on` | `:failure` | When to send a desktop notification. One of `:failure`, `:success`, `:both`, `:none`. |
|
|
61
|
+
| `all_on_start` | `true` | Lint everything once when Guard starts. |
|
|
62
|
+
|
|
63
|
+
Desktop notifications come from Guard itself. On macOS, add
|
|
64
|
+
`terminal-notifier-guard` to your Gemfile to get them.
|
|
65
|
+
|
|
66
|
+
Guard's `halt_on_fail` group option is respected. Put the plugin in a group with
|
|
67
|
+
`halt_on_fail: true` to stop the rest of the group when linting fails.
|
|
68
|
+
|
|
69
|
+
## Exit status handling
|
|
70
|
+
|
|
71
|
+
slim-lint reports its outcome with sysexits codes. This plugin treats status 65
|
|
72
|
+
as "offences were found" and every other non-zero status as slim-lint itself
|
|
73
|
+
failing, which is reported through `Guard::UI.error` with the status. A
|
|
74
|
+
misconfigured `.slim-lint.yml` or a crash is therefore not mistaken for a lint
|
|
75
|
+
failure.
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
bin/setup
|
|
81
|
+
bundle exec rake
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`rake` runs RSpec and RuboCop. The repository has its own Guardfile, so
|
|
85
|
+
`bundle exec guard` will run the suite and the linter as you edit.
|
|
86
|
+
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
Bug reports and pull requests are welcome at
|
|
90
|
+
https://github.com/mike927/guard-slimlint. Contributors are expected to follow
|
|
91
|
+
the [Contributor Covenant](CODE_OF_CONDUCT.md).
|
|
92
|
+
|
|
93
|
+
## License
|
|
43
94
|
|
|
95
|
+
Available as open source under the terms of the
|
|
96
|
+
[MIT License](https://opensource.org/licenses/MIT). See [CHANGELOG.md](CHANGELOG.md)
|
|
97
|
+
for release history.
|
data/lib/guard/slimlint.rb
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'English'
|
|
1
4
|
require 'guard/compat/plugin'
|
|
2
5
|
require 'colorize'
|
|
3
6
|
|
|
4
7
|
module Guard
|
|
5
8
|
class SlimLint < Plugin
|
|
9
|
+
# slim-lint reports its outcome with sysexits(3) codes. Only EX_DATAERR
|
|
10
|
+
# means "the linter ran and found offences"; every other non-zero status is
|
|
11
|
+
# slim-lint itself failing, and must not be reported as a lint failure.
|
|
12
|
+
EXIT_SUCCESS = 0
|
|
13
|
+
EXIT_LINT_FAILURE = 65
|
|
14
|
+
|
|
6
15
|
attr_accessor :notify_on, :all_on_start
|
|
7
16
|
|
|
8
17
|
def initialize(options = {})
|
|
@@ -30,13 +39,47 @@ module Guard
|
|
|
30
39
|
private
|
|
31
40
|
|
|
32
41
|
def run(paths = ['.'])
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
status = lint(paths)
|
|
43
|
+
|
|
44
|
+
case status
|
|
45
|
+
when EXIT_SUCCESS then report_success
|
|
46
|
+
when EXIT_LINT_FAILURE then report_offences
|
|
47
|
+
else report_error(status)
|
|
38
48
|
end
|
|
39
|
-
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Runs slim-lint without a shell, so paths containing spaces or shell
|
|
52
|
+
# metacharacters reach the linter untouched.
|
|
53
|
+
#
|
|
54
|
+
# @param paths [Array<String>]
|
|
55
|
+
# @return [Integer, nil] the exit status, or nil if slim-lint never ran
|
|
56
|
+
def lint(paths)
|
|
57
|
+
system('slim-lint', *paths)
|
|
58
|
+
$CHILD_STATUS&.exitstatus
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def report_success
|
|
62
|
+
UI.info 'No Slim offences detected'.green
|
|
63
|
+
check_and_notify(true)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def report_offences
|
|
67
|
+
UI.info 'Slim offences have been detected'.red
|
|
68
|
+
check_and_notify(false)
|
|
69
|
+
throw :task_has_failed
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def report_error(status)
|
|
73
|
+
message = error_message(status)
|
|
74
|
+
UI.error message
|
|
75
|
+
check_and_notify(false, message)
|
|
76
|
+
throw :task_has_failed
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
def error_message(status)
|
|
80
|
+
return 'slim-lint could not be run' if status.nil?
|
|
81
|
+
|
|
82
|
+
"slim-lint exited with status #{status}"
|
|
40
83
|
end
|
|
41
84
|
|
|
42
85
|
def notification_allowed?(result)
|
|
@@ -44,24 +87,24 @@ module Guard
|
|
|
44
87
|
when :failure then !result
|
|
45
88
|
when :success then result
|
|
46
89
|
when :both then true
|
|
47
|
-
|
|
90
|
+
else false
|
|
48
91
|
end
|
|
49
92
|
end
|
|
50
93
|
|
|
51
|
-
def check_and_notify(result)
|
|
52
|
-
notify(result) if notification_allowed?(result)
|
|
94
|
+
def check_and_notify(result, message = default_message(result))
|
|
95
|
+
notify(result, message) if notification_allowed?(result)
|
|
53
96
|
end
|
|
54
97
|
|
|
55
98
|
def image(result)
|
|
56
99
|
result ? :success : :failed
|
|
57
100
|
end
|
|
58
101
|
|
|
59
|
-
def
|
|
102
|
+
def default_message(result)
|
|
60
103
|
result ? 'No slim offences' : 'Slim offences detected'
|
|
61
104
|
end
|
|
62
105
|
|
|
63
|
-
def notify(result)
|
|
64
|
-
Notifier.notify(message
|
|
106
|
+
def notify(result, message = default_message(result))
|
|
107
|
+
Notifier.notify(message, title: 'Slim-lint results', image: image(result))
|
|
65
108
|
end
|
|
66
109
|
end
|
|
67
110
|
end
|
metadata
CHANGED
|
@@ -1,165 +1,177 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guard-slimlint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michal Gajowiak
|
|
8
|
-
autorequire:
|
|
9
|
-
bindir:
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-09-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: colorize
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.16'
|
|
20
17
|
- - ">="
|
|
21
18
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
23
|
-
|
|
19
|
+
version: '0.8'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '2.0'
|
|
23
|
+
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - "~>"
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: '1.16'
|
|
30
27
|
- - ">="
|
|
31
28
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
29
|
+
version: '0.8'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.0'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
34
|
+
name: guard
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
40
|
-
|
|
39
|
+
version: '2.14'
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
41
45
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
43
|
-
|
|
46
|
+
version: '2.14'
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: guard-compat
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.2'
|
|
54
|
+
type: :runtime
|
|
44
55
|
prerelease: false
|
|
45
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
57
|
requirements:
|
|
47
58
|
- - "~>"
|
|
48
59
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
60
|
+
version: '1.2'
|
|
61
|
+
- !ruby/object:Gem::Dependency
|
|
62
|
+
name: slim_lint
|
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
50
65
|
- - ">="
|
|
51
66
|
- !ruby/object:Gem::Version
|
|
52
|
-
version:
|
|
67
|
+
version: '0.20'
|
|
68
|
+
- - "<"
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '2.0'
|
|
71
|
+
type: :runtime
|
|
72
|
+
prerelease: false
|
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0.20'
|
|
78
|
+
- - "<"
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '2.0'
|
|
53
81
|
- !ruby/object:Gem::Dependency
|
|
54
|
-
name:
|
|
82
|
+
name: rake
|
|
55
83
|
requirement: !ruby/object:Gem::Requirement
|
|
56
84
|
requirements:
|
|
57
85
|
- - "~>"
|
|
58
86
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '
|
|
87
|
+
version: '13.0'
|
|
60
88
|
type: :development
|
|
61
89
|
prerelease: false
|
|
62
90
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
91
|
requirements:
|
|
64
92
|
- - "~>"
|
|
65
93
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '
|
|
94
|
+
version: '13.0'
|
|
67
95
|
- !ruby/object:Gem::Dependency
|
|
68
|
-
name:
|
|
96
|
+
name: rspec
|
|
69
97
|
requirement: !ruby/object:Gem::Requirement
|
|
70
98
|
requirements:
|
|
71
99
|
- - "~>"
|
|
72
100
|
- !ruby/object:Gem::Version
|
|
73
|
-
version:
|
|
74
|
-
type: :
|
|
101
|
+
version: '3.13'
|
|
102
|
+
type: :development
|
|
75
103
|
prerelease: false
|
|
76
104
|
version_requirements: !ruby/object:Gem::Requirement
|
|
77
105
|
requirements:
|
|
78
106
|
- - "~>"
|
|
79
107
|
- !ruby/object:Gem::Version
|
|
80
|
-
version:
|
|
108
|
+
version: '3.13'
|
|
81
109
|
- !ruby/object:Gem::Dependency
|
|
82
|
-
name:
|
|
110
|
+
name: rubocop
|
|
83
111
|
requirement: !ruby/object:Gem::Requirement
|
|
84
112
|
requirements:
|
|
85
113
|
- - "~>"
|
|
86
114
|
- !ruby/object:Gem::Version
|
|
87
|
-
version: '
|
|
88
|
-
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version: 2.14.2
|
|
91
|
-
type: :runtime
|
|
115
|
+
version: '1.75'
|
|
116
|
+
type: :development
|
|
92
117
|
prerelease: false
|
|
93
118
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
119
|
requirements:
|
|
95
120
|
- - "~>"
|
|
96
121
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: '
|
|
98
|
-
- - ">="
|
|
99
|
-
- !ruby/object:Gem::Version
|
|
100
|
-
version: 2.14.2
|
|
122
|
+
version: '1.75'
|
|
101
123
|
- !ruby/object:Gem::Dependency
|
|
102
|
-
name:
|
|
124
|
+
name: rubocop-rake
|
|
103
125
|
requirement: !ruby/object:Gem::Requirement
|
|
104
126
|
requirements:
|
|
105
127
|
- - "~>"
|
|
106
128
|
- !ruby/object:Gem::Version
|
|
107
|
-
version: '
|
|
108
|
-
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 1.2.1
|
|
111
|
-
type: :runtime
|
|
129
|
+
version: '0.7'
|
|
130
|
+
type: :development
|
|
112
131
|
prerelease: false
|
|
113
132
|
version_requirements: !ruby/object:Gem::Requirement
|
|
114
133
|
requirements:
|
|
115
134
|
- - "~>"
|
|
116
135
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
118
|
-
- - ">="
|
|
119
|
-
- !ruby/object:Gem::Version
|
|
120
|
-
version: 1.2.1
|
|
136
|
+
version: '0.7'
|
|
121
137
|
- !ruby/object:Gem::Dependency
|
|
122
|
-
name:
|
|
138
|
+
name: rubocop-rspec
|
|
123
139
|
requirement: !ruby/object:Gem::Requirement
|
|
124
140
|
requirements:
|
|
125
141
|
- - "~>"
|
|
126
142
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: 0
|
|
128
|
-
type: :
|
|
143
|
+
version: '3.0'
|
|
144
|
+
type: :development
|
|
129
145
|
prerelease: false
|
|
130
146
|
version_requirements: !ruby/object:Gem::Requirement
|
|
131
147
|
requirements:
|
|
132
148
|
- - "~>"
|
|
133
149
|
- !ruby/object:Gem::Version
|
|
134
|
-
version: 0
|
|
135
|
-
description:
|
|
150
|
+
version: '3.0'
|
|
151
|
+
description: Runs slim-lint every time a Slim template is added or modified, and reports
|
|
152
|
+
the result through Guard notifications.
|
|
136
153
|
email:
|
|
137
|
-
- michal.gajowiak.927@gmail.
|
|
154
|
+
- michal.gajowiak.927@gmail.com
|
|
138
155
|
executables: []
|
|
139
156
|
extensions: []
|
|
140
157
|
extra_rdoc_files: []
|
|
141
158
|
files:
|
|
142
|
-
-
|
|
143
|
-
- ".rspec"
|
|
144
|
-
- ".rubocop.yml"
|
|
145
|
-
- ".travis.yml"
|
|
146
|
-
- CODE_OF_CONDUCT.md
|
|
147
|
-
- Gemfile
|
|
148
|
-
- Guardfile
|
|
159
|
+
- CHANGELOG.md
|
|
149
160
|
- LICENSE.txt
|
|
150
161
|
- README.md
|
|
151
|
-
- Rakefile
|
|
152
|
-
- bin/console
|
|
153
|
-
- bin/setup
|
|
154
|
-
- guard-slimlint.gemspec
|
|
155
162
|
- lib/guard/slimlint.rb
|
|
156
163
|
- lib/guard/slimlint/templates/Guardfile
|
|
157
164
|
- lib/guard/slimlint/version.rb
|
|
158
165
|
homepage: https://github.com/mike927/guard-slimlint
|
|
159
166
|
licenses:
|
|
160
167
|
- MIT
|
|
161
|
-
metadata:
|
|
162
|
-
|
|
168
|
+
metadata:
|
|
169
|
+
homepage_uri: https://github.com/mike927/guard-slimlint
|
|
170
|
+
source_code_uri: https://github.com/mike927/guard-slimlint
|
|
171
|
+
changelog_uri: https://github.com/mike927/guard-slimlint/blob/master/CHANGELOG.md
|
|
172
|
+
bug_tracker_uri: https://github.com/mike927/guard-slimlint/issues
|
|
173
|
+
rubygems_mfa_required: 'true'
|
|
174
|
+
post_install_message:
|
|
163
175
|
rdoc_options: []
|
|
164
176
|
require_paths:
|
|
165
177
|
- lib
|
|
@@ -167,16 +179,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
167
179
|
requirements:
|
|
168
180
|
- - ">="
|
|
169
181
|
- !ruby/object:Gem::Version
|
|
170
|
-
version: '
|
|
182
|
+
version: '3.1'
|
|
171
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
184
|
requirements:
|
|
173
185
|
- - ">="
|
|
174
186
|
- !ruby/object:Gem::Version
|
|
175
187
|
version: '0'
|
|
176
188
|
requirements: []
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
signing_key:
|
|
189
|
+
rubygems_version: 3.4.10
|
|
190
|
+
signing_key:
|
|
180
191
|
specification_version: 4
|
|
181
|
-
summary: Guard
|
|
192
|
+
summary: Guard plugin that runs slim-lint automatically
|
|
182
193
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Contributor Code of Conduct
|
|
2
|
-
|
|
3
|
-
As contributors and maintainers of this project, and in the interest of
|
|
4
|
-
fostering an open and welcoming community, we pledge to respect all people who
|
|
5
|
-
contribute through reporting issues, posting feature requests, updating
|
|
6
|
-
documentation, submitting pull requests or patches, and other activities.
|
|
7
|
-
|
|
8
|
-
We are committed to making participation in this project a harassment-free
|
|
9
|
-
experience for everyone, regardless of level of experience, gender, gender
|
|
10
|
-
identity and expression, sexual orientation, disability, personal appearance,
|
|
11
|
-
body size, race, ethnicity, age, religion, or nationality.
|
|
12
|
-
|
|
13
|
-
Examples of unacceptable behavior by participants include:
|
|
14
|
-
|
|
15
|
-
* The use of sexualized language or imagery
|
|
16
|
-
* Personal attacks
|
|
17
|
-
* Trolling or insulting/derogatory comments
|
|
18
|
-
* Public or private harassment
|
|
19
|
-
* Publishing other's private information, such as physical or electronic
|
|
20
|
-
addresses, without explicit permission
|
|
21
|
-
* Other unethical or unprofessional conduct
|
|
22
|
-
|
|
23
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
24
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
25
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
26
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
27
|
-
threatening, offensive, or harmful.
|
|
28
|
-
|
|
29
|
-
By adopting this Code of Conduct, project maintainers commit themselves to
|
|
30
|
-
fairly and consistently applying these principles to every aspect of managing
|
|
31
|
-
this project. Project maintainers who do not follow or enforce the Code of
|
|
32
|
-
Conduct may be permanently removed from the project team.
|
|
33
|
-
|
|
34
|
-
This code of conduct applies both within project spaces and in public spaces
|
|
35
|
-
when an individual is representing the project or its community.
|
|
36
|
-
|
|
37
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
38
|
-
reported by contacting a project maintainer at michal.gajowiak.927@gmail.com. All
|
|
39
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
40
|
-
is deemed necessary and appropriate to the circumstances. Maintainers are
|
|
41
|
-
obligated to maintain confidentiality with regard to the reporter of an
|
|
42
|
-
incident.
|
|
43
|
-
|
|
44
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
45
|
-
version 1.3.0, available at
|
|
46
|
-
[http://contributor-covenant.org/version/1/3/0/][version]
|
|
47
|
-
|
|
48
|
-
[homepage]: http://contributor-covenant.org
|
|
49
|
-
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
DELETED
data/Guardfile
DELETED
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require 'bundler/setup'
|
|
4
|
-
require 'guard/slimlint'
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require 'irb'
|
|
14
|
-
IRB.start
|
data/bin/setup
DELETED
data/guard-slimlint.gemspec
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path('lib', __dir__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require 'guard/slimlint/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'guard-slimlint'
|
|
7
|
-
spec.version = Guard::SlimLintVersion::VERSION
|
|
8
|
-
spec.authors = ['Michal Gajowiak']
|
|
9
|
-
spec.email = ['michal.gajowiak.927@gmail.cok']
|
|
10
|
-
|
|
11
|
-
spec.summary = 'Guard::SlimLint runs slim-lint automatically'
|
|
12
|
-
spec.homepage = 'https://github.com/mike927/guard-slimlint'
|
|
13
|
-
spec.license = 'MIT'
|
|
14
|
-
|
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
16
|
-
spec.bindir = 'exe'
|
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
18
|
-
spec.require_paths = ['lib']
|
|
19
|
-
|
|
20
|
-
spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.1'
|
|
21
|
-
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
|
|
22
|
-
spec.add_development_dependency 'rspec', '~> 3.7'
|
|
23
|
-
|
|
24
|
-
spec.add_runtime_dependency 'colorize', '~> 0.8.1'
|
|
25
|
-
spec.add_runtime_dependency 'guard', '~> 2.14', '>= 2.14.2'
|
|
26
|
-
spec.add_runtime_dependency 'guard-compat', '~> 1.2', '>= 1.2.1'
|
|
27
|
-
spec.add_runtime_dependency 'slim_lint', '~> 0.15.1'
|
|
28
|
-
end
|