gemfilelint 0.2.2 → 0.3.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 +4 -4
- data/.github/workflows/main.yml +24 -13
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +18 -15
- data/lib/gemfilelint.rb +7 -6
- data/lib/gemfilelint/version.rb +1 -1
- metadata +7 -8
- data/.mergify.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fbdc920d778da342a2515aef359ddaaeae1e4030285bd1c569ffa70ffe9f60c
|
4
|
+
data.tar.gz: b2cff5a02ee1b73bbd2e6ffb128b483c107f17a30b5e82ae5cb8d7fc53caa964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f073963236cc029fd3de71d2154dc95eea62769748ccbff0a7c1f43c3b57fbf372702a14b858596498b22ccf00e70789fe4a0f56bf789ca29029f3c2a03504b5
|
7
|
+
data.tar.gz: 60e4267ae51763455df8c9136bffd3e9881dbcfde61aaecb19aede9cac67d5f10f03397fe77daefcc49987be1c940ffb981c20f4b4b9b4dbdddc8b34320eff30
|
data/.github/workflows/main.yml
CHANGED
@@ -1,23 +1,34 @@
|
|
1
1
|
name: Main
|
2
|
-
on:
|
2
|
+
on:
|
3
|
+
- push
|
4
|
+
- pull_request_target
|
3
5
|
jobs:
|
4
6
|
ci:
|
5
7
|
name: CI
|
6
8
|
runs-on: ubuntu-latest
|
9
|
+
env:
|
10
|
+
CI: true
|
7
11
|
steps:
|
8
12
|
- uses: actions/checkout@master
|
9
13
|
- uses: ruby/setup-ruby@v1
|
10
14
|
with:
|
11
|
-
ruby-version:
|
12
|
-
|
15
|
+
ruby-version: 3.0
|
16
|
+
bundler-cache: true
|
17
|
+
- name: Lint and test
|
18
|
+
run: |
|
19
|
+
bundle exec rubocop --parallel
|
20
|
+
bundle exec rake test
|
21
|
+
automerge:
|
22
|
+
name: AutoMerge
|
23
|
+
needs: ci
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
if: github.event_name == 'pull_request_target' && (github.actor == github.repository_owner || github.actor == 'dependabot[bot]')
|
26
|
+
steps:
|
27
|
+
- uses: actions/github-script@v3
|
13
28
|
with:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- run: bundle exec rubocop --parallel
|
21
|
-
- run: bundle exec rake test
|
22
|
-
env:
|
23
|
-
CI: true
|
29
|
+
script: |
|
30
|
+
github.pulls.merge({
|
31
|
+
owner: context.payload.repository.owner.login,
|
32
|
+
repo: context.payload.repository.name,
|
33
|
+
pull_number: context.payload.pull_request.number
|
34
|
+
})
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.3.0] - 2021-03-29
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Support the renamed rubygems source instance variable.
|
14
|
+
|
9
15
|
## [0.2.2] - 2020-04-23
|
10
16
|
|
11
17
|
### Changed
|
@@ -30,7 +36,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
30
36
|
|
31
37
|
- 🎉 Initial release.
|
32
38
|
|
33
|
-
[unreleased]: https://github.com/kddeisz/gemfilelint/compare/v0.
|
39
|
+
[unreleased]: https://github.com/kddeisz/gemfilelint/compare/v0.3.0...HEAD
|
40
|
+
[0.3.0]: https://github.com/kddeisz/gemfilelint/compare/v0.2.2...v0.3.0
|
34
41
|
[0.2.2]: https://github.com/kddeisz/gemfilelint/compare/v0.2.1...v0.2.2
|
35
42
|
[0.2.1]: https://github.com/kddeisz/gemfilelint/compare/v0.2.0...v0.2.1
|
36
43
|
[0.2.0]: https://github.com/kddeisz/gemfilelint/compare/v0.1.0...v0.2.0
|
data/Gemfile.lock
CHANGED
@@ -1,31 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gemfilelint (0.
|
4
|
+
gemfilelint (0.3.0)
|
5
5
|
bundler
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
ast (~> 2.4.0)
|
10
|
+
ast (2.4.2)
|
11
|
+
minitest (5.14.4)
|
12
|
+
parallel (1.20.1)
|
13
|
+
parser (3.0.0.0)
|
14
|
+
ast (~> 2.4.1)
|
16
15
|
rainbow (3.0.0)
|
17
|
-
rake (13.0.
|
16
|
+
rake (13.0.3)
|
17
|
+
regexp_parser (2.1.1)
|
18
18
|
rexml (3.2.4)
|
19
|
-
rubocop (
|
20
|
-
jaro_winkler (~> 1.5.1)
|
19
|
+
rubocop (1.12.0)
|
21
20
|
parallel (~> 1.10)
|
22
|
-
parser (>=
|
21
|
+
parser (>= 3.0.0.0)
|
23
22
|
rainbow (>= 2.2.2, < 4.0)
|
23
|
+
regexp_parser (>= 1.8, < 3.0)
|
24
24
|
rexml
|
25
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
25
26
|
ruby-progressbar (~> 1.7)
|
26
|
-
unicode-display_width (>= 1.4.0, <
|
27
|
-
|
28
|
-
|
27
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
28
|
+
rubocop-ast (1.4.1)
|
29
|
+
parser (>= 2.7.1.5)
|
30
|
+
ruby-progressbar (1.11.0)
|
31
|
+
unicode-display_width (2.0.0)
|
29
32
|
|
30
33
|
PLATFORMS
|
31
34
|
ruby
|
@@ -37,4 +40,4 @@ DEPENDENCIES
|
|
37
40
|
rubocop
|
38
41
|
|
39
42
|
BUNDLED WITH
|
40
|
-
2.
|
43
|
+
2.2.15
|
data/lib/gemfilelint.rb
CHANGED
@@ -77,11 +77,12 @@ module Gemfilelint
|
|
77
77
|
|
78
78
|
# Lol wut, there has got to be a better way to do this
|
79
79
|
def remotes
|
80
|
-
dsl
|
81
|
-
|
82
|
-
.instance_variable_get(:@rubygems_aggregate)
|
83
|
-
.
|
84
|
-
|
80
|
+
sources = dsl.instance_variable_get(:@sources)
|
81
|
+
rubygems =
|
82
|
+
sources.instance_variable_get(:@rubygems_aggregate) ||
|
83
|
+
sources.instance_variable_get(:@global_rubygems_source)
|
84
|
+
|
85
|
+
rubygems.remotes.map(&:to_s)
|
85
86
|
end
|
86
87
|
|
87
88
|
def remote_offense_for(uri)
|
@@ -162,7 +163,7 @@ module Gemfilelint
|
|
162
163
|
end
|
163
164
|
|
164
165
|
def make_logger
|
165
|
-
Logger.new(
|
166
|
+
Logger.new($stdout).tap do |creating|
|
166
167
|
creating.level = :info
|
167
168
|
creating.formatter = ->(*, message) { message }
|
168
169
|
end
|
data/lib/gemfilelint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemfilelint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Deisz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- kevin.deisz@gmail.com
|
72
72
|
executables:
|
@@ -77,7 +77,6 @@ files:
|
|
77
77
|
- ".github/dependabot.yml"
|
78
78
|
- ".github/workflows/main.yml"
|
79
79
|
- ".gitignore"
|
80
|
-
- ".mergify.yml"
|
81
80
|
- ".rubocop.yml"
|
82
81
|
- CHANGELOG.md
|
83
82
|
- CODE_OF_CONDUCT.md
|
@@ -98,7 +97,7 @@ homepage: https://github.com/kddeisz/gemfilelint
|
|
98
97
|
licenses:
|
99
98
|
- MIT
|
100
99
|
metadata: {}
|
101
|
-
post_install_message:
|
100
|
+
post_install_message:
|
102
101
|
rdoc_options: []
|
103
102
|
require_paths:
|
104
103
|
- lib
|
@@ -113,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
112
|
- !ruby/object:Gem::Version
|
114
113
|
version: '0'
|
115
114
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
117
|
-
signing_key:
|
115
|
+
rubygems_version: 3.2.3
|
116
|
+
signing_key:
|
118
117
|
specification_version: 4
|
119
118
|
summary: Lint your Gemfile!
|
120
119
|
test_files: []
|