gemfilelint 0.2.2 → 0.3.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: 8f2025e559efaef06df84edece55132d34347e701741347391792754f40b7532
4
- data.tar.gz: b300653ed801f9bfe0ac1d59a96927cb1106a28054003381a8c4ab97bb7d57f8
3
+ metadata.gz: 9fbdc920d778da342a2515aef359ddaaeae1e4030285bd1c569ffa70ffe9f60c
4
+ data.tar.gz: b2cff5a02ee1b73bbd2e6ffb128b483c107f17a30b5e82ae5cb8d7fc53caa964
5
5
  SHA512:
6
- metadata.gz: ba95e491dafeeb58bcecd6eb6ff6234f97d3fa7d785a97b706163f3b3f9798b5171d107a8f9111d2390749e346e7616b240100b9ac37adcdd24a1fe6a57c1006
7
- data.tar.gz: b64a59c59e34772ee1c345091b8a20891382c13da89f0569780632cc2d08f6afcaa3dbcc046a437f4967c345e53790b21bce50f7f6ccb083bb762b2a08c4a032
6
+ metadata.gz: f073963236cc029fd3de71d2154dc95eea62769748ccbff0a7c1f43c3b57fbf372702a14b858596498b22ccf00e70789fe4a0f56bf789ca29029f3c2a03504b5
7
+ data.tar.gz: 60e4267ae51763455df8c9136bffd3e9881dbcfde61aaecb19aede9cac67d5f10f03397fe77daefcc49987be1c940ffb981c20f4b4b9b4dbdddc8b34320eff30
@@ -1,23 +1,34 @@
1
1
  name: Main
2
- on: push
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: 2.7
12
- - uses: actions/cache@v1
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
- path: vendor/bundle
15
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
16
- restore-keys: |
17
- ${{ runner.os }}-gems-
18
- - run: bundle config path vendor/bundle
19
- - run: bundle install --jobs 4 --retry 3
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
@@ -5,8 +5,14 @@ AllCops:
5
5
  Exclude:
6
6
  - 'vendor/**/*'
7
7
 
8
+ Gemspec/RequiredRubyVersion:
9
+ Enabled: false
10
+
8
11
  Style/Documentation:
9
12
  Enabled: false
10
13
 
14
+ Style/ExplicitBlockArgument:
15
+ Enabled: false
16
+
11
17
  Style/StructInheritance:
12
18
  Enabled: false
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.2.2...HEAD
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.2.2)
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.0)
11
- jaro_winkler (1.5.4)
12
- minitest (5.14.0)
13
- parallel (1.19.1)
14
- parser (2.7.1.1)
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.1)
16
+ rake (13.0.3)
17
+ regexp_parser (2.1.1)
18
18
  rexml (3.2.4)
19
- rubocop (0.82.0)
20
- jaro_winkler (~> 1.5.1)
19
+ rubocop (1.12.0)
21
20
  parallel (~> 1.10)
22
- parser (>= 2.7.0.1)
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, < 2.0)
27
- ruby-progressbar (1.10.1)
28
- unicode-display_width (1.7.0)
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.1.4
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
- .instance_variable_get(:@sources)
82
- .instance_variable_get(:@rubygems_aggregate)
83
- .remotes
84
- .map(&:to_s)
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(STDOUT).tap do |creating|
166
+ Logger.new($stdout).tap do |creating|
166
167
  creating.level = :info
167
168
  creating.formatter = ->(*, message) { message }
168
169
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemfilelint
4
- VERSION = '0.2.2'
4
+ VERSION = '0.3.0'
5
5
  end
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.2.2
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: 2020-04-23 00:00:00.000000000 Z
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.1.2
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: []
data/.mergify.yml DELETED
@@ -1,10 +0,0 @@
1
- pull_request_rules:
2
- - name: Automatically merge dependencies
3
- conditions:
4
- - base=master
5
- - label=dependencies
6
- - status-success=CI
7
- actions:
8
- merge:
9
- strict: true
10
- delete_head_branch: {}