Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Support Ruby 3.x #83

Merged
merged 4 commits into from
May 26, 2021
Merged

[feature] Support Ruby 3.x #83

merged 4 commits into from
May 26, 2021

Conversation

donaldong
Copy link
Contributor

@donaldong donaldong commented May 25, 2021

Summary

This adds Ruby 3 support. Since there's a Ruby bug https://bugs.ruby-lang.org/issues/10856 in Ruby versions prior to 2.7, I'm dropping support to those versions instead of trying to deal with the bug at runtime.

Learn more here

Updated to use ruby2_keywords

Test Plan

  • ci

@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #83 (ccdd92c) into main (648af0b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #83   +/-   ##
=======================================
  Coverage   97.63%   97.64%           
=======================================
  Files          40       40           
  Lines        2328     2335    +7     
=======================================
+ Hits         2273     2280    +7     
  Misses         55       55           
Impacted Files Coverage Δ
lib/redis_memo.rb 97.61% <100.00%> (+0.05%) ⬆️
lib/redis_memo/memoize_method.rb 98.07% <100.00%> (+0.03%) ⬆️
.../memoize_query/cached_select/connection_adapter.rb 94.11% <100.00%> (ø)
lib/redis_memo/memoize_query/invalidation.rb 99.09% <100.00%> (+0.03%) ⬆️
spec/memoizable/dependency_spec.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 648af0b...ccdd92c. Read the comment docs.

@donaldong donaldong changed the title [feature][breaking] Support Ruby 3.x [feature] Support Ruby 3.x May 25, 2021
@donaldong donaldong merged commit 47b98e7 into main May 26, 2021
@donaldong donaldong deleted the donaldong/ruby-3 branch May 26, 2021 00:18
@donaldong donaldong mentioned this pull request Jun 3, 2021
donaldong added a commit that referenced this pull request Jun 3, 2021
### Breaking Changes
- Inline cache validation sample percentage (#78): `config.cache_validation_sampler` is replaced with `config.cache_validation_sample_percentage`
- Rename `RedisMemo.without_memo` -> `RedisMemo.without_memoization` (#85)

### Features
- Support more queries with range (>=, <= etc) (#63)
- Use railtie to load middleware (#69)
- Support Ruby 3.x (#83)
- Move lua to a separate file, run evalsha after script is already loaded (#84)

### Doc
- Update README (#73)
- Add options doc (#77)
- Add more rdocs for RedisMemo::Batch and RedisMemo::MemoizeMethod (#80)
- Add rdocs for RedisMemo::MemoizeQuery (#81)
- Add docs for RedisMemo::Memoizable and RedisMemo::Memoizable::Invalidation (#82)
- Add rdocs for cache select (#91)
- Check in wiki pages (#86)
- Check in an example config (#89)

### Refactor
- Fix rubocop lint errors (#79)
- Move redis-memo specific environment variables into DefaultOptions (#76)
- Move errors to a separate file (#72)
- Add RedisMemo::Util (#71)
- Define ThreadLocalVar (#70)
donaldong added a commit that referenced this pull request Jun 3, 2021
### Breaking Changes
- Inline cache validation sample percentage (#78): `config.cache_validation_sampler` is replaced with `config.cache_validation_sample_percentage`
- Rename `RedisMemo.without_memo` -> `RedisMemo.without_memoization` (#85)

### Features
- Support more queries with range (>=, <= etc) (#63)
- Use railtie to load middleware (#69)
- Support Ruby 3.x (#83)
- Move lua to a separate file, run evalsha after script is already loaded (#84)

### Doc
- Update README (#73)
- Add options doc (#77)
- Add more rdocs for RedisMemo::Batch and RedisMemo::MemoizeMethod (#80)
- Add rdocs for RedisMemo::MemoizeQuery (#81)
- Add docs for RedisMemo::Memoizable and RedisMemo::Memoizable::Invalidation (#82)
- Add rdocs for cache select (#91)
- Check in wiki pages (#86)
- Check in an example config (#89)

### Refactor
- Fix rubocop lint errors (#79)
- Move redis-memo specific environment variables into DefaultOptions (#76)
- Move errors to a separate file (#72)
- Add RedisMemo::Util (#71)
- Define ThreadLocalVar (#70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants