scan_left 0.3.0 → 0.3.1
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/dependabot.yml +14 -0
- data/.github/workflows/dependabot-prs.yml +32 -0
- data/.github/workflows/tests.yml +27 -20
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +5 -4
- data/Gemfile.lock +50 -71
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/scan_left/version.rb +1 -1
- data/scan_left.gemspec +2 -4
- metadata +8 -50
- data/.dependabot/config.yml +0 -12
- data/.travis.yml +0 -7
- data/Rakefile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b44a24facdfe1cb6c3ddacbd249c1eee171a1dcdd36a1c17cbbb3d744d0b3fc0
|
4
|
+
data.tar.gz: f6bfaeb6c2ab5effebcfd9f78016e6c0f95b546cdb8eac0bef70a60fa9caf6c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 775ec35bf0b1cc43e8346d32adc5e15592b0364e1a8c1c9e3d0a8f043a039ac055c534099e3e4981344b4b8775e3ac3e98f1fba1eb88009748a7938e78cebbb6
|
7
|
+
data.tar.gz: 548214f3448a0d68ec8c6aa19eb86b4ddf556ec87e986032bbae051da253d9679f470c89a8cdda1ce3e3bb550633864d234325a21432c935ba34b0740fcdc875
|
@@ -0,0 +1,14 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: weekly
|
7
|
+
time: "00:00"
|
8
|
+
timezone: America/New_York
|
9
|
+
open-pull-requests-limit: 99
|
10
|
+
labels:
|
11
|
+
- dependencies
|
12
|
+
- Needs QA
|
13
|
+
allow:
|
14
|
+
- dependency-type: direct
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Dependabot Pull Request
|
2
|
+
on:
|
3
|
+
pull_request_target:
|
4
|
+
types: [opened, synchronize, reopened, labeled]
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
if: ${{ github.actor == 'dependabot[bot]' }}
|
9
|
+
steps:
|
10
|
+
- name: Fetch Dependabot metadata
|
11
|
+
id: dependabot-metadata
|
12
|
+
uses: dependabot/fetch-metadata@v1.1.0
|
13
|
+
with:
|
14
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
15
|
+
- name: Approve and merge Dependabot PRs for development dependencies
|
16
|
+
# Auto-merge the PR if either:
|
17
|
+
# a) it has the `development-dependencies` label, which we add for certain
|
18
|
+
# categories of PRs (see `.github/dependabot.yml`), OR
|
19
|
+
# b) Dependabot has categorized it as a `direct:development` dependency,
|
20
|
+
# meaning it's in the Gemfile in a `development` or `test` group
|
21
|
+
#
|
22
|
+
# Note that we also do nothing when the PR has already had auto-merge
|
23
|
+
# enabled, to prevent scenarios where this check runs many times (for
|
24
|
+
# instance, because removing `Needs QA` triggers another run, or because
|
25
|
+
# other PRs are merging and causing this to rebase and trigger another
|
26
|
+
# run) and then approves the PR many times, which is confusing and looks
|
27
|
+
# awkward.
|
28
|
+
if: ${{ !github.event.pull_request.auto_merge && (contains(github.event.pull_request.labels.*.name, 'development-dependencies') || steps.dependabot-metadata.outputs.dependency-type == 'direct:development') }}
|
29
|
+
run: gh pr merge --auto --merge "$PR_URL" && gh pr edit "$PR_URL" --remove-label "Needs QA" && gh pr review --approve "$PR_URL"
|
30
|
+
env:
|
31
|
+
PR_URL: ${{github.event.pull_request.html_url}}
|
32
|
+
GITHUB_TOKEN: ${{secrets.PANORAMA_BOT_RW_TOKEN}}
|
data/.github/workflows/tests.yml
CHANGED
@@ -1,32 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
name: Main
|
2
|
+
on:
|
3
|
+
pull_request:
|
4
|
+
branches:
|
5
|
+
- main
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- main
|
4
9
|
jobs:
|
5
10
|
ci:
|
6
11
|
name: CI
|
7
12
|
strategy:
|
8
13
|
fail-fast: false
|
9
14
|
matrix:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
CI: true
|
15
|
+
# Due to https://github.com/actions/runner/issues/849, we have to use
|
16
|
+
# quotes for '3.0'. Without quotes, CI runs 3.1.
|
17
|
+
ruby: [ jruby, truffleruby, 2.5, 2.6, 2.7, '3.0', 3.1 ]
|
18
|
+
runs-on: ubuntu-latest
|
15
19
|
steps:
|
16
20
|
- uses: actions/checkout@v2
|
21
|
+
|
22
|
+
# Conditionally configure bundler via environment variables as advised
|
23
|
+
# * https://github.com/ruby/setup-ruby#bundle-config
|
24
|
+
- name: Set bundler environment variables
|
25
|
+
run: |
|
26
|
+
echo "BUNDLE_WITHOUT=checks" >> $GITHUB_ENV
|
27
|
+
if: matrix.ruby != 3.1
|
28
|
+
|
29
|
+
# Use 'bundler-cache: true' instead of actions/cache as advised:
|
30
|
+
# * https://github.com/actions/cache/blob/main/examples.md#ruby---bundler
|
17
31
|
- uses: ruby/setup-ruby@v1
|
18
32
|
with:
|
19
33
|
ruby-version: ${{ matrix.ruby }}
|
20
|
-
|
21
|
-
|
22
|
-
path: vendor/bundle
|
23
|
-
key: bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
|
24
|
-
restore-keys: |
|
25
|
-
bundle-use-ruby-${{ matrix.os }}-${{ matrix.ruby }}-
|
26
|
-
- name: bundle install
|
27
|
-
run: |
|
28
|
-
ruby -v
|
29
|
-
bundle config path vendor/bundle
|
30
|
-
bundle install --jobs 4 --retry 3
|
31
|
-
- run: bundle exec rubocop
|
34
|
+
bundler-cache: true
|
35
|
+
|
32
36
|
- run: bundle exec rspec
|
37
|
+
|
38
|
+
- run: bundle exec rubocop
|
39
|
+
if: matrix.ruby == 3.1
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.3.1] - 2023-06-05
|
10
|
+
### Changed
|
11
|
+
- Changed linting development dependency from `panolint` to `panolint-ruby`.
|
12
|
+
|
9
13
|
## [0.3.0] - 2020-06-30
|
10
14
|
### Added
|
11
15
|
- Dependabot configuration for automatic dependency update PRs
|
data/Gemfile
CHANGED
@@ -2,9 +2,10 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
4
|
|
5
|
-
# Specify your gem's dependencies in scan_left.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
5
|
group :development do
|
9
|
-
gem "
|
6
|
+
gem "rspec", "~> 3.0"
|
7
|
+
end
|
8
|
+
|
9
|
+
group :checks do
|
10
|
+
gem "panolint-ruby", github: "panorama-ed/panolint-ruby", branch: "main"
|
10
11
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,91 +1,70 @@
|
|
1
1
|
GIT
|
2
|
-
remote: https://github.com/panorama-ed/panolint
|
3
|
-
revision:
|
2
|
+
remote: https://github.com/panorama-ed/panolint-ruby
|
3
|
+
revision: 86f87fb9d8b39ce3542342b5583b0ba926e801a2
|
4
|
+
branch: main
|
4
5
|
specs:
|
5
|
-
panolint (0
|
6
|
-
|
7
|
-
rubocop (
|
8
|
-
rubocop-
|
9
|
-
rubocop-rails (~> 2.5)
|
10
|
-
rubocop-rspec (~> 1.39)
|
11
|
-
|
12
|
-
PATH
|
13
|
-
remote: .
|
14
|
-
specs:
|
15
|
-
scan_left (0.3.0)
|
6
|
+
panolint-ruby (0)
|
7
|
+
rubocop (= 1.52.0)
|
8
|
+
rubocop-performance (= 1.18.0)
|
9
|
+
rubocop-rspec (= 2.22.0)
|
16
10
|
|
17
11
|
GEM
|
18
12
|
remote: https://rubygems.org/
|
19
13
|
specs:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
26
|
-
ast (2.4.1)
|
27
|
-
brakeman (4.8.2)
|
28
|
-
concurrent-ruby (1.1.6)
|
29
|
-
diff-lcs (1.3)
|
30
|
-
i18n (1.8.3)
|
31
|
-
concurrent-ruby (~> 1.0)
|
32
|
-
minitest (5.14.1)
|
33
|
-
parallel (1.19.2)
|
34
|
-
parser (2.7.1.4)
|
14
|
+
ast (2.4.2)
|
15
|
+
diff-lcs (1.5.0)
|
16
|
+
json (2.6.3)
|
17
|
+
parallel (1.23.0)
|
18
|
+
parser (3.2.2.1)
|
35
19
|
ast (~> 2.4.1)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
rspec-
|
43
|
-
|
44
|
-
rspec-
|
45
|
-
rspec-
|
46
|
-
rspec-support (~> 3.9.3)
|
47
|
-
rspec-expectations (3.9.2)
|
20
|
+
rainbow (3.1.1)
|
21
|
+
regexp_parser (2.8.0)
|
22
|
+
rexml (3.2.5)
|
23
|
+
rspec (3.12.0)
|
24
|
+
rspec-core (~> 3.12.0)
|
25
|
+
rspec-expectations (~> 3.12.0)
|
26
|
+
rspec-mocks (~> 3.12.0)
|
27
|
+
rspec-core (3.12.0)
|
28
|
+
rspec-support (~> 3.12.0)
|
29
|
+
rspec-expectations (3.12.0)
|
48
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-mocks (3.
|
31
|
+
rspec-support (~> 3.12.0)
|
32
|
+
rspec-mocks (3.12.0)
|
51
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-support (3.
|
54
|
-
rubocop (
|
34
|
+
rspec-support (~> 3.12.0)
|
35
|
+
rspec-support (3.12.0)
|
36
|
+
rubocop (1.52.0)
|
37
|
+
json (~> 2.3)
|
55
38
|
parallel (~> 1.10)
|
56
|
-
parser (>= 2.
|
39
|
+
parser (>= 3.2.0.0)
|
57
40
|
rainbow (>= 2.2.2, < 4.0)
|
58
|
-
regexp_parser (>= 1.
|
59
|
-
rexml
|
60
|
-
rubocop-ast (>=
|
41
|
+
regexp_parser (>= 1.8, < 3.0)
|
42
|
+
rexml (>= 3.2.5, < 4.0)
|
43
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
61
44
|
ruby-progressbar (~> 1.7)
|
62
|
-
unicode-display_width (>=
|
63
|
-
rubocop-ast (
|
64
|
-
parser (>= 2.
|
65
|
-
rubocop-
|
66
|
-
rubocop (
|
67
|
-
rubocop-
|
68
|
-
|
69
|
-
|
70
|
-
rubocop (>=
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
unicode-display_width (
|
78
|
-
zeitwerk (2.3.0)
|
45
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
46
|
+
rubocop-ast (1.29.0)
|
47
|
+
parser (>= 3.2.1.0)
|
48
|
+
rubocop-capybara (2.18.0)
|
49
|
+
rubocop (~> 1.41)
|
50
|
+
rubocop-factory_bot (2.23.1)
|
51
|
+
rubocop (~> 1.33)
|
52
|
+
rubocop-performance (1.18.0)
|
53
|
+
rubocop (>= 1.7.0, < 2.0)
|
54
|
+
rubocop-ast (>= 0.4.0)
|
55
|
+
rubocop-rspec (2.22.0)
|
56
|
+
rubocop (~> 1.33)
|
57
|
+
rubocop-capybara (~> 2.17)
|
58
|
+
rubocop-factory_bot (~> 2.22)
|
59
|
+
ruby-progressbar (1.13.0)
|
60
|
+
unicode-display_width (2.4.2)
|
79
61
|
|
80
62
|
PLATFORMS
|
81
63
|
ruby
|
82
64
|
|
83
65
|
DEPENDENCIES
|
84
|
-
|
85
|
-
panolint!
|
86
|
-
rake (~> 13.0)
|
66
|
+
panolint-ruby!
|
87
67
|
rspec (~> 3.0)
|
88
|
-
scan_left!
|
89
68
|
|
90
69
|
BUNDLED WITH
|
91
|
-
2.
|
70
|
+
2.3.22
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# scan_left
|
2
|
-

|
2
|
+
[](https://github.com/panorama-ed/scan_left/actions?query=workflow%3ATests)
|
3
3
|
|
4
4
|
[](http://rubydoc.info/github/panorama-ed/scan_left)
|
5
5
|
[](http://inch-ci.org/github/panorama-ed/scan_left)
|
data/lib/scan_left/version.rb
CHANGED
data/scan_left.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.metadata["homepage_uri"] = spec.homepage
|
23
23
|
spec.metadata["source_code_uri"] = spec.homepage
|
24
24
|
spec.metadata["changelog_uri"] =
|
25
|
-
"https://github.com/panorama-ed/scan_left/blob/
|
25
|
+
"https://github.com/panorama-ed/scan_left/blob/main/CHANGELOG.md"
|
26
26
|
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/scan_left"
|
27
27
|
else
|
28
28
|
raise "RubyGems 2.0 or newer is required to protect against "\
|
@@ -41,7 +41,5 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
42
42
|
spec.require_paths = ["lib"]
|
43
43
|
|
44
|
-
spec.
|
45
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
46
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
44
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
47
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scan_left
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Siegel
|
@@ -9,50 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: bundler
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - "~>"
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: '2.1'
|
21
|
-
type: :development
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - "~>"
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '2.1'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: rake
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '13.0'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '13.0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: rspec
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - "~>"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '3.0'
|
49
|
-
type: :development
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - "~>"
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '3.0'
|
12
|
+
date: 2023-06-05 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
56
14
|
description: A tiny Ruby gem to provide the 'scan_left' operation on any Ruby Enumerable.
|
57
15
|
email:
|
58
16
|
- marc@usainnov.com
|
@@ -62,19 +20,18 @@ executables: []
|
|
62
20
|
extensions: []
|
63
21
|
extra_rdoc_files: []
|
64
22
|
files:
|
65
|
-
- ".dependabot
|
23
|
+
- ".github/dependabot.yml"
|
24
|
+
- ".github/workflows/dependabot-prs.yml"
|
66
25
|
- ".github/workflows/tests.yml"
|
67
26
|
- ".gitignore"
|
68
27
|
- ".rspec"
|
69
28
|
- ".rubocop.yml"
|
70
|
-
- ".travis.yml"
|
71
29
|
- CHANGELOG.md
|
72
30
|
- CODE_OF_CONDUCT.md
|
73
31
|
- Gemfile
|
74
32
|
- Gemfile.lock
|
75
33
|
- LICENSE
|
76
34
|
- README.md
|
77
|
-
- Rakefile
|
78
35
|
- bin/console
|
79
36
|
- bin/setup
|
80
37
|
- lib/scan_left.rb
|
@@ -88,8 +45,9 @@ metadata:
|
|
88
45
|
allowed_push_host: https://rubygems.org/
|
89
46
|
homepage_uri: https://github.com/panorama-ed/scan_left
|
90
47
|
source_code_uri: https://github.com/panorama-ed/scan_left
|
91
|
-
changelog_uri: https://github.com/panorama-ed/scan_left/blob/
|
48
|
+
changelog_uri: https://github.com/panorama-ed/scan_left/blob/main/CHANGELOG.md
|
92
49
|
documentation_uri: https://rubydoc.info/gems/scan_left
|
50
|
+
rubygems_mfa_required: 'true'
|
93
51
|
post_install_message:
|
94
52
|
rdoc_options: []
|
95
53
|
require_paths:
|
@@ -105,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
63
|
- !ruby/object:Gem::Version
|
106
64
|
version: '0'
|
107
65
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.3.7
|
109
67
|
signing_key:
|
110
68
|
specification_version: 4
|
111
69
|
summary: A tiny Ruby gem to provide the 'scan_left' operation on any Ruby Enumerable.
|
data/.dependabot/config.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# Reference: https://dependabot.com/docs/config-file/
|
2
|
-
version: 1
|
3
|
-
update_configs:
|
4
|
-
- package_manager: "ruby:bundler"
|
5
|
-
directory: "/"
|
6
|
-
update_schedule: "live"
|
7
|
-
|
8
|
-
# Automerge development dependencies.
|
9
|
-
automerged_updates:
|
10
|
-
- match:
|
11
|
-
dependency_type: "development"
|
12
|
-
update_type: "all"
|
data/.travis.yml
DELETED