From 000724771ed2370b704c6c32610afd964f883cc3 Mon Sep 17 00:00:00 2001 From: Gokul Date: Tue, 3 Mar 2026 12:27:40 +0530 Subject: [PATCH 1/3] Update ruby version from 3.3 to 4.0.1 --- Gemfile.lock | 7 ++++--- solid_callback.gemspec | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 10c0954..2b5328f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,13 +25,14 @@ GEM PLATFORMS x86_64-darwin-23 + x86_64-darwin-25 DEPENDENCIES - bundler (~> 2.0) + bundler (>= 2.0) rake (~> 13.0) rspec (~> 3.0) solid_callback! - yard + yard (~> 0.9, >= 0) BUNDLED WITH - 2.2.33 + 4.0.7 diff --git a/solid_callback.gemspec b/solid_callback.gemspec index b4949da..0881ea9 100644 --- a/solid_callback.gemspec +++ b/solid_callback.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.description = "SolidCallback adds powerful method interception capabilities to your Ruby classes with near-zero overhead. Clean, flexible, and unobtrusive." spec.homepage = "https://github.com/gklsan/solid_callback" spec.license = "MIT" - spec.required_ruby_version = ">= 3.3.0" + spec.required_ruby_version = ">= 4.0.1" spec.metadata = { 'source_code_uri' => "https://github.com/gklsan/solid_callback", @@ -37,7 +37,7 @@ Gem::Specification.new do |spec| # Uncomment to register a new dependency of your gem # spec.add_dependency "example-gem", "~> 1.0" - spec.add_development_dependency "bundler", "~> 2.0" + spec.add_development_dependency "bundler", ">= 2.0" spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "yard", "~> 0.9" From f3125fa429e52a4728458cd834ebc0b6719e99a0 Mon Sep 17 00:00:00 2001 From: Gokul Date: Tue, 3 Mar 2026 12:43:22 +0530 Subject: [PATCH 2/3] Update ruby version from 3.3 to 4.0.1 documentation updated --- doc/SolidCallback.html | 6 ++--- doc/SolidCallback/Core.html | 4 +-- doc/SolidCallback/Error.html | 4 +-- doc/SolidCallback/Hooks.html | 4 +-- doc/SolidCallback/MethodWrapper.html | 4 +-- doc/_index.html | 4 +-- doc/file.README.html | 38 ++++++++++++++-------------- doc/index.html | 38 ++++++++++++++-------------- doc/top-level-namespace.html | 4 +-- 9 files changed, 53 insertions(+), 53 deletions(-) diff --git a/doc/SolidCallback.html b/doc/SolidCallback.html index 809475e..d181e65 100644 --- a/doc/SolidCallback.html +++ b/doc/SolidCallback.html @@ -109,7 +109,7 @@

VERSION =
-
"1.0.1"
+
"2.0.2"
@@ -243,9 +243,9 @@

diff --git a/doc/SolidCallback/Core.html b/doc/SolidCallback/Core.html index aa16797..cb7e774 100644 --- a/doc/SolidCallback/Core.html +++ b/doc/SolidCallback/Core.html @@ -645,9 +645,9 @@

diff --git a/doc/SolidCallback/Error.html b/doc/SolidCallback/Error.html index 9ceeeb7..87172ee 100644 --- a/doc/SolidCallback/Error.html +++ b/doc/SolidCallback/Error.html @@ -114,9 +114,9 @@ diff --git a/doc/SolidCallback/Hooks.html b/doc/SolidCallback/Hooks.html index e907d0c..a3a0e14 100644 --- a/doc/SolidCallback/Hooks.html +++ b/doc/SolidCallback/Hooks.html @@ -443,9 +443,9 @@

diff --git a/doc/SolidCallback/MethodWrapper.html b/doc/SolidCallback/MethodWrapper.html index 362b46b..2f4eb39 100644 --- a/doc/SolidCallback/MethodWrapper.html +++ b/doc/SolidCallback/MethodWrapper.html @@ -95,9 +95,9 @@ diff --git a/doc/_index.html b/doc/_index.html index 3e787f9..8f1a63b 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -157,9 +157,9 @@

Namespace Listing A-Z

diff --git a/doc/file.README.html b/doc/file.README.html index a16a571..5cee714 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -58,13 +58,13 @@
-

SolidCallback

+

SolidCallback

-

+

Gem Version Test Downloads Github forks Github stars License: MIT

SolidCallback adds powerful method interception capabilities to your Ruby classes with near-zero overhead. Clean, flexible, and unobtrusive.

-

Features

+

Features

  • 🔄 Method Lifecycle Hooks: before_call, after_call, and around_call - intercept methods without modifying their code

  • @@ -79,7 +79,7 @@

    Features

    📝 Conditional execution: Run callbacks only when specific conditions are met

-

Installation

+

Installation

Add this line to your application’s Gemfile:

@@ -96,9 +96,9 @@

Installation

gem install solid_callback
 
-

Usage

+

Usage

-

Basic Example

+

Basic Example

require 'solid_callback'
 
@@ -142,7 +142,7 @@ 

Basic Example

service.find_user(42)
-

Advanced Usage

+

Advanced Usage

Apply callbacks to specific methods:

@@ -190,7 +190,7 @@

Advanced Usage

before_call :notify_admin, if: -> { Rails.env.production? }
 
-

Skipping Callbacks

+

Skipping Callbacks

Skip callbacks for specific methods:

@@ -212,7 +212,7 @@

Skipping Callbacks

end -

Callback Options

+

Callback Options

Each callback method accepts the following options:

@@ -225,25 +225,25 @@

Callback Options

-‘only` +only Array of method names to which the callback applies -‘except` +except Array of method names to which the callback does not apply -‘if` +if Symbol (method name) or Proc that must return true for the callback to run -‘unless` +unless Symbol (method name) or Proc that must return false for the callback to run -

How It Works

+

How It Works

Callbacker uses Ruby’s metaprogramming to wrap your methods with callback functionality:

  1. @@ -256,7 +256,7 @@

    How It Works

    When the method is called, it executes the callbacks in the proper order

-

📚 Use Cases

+

📚 Use Cases

  • Authentication & Authorization

  • @@ -277,19 +277,19 @@

    📚 Use Cases

    Data transformation

-

🤝 Contributing

+

🤝 Contributing

Bug reports and pull requests are welcome on GitHub at github.com/gklsan/solid_callback/issues.

-

📄 License

+

📄 License

The gem is available as open source under the terms of the MIT License.

diff --git a/doc/index.html b/doc/index.html index 1028617..e5f3014 100644 --- a/doc/index.html +++ b/doc/index.html @@ -58,13 +58,13 @@
-

SolidCallback

+

SolidCallback

-

+

Gem Version Test Downloads Github forks Github stars License: MIT

SolidCallback adds powerful method interception capabilities to your Ruby classes with near-zero overhead. Clean, flexible, and unobtrusive.

-

Features

+

Features

  • 🔄 Method Lifecycle Hooks: before_call, after_call, and around_call - intercept methods without modifying their code

  • @@ -79,7 +79,7 @@

    Features

    📝 Conditional execution: Run callbacks only when specific conditions are met

-

Installation

+

Installation

Add this line to your application’s Gemfile:

@@ -96,9 +96,9 @@

Installation

gem install solid_callback
 
-

Usage

+

Usage

-

Basic Example

+

Basic Example

require 'solid_callback'
 
@@ -142,7 +142,7 @@ 

Basic Example

service.find_user(42)
-

Advanced Usage

+

Advanced Usage

Apply callbacks to specific methods:

@@ -190,7 +190,7 @@

Advanced Usage

before_call :notify_admin, if: -> { Rails.env.production? }
 
-

Skipping Callbacks

+

Skipping Callbacks

Skip callbacks for specific methods:

@@ -212,7 +212,7 @@

Skipping Callbacks

end -

Callback Options

+

Callback Options

Each callback method accepts the following options:

@@ -225,25 +225,25 @@

Callback Options

-‘only` +only Array of method names to which the callback applies -‘except` +except Array of method names to which the callback does not apply -‘if` +if Symbol (method name) or Proc that must return true for the callback to run -‘unless` +unless Symbol (method name) or Proc that must return false for the callback to run -

How It Works

+

How It Works

Callbacker uses Ruby’s metaprogramming to wrap your methods with callback functionality:

  1. @@ -256,7 +256,7 @@

    How It Works

    When the method is called, it executes the callbacks in the proper order

-

📚 Use Cases

+

📚 Use Cases

  • Authentication & Authorization

  • @@ -277,19 +277,19 @@

    📚 Use Cases

    Data transformation

-

🤝 Contributing

+

🤝 Contributing

Bug reports and pull requests are welcome on GitHub at github.com/gklsan/solid_callback/issues.

-

📄 License

+

📄 License

The gem is available as open source under the terms of the MIT License.

diff --git a/doc/top-level-namespace.html b/doc/top-level-namespace.html index 137a686..af937d6 100644 --- a/doc/top-level-namespace.html +++ b/doc/top-level-namespace.html @@ -100,9 +100,9 @@

Defined Under Namespace

From b5528a1897fc3e692f93a1f3ac28f47020af029e Mon Sep 17 00:00:00 2001 From: Gokul Date: Tue, 3 Mar 2026 12:45:29 +0530 Subject: [PATCH 3/3] git workflow version update --- .github/workflows/ruby.yml | 2 +- mise.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 mise.toml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index fec32a1..8e6e92c 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.3'] + ruby-version: ['4.0.1'] steps: - uses: actions/checkout@v4 diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..96bdb30 --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +ruby = "4"