scan_left 0.3.0 → 0.3.1

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: 46844f3491c40b593e0a6919ff9c9a484faa6bce96d5cfa52166d70c3ddd5f47
4
- data.tar.gz: 152a987fb209aafe866a252e13ba5ececcdad242f6f7331e5d8e36224769a123
3
+ metadata.gz: b44a24facdfe1cb6c3ddacbd249c1eee171a1dcdd36a1c17cbbb3d744d0b3fc0
4
+ data.tar.gz: f6bfaeb6c2ab5effebcfd9f78016e6c0f95b546cdb8eac0bef70a60fa9caf6c0
5
5
  SHA512:
6
- metadata.gz: 196da4338c3cebc6206731b926a5e2ed56348ff6450114ed3d6b6c3d855a6e03e6f550dd2849b181d156859fb2a1b04fc81e68f62795acea22cc8edc8e07a961
7
- data.tar.gz: dd111568a9502aa0e43292aab7820779acb4e8df02e5cf9b906a1566f62d27349a2758a28c8b5e3d81aae80875bf25067e4d2d7d76ffdde8d5e2e2b34231dda7
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}}
@@ -1,32 +1,39 @@
1
- # based on https://github.com/ruby/setup-ruby/blob/master/README.md
2
- name: Tests
3
- on: [push, pull_request]
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
- os: [ ubuntu-latest ]
11
- ruby: [ 2.5, 2.6, 2.7, jruby ]
12
- runs-on: ${{ matrix.os }}
13
- env:
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
- - uses: actions/cache@v1
21
- with:
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
@@ -1,5 +1,5 @@
1
1
  inherit_gem:
2
- panolint: rubocop.yml
2
+ panolint-ruby: panolint-ruby-rubocop.yml
3
3
  Metrics/BlockLength:
4
4
  Exclude:
5
5
  - scan_left.gemspec
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 "panolint", github: "panorama-ed/panolint"
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: b5b4fcfb4e304a9edf17b64f34fe6da152e84a72
2
+ remote: https://github.com/panorama-ed/panolint-ruby
3
+ revision: 86f87fb9d8b39ce3542342b5583b0ba926e801a2
4
+ branch: main
4
5
  specs:
5
- panolint (0.1.2)
6
- brakeman (~> 4.8)
7
- rubocop (~> 0.83)
8
- rubocop-performance (~> 1.5)
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
- activesupport (6.0.3.2)
21
- concurrent-ruby (~> 1.0, >= 1.0.2)
22
- i18n (>= 0.7, < 2)
23
- minitest (~> 5.1)
24
- tzinfo (~> 1.1)
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
- rack (2.2.3)
37
- rainbow (3.0.0)
38
- rake (13.0.1)
39
- regexp_parser (1.7.1)
40
- rexml (3.2.4)
41
- rspec (3.9.0)
42
- rspec-core (~> 3.9.0)
43
- rspec-expectations (~> 3.9.0)
44
- rspec-mocks (~> 3.9.0)
45
- rspec-core (3.9.2)
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.9.0)
50
- rspec-mocks (3.9.1)
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.9.0)
53
- rspec-support (3.9.3)
54
- rubocop (0.86.0)
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.7.0.1)
39
+ parser (>= 3.2.0.0)
57
40
  rainbow (>= 2.2.2, < 4.0)
58
- regexp_parser (>= 1.7)
59
- rexml
60
- rubocop-ast (>= 0.0.3, < 1.0)
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 (>= 1.4.0, < 2.0)
63
- rubocop-ast (0.1.0)
64
- parser (>= 2.7.0.1)
65
- rubocop-performance (1.6.1)
66
- rubocop (>= 0.71.0)
67
- rubocop-rails (2.6.0)
68
- activesupport (>= 4.2.0)
69
- rack (>= 1.1)
70
- rubocop (>= 0.82.0)
71
- rubocop-rspec (1.40.0)
72
- rubocop (>= 0.68.1)
73
- ruby-progressbar (1.10.1)
74
- thread_safe (0.3.6)
75
- tzinfo (1.2.7)
76
- thread_safe (~> 0.1)
77
- unicode-display_width (1.7.0)
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
- bundler (~> 2.1)
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.1.4
70
+ 2.3.22
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 Panorama Education
3
+ Copyright (c) 2020-2022 Panorama Education
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,5 +1,5 @@
1
1
  # scan_left
2
- ![Tests](https://github.com/panorama-ed/scan_left/workflows/Tests/badge.svg)
2
+ [![Tests](https://github.com/panorama-ed/scan_left/workflows/Tests/badge.svg)](https://github.com/panorama-ed/scan_left/actions?query=workflow%3ATests)
3
3
 
4
4
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/panorama-ed/scan_left)
5
5
  [![Docs Coverage](http://inch-ci.org/github/panorama-ed/scan_left.png)](http://inch-ci.org/github/panorama-ed/scan_left)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ScanLeft
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
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/master/CHANGELOG.md"
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.add_development_dependency "bundler", "~> 2.1"
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.0
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: 2020-06-30 00:00:00.000000000 Z
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/config.yml"
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/master/CHANGELOG.md
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.1.2
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.
@@ -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
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.8
7
- before_install: gem install bundler -v 1.17.3
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec