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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41793f14a566da67e7fb21d6b69d203cb20d5bcb1d3a03c4b704353307e74e0d
4
- data.tar.gz: 48b9767b02447f6e4c012aa3f2f3de7327e754cf502861f5d068337e8261b865
3
+ metadata.gz: 1e92baf968e0cbac054206ecf9fd7dfc4abbb5a9e82f1130734bdecdd21fa453
4
+ data.tar.gz: 2ad77b37c31cfbe6fef9a99795269adab16b386e74a51423e7d6d21f4fdf1b38
5
5
  SHA512:
6
- metadata.gz: 6fa7c93b1cd9b13ff1bf5f5a302e13631f70ccd93ac7e189039ebf95dc4710f7c50bcbf10f58f809d714746c436c8ed55c5b079bfb04f8c799777687ce317aac
7
- data.tar.gz: 34077670cfc6117bc715e2ccbc2fdff75f2cb657c673f5a944e43e87b3e69f089f1519a7c0d0c75b61f4961806de0ef54eac41c232272f808bb351831e78b094
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
@@ -6,3 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ Gemfile.lock
10
+
data/.rubocop.yml ADDED
@@ -0,0 +1,17 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+
4
+ LineLength:
5
+ Max: 120
6
+
7
+ RegexpLiteral:
8
+ Exclude:
9
+ - '**/*.gemspec'
10
+ - '**/Guardfile'
11
+
12
+ Metrics/BlockLength:
13
+ Exclude:
14
+ - 'spec/**/*'
15
+
16
+ Style/MutableConstant:
17
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Changelog
2
+
3
+ ## v1.2.0
4
+
5
+ * Drop support for Ruby 2.4 or older
6
+
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Yasuhiko Katoh
3
+ Copyright (c) 2022 Yasuhiko Katoh
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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://travis-ci.org/yatmsu/guard-slim-lint.svg?branch=master)](https://travis-ci.org/yatmsu/guard-slim-lint)
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.4+
11
+ * Ruby 2.5+
12
12
  * Slim-Lint 0.17.0+
13
13
 
14
14
  ## Installation
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'guard/slim_lint'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
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.4.0'
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', '>= 0.17.0'
29
+ spec.add_runtime_dependency 'slim_lint', '~> 0.17'
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 2.1.4'
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Guard-SlimLint supports a lot options with default values:
2
4
  # all_on_start: true # Check all files at Guard startup. default: true
3
5
  # slim_dires: ['app/views'] # Check Directories. default: 'app/views' or '.'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Guard
4
4
  class SlimLintVersion
5
- VERSION = '1.1.0'
5
+ VERSION = '1.2.0'
6
6
  end
7
7
  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.1.0
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: 2020-08-08 00:00:00.000000000 Z
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.0
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: 0.17.0
68
+ version: 4.7.3
55
69
  - !ruby/object:Gem::Dependency
56
- name: bundler
70
+ name: guard-rubocop
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 2.1.4
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: 2.1.4
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
- - ".travis.yml"
122
+ - ".rubocop.yml"
123
+ - CHANGELOG.md
107
124
  - CODE_OF_CONDUCT.md
108
125
  - Gemfile
109
- - Gemfile.lock
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.4.0
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.1.2
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
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.4.9
4
- - 2.5.8
5
- - 2.6.6
6
- - 2.7.1
7
-
8
- script:
9
- - bundle exec rspec spec
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