-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dvandersluis/v1.0
v1.0.0
- Loading branch information
Showing
39 changed files
with
396 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [ "master", "v1.0" ] | ||
pull_request: | ||
branches: [ "master", "v1.0" ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
rubocop: | ||
name: Run Rubocop | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ruby # Latest stable CRuby version | ||
bundler-cache: true | ||
- name: rubocop | ||
run: bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ "master", "v1.0" ] | ||
pull_request: | ||
branches: [ "master", "v1.0" ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', 'head'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run tests | ||
run: bundle exec rspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,60 @@ | ||
inherit_gem: | ||
rubocop_defaults: .rubocop.yml | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- rubocop/cop/internal_affairs | ||
- rubocop-performance | ||
- rubocop-rspec | ||
|
||
inherit_mode: | ||
merge: | ||
- Exclude | ||
- IgnoredMethods | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
NewCops: enable | ||
TargetRubyVersion: 3.0 | ||
SuggestExtensions: | ||
rubocop-rake: false | ||
Exclude: | ||
- .pryrc | ||
|
||
Layout/IndentFirstArrayElement: | ||
Layout/FirstArrayElementIndentation: | ||
EnforcedStyle: consistent | ||
|
||
Layout/ArgumentAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
|
||
Layout/EndAlignment: | ||
EnforcedStyleAlignWith: variable | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- lib/bundler-dependencies.rb | ||
|
||
RSpec/ExampleLength: | ||
Max: 10 | ||
Exclude: | ||
- spec/bundler/dependencies/cli_spec.rb | ||
|
||
RSpec/ContextWording: | ||
Enabled: false | ||
|
||
RSpec/NamedSubject: | ||
Enabled: false | ||
|
||
RSpec/NestedGroups: | ||
Max: 5 | ||
|
||
RSpec/NotToNot: | ||
EnforcedStyle: to_not | ||
|
||
Style/FormatStringToken: | ||
Enabled: false | ||
|
||
Style/NumericPredicate: | ||
Enabled: false | ||
|
||
Style/MethodCallWithArgsParentheses: | ||
IgnoredMethods: | ||
AllowedMethods: | ||
- and | ||
- method_option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2025-01-24 18:08:13 UTC using RuboCop version 1.71.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: Severity, Include. | ||
# Include: **/*.gemspec | ||
Gemspec/RequiredRubyVersion: | ||
Exclude: | ||
- 'bundler-dependencies.gemspec' | ||
|
||
# Offense count: 14 | ||
# Configuration parameters: AllowedConstants. | ||
Style/Documentation: | ||
Exclude: | ||
- 'lib/bundler/dependencies.rb' | ||
- 'lib/bundler/dependencies/cli.rb' | ||
- 'lib/bundler/dependencies/cli/command.rb' | ||
- 'lib/bundler/dependencies/cli/count.rb' | ||
- 'lib/bundler/dependencies/cli/find.rb' | ||
- 'lib/bundler/dependencies/cli/graph.rb' | ||
- 'lib/bundler/dependencies/cli/with_gem.rb' | ||
- 'lib/bundler/dependencies/command.rb' | ||
- 'lib/bundler/dependencies/graph.rb' | ||
- 'lib/bundler/dependencies/scanner.rb' | ||
- 'lib/bundler/dependencies/spec.rb' | ||
- 'lib/bundler/dependencies/visitor.rb' | ||
- 'lib/bundler/dependencies/visitors/paths.rb' | ||
- 'lib/bundler/dependencies/visitors/shell_tree.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.2 | ||
3.4.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in bundler-dependencies.gemspec | ||
gemspec | ||
|
||
gem 'rubocop_defaults', github: 'dvandersluis/rubocop_defaults' | ||
gem 'pry' | ||
gem 'rake' | ||
gem 'rspec' | ||
gem 'rubocop' | ||
gem 'rubocop-performance' | ||
gem 'rubocop-rspec' | ||
|
||
plugin 'bundler-dependencies', path: '.' unless ENV['CI'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
desc 'Run RuboCop' | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
task default: %i[spec rubocop] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.