pronto-scss 0.7.1 → 0.11.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 +5 -5
- data/.github/CODEOWNERS +3 -0
- data/.github/workflows/checks.yml +22 -0
- data/README.md +3 -4
- data/lib/pronto/scss.rb +6 -6
- data/lib/pronto/scss/version.rb +1 -1
- data/pronto-scss.gemspec +4 -4
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e36ea93a2796167a01d2d267e85965169051a81e79bdee65e24f6fe39e5a63c6
|
4
|
+
data.tar.gz: 4745c8d2e2d29c143a81bc46de6ec6868adbe065185b547218b85ab69ede7932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a25821636826ad3d959381191bba45b0de2c432982e22186da85b4f06d2ef9baed73f1b9f5d49ba3aed2af561080467f3588e11fa344be35f655b2d4d0e8acc
|
7
|
+
data.tar.gz: 1348c3fe3da7989a8829b2c1759a66e6b1ce644da796dfa080c59b7a4f7a861b13d91180fbeff91394ad3b81211411efb548f3eeb12581773777aa6873b00240
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
name: Checks
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
ruby:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0']
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
bundler-cache: true
|
21
|
+
- name: rake spec
|
22
|
+
run: bundle exec rake spec
|
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# Pronto runner for SCSS-Lint
|
2
2
|
|
3
|
-
[](https://codeclimate.com/github/prontolabs/pronto-scss)
|
4
|
+
[](https://travis-ci.org/prontolabs/pronto-scss)
|
5
5
|
[](http://badge.fury.io/rb/pronto-scss)
|
6
|
-
[](https://gemnasium.com/mmozuras/pronto-scss)
|
7
6
|
|
8
|
-
Pronto runner for [SCSS-Lint](https://github.com/causes/scss-lint), tool to help keep your SCSS clean and readable. [What is Pronto?](https://github.com/
|
7
|
+
Pronto runner for [SCSS-Lint](https://github.com/causes/scss-lint), tool to help keep your SCSS clean and readable. [What is Pronto?](https://github.com/prontolabs/pronto)
|
9
8
|
|
10
9
|
## Configuration
|
11
10
|
|
data/lib/pronto/scss.rb
CHANGED
@@ -8,7 +8,7 @@ module Pronto
|
|
8
8
|
|
9
9
|
if files.any?
|
10
10
|
files_hash =
|
11
|
-
SCSSLint::FileFinder.new(
|
11
|
+
SCSSLint::FileFinder.new(scss_config).find(files).map do |path|
|
12
12
|
{ path: path }
|
13
13
|
end
|
14
14
|
runner.run(files_hash)
|
@@ -19,11 +19,11 @@ module Pronto
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def runner
|
22
|
-
@runner ||= SCSSLint::Runner.new(
|
22
|
+
@runner ||= SCSSLint::Runner.new(scss_config)
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
26
|
-
@
|
25
|
+
def scss_config
|
26
|
+
@scss_config ||= begin
|
27
27
|
file_name = SCSSLint::Config::FILE_NAME
|
28
28
|
if File.exist?(file_name) || File.symlink?(file_name)
|
29
29
|
SCSSLint::Config.load(file_name)
|
@@ -70,10 +70,10 @@ module Pronto
|
|
70
70
|
|
71
71
|
def scss_files_option_matches?(path)
|
72
72
|
path_string = path.to_s
|
73
|
-
files =
|
73
|
+
files = scss_config.scss_files
|
74
74
|
|
75
75
|
# We use `end_with?` because `path` is a absolute path and the file paths
|
76
|
-
# of `
|
76
|
+
# of `scss_config.scss_files` are relative ones
|
77
77
|
files.any? { |f| path_string.end_with?(f) }
|
78
78
|
end
|
79
79
|
end
|
data/lib/pronto/scss/version.rb
CHANGED
data/pronto-scss.gemspec
CHANGED
@@ -10,13 +10,13 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.author = 'Mindaugas Mozūras'
|
12
12
|
s.email = 'mindaugas.mozuras@gmail.com'
|
13
|
-
s.homepage = 'http://github.
|
13
|
+
s.homepage = 'http://github.com/prontolabs/pronto-scss'
|
14
14
|
s.summary = <<-EOF
|
15
15
|
Pronto runner for SCSS-Lint, tool to help keep your SCSS clean and readable
|
16
16
|
EOF
|
17
17
|
|
18
18
|
s.licenses = ['MIT']
|
19
|
-
s.required_ruby_version = '>= 2.
|
19
|
+
s.required_ruby_version = '>= 2.3.0'
|
20
20
|
s.rubygems_version = '1.8.23'
|
21
21
|
|
22
22
|
s.files = `git ls-files`.split($RS).reject do |file|
|
@@ -35,8 +35,8 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.require_paths = ['lib']
|
36
36
|
|
37
37
|
s.add_runtime_dependency('scss_lint', '~> 0.43', '>= 0.43.0')
|
38
|
-
s.add_runtime_dependency('pronto', '~> 0.
|
39
|
-
s.add_development_dependency('rake', '~>
|
38
|
+
s.add_runtime_dependency('pronto', '~> 0.11.0')
|
39
|
+
s.add_development_dependency('rake', '~> 12.0')
|
40
40
|
s.add_development_dependency('rspec', '~> 3.4')
|
41
41
|
s.add_development_dependency('rspec-its', '~> 1.2')
|
42
42
|
end
|
metadata
CHANGED
@@ -1,63 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-scss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scss_lint
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.43'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 0.43.0
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.43'
|
23
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: '0.43'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 0.43.0
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.43'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pronto
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.11.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
46
|
+
version: 0.11.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '12.0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '12.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rspec
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,12 +94,14 @@ extra_rdoc_files:
|
|
94
94
|
- LICENSE
|
95
95
|
- README.md
|
96
96
|
files:
|
97
|
+
- ".github/CODEOWNERS"
|
98
|
+
- ".github/workflows/checks.yml"
|
97
99
|
- LICENSE
|
98
100
|
- README.md
|
99
101
|
- lib/pronto/scss.rb
|
100
102
|
- lib/pronto/scss/version.rb
|
101
103
|
- pronto-scss.gemspec
|
102
|
-
homepage: http://github.
|
104
|
+
homepage: http://github.com/prontolabs/pronto-scss
|
103
105
|
licenses:
|
104
106
|
- MIT
|
105
107
|
metadata: {}
|
@@ -111,15 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
113
|
requirements:
|
112
114
|
- - ">="
|
113
115
|
- !ruby/object:Gem::Version
|
114
|
-
version: 2.
|
116
|
+
version: 2.3.0
|
115
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
118
|
requirements:
|
117
119
|
- - ">="
|
118
120
|
- !ruby/object:Gem::Version
|
119
121
|
version: '0'
|
120
122
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.5.1
|
123
|
+
rubygems_version: 3.0.3
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: Pronto runner for SCSS-Lint, tool to help keep your SCSS clean and readable
|