[PR #94] [CLOSED] Repair "wrong number of arguments" error. #99

Closed
opened 2025-12-29 00:22:36 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plashchynski/crono/pull/94
Author: @c4lliope
Created: 3/15/2022
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • 7faae13 Repair "wrong number of arguments" error.

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 lib/crono/performer_proxy.rb (+7 -2)

📄 Description

For some reason, the argument destructuring *args is causing an error.
Passing variables along manually helps the code run properly.

[grace@chesapeake reap]$ bundle exec crono RAILS_ENV=development
wrong number of arguments (given 2, expected 1)
/home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/period.rb:7:in `initialize'
/home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/performer_proxy.rb:11:in `new'
/home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/performer_proxy.rb:11:in `every'
/home/grace/Desktop/assembled.app/reap/config/cronotab.rb:14:in `<main>'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plashchynski/crono/pull/94 **Author:** [@c4lliope](https://github.com/c4lliope) **Created:** 3/15/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`7faae13`](https://github.com/plashchynski/crono/commit/7faae130c0b2ceaef9abacb060bdd642c58f3ef8) Repair "wrong number of arguments" error. ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `lib/crono/performer_proxy.rb` (+7 -2) </details> ### 📄 Description For some reason, the argument destructuring `*args` is causing an error. Passing variables along manually helps the code run properly. ``` [grace@chesapeake reap]$ bundle exec crono RAILS_ENV=development wrong number of arguments (given 2, expected 1) /home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/period.rb:7:in `initialize' /home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/performer_proxy.rb:11:in `new' /home/grace/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/crono-1.1.2/lib/crono/performer_proxy.rb:11:in `every' /home/grace/Desktop/assembled.app/reap/config/cronotab.rb:14:in `<main>' ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 00:22:36 +01:00
adam closed this issue 2025-12-29 00:22:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#99