guard-slim_lint 1.0.5 → 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: 9d104e9c677afc455cb9b5a359b1def4ff484a6362133d3c15028bafe1631377
4
- data.tar.gz: 731d6707b0b9182d887f4ca554223fcd13f53c43d8f64ede5e6ce0c5a30d7274
3
+ metadata.gz: 1e92baf968e0cbac054206ecf9fd7dfc4abbb5a9e82f1130734bdecdd21fa453
4
+ data.tar.gz: 2ad77b37c31cfbe6fef9a99795269adab16b386e74a51423e7d6d21f4fdf1b38
5
5
  SHA512:
6
- metadata.gz: 3b95c34aaa4963199a2383f39be99ee648d5378fc2a6dc124d56c069c319ce0b0b87a94dd36a0a4f46eed08355b790155dc1a9a881a48e43a3af08de6dca8e5c
7
- data.tar.gz: f7a4dab0a20d8bddda4c351cde9d20347b60b115abf3990174eacfa7fde9e1969728215b70af9fdf13f56d58cfd61d01390f694ce67cc20ac4d5b58bde19cdbb
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,11 +1,16 @@
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
6
6
 
7
7
  A guard to lint your Slim.
8
8
 
9
+ ## Requirements
10
+
11
+ * Ruby 2.5+
12
+ * Slim-Lint 0.17.0+
13
+
9
14
  ## Installation
10
15
 
11
16
  Add this line to your application's Gemfile:
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.2.6'
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.15.1'
29
+ spec.add_runtime_dependency 'slim_lint', '~> 0.17'
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 1.16'
32
- spec.add_development_dependency 'rake', '~> 10.0'
31
+ spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
32
+ spec.add_development_dependency 'guard-rubocop', '~> 1.5.0'
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.0.5'
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.0.5
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiko Katoh
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-13 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,44 +42,58 @@ 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.15.1
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.15.1
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: '1.16'
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: '1.16'
82
+ version: 1.5.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '10.0'
89
+ version: '12.3'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '10.0'
96
+ version: '12.3'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec
85
99
  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
@@ -120,7 +137,7 @@ homepage: https://github.com/yatmsu/guard-slim-lint
120
137
  licenses:
121
138
  - MIT
122
139
  metadata: {}
123
- post_install_message:
140
+ post_install_message:
124
141
  rdoc_options: []
125
142
  require_paths:
126
143
  - lib
@@ -128,16 +145,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
145
  requirements:
129
146
  - - ">="
130
147
  - !ruby/object:Gem::Version
131
- version: 2.2.6
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
- rubyforge_project:
139
- rubygems_version: 2.7.6
140
- signing_key:
155
+ rubygems_version: 3.3.22
156
+ signing_key:
141
157
  specification_version: 4
142
158
  summary: Guard plugin for Slim-Lint
143
159
  test_files: []
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.10
5
- - 2.3.7
6
- - 2.4.4
7
- - 2.5.1
8
-
9
- before_install: gem install bundler -v 1.16.1
10
- script:
11
- - bundle exec rspec spec
data/Gemfile.lock DELETED
@@ -1,98 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- guard-slim_lint (1.0.5)
5
- guard (~> 2.2)
6
- guard-compat (~> 1.2)
7
- slim_lint (>= 0.15.1)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ast (2.4.0)
13
- coderay (1.1.2)
14
- diff-lcs (1.3)
15
- ffi (1.10.0)
16
- formatador (0.2.5)
17
- guard (2.15.0)
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
- jaro_winkler (1.5.2)
28
- listen (3.1.5)
29
- rb-fsevent (~> 0.9, >= 0.9.4)
30
- rb-inotify (~> 0.9, >= 0.9.7)
31
- ruby_dep (~> 1.2)
32
- lumberjack (1.0.13)
33
- method_source (0.9.2)
34
- nenv (0.3.0)
35
- notiffany (0.1.1)
36
- nenv (~> 0.1)
37
- shellany (~> 0.0)
38
- parallel (1.12.1)
39
- parser (2.5.3.0)
40
- ast (~> 2.4.0)
41
- powerpack (0.1.2)
42
- pry (0.12.2)
43
- coderay (~> 1.1.0)
44
- method_source (~> 0.9.0)
45
- rainbow (3.0.0)
46
- rake (10.5.0)
47
- rb-fsevent (0.10.3)
48
- rb-inotify (0.10.0)
49
- ffi (~> 1.0)
50
- rspec (3.7.0)
51
- rspec-core (~> 3.7.0)
52
- rspec-expectations (~> 3.7.0)
53
- rspec-mocks (~> 3.7.0)
54
- rspec-core (3.7.1)
55
- rspec-support (~> 3.7.0)
56
- rspec-expectations (3.7.0)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.7.0)
59
- rspec-mocks (3.7.0)
60
- diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.7.0)
62
- rspec-support (3.7.1)
63
- rubocop (0.62.0)
64
- jaro_winkler (~> 1.5.1)
65
- parallel (~> 1.10)
66
- parser (>= 2.5, != 2.5.1.1)
67
- powerpack (~> 0.1)
68
- rainbow (>= 2.2.2, < 4.0)
69
- ruby-progressbar (~> 1.7)
70
- unicode-display_width (~> 1.4.0)
71
- ruby-progressbar (1.10.0)
72
- ruby_dep (1.5.0)
73
- shellany (0.0.1)
74
- slim (4.0.1)
75
- temple (>= 0.7.6, < 0.9)
76
- tilt (>= 2.0.6, < 2.1)
77
- slim_lint (0.16.1)
78
- rake (>= 10, < 13)
79
- rubocop (>= 0.50.0)
80
- slim (>= 3.0, < 5.0)
81
- sysexits (~> 1.1)
82
- sysexits (1.2.0)
83
- temple (0.8.0)
84
- thor (0.20.3)
85
- tilt (2.0.9)
86
- unicode-display_width (1.4.1)
87
-
88
- PLATFORMS
89
- ruby
90
-
91
- DEPENDENCIES
92
- bundler (~> 1.16)
93
- guard-slim_lint!
94
- rake (~> 10.0)
95
- rspec (~> 3.7.0)
96
-
97
- BUNDLED WITH
98
- 1.16.4