Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: standardrb/standard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.42.0
Choose a base ref
...
head repository: standardrb/standard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.42.1
Choose a head ref
  • 12 commits
  • 9 files changed
  • 6 contributors

Commits on Oct 10, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    jasonkarns Jason Karns
    Copy the full SHA
    07bc4bf View commit details
  2. move default task to conventional location at top

    jasonkarns committed Oct 10, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    jasonkarns Jason Karns
    Copy the full SHA
    8f27a74 View commit details

Commits on Nov 12, 2024

  1. fix emabled typo in Style/SafeNavigationChainLength

    jeffbax committed Nov 12, 2024
    Copy the full SHA
    7f36244 View commit details

Commits on Nov 13, 2024

  1. Merge pull request #663 from jeffbax/fix-emabled-typo

    searls authored Nov 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1df0bc0 View commit details
  2. Fix markdown syntax in CHANGELOG.md

    biow0lf authored Nov 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a80c7ff View commit details
  3. Merge pull request #664 from biow0lf/patch-1

    searls authored Nov 13, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1feffcc View commit details
  4. add rake binstub

    `bundle binstubs rake`
    robsdudeson committed Nov 13, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    robsdudeson Robby Thompson
    Copy the full SHA
    eee068c View commit details
  5. use binstub on ci

    robsdudeson committed Nov 13, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    robsdudeson Robby Thompson
    Copy the full SHA
    d925298 View commit details
  6. update docs

    robsdudeson committed Nov 13, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    robsdudeson Robby Thompson
    Copy the full SHA
    0210ade View commit details

Commits on Nov 14, 2024

  1. Merge pull request #654 from standardrb/rake

    searls authored Nov 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    83daf21 View commit details
  2. Merge pull request #665 from robsdudeson/binstubs

    searls authored Nov 14, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3abe01c View commit details

Commits on Nov 19, 2024

  1. 🇭🇹v1.42.1

    It's the Battle of Vertieres day! In the Haitian revolution, the battle
    of Vertieres is considered a pivotal battle in their struggle from
    freedom from enslavement and colonialism.
    camilopayan committed Nov 19, 2024
    Copy the full SHA
    988bdbe View commit details
Showing with 52 additions and 20 deletions.
  1. +5 −6 .github/workflows/test.yml
  2. +5 −1 CHANGELOG.md
  3. +1 −1 Gemfile.lock
  4. +5 −2 Rakefile
  5. +27 −0 bin/rake
  6. +1 −1 config/base.yml
  7. +3 −4 docs/RELEASE.md
  8. +4 −4 docs/UPGRADING.md
  9. +1 −1 lib/standard/version.rb
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -12,15 +12,14 @@ on:

jobs:
test:

strategy:
matrix:
os: [ubuntu-latest]
ruby-version:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- "3.0"
- "3.1"
- "3.2"
- "3.3"

runs-on: ${{ matrix.os }}

@@ -32,4 +31,4 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
run: bundle config unset deployment && bundle exec rake
run: bundle config unset deployment && ./bin/rake
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,9 +2,13 @@

## Unreleased

## 1.42.1

* Fixes a very noisy typo!

## 1.42.0

* Updates rubocop to [1.68.0]https://github.com/rubocop/rubocop/tree/v1.68.0)
* Updates rubocop to [1.68.0](https://github.com/rubocop/rubocop/tree/v1.68.0)
* Inherit from `RuboCop::Cop::Base` fixing deprecation warnings.
* Add new cops

2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
standard (1.42.0)
standard (1.42.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.68.0)
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
require "bundler/gem_tasks"
require "rake/clean"
require "rake/testtask"
require_relative "lib/standard/rake"

CLOBBER.include "*.gem"

task default: [:test, "standard:fix"]

Rake::TestTask.new(:test) do |t|
t.warning = false
t.test_files = FileList["test/**/*_test.rb"]
end

task default: [:test, "standard:fix"]
27 changes: 27 additions & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rake", "rake")
2 changes: 1 addition & 1 deletion config/base.yml
Original file line number Diff line number Diff line change
@@ -1674,7 +1674,7 @@ Style/SafeNavigation:
- try!

Style/SafeNavigationChainLength:
Emabled: false
Enabled: false

Style/Sample:
Enabled: true
7 changes: 3 additions & 4 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
@@ -15,13 +15,13 @@ rake install:local # Build and install standard-x.x.x.gem into system gems wi
rake release[remote] # Create tag vx.x.x and build and push standard-0.5.2.gem to rubygems.org
```

Most of these commands are depended on (read: run by) `rake release`, which is
Most of these commands are depended on (read: run by) `./bin/rake release`, which is
really the only one we'll need for releasing the gem to
[Rubygems.org](https://rubygems.org/gems/standard).

## Release steps

1. Make sure git is up to date and `bundle exec rake` exits cleanly
1. Make sure git is up to date and `./bin/rake` exits cleanly
1. If you upgraded a Rubocop dependency, be sure to lock it down in
`standard.gemspec`. To avoid being broken transitively, we stick to exact
release dependencies (e.g. "0.91.0" instead of "~> 0.91")
@@ -34,9 +34,8 @@ really the only one we'll need for releasing the gem to
1. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
1. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
with the message equal to the new version (e.g. "0.42.1")
1. Finally, run `bundle exec rake release`, which will hopefully succeed
1. Finally, run `./bin/rake release`, which will hopefully succeed
1. Provide your multi-factor-auth token when prompted to finish publishing the
gem
1. [Tweet](https://twitter.com) about your awesome new release! (Shameless
self-promotion is the most important part of open source software)

8 changes: 4 additions & 4 deletions docs/UPGRADING.md
Original file line number Diff line number Diff line change
@@ -11,21 +11,21 @@ The official standard plug-ins that are included in standard are:

1. Update Rubocop plugin in the gemspec file and gem file.
1. Keep standard in the gem file up-to-date. This will bring any testing utilities in standard into the plug-in repository.
1. Run bundle exec rake to run the tests
1. Run `./bin/rake` to run the tests
1. Configure any cops that need to be configured so that the tests pass
1. Update the change log to the best of your ability and title it as unreleased
1. Make your commit for these updates and push to the main branch
1. Update the version in version.rb and update the version in the Changelog replacing the word “Unreleased”
1. Run bundle to write the new version number to the lock file
1. Run bundle exec release to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.
1. Run `./bin/rake release` to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.

## Updating Standard

1. Update Rubocop as well as Standard Performance in the gemspec file and gem file.
1. Run bundle exec rake to run the tests
1. Run `./bin/rake` to run the tests
1. Configure any cops that need to be configured so that the tests pass
1. Update the change log to the best of your ability and title it as unreleased
1. Make your commit for these updates and push to the main branch
1. Update the version in version.rb and update the version in the Changelog replacing the word “Unreleased”
1. Run bundle to write the new version number to the lock file
1. Run bundle exec release to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.
1. Run `./bin/rake` to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.
2 changes: 1 addition & 1 deletion lib/standard/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Standard
VERSION = Gem::Version.new("1.42.0")
VERSION = Gem::Version.new("1.42.1")
end