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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dc6e6da8e4d930254084dea7a146af0f6e511c370511afeeeac9aedd937baf7
4
- data.tar.gz: 4aa6f9f27f6e5af52c0df9fefded468d8acb38228543a4cb7cda539dd1bf0c6d
3
+ metadata.gz: 10ac4777fb8f23569cc65a32c7f8fe71ed416eefdc156451e5692e51f909b666
4
+ data.tar.gz: 3435caa0f0696aac287ae18d39101b58410e1308d55d2bd850b71719853251ab
5
5
  SHA512:
6
- metadata.gz: 31207d2db7f4192efe02eb12250ef2772ea47c3fa10f34fc33d716b0d515f5bf47ac97bc18d201a5b76e2540485e0a2ef03feb70a970339a21c8757aba14b5b7
7
- data.tar.gz: cdea19edb442e6040ab4ac120d4d03b127b2e8508eebb8dc46d500ed0ea5e633a4ae639492606925804ed107c4c4113669f3e4c9347c6d60d3003eefcd522b87
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
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.5
3
3
 
4
4
  LineLength:
5
5
  Max: 120
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.2.0
4
+
5
+ * Drop support for HAML-Lint v0.34.x or older
6
+ * Drop support for Ruby 2.4 or older
7
+
3
8
  ## v1.1.0
4
9
 
5
10
  * Drop support for Ruby 2.3 or older
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2018 Yasuhiko Katoh
1
+ Copyright (c) 2016-2022 Yasuhiko Katoh
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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://travis-ci.org/yatmsu/guard-haml-lint.svg)](https://travis-ci.org/yatmsu/guard-haml-lint)
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.4+
11
+ * Ruby 2.5+
12
+ * Haml-Lint 0.35.0+
12
13
 
13
14
  ## Installation
14
15
 
data/Rakefile CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  require 'bundler/gem_tasks'
4
4
  require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RuboCop::RakeTask.new
5
8
 
6
9
  RSpec::Core::RakeTask.new(:spec)
7
10
 
8
- task default: :spec
11
+ task default: %i[rubocop spec]
@@ -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.4.0'
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', '>= 0.30.0'
28
+ spec.add_runtime_dependency 'haml_lint', '~> 0.35'
29
29
 
30
- spec.add_development_dependency 'bundler', '>= 1.0.0'
31
- spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
32
- spec.add_development_dependency 'rake', '~> 10.0'
33
- spec.add_development_dependency 'rspec', '~> 3.6.0'
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
@@ -3,6 +3,6 @@
3
3
  module Guard
4
4
  # guard-haml_lint version class
5
5
  class HamlLintVersion
6
- VERSION = '1.1.0'
6
+ VERSION = '1.2.0'
7
7
  end
8
8
  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.1.0
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: 2019-09-22 00:00:00.000000000 Z
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.30.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.30.0
54
+ version: '0.35'
55
55
  - !ruby/object:Gem::Dependency
56
- name: bundler
56
+ name: guard-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.0
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: 1.0.0
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.3.0
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.3.0
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: '10.0'
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: '10.0'
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.6.0
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.6.0
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.4.0
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.0.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:
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- before_install:
4
- - gem i rubygems-update -v '<3' && update_rubygems
5
- - gem install bundler -v 1.17.3
6
-
7
- rvm:
8
- - 2.4.7
9
- - 2.5.6
10
- - 2.6.4
11
-
12
- script:
13
- - bundle exec rspec spec