guard-haml_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 +34 -0
- data/.github/workflows/tests.yml +34 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/Guardfile +26 -0
- data/MIT-LICENSE +1 -1
- data/README.md +3 -2
- data/Rakefile +4 -1
- data/guard-haml_lint.gemspec +6 -6
- data/lib/guard/hamllint/version.rb +1 -1
- metadata +24 -23
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ac4777fb8f23569cc65a32c7f8fe71ed416eefdc156451e5692e51f909b666
|
4
|
+
data.tar.gz: 3435caa0f0696aac287ae18d39101b58410e1308d55d2bd850b71719853251ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c026e494871a1a36339b97a54dc77a7c385a69bfe26b32a59fe638eeb9df6eaa6319e2c5bbc258294b6016d60f83be962e48411578260967f8fbba1eee729c81
|
7
|
+
data.tar.gz: 20c274be31282cfb783b1ce7a0f893ced94f25a6b31e1a5eec9c1cf0cee8386534a8d455b8dbd41561d07c29407e6599a4f43d7acd993f83e6ed7964ea87c3d6
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
name: Lint
|
8
|
+
on:
|
9
|
+
push:
|
10
|
+
branches: [ master ]
|
11
|
+
pull_request:
|
12
|
+
branches: [ master ]
|
13
|
+
jobs:
|
14
|
+
rubocop:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby-version:
|
19
|
+
- "2.5.9"
|
20
|
+
- "2.6.9"
|
21
|
+
- "2.7.6"
|
22
|
+
- "3.0.4"
|
23
|
+
- "3.1.2"
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
27
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
28
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
32
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
33
|
+
- name: Run Rubocop
|
34
|
+
run: bundle exec rubocop
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
name: Tests
|
8
|
+
on:
|
9
|
+
push:
|
10
|
+
branches: [ master ]
|
11
|
+
pull_request:
|
12
|
+
branches: [ master ]
|
13
|
+
jobs:
|
14
|
+
rspec:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby-version:
|
19
|
+
- "2.5.9"
|
20
|
+
- "2.6.9"
|
21
|
+
- "2.7.6"
|
22
|
+
- "3.0.4"
|
23
|
+
- "3.1.2"
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
27
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
28
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
29
|
+
uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{ matrix.ruby-version }}
|
32
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
33
|
+
- name: Run RSpec
|
34
|
+
run: bundle exec rspec
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Guardfile
CHANGED
@@ -21,3 +21,29 @@ guard :rubocop do
|
|
21
21
|
watch(%r{.+\.rb$})
|
22
22
|
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
23
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/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/guard-haml_lint.svg)](https://badge.fury.io/rb/guard-haml_lint)
|
2
|
-
[![Build Status](https://
|
2
|
+
[![Build Status](https://github.com/yatmsu/guard-haml-lint/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/yatmsu/guard-haml-lint/actions/workflows/tests.yml?branch=master)
|
3
3
|
[![Code Climate](https://codeclimate.com/github/yatmsu/guard-haml-lint/badges/gpa.svg)](https://codeclimate.com/github/yatmsu/guard-haml-lint)
|
4
4
|
|
5
5
|
# Guard::HamlLint
|
@@ -8,7 +8,8 @@ A guard to lint your Haml.
|
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
11
|
-
* Ruby 2.
|
11
|
+
* Ruby 2.5+
|
12
|
+
* Haml-Lint 0.35.0+
|
12
13
|
|
13
14
|
## Installation
|
14
15
|
|
data/Rakefile
CHANGED
data/guard-haml_lint.gemspec
CHANGED
@@ -19,16 +19,16 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.required_ruby_version = '>= 2.
|
22
|
+
spec.required_ruby_version = '>= 2.5.8'
|
23
23
|
|
24
24
|
spec.license = 'MIT'
|
25
25
|
|
26
26
|
spec.add_dependency 'guard', '~> 2.2'
|
27
27
|
spec.add_dependency 'guard-compat', '~> 1.2'
|
28
|
-
spec.add_runtime_dependency 'haml_lint', '
|
28
|
+
spec.add_runtime_dependency 'haml_lint', '~> 0.35'
|
29
29
|
|
30
|
-
spec.add_development_dependency '
|
31
|
-
spec.add_development_dependency 'guard-rubocop', '~> 1.
|
32
|
-
spec.add_development_dependency 'rake', '~>
|
33
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
30
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
31
|
+
spec.add_development_dependency 'guard-rubocop', '~> 1.5.0'
|
32
|
+
spec.add_development_dependency 'rake', '~> 12.3'
|
33
|
+
spec.add_development_dependency 'rspec', '~> 3.9.0'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-haml_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
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -42,72 +42,72 @@ dependencies:
|
|
42
42
|
name: haml_lint
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: '0.35'
|
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
|
-
version: 0.
|
54
|
+
version: '0.35'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: guard-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 4.7.3
|
62
62
|
type: :development
|
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:
|
68
|
+
version: 4.7.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.5.0
|
76
76
|
type: :development
|
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: 1.
|
82
|
+
version: 1.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '12.3'
|
90
90
|
type: :development
|
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: '12.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: 3.9.0
|
104
104
|
type: :development
|
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: 3.
|
110
|
+
version: 3.9.0
|
111
111
|
description: Guard::HamlLint automatically runs Haml Lint tools.
|
112
112
|
email:
|
113
113
|
- toyasyu@gmail.com
|
@@ -115,10 +115,11 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
+
- ".github/workflows/lint.yml"
|
119
|
+
- ".github/workflows/tests.yml"
|
118
120
|
- ".gitignore"
|
119
121
|
- ".rspec"
|
120
122
|
- ".rubocop.yml"
|
121
|
-
- ".travis.yml"
|
122
123
|
- CHANGELOG.md
|
123
124
|
- CODE_OF_CONDUCT.md
|
124
125
|
- Gemfile
|
@@ -138,7 +139,7 @@ homepage: https://github.com/yatmsu/guard-haml-lint
|
|
138
139
|
licenses:
|
139
140
|
- MIT
|
140
141
|
metadata: {}
|
141
|
-
post_install_message:
|
142
|
+
post_install_message:
|
142
143
|
rdoc_options: []
|
143
144
|
require_paths:
|
144
145
|
- lib
|
@@ -146,15 +147,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
147
|
requirements:
|
147
148
|
- - ">="
|
148
149
|
- !ruby/object:Gem::Version
|
149
|
-
version: 2.
|
150
|
+
version: 2.5.8
|
150
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
152
|
requirements:
|
152
153
|
- - ">="
|
153
154
|
- !ruby/object:Gem::Version
|
154
155
|
version: '0'
|
155
156
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
157
|
-
signing_key:
|
157
|
+
rubygems_version: 3.3.22
|
158
|
+
signing_key:
|
158
159
|
specification_version: 4
|
159
160
|
summary: Guard plugin for HAML-Lint
|
160
161
|
test_files:
|