From 1f4056414b0566d52f50893ef19b67aef90d391e Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 17 Jun 2023 20:21:28 +0900 Subject: [PATCH 1/3] Update copyrights. --- conduct.md | 133 +++++++++++++++++++++++++++++++ gems.rb | 2 - gems/async-v1.rb | 2 +- lib/async/rspec.rb | 2 +- lib/async/rspec/buffer.rb | 2 +- lib/async/rspec/leaks.rb | 2 +- lib/async/rspec/memory.rb | 2 +- lib/async/rspec/profile.rb | 2 +- lib/async/rspec/reactor.rb | 24 ++---- lib/async/rspec/ssl.rb | 2 +- lib/async/rspec/version.rb | 2 +- spec/async/rspec/buffer_spec.rb | 2 +- spec/async/rspec/leaks_spec.rb | 2 +- spec/async/rspec/memory_spec.rb | 2 +- spec/async/rspec/profile_spec.rb | 2 +- spec/async/rspec/reactor_spec.rb | 2 +- spec/async/rspec/ssl_spec.rb | 2 +- spec/spec_helper.rb | 2 +- 18 files changed, 153 insertions(+), 36 deletions(-) create mode 100644 conduct.md diff --git a/conduct.md b/conduct.md new file mode 100644 index 0000000..45d257b --- /dev/null +++ b/conduct.md @@ -0,0 +1,133 @@ + +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall + community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or advances of + any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email address, + without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +[INSERT CONTACT METHOD]. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. + +For answers to common questions about this code of conduct, see the FAQ at +[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[Mozilla CoC]: https://github.com/mozilla/diversity +[FAQ]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations diff --git a/gems.rb b/gems.rb index f4131a6..ee797fe 100644 --- a/gems.rb +++ b/gems.rb @@ -9,8 +9,6 @@ # gem "async", path: "../async" -gem "rugged", "= 1.4.4" - group :maintenance, optional: true do gem "bake-modernize" gem "bake-gem" diff --git a/gems/async-v1.rb b/gems/async-v1.rb index bfede80..9d505c3 100644 --- a/gems/async-v1.rb +++ b/gems/async-v1.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2021, by Samuel Williams. +# Copyright, 2021-2023, by Samuel Williams. source 'https://rubygems.org' diff --git a/lib/async/rspec.rb b/lib/async/rspec.rb index b24d6da..fdfe62e 100644 --- a/lib/async/rspec.rb +++ b/lib/async/rspec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2018, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. require_relative "rspec/version" require_relative "rspec/reactor" diff --git a/lib/async/rspec/buffer.rb b/lib/async/rspec/buffer.rb index 450e1f9..2e8f9f4 100644 --- a/lib/async/rspec/buffer.rb +++ b/lib/async/rspec/buffer.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. require 'securerandom' diff --git a/lib/async/rspec/leaks.rb b/lib/async/rspec/leaks.rb index 80b24fc..2a9f90f 100644 --- a/lib/async/rspec/leaks.rb +++ b/lib/async/rspec/leaks.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2019, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. require 'rspec/files' diff --git a/lib/async/rspec/memory.rb b/lib/async/rspec/memory.rb index 5521288..45ea5dc 100644 --- a/lib/async/rspec/memory.rb +++ b/lib/async/rspec/memory.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2019, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. # Copyright, 2018, by Janko Marohnić. require 'rspec/memory' diff --git a/lib/async/rspec/profile.rb b/lib/async/rspec/profile.rb index d2bc64e..50b3c8f 100644 --- a/lib/async/rspec/profile.rb +++ b/lib/async/rspec/profile.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2018, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. module Async module RSpec diff --git a/lib/async/rspec/reactor.rb b/lib/async/rspec/reactor.rb index 9bf5f6e..76d4492 100644 --- a/lib/async/rspec/reactor.rb +++ b/lib/async/rspec/reactor.rb @@ -1,22 +1,8 @@ -# Copyright, 2017, by Samuel G. D. Williams. -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. +# frozen_string_literal: true + +# Released under the MIT License. +# Copyright, 2017-2023, by Samuel Williams. +# Copyright, 2023, by Robin Goos. require_relative 'leaks' diff --git a/lib/async/rspec/ssl.rb b/lib/async/rspec/ssl.rb index bbe46ae..7074e02 100644 --- a/lib/async/rspec/ssl.rb +++ b/lib/async/rspec/ssl.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2021, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. require 'openssl' diff --git a/lib/async/rspec/version.rb b/lib/async/rspec/version.rb index 58eb469..700430b 100644 --- a/lib/async/rspec/version.rb +++ b/lib/async/rspec/version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2021, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. module Async module RSpec diff --git a/spec/async/rspec/buffer_spec.rb b/spec/async/rspec/buffer_spec.rb index 0150a01..ac867f3 100644 --- a/spec/async/rspec/buffer_spec.rb +++ b/spec/async/rspec/buffer_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. require 'async/rspec/buffer' diff --git a/spec/async/rspec/leaks_spec.rb b/spec/async/rspec/leaks_spec.rb index 7f1531a..ad2e0c9 100644 --- a/spec/async/rspec/leaks_spec.rb +++ b/spec/async/rspec/leaks_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2019, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. require 'async/rspec/leaks' diff --git a/spec/async/rspec/memory_spec.rb b/spec/async/rspec/memory_spec.rb index f213e01..5762cd2 100644 --- a/spec/async/rspec/memory_spec.rb +++ b/spec/async/rspec/memory_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2019, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. # Copyright, 2018, by Janko Marohnić. require 'async/rspec/memory' diff --git a/spec/async/rspec/profile_spec.rb b/spec/async/rspec/profile_spec.rb index 4063287..25d4109 100644 --- a/spec/async/rspec/profile_spec.rb +++ b/spec/async/rspec/profile_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2019, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. require 'async' require 'async/rspec/profile' diff --git a/spec/async/rspec/reactor_spec.rb b/spec/async/rspec/reactor_spec.rb index beb90b7..ebb9f5c 100644 --- a/spec/async/rspec/reactor_spec.rb +++ b/spec/async/rspec/reactor_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2021, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. # Copyright, 2023, by Robin Goos. require 'async/rspec/reactor' diff --git a/spec/async/rspec/ssl_spec.rb b/spec/async/rspec/ssl_spec.rb index 8ae8001..64cf105 100644 --- a/spec/async/rspec/ssl_spec.rb +++ b/spec/async/rspec/ssl_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2018-2020, by Samuel Williams. +# Copyright, 2018-2023, by Samuel Williams. require 'async/rspec/ssl' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b63625f..2c1a3d8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2017-2019, by Samuel Williams. +# Copyright, 2017-2023, by Samuel Williams. require 'covered/rspec' From 05c6170bc3c5e2f5701943404444126edcfe9e3f Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 5 Mar 2025 10:00:52 +1300 Subject: [PATCH 2/3] Remove async-io dependency. --- async-rspec.gemspec | 1 - spec/async/rspec/reactor_spec.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/async-rspec.gemspec b/async-rspec.gemspec index 88f783c..a8dba5f 100644 --- a/async-rspec.gemspec +++ b/async-rspec.gemspec @@ -22,7 +22,6 @@ Gem::Specification.new do |spec| spec.add_dependency "rspec-memory", "~> 1.0" spec.add_development_dependency "async" - spec.add_development_dependency "async-io" spec.add_development_dependency "bundler" spec.add_development_dependency "covered" end diff --git a/spec/async/rspec/reactor_spec.rb b/spec/async/rspec/reactor_spec.rb index ebb9f5c..59e03bd 100644 --- a/spec/async/rspec/reactor_spec.rb +++ b/spec/async/rspec/reactor_spec.rb @@ -5,7 +5,6 @@ # Copyright, 2023, by Robin Goos. require 'async/rspec/reactor' -require 'async/io/generic' RSpec.describe Async::RSpec::Reactor do context "with shared context", timeout: 1 do From 649783d52d15ceb034eeef893a258cb78ec0e156 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 5 Mar 2025 10:02:22 +1300 Subject: [PATCH 3/3] Bump patch version. --- lib/async/rspec/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/async/rspec/version.rb b/lib/async/rspec/version.rb index 700430b..92ceb14 100644 --- a/lib/async/rspec/version.rb +++ b/lib/async/rspec/version.rb @@ -5,6 +5,6 @@ module Async module RSpec - VERSION = "1.17.0" + VERSION = "1.17.1" end end