This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
forked from tubedude/xirr
-
Notifications
You must be signed in to change notification settings - Fork 0
Sync fork #6
Open
hmsf
wants to merge
34
commits into
Seedrs:master
Choose a base branch
from
tubedude:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Sync fork #6
Conversation
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
Include patch versions for activesupport 5.2
reesolve dependency activesupport
BigDecimal is now a method in the Kernel module. BigDecimal.new will spit deprecation warnings
update BigDecimal constructor for ruby 2.6
Lowered activesupport required
Allowing higher version of activesupport
Upgrade to 2.7
using xirr.config instead of constants
For some reason the commit added (0c89d72) to remove RubyInline is not the same as PR #24, and a require was left in the code. That require fails, as the dependency is no longer specified. And that makes the test to fail: ``` $ bundle exec rake test_units /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require': cannot load such file -- inline (LoadError) from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /Users/coder/code/xirr/lib/xirr/base.rb:7:in `<module:Base>' from /Users/coder/code/xirr/lib/xirr/base.rb:5:in `<module:Xirr>' from /Users/coder/code/xirr/lib/xirr/base.rb:3:in `<top (required)>' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /Users/coder/code/xirr/test/test_helper.rb:12:in `<top (required)>' from /Users/coder/code/xirr/test/test_cashflow.rb:1:in `require_relative' from /Users/coder/code/xirr/test/test_cashflow.rb:1:in `<top (required)>' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:21:in `block in <main>' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `select' from /Users/coder/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `<main>' rake aborted! Command failed with status (1) /Users/coder/.rbenv/versions/3.3.1/bin/bundle:25:in `load' /Users/coder/.rbenv/versions/3.3.1/bin/bundle:25:in `<main>' Tasks: TOP => test_units (See full trace by running task with --trace) ``` After the change, the tests are working again. PS: in a later PR I will be configuring Github Actions for this repo.
Without the patch number `rbenv` was failing with the following error: ``` $ rbenv install ruby-build: definition not found: 3.3 The following versions contain `3.3' in the name: 2.3.3 3.3.0-dev 3.3.0-preview1 3.3.0-preview2 3.3.0-preview3 3.3.0-rc1 3.3.0 3.3.1 jruby-9.3.3.0 mruby-3.3.0 rbx-3.3 rbx-3.30 rbx-3.31 rbx-3.32 rbx-3.33 rbx-3.34 rbx-3.35 rbx-3.36 rbx-3.37 rbx-3.38 rbx-3.39 See all available versions with `rbenv install --list-all'. If the version you need is missing, try upgrading ruby-build: brew upgrade ruby-build ```
In this PR we allow activesupport 7 and remove support for versions 5 and 6.0 as the latter reached its EOL on June 2022. We also require Ruby 3.1, as Ruby 3.0 reached its EOL on April 23rd 2024 and Ruby 2.7 on March 31st 2023. This fixes #30.
fix: remove require of RubyInline
fix: specify patch version in .ruby-version
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.